Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.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.002448/0.002448, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.002874/0.002874, allocations: 169.9 kB / 22.45 MB, free: 2.105 MB / 18.57 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.583/1.583, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/Examples/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: Paracetamol_Experiment Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.0/package.mo): time 3.476/3.476, allocations: 274 MB / 0.5207 GB, free: 15.05 MB / 458.7 MB " [Timeout remaining time 176] Using package Pharmacolibrary with version 25.09 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 25.9.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.Examples.PK_1C_LithiumCarbonate,tolerance=1e-09,outputFormat="empty",numberOfIntervals=864000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate") translateModel(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate,tolerance=1e-09,outputFormat="empty",numberOfIntervals=864000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 0.7563 GB, free: 10.06 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.902e-05/3.04e-05, allocations: 2.281 kB / 0.7563 GB, free: 10.06 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.003441/0.003471, allocations: 2.017 MB / 0.7582 GB, free: 8.051 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.001054/0.004525, allocations: 0.5422 MB / 0.7588 GB, free: 7.516 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.77e-05/0.004613, allocations: 8 kB / 0.7588 GB, free: 7.508 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.004728, allocations: 19.78 kB / 0.7588 GB, free: 7.488 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.004889, allocations: 55.06 kB / 0.7588 GB, free: 7.453 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.00507, allocations: 43.94 kB / 0.7589 GB, free: 7.41 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0003163/0.005387, allocations: 206.2 kB / 0.7591 GB, free: 7.23 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.005519, allocations: 25.97 kB / 0.7591 GB, free: 7.199 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.005696, allocations: 107.8 kB / 0.7592 GB, free: 7.094 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.00583, allocations: 59.81 kB / 0.7593 GB, free: 7.035 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 4.029e-05/0.00587, allocations: 12 kB / 0.7593 GB, free: 7.023 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 3.694e-05/0.005907, allocations: 20 kB / 0.7593 GB, free: 7.004 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 5.244e-05/0.00596, allocations: 35.89 kB / 0.7593 GB, free: 6.969 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 9.662e-05/0.006056, allocations: 55.84 kB / 0.7594 GB, free: 6.914 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.006336, allocations: 171.5 kB / 0.7595 GB, free: 6.746 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.006339, allocations: 0 / 0.7595 GB, free: 6.746 MB / 0.5887 GB Notification: Performance of FrontEnd: time 1.513e-06/0.006341, allocations: 0 / 0.7595 GB, free: 6.746 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.006346, allocations: 0 / 0.7595 GB, free: 6.746 MB / 0.5887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008903/0.007236, allocations: 444.9 kB / 0.76 GB, free: 6.27 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.007282, allocations: 8.031 kB / 0.76 GB, free: 6.262 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.934e-05/0.007341, allocations: 20.84 kB / 0.76 GB, free: 6.242 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.007574, allocations: 162.4 kB / 0.7602 GB, free: 6.059 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.007597, allocations: 12.38 kB / 0.7602 GB, free: 6.047 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.007637, allocations: 16.36 kB / 0.7602 GB, free: 6.031 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.007991, allocations: 154.1 kB / 0.7603 GB, free: 5.871 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.008012, allocations: 7.891 kB / 0.7603 GB, free: 5.863 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.008032, allocations: 8 kB / 0.7603 GB, free: 5.855 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.008037, allocations: 0 / 0.7603 GB, free: 5.855 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003812/0.008418, allocations: 149.6 kB / 0.7605 GB, free: 5.703 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007241/0.009142, allocations: 356.1 kB / 0.7608 GB, free: 5.324 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.009563, allocations: 178.8 kB / 0.761 GB, free: 5.137 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.009758, allocations: 86.69 kB / 0.7611 GB, free: 5.043 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.009774, allocations: 4 kB / 0.7611 GB, free: 5.039 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004037/0.01018, allocations: 231.1 kB / 0.7613 GB, free: 4.785 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.01018, allocations: 0 / 0.7613 GB, free: 4.785 MB / 0.5887 GB Notification: Performance of matching and sorting (n=21): time 0.001582/0.01176, allocations: 0.6866 MB / 0.762 GB, free: 4.039 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.01187, allocations: 136.5 kB / 0.7621 GB, free: 3.875 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001738/0.01204, allocations: 164.5 kB / 0.7623 GB, free: 3.707 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.01208, allocations: 33.7 kB / 0.7623 GB, free: 3.668 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 9.933e-05/0.01218, allocations: 112.5 kB / 0.7624 GB, free: 3.555 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 7.021e-05/0.01225, allocations: 71.42 kB / 0.7625 GB, free: 3.484 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.952e-05/0.01234, allocations: 53.64 kB / 0.7625 GB, free: 3.426 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0001714/0.01251, allocations: 322.8 kB / 0.7628 GB, free: 3.102 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.01277, allocations: 148.6 kB / 0.763 GB, free: 2.941 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.01307, allocations: 211.4 kB / 0.7632 GB, free: 2.695 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009979/0.01407, allocations: 0.513 MB / 0.7637 GB, free: 2.121 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.01407, allocations: 4 kB / 0.7637 GB, free: 2.117 MB / 0.5887 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006731/0.01474, allocations: 368.2 kB / 0.764 GB, free: 1.727 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 6.606e-05/0.01481, allocations: 63.39 kB / 0.7641 GB, free: 1.652 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.01481, allocations: 4 kB / 0.7641 GB, free: 1.648 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.01483, allocations: 0 / 0.7641 GB, free: 1.648 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.01507, allocations: 56.09 kB / 0.7641 GB, free: 1.594 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.01508, allocations: 7.938 kB / 0.7642 GB, free: 1.586 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.01524, allocations: 15.98 kB / 0.7642 GB, free: 1.57 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.01526, allocations: 12 kB / 0.7642 GB, free: 1.559 MB / 0.5887 GB Warning: Assuming fixed start value for the following 6 variables: central.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real central.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real central.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real central.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,$PRE.central.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,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 (30): * Single equations (assignments): 28 * 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.0002595/0.01552, allocations: 200.4 kB / 0.7644 GB, free: 1.352 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.01555, allocations: 15.91 kB / 0.7644 GB, free: 1.336 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.476e-05/0.0156, allocations: 17.28 kB / 0.7644 GB, free: 1.324 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.0156, allocations: 0 / 0.7644 GB, free: 1.324 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.01561, allocations: 7.938 kB / 0.7644 GB, free: 1.316 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.01561, allocations: 0 / 0.7644 GB, free: 1.316 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000861/0.01647, allocations: 0.5173 MB / 0.7649 GB, free: 0.7461 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.01647, allocations: 4 kB / 0.7649 GB, free: 0.7422 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.01667, allocations: 35.97 kB / 0.765 GB, free: 0.707 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01668, allocations: 0 / 0.765 GB, free: 0.707 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.0167, allocations: 8 kB / 0.765 GB, free: 0.6992 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.0167, allocations: 0 / 0.765 GB, free: 0.6992 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.0167, allocations: 0 / 0.765 GB, free: 0.6992 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008485/0.01755, allocations: 0.489 MB / 0.7654 GB, free: 180 kB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 2.822e-05/0.01758, allocations: 15.97 kB / 0.7655 GB, free: 164 kB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.01762, allocations: 15.98 kB / 0.7655 GB, free: 148 kB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.01777, allocations: 11.98 kB / 0.7655 GB, free: 136 kB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.01784, allocations: 23.91 kB / 0.7655 GB, free: 112 kB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.01786, allocations: 8 kB / 0.7655 GB, free: 104 kB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.000136/0.018, allocations: 121.5 kB / 0.7656 GB, free: 15.98 MB / 0.6043 GB Notification: Performance of sort global known variables: time 7e-08/0.018, allocations: 0 / 0.7656 GB, free: 15.98 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.000289/0.01829, allocations: 44 kB / 0.7657 GB, free: 15.94 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.variableDose.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.0001485/0.01844, allocations: 107.2 kB / 0.7658 GB, free: 15.82 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0006554/0.01909, allocations: 386.9 kB / 0.7661 GB, free: 15.41 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.01909, allocations: 0 / 0.7661 GB, free: 15.41 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0002774/0.01937, allocations: 171.3 kB / 0.7663 GB, free: 15.22 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.01979, allocations: 48.47 kB / 0.7663 GB, free: 15.18 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.02091, allocations: 0.5448 MB / 0.7669 GB, free: 14.61 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.02103, allocations: 108.2 kB / 0.767 GB, free: 14.49 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 7.603e-05/0.0211, allocations: 25.42 kB / 0.767 GB, free: 14.46 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.891e-05/0.02116, allocations: 24.48 kB / 0.767 GB, free: 14.44 MB / 0.6043 GB Notification: Performance of SimCode: time 5.31e-07/0.02116, allocations: 0 / 0.767 GB, free: 14.44 MB / 0.6043 GB Notification: Performance of Templates: time 0.007056/0.02822, allocations: 2.713 MB / 0.7697 GB, free: 11.87 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 10.005712140351534]