Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 101.5 kB / 18.95 MB, free: 1.18 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002138/0.002138, allocations: 214.5 kB / 22.25 MB, free: 3.57 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.684/1.684, allocations: 230.6 MB / 256 MB, free: 9.641 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 1.467/1.467, allocations: 316.7 MB / 0.6144 GB, free: 93.68 MB / 410.7 MB " [Timeout remaining time 178] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol,tolerance=1e-09,outputFormat="empty",numberOfIntervals=604800,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol,tolerance=1e-09,outputFormat="empty",numberOfIntervals=604800,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol") [Timeout 660] "Notification: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003915/0.003915, allocations: 76.25 kB / 0.775 GB, free: 15.13 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1741, allocations: 73.99 MB / 0.8473 GB, free: 5.281 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol): time 0.004239/0.1784, allocations: 2.318 MB / 0.8495 GB, free: 2.965 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.3728/0.5512, allocations: 6.518 MB / 0.8559 GB, free: 21.66 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003586/0.5515, allocations: 5.312 kB / 0.8559 GB, free: 21.66 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0002675/0.5518, allocations: 26.08 kB / 0.8559 GB, free: 21.66 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0005305/0.5523, allocations: 81.52 kB / 0.856 GB, free: 21.66 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.5527, allocations: 53.41 kB / 0.8561 GB, free: 21.66 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.000556/0.5533, allocations: 258.8 kB / 0.8563 GB, free: 21.63 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.5535, allocations: 37.78 kB / 0.8563 GB, free: 21.62 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.5538, allocations: 95.73 kB / 0.8564 GB, free: 21.61 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.5542, allocations: 98.92 kB / 0.8565 GB, free: 21.59 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-05/0.5543, allocations: 17.53 kB / 0.8565 GB, free: 21.59 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 9.409e-05/0.5544, allocations: 18.56 kB / 0.8566 GB, free: 21.59 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 6.546e-05/0.5544, allocations: 38 kB / 0.8566 GB, free: 21.58 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.5546, allocations: 94.28 kB / 0.8567 GB, free: 21.55 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.555, allocations: 205.9 kB / 0.8569 GB, free: 21.52 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.555, allocations: 0 / 0.8569 GB, free: 21.52 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.625e-06/0.555, allocations: 0 / 0.8569 GB, free: 21.52 MB / 490.8 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.555, allocations: 3.281 kB / 0.8569 GB, free: 21.52 MB / 490.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001197/0.5562, allocations: 492.2 kB / 0.8573 GB, free: 21.12 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.5563, allocations: 8.438 kB / 0.8574 GB, free: 21.12 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.5564, allocations: 26.3 kB / 0.8574 GB, free: 21.11 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.5567, allocations: 190 kB / 0.8576 GB, free: 20.95 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.5568, allocations: 12.27 kB / 0.8576 GB, free: 20.95 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.925e-05/0.5568, allocations: 20.89 kB / 0.8576 GB, free: 20.95 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.5573, allocations: 188.4 kB / 0.8578 GB, free: 20.87 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.5573, allocations: 3.938 kB / 0.8578 GB, free: 20.86 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.5574, allocations: 5.906 kB / 0.8578 GB, free: 20.86 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.5574, allocations: 3.406 kB / 0.8578 GB, free: 20.86 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.5579, allocations: 148.3 kB / 0.8579 GB, free: 20.83 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.5589, allocations: 479.6 kB / 0.8584 GB, free: 20.54 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006528/0.5596, allocations: 182.3 kB / 0.8586 GB, free: 20.48 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002461/0.5598, allocations: 91.95 kB / 0.8586 GB, free: 20.44 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.5598, allocations: 2.219 kB / 0.8586 GB, free: 20.44 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004171/0.5602, allocations: 228.8 kB / 0.8589 GB, free: 20.29 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 2.665e-06/0.5602, allocations: 0.6094 kB / 0.8589 GB, free: 20.29 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001892/0.5621, allocations: 0.6968 MB / 0.8595 GB, free: 19.94 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.5622, allocations: 136 kB / 0.8597 GB, free: 19.78 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002799/0.5625, allocations: 221.5 kB / 0.8599 GB, free: 19.67 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.5625, allocations: 30.27 kB / 0.8599 GB, free: 19.64 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.936e-05/0.5626, allocations: 134.4 kB / 0.86 GB, free: 19.55 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.5627, allocations: 72.16 kB / 0.8601 GB, free: 19.5 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.5628, allocations: 56.67 kB / 0.8602 GB, free: 19.48 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.5628, allocations: 337.2 kB / 0.8605 GB, free: 19.17 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.5632, allocations: 148 kB / 0.8606 GB, free: 19.09 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.5635, allocations: 220.8 kB / 0.8608 GB, free: 18.93 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005163/0.564, allocations: 289.3 kB / 0.8611 GB, free: 18.76 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.564, allocations: 0 / 0.8611 GB, free: 18.76 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007686/0.5648, allocations: 380.6 kB / 0.8615 GB, free: 18.58 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.848e-05/0.5648, allocations: 68.52 kB / 0.8615 GB, free: 18.52 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.5648, allocations: 6.531 kB / 0.8616 GB, free: 18.52 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.5648, allocations: 2.984 kB / 0.8616 GB, free: 18.52 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.5651, allocations: 52.05 kB / 0.8616 GB, free: 18.51 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.5651, allocations: 10.16 kB / 0.8616 GB, free: 18.51 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.5654, allocations: 16.77 kB / 0.8616 GB, free: 18.51 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.5654, allocations: 12.78 kB / 0.8616 GB, free: 18.51 MB / 490.8 MB Warning: Assuming fixed start value for the following 1 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.central.rising,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002111/0.5656, allocations: 179.6 kB / 0.8618 GB, free: 18.36 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.5657, allocations: 23.52 kB / 0.8618 GB, free: 18.34 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.619e-05/0.5658, allocations: 25.5 kB / 0.8619 GB, free: 18.33 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.5658, allocations: 3.469 kB / 0.8619 GB, free: 18.33 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.5658, allocations: 0.6562 kB / 0.8619 GB, free: 18.33 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.5658, allocations: 3.703 kB / 0.8619 GB, free: 18.33 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009388/0.5667, allocations: 0.536 MB / 0.8624 GB, free: 18.03 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.5667, allocations: 4.531 kB / 0.8624 GB, free: 18.03 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002417/0.567, allocations: 40.77 kB / 0.8624 GB, free: 18.02 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.567, allocations: 2.125 kB / 0.8624 GB, free: 18.02 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.567, allocations: 8.234 kB / 0.8624 GB, free: 18.02 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.567, allocations: 3.938 kB / 0.8624 GB, free: 18.02 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.567, allocations: 2.312 kB / 0.8625 GB, free: 18.02 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009959/0.568, allocations: 0.4903 MB / 0.8629 GB, free: 17.77 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.905e-05/0.5681, allocations: 26 kB / 0.863 GB, free: 17.76 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.298e-05/0.5681, allocations: 8.312 kB / 0.863 GB, free: 17.76 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002587/0.5684, allocations: 12.27 kB / 0.863 GB, free: 17.76 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.5685, allocations: 22.94 kB / 0.863 GB, free: 17.76 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.5685, allocations: 7.938 kB / 0.863 GB, free: 17.76 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001778/0.5687, allocations: 156.8 kB / 0.8632 GB, free: 17.68 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5687, allocations: 4.031 kB / 0.8632 GB, free: 17.68 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0005346/0.5692, allocations: 53.94 kB / 0.8632 GB, free: 17.68 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass) * Number of discrete variables: 8 ($whenCondition1,$whenCondition2,$whenCondition3,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 6 (periodicDose.pulse.count,central.Cmin,$whenCondition3,central.Cmax,$whenCondition2,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001371/0.5694, allocations: 112.3 kB / 0.8633 GB, free: 17.59 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0007294/0.5701, allocations: 381.4 kB / 0.8637 GB, free: 17.36 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.5701, allocations: 4.156 kB / 0.8637 GB, free: 17.36 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003237/0.5704, allocations: 173.3 kB / 0.8638 GB, free: 17.26 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006648/0.5711, allocations: 70.67 kB / 0.8639 GB, free: 17.25 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.5728, allocations: 0.6798 MB / 0.8646 GB, free: 16.94 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/0.573, allocations: 127.8 kB / 0.8647 GB, free: 16.86 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0002036/0.5732, allocations: 24.88 kB / 0.8647 GB, free: 16.86 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.963e-05/0.5733, allocations: 21.36 kB / 0.8647 GB, free: 16.85 MB / 490.8 MB Notification: Performance of SimCode: time 8.82e-07/0.5733, allocations: 0 / 0.8647 GB, free: 16.85 MB / 490.8 MB Notification: Performance of Templates: time 0.01346/0.5867, allocations: 3.636 MB / 0.8683 GB, free: 16.52 MB / 490.8 MB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N05A_Antipsychotics.N05AD01_Haloperidol.Haloperidol.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.301461157854646]