Running examples in ‘RxODE-Ex.R’ failed
The error most likely occurred in:

> ### Name: rxgamma
> ### Title: Simulate gamma variable from threefry generator
> ### Aliases: rxgamma
> 
> ### ** Examples
> 
> 
> ## Use threefry engine
> 
> rxgamma(0.5, n=10) # with rxgamma you have to explicitly state n
 [1] 0.108013115 0.241220871 0.165890476 0.043839508 0.314671325 0.966023915
 [7] 0.366955846 0.196391809 0.003211391 0.103224841
> rxgamma(5, n=10, ncores=2) # You can parallelize the simulation using openMP
 [1]  5.071187  6.802385 10.188485  5.979166  4.347974  4.307803  6.699135
 [8]  2.037596  2.486085  4.449256
> 
> rxgamma(1)
[1] 0.9094901
> 
> 
> ## This example uses `rxbeta` directly in the model
> 
> rx <- RxODE({
+   a = rxgamma(2)
+ })

make: *** [rx_beb7a0bb63191af067cbce52769f0ff7_.so] Interrupt: 2

error building model
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -O3  -I"/Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-capitan-x86_64/results/3.6/RxODE.Rcheck/RxODE/include" -fPIC  -Wall -g -O2  -c rx_beb7a0bb63191af067cbce52769f0ff7_.c -o rx_beb7a0bb63191af067cbce52769f0ff7_.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o rx_beb7a0bb63191af067cbce52769f0ff7_.so rx_beb7a0bb63191af067cbce52769f0ff7_.o -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation

make: *** [rx_beb7a0bb63191af067cbce52769f0ff7_.so] Interrupt: 2

