Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.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.002552/0.002552, allocations: 109.5 kB / 18.95 MB, free: 1.172 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.002867/0.002867, allocations: 219.6 kB / 22.25 MB, free: 3.559 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.748/1.748, allocations: 230.6 MB / 256 MB, free: 9.586 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.486/1.486, allocations: 316.7 MB / 0.6144 GB, free: 92.83 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.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") translateModel(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone") [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.004312/0.004312, allocations: 81.73 kB / 0.775 GB, free: 14.64 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1795, allocations: 73.99 MB / 0.8472 GB, free: 4.785 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone): time 0.004657/0.1841, allocations: 2.307 MB / 0.8495 GB, free: 2.48 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.3447/0.5288, allocations: 6.52 MB / 0.8559 GB, free: 22.04 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.529, allocations: 2.812 kB / 0.8559 GB, free: 22.04 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.5291, allocations: 25.66 kB / 0.8559 GB, free: 22.04 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.5294, allocations: 86.06 kB / 0.856 GB, free: 22.04 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001993/0.5296, allocations: 55.27 kB / 0.856 GB, free: 22.04 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002448/0.5298, allocations: 252.9 kB / 0.8563 GB, free: 22.02 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.5299, allocations: 35.5 kB / 0.8563 GB, free: 22.02 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.5301, allocations: 102.9 kB / 0.8564 GB, free: 22 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.5302, allocations: 95.12 kB / 0.8565 GB, free: 21.98 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.5303, allocations: 20.44 kB / 0.8565 GB, free: 21.98 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.384e-05/0.5303, allocations: 18.31 kB / 0.8565 GB, free: 21.98 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 3.221e-05/0.5304, allocations: 31.58 kB / 0.8565 GB, free: 21.97 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 9.01e-05/0.5304, allocations: 95.42 kB / 0.8566 GB, free: 21.95 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.5307, allocations: 198.8 kB / 0.8568 GB, free: 21.91 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5307, allocations: 1.406 kB / 0.8568 GB, free: 21.91 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5307, allocations: 1.344 kB / 0.8568 GB, free: 21.91 MB / 490.8 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.5307, allocations: 0 / 0.8568 GB, free: 21.91 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.0007419/0.5314, allocations: 497.6 kB / 0.8573 GB, free: 21.52 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.5314, allocations: 10.91 kB / 0.8573 GB, free: 21.52 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.241e-05/0.5315, allocations: 27.48 kB / 0.8573 GB, free: 21.5 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.5317, allocations: 185.8 kB / 0.8575 GB, free: 21.35 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.5317, allocations: 11.98 kB / 0.8575 GB, free: 21.35 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.757e-05/0.5317, allocations: 19.3 kB / 0.8576 GB, free: 21.34 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003452/0.5321, allocations: 187.5 kB / 0.8577 GB, free: 21.26 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.5321, allocations: 4 kB / 0.8577 GB, free: 21.26 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.5321, allocations: 4.969 kB / 0.8577 GB, free: 21.26 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.5321, allocations: 1.062 kB / 0.8577 GB, free: 21.26 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.5325, allocations: 148.9 kB / 0.8579 GB, free: 21.23 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000688/0.5331, allocations: 486.5 kB / 0.8583 GB, free: 20.93 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000451/0.5336, allocations: 173 kB / 0.8585 GB, free: 20.88 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.5338, allocations: 98.97 kB / 0.8586 GB, free: 20.83 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.5338, allocations: 4.781 kB / 0.8586 GB, free: 20.83 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.5341, allocations: 226.1 kB / 0.8588 GB, free: 20.68 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.5341, allocations: 2.875 kB / 0.8588 GB, free: 20.68 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001312/0.5354, allocations: 0.7022 MB / 0.8595 GB, free: 20.33 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.5354, allocations: 133.8 kB / 0.8596 GB, free: 20.17 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.5356, allocations: 218.7 kB / 0.8598 GB, free: 20.07 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.5356, allocations: 35.45 kB / 0.8599 GB, free: 20.04 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.5357, allocations: 131.5 kB / 0.86 GB, free: 19.94 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.343e-05/0.5358, allocations: 70.27 kB / 0.8601 GB, free: 19.9 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/0.5358, allocations: 57.3 kB / 0.8601 GB, free: 19.88 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 4.917e-05/0.5359, allocations: 336.9 kB / 0.8605 GB, free: 19.56 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.5361, allocations: 143.6 kB / 0.8606 GB, free: 19.49 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.5363, allocations: 223.5 kB / 0.8608 GB, free: 19.32 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003631/0.5367, allocations: 284.9 kB / 0.8611 GB, free: 19.15 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5367, allocations: 0 / 0.8611 GB, free: 19.15 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005325/0.5372, allocations: 386.3 kB / 0.8614 GB, free: 18.98 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/0.5372, allocations: 63.53 kB / 0.8615 GB, free: 18.91 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.5372, allocations: 8.344 kB / 0.8615 GB, free: 18.91 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.5373, allocations: 3.969 kB / 0.8615 GB, free: 18.91 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.5375, allocations: 50.86 kB / 0.8616 GB, free: 18.91 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.5375, allocations: 4.547 kB / 0.8616 GB, free: 18.91 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.5377, allocations: 18.14 kB / 0.8616 GB, free: 18.91 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.5377, allocations: 12.08 kB / 0.8616 GB, free: 18.91 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.0001448/0.5378, allocations: 177.6 kB / 0.8618 GB, free: 18.75 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.5379, allocations: 26.03 kB / 0.8618 GB, free: 18.74 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.155e-05/0.5379, allocations: 31.89 kB / 0.8618 GB, free: 18.73 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.5379, allocations: 1.734 kB / 0.8618 GB, free: 18.73 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.5379, allocations: 4.562 kB / 0.8618 GB, free: 18.72 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.5379, allocations: 7.156 kB / 0.8618 GB, free: 18.72 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006559/0.5386, allocations: 0.5339 MB / 0.8624 GB, free: 18.42 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5386, allocations: 4.25 kB / 0.8624 GB, free: 18.42 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.5388, allocations: 34.03 kB / 0.8624 GB, free: 18.42 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.5388, allocations: 0.5625 kB / 0.8624 GB, free: 18.42 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.5388, allocations: 7.844 kB / 0.8624 GB, free: 18.42 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.5388, allocations: 8.5 kB / 0.8624 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.5388, allocations: 0.625 kB / 0.8624 GB, free: 18.41 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006326/0.5394, allocations: 499.3 kB / 0.8629 GB, free: 18.17 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.5395, allocations: 23.53 kB / 0.8629 GB, free: 18.16 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.5395, allocations: 8.344 kB / 0.8629 GB, free: 18.16 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.5397, allocations: 17.72 kB / 0.8629 GB, free: 18.16 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.5398, allocations: 19.45 kB / 0.8629 GB, free: 18.16 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.5398, allocations: 11.53 kB / 0.863 GB, free: 18.16 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001167/0.5399, allocations: 160.3 kB / 0.8631 GB, free: 18.07 MB / 490.8 MB Notification: Performance of sort global known variables: time 9e-08/0.5399, allocations: 0.5625 kB / 0.8631 GB, free: 18.07 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002998/0.5402, allocations: 56.25 kB / 0.8632 GB, free: 18.07 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 9.928e-05/0.5403, allocations: 110.8 kB / 0.8633 GB, free: 17.98 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0005148/0.5408, allocations: 385.9 kB / 0.8636 GB, free: 17.75 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5408, allocations: 0.6562 kB / 0.8636 GB, free: 17.75 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002192/0.541, allocations: 170.6 kB / 0.8638 GB, free: 17.66 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.5415, allocations: 69.88 kB / 0.8639 GB, free: 17.65 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.5427, allocations: 0.6794 MB / 0.8645 GB, free: 17.32 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.5428, allocations: 123.2 kB / 0.8647 GB, free: 17.25 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.5429, allocations: 24.95 kB / 0.8647 GB, free: 17.25 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.413e-05/0.5429, allocations: 24.19 kB / 0.8647 GB, free: 17.24 MB / 490.8 MB Notification: Performance of SimCode: time 3.3e-07/0.5429, allocations: 1.312 kB / 0.8647 GB, free: 17.24 MB / 490.8 MB Notification: Performance of Templates: time 0.008144/0.5511, allocations: 3.639 MB / 0.8683 GB, free: 16.91 MB / 490.8 MB " [Timeout remaining time 659] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.N_NervousSystem.N07B_DrugsUsedInAddictiveDisorders.N07BC05_Levomethadone.Levomethadone.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.646667090943083]