Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.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.00265/0.00265, allocations: 105.5 kB / 18.95 MB, free: 1.176 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.002499/0.002499, allocations: 218.4 kB / 22.25 MB, free: 3.578 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.809/1.809, allocations: 230.6 MB / 256 MB, free: 9.609 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.496/1.496, allocations: 316.7 MB / 0.6144 GB, free: 93.04 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.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference") [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.003797/0.003797, allocations: 73.86 kB / 0.775 GB, free: 14.77 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.182, allocations: 73.99 MB / 0.8472 GB, free: 4.918 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference): time 0.004465/0.1865, allocations: 2.307 MB / 0.8495 GB, free: 2.617 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.3784/0.5649, allocations: 6.531 MB / 0.8558 GB, free: 22.02 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002799/0.5652, allocations: 0.9375 kB / 0.8558 GB, free: 22.02 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.5654, allocations: 25.42 kB / 0.8559 GB, free: 22.02 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002911/0.5657, allocations: 85.34 kB / 0.8559 GB, free: 22.02 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.5659, allocations: 51.66 kB / 0.856 GB, free: 22.02 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.5662, allocations: 257.2 kB / 0.8562 GB, free: 21.99 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.5664, allocations: 32.28 kB / 0.8563 GB, free: 21.99 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.5665, allocations: 101.5 kB / 0.8564 GB, free: 21.98 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.5668, allocations: 96.95 kB / 0.8565 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.635e-05/0.5668, allocations: 19.09 kB / 0.8565 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.231e-05/0.5668, allocations: 15.78 kB / 0.8565 GB, free: 21.96 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.5669, allocations: 38.12 kB / 0.8565 GB, free: 21.95 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.567, allocations: 96.97 kB / 0.8566 GB, free: 21.92 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.5672, allocations: 199.7 kB / 0.8568 GB, free: 21.89 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5672, allocations: 0 / 0.8568 GB, free: 21.89 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5672, allocations: 0 / 0.8568 GB, free: 21.89 MB / 490.8 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.5673, allocations: 1 kB / 0.8568 GB, free: 21.89 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.000823/0.5681, allocations: 499.1 kB / 0.8573 GB, free: 21.49 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.5681, allocations: 10.41 kB / 0.8573 GB, free: 21.49 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.601e-05/0.5682, allocations: 22.23 kB / 0.8573 GB, free: 21.48 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.5684, allocations: 184.9 kB / 0.8575 GB, free: 21.32 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.5684, allocations: 10.3 kB / 0.8575 GB, free: 21.32 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.5685, allocations: 21.48 kB / 0.8575 GB, free: 21.32 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003368/0.5688, allocations: 188.4 kB / 0.8577 GB, free: 21.24 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.5688, allocations: 7.188 kB / 0.8577 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.5688, allocations: 7.703 kB / 0.8577 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.5689, allocations: 4.844 kB / 0.8577 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.5692, allocations: 143 kB / 0.8579 GB, free: 21.2 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007291/0.5699, allocations: 481.4 kB / 0.8583 GB, free: 20.91 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.5704, allocations: 176 kB / 0.8585 GB, free: 20.85 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.5706, allocations: 96.83 kB / 0.8586 GB, free: 20.81 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.5706, allocations: 2.344 kB / 0.8586 GB, free: 20.81 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003551/0.571, allocations: 231.1 kB / 0.8588 GB, free: 20.66 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.571, allocations: 0 / 0.8588 GB, free: 20.66 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001485/0.5724, allocations: 0.7018 MB / 0.8595 GB, free: 20.3 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.5725, allocations: 140.3 kB / 0.8596 GB, free: 20.15 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.5727, allocations: 215.8 kB / 0.8598 GB, free: 20.04 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.5728, allocations: 34.39 kB / 0.8599 GB, free: 20.01 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.713e-05/0.5729, allocations: 131.5 kB / 0.86 GB, free: 19.92 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.5729, allocations: 72.81 kB / 0.8601 GB, free: 19.88 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.784e-05/0.573, allocations: 53.05 kB / 0.8601 GB, free: 19.86 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.5731, allocations: 338.3 kB / 0.8604 GB, free: 19.54 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.5733, allocations: 149.6 kB / 0.8606 GB, free: 19.46 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.5736, allocations: 218.2 kB / 0.8608 GB, free: 19.3 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.574, allocations: 284.8 kB / 0.8611 GB, free: 19.13 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.574, allocations: 0.7188 kB / 0.8611 GB, free: 19.13 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006035/0.5746, allocations: 386.1 kB / 0.8614 GB, free: 18.95 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.604e-05/0.5747, allocations: 67.94 kB / 0.8615 GB, free: 18.89 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5747, allocations: 4.562 kB / 0.8615 GB, free: 18.89 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.631e-05/0.5747, allocations: 4.656 kB / 0.8615 GB, free: 18.89 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.5749, allocations: 50.31 kB / 0.8615 GB, free: 18.88 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.575, allocations: 10.23 kB / 0.8616 GB, free: 18.88 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.5751, allocations: 13.66 kB / 0.8616 GB, free: 18.88 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.5752, allocations: 16.41 kB / 0.8616 GB, free: 18.88 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.000202/0.5754, allocations: 173.6 kB / 0.8618 GB, free: 18.73 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.5754, allocations: 23.27 kB / 0.8618 GB, free: 18.71 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.479e-05/0.5755, allocations: 27.03 kB / 0.8618 GB, free: 18.7 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.5755, allocations: 3.469 kB / 0.8618 GB, free: 18.7 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.5755, allocations: 1.469 kB / 0.8618 GB, free: 18.7 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5755, allocations: 3.406 kB / 0.8618 GB, free: 18.7 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007407/0.5762, allocations: 0.5399 MB / 0.8623 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.5762, allocations: 0 / 0.8623 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.5764, allocations: 37.92 kB / 0.8624 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.5764, allocations: 1.656 kB / 0.8624 GB, free: 18.4 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.5764, allocations: 9.906 kB / 0.8624 GB, free: 18.39 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.5764, allocations: 8.125 kB / 0.8624 GB, free: 18.39 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5764, allocations: 0.5625 kB / 0.8624 GB, free: 18.39 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006925/0.5771, allocations: 0.494 MB / 0.8629 GB, free: 18.14 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-05/0.5772, allocations: 22.39 kB / 0.8629 GB, free: 18.13 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.5772, allocations: 3.688 kB / 0.8629 GB, free: 18.13 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.5774, allocations: 21.94 kB / 0.8629 GB, free: 18.13 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.381e-05/0.5774, allocations: 19.14 kB / 0.8629 GB, free: 18.13 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.5774, allocations: 9.641 kB / 0.8629 GB, free: 18.13 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001419/0.5776, allocations: 156.7 kB / 0.8631 GB, free: 18.05 MB / 490.8 MB Notification: Performance of sort global known variables: time 6e-08/0.5776, allocations: 1.5 kB / 0.8631 GB, free: 18.05 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002972/0.5779, allocations: 55.75 kB / 0.8631 GB, free: 18.05 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.0001228/0.578, allocations: 114.7 kB / 0.8633 GB, free: 17.96 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005505/0.5786, allocations: 382.1 kB / 0.8636 GB, free: 17.73 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5786, allocations: 0.9375 kB / 0.8636 GB, free: 17.73 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.5788, allocations: 170.2 kB / 0.8638 GB, free: 17.63 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.5792, allocations: 69.42 kB / 0.8639 GB, free: 17.62 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.5806, allocations: 0.6783 MB / 0.8645 GB, free: 17.31 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.5807, allocations: 127.2 kB / 0.8646 GB, free: 17.23 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001149/0.5808, allocations: 25.44 kB / 0.8647 GB, free: 17.23 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.5809, allocations: 23.64 kB / 0.8647 GB, free: 17.22 MB / 490.8 MB Notification: Performance of SimCode: time 5.81e-07/0.5809, allocations: 0 / 0.8647 GB, free: 17.22 MB / 490.8 MB Notification: Performance of Templates: time 0.009275/0.5902, allocations: 3.636 MB / 0.8682 GB, free: 16.9 MB / 490.8 MB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N02A_Opioids.N02AA01_Morphine.Morphine_Bragg1995_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.99293752014637]