#define _getRxSolve_ _rx3d42518ba57350f4a5674122fd06840b0
#define simeps _rx3d42518ba57350f4a5674122fd06840b1
#define simeta _rx3d42518ba57350f4a5674122fd06840b2
#define _solveData _rx3d42518ba57350f4a5674122fd06840b3
#define _assign_ptr _rx3d42518ba57350f4a5674122fd06840b4
#define _rxRmModelLib _rx3d42518ba57350f4a5674122fd06840b5
#define _rxGetModelLib _rx3d42518ba57350f4a5674122fd06840b6
#define _old_c _rx3d42518ba57350f4a5674122fd06840b7
#define _ptrid _rx3d42518ba57350f4a5674122fd06840b8
#define _rxIsCurrentC _rx3d42518ba57350f4a5674122fd06840b9
#define _sumPS _rx3d42518ba57350f4a5674122fd06840b10
#define _prodPS _rx3d42518ba57350f4a5674122fd06840b11
#define _prodType _rx3d42518ba57350f4a5674122fd06840b12
#define _sumType _rx3d42518ba57350f4a5674122fd06840b13
#define _update_par_ptr _rx3d42518ba57350f4a5674122fd06840b14
#define _getParCov _rx3d42518ba57350f4a5674122fd06840b15
#define linCmtA _rx3d42518ba57350f4a5674122fd06840b16
#define linCmtC _rx3d42518ba57350f4a5674122fd06840b17
#define linCmtB _rx3d42518ba57350f4a5674122fd06840b18
#define _RxODE_rxAssignPtr _rx3d42518ba57350f4a5674122fd06840b19
#define _rxQr _rx3d42518ba57350f4a5674122fd06840b20
#define phi _rx3d42518ba57350f4a5674122fd06840b21
#define logit _rx3d42518ba57350f4a5674122fd06840b22
#define expit _rx3d42518ba57350f4a5674122fd06840b23
#define gammap _rx3d42518ba57350f4a5674122fd06840b24
#define gammaq _rx3d42518ba57350f4a5674122fd06840b25
#define lowergamma _rx3d42518ba57350f4a5674122fd06840b26
#define uppergamma _rx3d42518ba57350f4a5674122fd06840b27
#define gammapInv _rx3d42518ba57350f4a5674122fd06840b28
#define gammapDer _rx3d42518ba57350f4a5674122fd06840b29
#define gammapInva _rx3d42518ba57350f4a5674122fd06840b30
#define gammaqInv _rx3d42518ba57350f4a5674122fd06840b31
#define gammaqInva _rx3d42518ba57350f4a5674122fd06840b32
#define rxnorm _rx3d42518ba57350f4a5674122fd06840b33
#define rxnormV _rx3d42518ba57350f4a5674122fd06840b34
#define rxbinom _rx3d42518ba57350f4a5674122fd06840b35
#define rxcauchy _rx3d42518ba57350f4a5674122fd06840b36
#define rxchisq _rx3d42518ba57350f4a5674122fd06840b37
#define rxexp _rx3d42518ba57350f4a5674122fd06840b38
#define rxf _rx3d42518ba57350f4a5674122fd06840b39
#define rxgeom _rx3d42518ba57350f4a5674122fd06840b40
#define rxgamma _rx3d42518ba57350f4a5674122fd06840b41
#define rxbeta _rx3d42518ba57350f4a5674122fd06840b42
#define rxpois _rx3d42518ba57350f4a5674122fd06840b43
#define rxt_ _rx3d42518ba57350f4a5674122fd06840b44
#define rxunif _rx3d42518ba57350f4a5674122fd06840b45
#define rxweibull _rx3d42518ba57350f4a5674122fd06840b46
#define rinorm _rx3d42518ba57350f4a5674122fd06840b47
#define rinormV _rx3d42518ba57350f4a5674122fd06840b48
#define ribinom _rx3d42518ba57350f4a5674122fd06840b49
#define ricauchy _rx3d42518ba57350f4a5674122fd06840b50
#define richisq _rx3d42518ba57350f4a5674122fd06840b51
#define riexp _rx3d42518ba57350f4a5674122fd06840b52
#define rif _rx3d42518ba57350f4a5674122fd06840b53
#define rigeom _rx3d42518ba57350f4a5674122fd06840b54
#define rigamma _rx3d42518ba57350f4a5674122fd06840b55
#define ribeta _rx3d42518ba57350f4a5674122fd06840b56
#define ripois _rx3d42518ba57350f4a5674122fd06840b57
#define rit_ _rx3d42518ba57350f4a5674122fd06840b58
#define riunif _rx3d42518ba57350f4a5674122fd06840b59
#define riweibull _rx3d42518ba57350f4a5674122fd06840b60
#define _compareFactorVal _rx3d42518ba57350f4a5674122fd06840b61
#define _sum _rx3d42518ba57350f4a5674122fd06840b62
#define _sign _rx3d42518ba57350f4a5674122fd06840b63
#define _prod _rx3d42518ba57350f4a5674122fd06840b64
#define _max _rx3d42518ba57350f4a5674122fd06840b65
#define _min _rx3d42518ba57350f4a5674122fd06840b66
#define _transit4P _rx3d42518ba57350f4a5674122fd06840b67
#define _transit3P _rx3d42518ba57350f4a5674122fd06840b68
#define _assignFuns0 _rx3d42518ba57350f4a5674122fd06840b69
#define _assignFuns _rx3d42518ba57350f4a5674122fd06840b70
#include <RxODE_model_shared.h>
#define __MAX_PROD__ 0
#define _CMT CMT
#define _SYNC_simeps_ for (int _svari=_solveData->neps; _svari--;){}
#define _SYNC_simeta_ for (int _ovari=_solveData->neta; _ovari--;){}
#include "extraC.h"
_getRxSolve_t _getRxSolve_;
_simfun simeps;
_simfun simeta;
rx_solve *_solveData=NULL;
RxODE_assign_ptr _assign_ptr=NULL;
_rxRmModelLibType _rxRmModelLib=NULL;
_rxGetModelLibType _rxGetModelLib=NULL;
RxODE_ode_solver_old_c _old_c=NULL;
RxODE_fn0i _ptrid=NULL;
_rxIsCurrentC_type _rxIsCurrentC=NULL;
_rxSumType _sumPS=NULL;
_rxProdType _prodPS=NULL;
RxODE_fn0i _prodType=NULL;
RxODE_fn0i _sumType=NULL;
_update_par_ptr_p _update_par_ptr=NULL;
_getParCov_p _getParCov=NULL;
linCmtA_p linCmtA;
linCmtA_p linCmtC;
linCmtB_p linCmtB;
_rx_asgn _RxODE_rxAssignPtr=NULL;
_rx_asgn _rxQr=NULL;
RxODE_fn phi;
RxODE_fn3 logit;
RxODE_fn3 expit;
RxODE_fn2 gammap;
RxODE_fn2 gammaq;
RxODE_fn2 lowergamma;
RxODE_fn2 uppergamma;
RxODE_fn2 gammapInv;
RxODE_fn2 gammapDer;
RxODE_fn2 gammapInva;
RxODE_fn2 gammaqInv;
RxODE_fn2 gammaqInva;
RxODEi_fn2 rxnorm;
RxODEi_fn2 rxnormV;
RxODEi_rxbinom rxbinom;
RxODEi_fn2 rxcauchy;
RxODEi_fn rxchisq;
RxODEi_fn rxexp;
RxODEi_fn2 rxf;
RxODEi_ifn rxgeom;
RxODEi_fn2 rxgamma;
RxODEi_fn2 rxbeta;
RxODEi_ifn rxpois;
RxODEi_fn rxt_;
RxODEi_fn2 rxunif;
RxODEi_fn2 rxweibull;
RxODEi2_fn2 rinorm;
RxODEi2_fn2 rinormV;
RxODEi2_ribinom ribinom;
RxODEi2_fn2 ricauchy;
RxODEi2_fn richisq;
RxODEi2_fn riexp;
RxODEi2_fn2 rif;
RxODEi2_ifn rigeom;
RxODEi2_fn2 rigamma;
RxODEi2_fn2 ribeta;
RxODEi2_ifn ripois;
RxODEi2_fn rit_;
RxODEi2_fn2 riunif;
RxODEi2_fn2 riweibull;
RxODE_compareFactorVal_fn _compareFactorVal;
double _prod(double *input, double *p, int type, int n, ...){
  va_list valist;
  va_start(valist, n);
  for (unsigned int i = 0; i < n; i++){
    input[i] = va_arg(valist, double);
  }
  va_end(valist);
  return _prodPS(input, p, n, type);
}
double _sum(double *input, double *pld, int m, int type, int n, ...){
  va_list valist;
  va_start(valist, n);
  for (unsigned int i = 0; i < n; i++){
    input[i] = va_arg(valist, double);
  }
  va_end(valist);
  double ret = _sumPS(input, n, pld, m, type);
  if (type == 2 && m < 0){
    for (int i = -m; i--;){
      pld[i] = 0.0;
    }
  }
  return ret;
}
double _sign(unsigned int n, ...) {
  va_list valist;
  va_start(valist, n);
  double s = 1;
  for (unsigned int i = 0; i < n; i++) {
    s = sign(va_arg(valist, double))*s;
    if (s == 0){
      break;
    }
  }
  va_end(valist);
  return s;
}
double _max(unsigned int n, ...) {
  va_list valist;
  va_start(valist, n);
  double mx = NA_REAL;
  double tmp = 0;
  if (n >= 1){
    mx = va_arg(valist, double);
    for (unsigned int i = 1; i < n; i++) {
      tmp = va_arg(valist, double);
      if (tmp>mx) mx=tmp;
    }
    va_end(valist);
  }
  return mx;
}
double _min(unsigned int n, ...){
  va_list valist;
  va_start(valist, n);
  double mn = NA_REAL;
  double tmp = 0;
  if (n >= 1){
    mn = va_arg(valist, double);
    for (unsigned int i = 1; i < n; i++){
      tmp = va_arg(valist, double);
      if (tmp<mn) mn=tmp;
    }
    va_end(valist);
  }
  return mn;
}
double _transit4P(double t, unsigned int id, double n, double mtt, double bio){
  double ktr = (n+1)/mtt;
  double lktr = log(n+1)-log(mtt);
  double tc = (t-(_solveData->subjects[id].tlast));
  return exp(log(bio*(_solveData->subjects[id].podo))+lktr+n*(lktr+log(tc))-ktr*(tc)-lgamma1p(n));
}
double _transit3P(double t, unsigned int id, double n, double mtt){
  double ktr = (n+1)/mtt;
  double lktr = log(n+1)-log(mtt);
  double tc = (t-(_solveData->subjects[id].tlast));
  return exp(log(_solveData->subjects[id].podo)+lktr+n*(lktr+log(tc))-ktr*(tc)-lgamma1p(n));
}
void _assignFuns0() {
  _getRxSolve_ = (_getRxSolve_t) R_GetCCallable("RxODE","getRxSolve_");
  _assign_ptr=(RxODE_assign_ptr) R_GetCCallable("RxODE","RxODE_assign_fn_pointers");
  _rxRmModelLib=(_rxRmModelLibType) R_GetCCallable("RxODE","rxRmModelLib");
  _rxGetModelLib=(_rxGetModelLibType) R_GetCCallable("RxODE","rxGetModelLib");
  _RxODE_rxAssignPtr=(_rx_asgn)R_GetCCallable("RxODE","_RxODE_rxAssignPtr");
  _rxQr=(_rx_asgn)R_GetCCallable("RxODE","_RxODE_rxQr");
  _rxIsCurrentC = (_rxIsCurrentC_type)R_GetCCallable("RxODE","rxIsCurrentC");
  _sumPS  = (_rxSumType) R_GetCCallable("PreciseSums","PreciseSums_sum_r");
  _prodPS = (_rxProdType) R_GetCCallable("PreciseSums","PreciseSums_prod_r");
  _prodType=(RxODE_fn0i)R_GetCCallable("PreciseSums", "PreciseSums_prod_get");
  _sumType=(RxODE_fn0i)R_GetCCallable("PreciseSums", "PreciseSums_sum_get");
  _ptrid=(RxODE_fn0i)R_GetCCallable("RxODE", "RxODE_current_fn_pointer_id");
  linCmtA=(linCmtA_p)R_GetCCallable("RxODE", "linCmtA");
  linCmtB=(linCmtB_p)R_GetCCallable("RxODE", "linCmtB");
  linCmtC=(linCmtA_p)R_GetCCallable("RxODE", "linCmtC");
    
  rxnorm = (RxODEi_fn2)R_GetCCallable("RxODE", "rxnorm");
  rxnormV = (RxODEi_fn2)R_GetCCallable("RxODE", "rxnormV");
  rxbinom = (RxODEi_rxbinom)R_GetCCallable("RxODE","rxbinom") ;
  rxcauchy = (RxODEi_fn2)R_GetCCallable("RxODE","rxcauchy") ;
  rxchisq = (RxODEi_fn)R_GetCCallable("RxODE","rxchisq") ;
  rxexp = (RxODEi_fn)R_GetCCallable("RxODE","rxexp");
  rxf = (RxODEi_fn2)R_GetCCallable("RxODE","rxf") ;
  rxgeom = (RxODEi_ifn)R_GetCCallable("RxODE","rxgeom") ;
  rxgamma = (RxODEi_fn2)R_GetCCallable("RxODE","rxgamma") ;
  rxbeta = (RxODEi_fn2)R_GetCCallable("RxODE","rxbeta") ;
  rxpois = (RxODEi_ifn)R_GetCCallable("RxODE","rxpois") ;
  rxt_ = (RxODEi_fn)R_GetCCallable("RxODE","rxt_") ;
  rxunif = (RxODEi_fn2)R_GetCCallable("RxODE","rxunif") ;
  rxweibull = (RxODEi_fn2)R_GetCCallable("RxODE","rxweibull");
  rinorm = (RxODEi2_fn2)R_GetCCallable("RxODE", "rinorm");
  rinormV = (RxODEi2_fn2)R_GetCCallable("RxODE", "rinormV");
  ribinom = (RxODEi2_ribinom)R_GetCCallable("RxODE","ribinom") ;
  ricauchy = (RxODEi2_fn2)R_GetCCallable("RxODE","ricauchy") ;
  richisq = (RxODEi2_fn)R_GetCCallable("RxODE","richisq") ;
  riexp = (RxODEi2_fn)R_GetCCallable("RxODE","riexp");
  rif = (RxODEi2_fn2)R_GetCCallable("RxODE","rif") ;
  rigeom = (RxODEi2_ifn)R_GetCCallable("RxODE","rigeom") ;
  rigamma = (RxODEi2_fn2)R_GetCCallable("RxODE","rigamma") ;
  ribeta = (RxODEi2_fn2)R_GetCCallable("RxODE","ribeta") ;
  ripois = (RxODEi2_ifn)R_GetCCallable("RxODE","ripois") ;
  rit_ = (RxODEi2_fn)R_GetCCallable("RxODE","rit_") ;
  riunif = (RxODEi2_fn2)R_GetCCallable("RxODE","riunif") ;
  riweibull = (RxODEi2_fn2)R_GetCCallable("RxODE","riweibull");
    
  phi = (RxODE_fn)R_GetCCallable("RxODE","phi");
  gammap = (RxODE_fn2) R_GetCCallable("RxODE","gammap");
  gammaq = (RxODE_fn2) R_GetCCallable("RxODE","gammaq");
  gammapInv = (RxODE_fn2) R_GetCCallable("RxODE","gammapInv");
  gammapInva = (RxODE_fn2) R_GetCCallable("RxODE","gammapInva");
  gammaqInv = (RxODE_fn2) R_GetCCallable("RxODE","gammaqInv");
  gammaqInva = (RxODE_fn2) R_GetCCallable("RxODE","gammaqInva");
  uppergamma = (RxODE_fn2) R_GetCCallable("RxODE","uppergamma");
  lowergamma = (RxODE_fn2) R_GetCCallable("RxODE","lowergamma");
  gammapDer  = (RxODE_fn2) R_GetCCallable("RxODE","gammapDer");
  logit = (RxODE_fn3) R_GetCCallable("RxODE", "logit");
  expit = (RxODE_fn3) R_GetCCallable("RxODE", "expit");
  simeta =(_simfun) R_GetCCallable("RxODE", "simeta");
  simeps =(_simfun) R_GetCCallable("RxODE", "simeps");
  _compareFactorVal=(RxODE_compareFactorVal_fn) R_GetCCallable("RxODE", "compareFactorVal");
  _update_par_ptr = (_update_par_ptr_p) R_GetCCallable("RxODE","_update_par_ptr");
  _getParCov = (_getParCov_p) R_GetCCallable("RxODE","_getParCov");
  _solveData = _getRxSolve_();
}
void _assignFuns() {
  if (_assign_ptr == NULL){
    _assignFuns0();
  }
}
extern void  rx_beb7a0bb63191af067cbce52769f0ff7__ode_solver_solvedata (rx_solve *solve){
  _solveData = solve;
}
extern rx_solve *rx_beb7a0bb63191af067cbce52769f0ff7__ode_solver_get_solvedata(){
  return _solveData;
}
SEXP rx_beb7a0bb63191af067cbce52769f0ff7__model_vars();


// prj-specific differential eqns
void rx_beb7a0bb63191af067cbce52769f0ff7__dydt(int *_neq, double __t, double *__zzStateVar__, double *__DDtStateVar__)
{
  int _itwhile = 0;
  (void)_itwhile;
  int _cSub = _neq[1];
  double t = __t + _solveData->subjects[_neq[1]].curShift;
  (void)t;
    double a;

  (void)t;
  (void)a;

  a = _PL[0];

  _update_par_ptr(__t, _cSub, _solveData, _idx);


  a=rxgamma1(2);
  (&_solveData->subjects[_cSub])->dadt_counter[0]++;
}

// Jacobian derived vars
void rx_beb7a0bb63191af067cbce52769f0ff7__calc_jac(int *_neq, double __t, double *__zzStateVar__, double *__PDStateVar__, unsigned int __NROWPD__) {
  int _itwhile = 0;
  (void)_itwhile;
    int _cSub=_neq[1];
  double t = __t + _solveData->subjects[_neq[1]].curShift;
  (void)t;
    (&_solveData->subjects[_cSub])->jac_counter[0]++;
}
// Functional based initial conditions.
void rx_beb7a0bb63191af067cbce52769f0ff7__inis(int _cSub, double *__zzStateVar__){
  int _itwhile = 0;
  (void)_itwhile;
  
}
// prj-specific derived vars
void rx_beb7a0bb63191af067cbce52769f0ff7__calc_lhs(int _cSub, double __t, double *__zzStateVar__, double *_lhs) {
    int _itwhile = 0;
  (void)_itwhile;
  double t = __t + _solveData->subjects[_cSub].curShift;
  (void)t;
    double a;

  (void)t;
  (void)a;

  a = _PL[0];

  _update_par_ptr(__t, _cSub, _solveData, _idx);


  a=rxgamma1(2);

  _lhs[0]=a;
}
// Functional based bioavailability
double rx_beb7a0bb63191af067cbce52769f0ff7__F(int _cSub,  int _cmt, double _amt, double __t, double *__zzStateVar__){
 return _amt;
}
// Functional based absorption lag
double rx_beb7a0bb63191af067cbce52769f0ff7__Lag(int _cSub,  int _cmt, double __t, double *__zzStateVar__){
 return __t;
}
// Modeled zero-order rate
double rx_beb7a0bb63191af067cbce52769f0ff7__Rate(int _cSub,  int _cmt, double _amt, double __t, double *__zzStateVar__){
 return 0.0;
}
// Modeled zero-order duration
double rx_beb7a0bb63191af067cbce52769f0ff7__Dur(int _cSub,  int _cmt, double _amt, double __t){
 return 0.0;
}
// Model Times
void rx_beb7a0bb63191af067cbce52769f0ff7__mtime(int _cSub, double *_mtime){
}
// Matrix Exponential (0)
void rx_beb7a0bb63191af067cbce52769f0ff7__ME(int _cSub, double _t, double __t, double *_mat, const double *__zzStateVar__){
  int _itwhile = 0;
  (void)_itwhile;
  double t = __t + _solveData->subjects[_cSub].curShift;
  (void)t;
  }
// Inductive linearization Matf
void rx_beb7a0bb63191af067cbce52769f0ff7__IndF(int _cSub, double _t, double __t, double *_matf){
 int _itwhile = 0;
  (void)_itwhile;
  double t = __t + _solveData->subjects[_cSub].curShift;
  (void)t;
  }
extern SEXP rx_beb7a0bb63191af067cbce52769f0ff7__model_vars(){
  int pro=0;
  SEXP _mv = PROTECT(_rxGetModelLib("rx_beb7a0bb63191af067cbce52769f0ff7__model_vars"));pro++;
  if (!_rxIsCurrentC(_mv)){
    SEXP hash    = PROTECT(allocVector(STRSXP, 1));pro++;
#define __doBuf__  sprintf(buf, "un]\"BAAA@QBtHACAAAAAAA@QtAAAv7#aT)xhxNLAKm.W<WbmcAA.)wD8Ae!NQWcc^$B;L93XFFGQYD>F)z>|RC~`FYXT!ffdgFHCB)rmY,,HcNB!u6r]J$!mH7F\"OAR_7`X.$Vjkx72FF_2LOhK.n8Or+y8~~%%QuJoy0#5EMiHC+t9b~W}Bc/r~S#n:BvM:}&^BH$Ug_tLUlLOjz#Mp{!*V<+Tk;<!{a_gylz<32:!Exka@+.8\"<f3V*aZ@i|_{h_nsC<v>]MK{)j2v%%L>48%%+)UES)9WrJYHtG^(>=1}7jfFRVz|TCoAU\"Q*(~|#tw>x1@E9X7/IAvW;ZS3]3g.]6k!IjiN#Gn3i*P+pWAoV)BT!:!CT*pijy[l}pf7HcLXShyON&V(>o^:E!p`g@I2+fpQ9ddv1*kG3(k08Zsp~]aV62%%q;r[WnKLL&_#y#=|ru5#=d~bMJ4BsyHjU0\"3*&3RDi%%vsF\?>JHAAK{DAUQ<;L`_{jw<[Q==pS7,j8fFpZgi)2aU`g{HhkQlOR,<5Uyf5pQ:zJ{0DFuuJt;s=vABA)QLduaK+_41q\?@KuX:e{|=Rq[!}WIMN_oD(5Yn;`Pl)`u>Ehrb0&$!@`O^PiB^t_3Hsetm{Bq(#IVA*piZqi_3Ineb~(6mSf8\?;jlw.G<^Zel\?gLR<zmyve`M@!$=YGmM0XAwfOs1)0aijaHt1d^j8q.AXl9L*AgMlRT9(T13e/GmTK4It[\?\?RI4Wv5HIYIV08T]*Q6[T*~\"enNqjupe&^HW9h9^^ENa\?zTq3.+oOY4O:z2rc3e`}`=2mWr_6sL\"U!Vy!\?~8s=%%:IA92p3|EIF>]2h+s6`J8GXJ5|,;xMg]f7)aJ<yXtEQyvR{BY<n\":C/X25t\?)FFBE8.LRcJCT1(R+:SJmGB[`J]~Qo\"+pFA");
    char buf[924];
    __doBuf__
#undef __doBuf__
    SET_STRING_ELT(hash, 0, mkChar(buf));
    SEXP lst      = PROTECT(_rxQr(hash));pro++;
    _assign_ptr(lst);
    UNPROTECT(pro);
    return lst;
  } else {
    UNPROTECT(pro);
    return _mv;
  }
}
extern void rx_beb7a0bb63191af067cbce52769f0ff7__dydt_lsoda(int *neq, double *t, double *A, double *DADT)
{
  rx_beb7a0bb63191af067cbce52769f0ff7__dydt(neq, *t, A, DADT);
}
extern int rx_beb7a0bb63191af067cbce52769f0ff7__dydt_liblsoda(double __t, double *y, double *ydot, void *data)
{
  int *neq = (int*)(data);
  rx_beb7a0bb63191af067cbce52769f0ff7__dydt(neq, __t, y, ydot);
  return(0);
}
extern void rx_beb7a0bb63191af067cbce52769f0ff7__calc_jac_lsoda(int *neq, double *t, double *A,int *ml, int *mu, double *JAC, int *nrowpd){
  // Update all covariate parameters
  rx_beb7a0bb63191af067cbce52769f0ff7__calc_jac(neq, *t, A, JAC, *nrowpd);
}

//Create function to call from R's main thread that assigns the required functions. Sometimes they don't get assigned.
extern void rx_beb7a0bb63191af067cbce52769f0ff7__assignFuns(){
  _assignFuns();
}

//Initialize the dll to match RxODE's calls
void R_init0_rx_beb7a0bb63191af067cbce52769f0ff7_(){
  // Get C callables on load; Otherwise it isn't thread safe
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__assignFuns", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__assignFuns);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__inis",(DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__inis);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__dydt",(DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__dydt);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__calc_lhs",(DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__calc_lhs);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__calc_jac",(DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__calc_jac);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__dydt_lsoda", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__dydt_lsoda);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__calc_jac_lsoda", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__calc_jac_lsoda);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__ode_solver_solvedata", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__ode_solver_solvedata);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__ode_solver_get_solvedata", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__ode_solver_get_solvedata);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__F", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__F);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__Lag", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__Lag);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__Rate", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__Rate);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__Dur", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__Dur);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__mtime", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__mtime);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__ME", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__ME);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__IndF", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__IndF);
  R_RegisterCCallable("rx_beb7a0bb63191af067cbce52769f0ff7_","rx_beb7a0bb63191af067cbce52769f0ff7__dydt_liblsoda", (DL_FUNC) rx_beb7a0bb63191af067cbce52769f0ff7__dydt_liblsoda);
}
//Initialize the dll to match RxODE's calls
void R_init_rx_beb7a0bb63191af067cbce52769f0ff7_(DllInfo *info){
  // Get C callables on load; Otherwise it isn't thread safe
  R_init0_rx_beb7a0bb63191af067cbce52769f0ff7_();
  static const R_CallMethodDef callMethods[]  = {
    {"rx_beb7a0bb63191af067cbce52769f0ff7__model_vars", (DL_FUNC) &rx_beb7a0bb63191af067cbce52769f0ff7__model_vars, 0},
    {NULL, NULL, 0}
  };

  R_registerRoutines(info, NULL, callMethods, NULL, NULL);
  R_useDynamicSymbols(info,FALSE);
  _assignFuns0();

}

void R_unload_rx_beb7a0bb63191af067cbce52769f0ff7_ (DllInfo *info){
  // Free resources required for single subject solve.
  SEXP _mv = PROTECT(_rxGetModelLib("rx_beb7a0bb63191af067cbce52769f0ff7__model_vars"));
  if (!isNull(_mv)){
    _rxRmModelLib("rx_beb7a0bb63191af067cbce52769f0ff7__model_vars");
  }
  UNPROTECT(1);
}
Error: error building model
Execution halted