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.000978/0.000978, allocations: 89.08 kB / 19.42 MB, free: 492 kB / 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.001027/0.001027, allocations: 169 kB / 22.72 MB, free: 1.824 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 0.9676/0.9676, allocations: 177.1 MB / 203.1 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] 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 1.663/1.663, allocations: 273.5 MB / 0.5205 GB, free: 14.83 MB / 458.7 MB " [Timeout remaining time 178] 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.593e-06/1.593e-06, allocations: 1.312 kB / 0.6462 GB, free: 38.66 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.123e-05, allocations: 2.312 kB / 0.6462 GB, free: 38.66 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.002183/0.002205, allocations: 2.118 MB / 0.6483 GB, free: 37.29 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0007057/0.00291, allocations: 0.5588 MB / 0.6488 GB, free: 36.92 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.865e-05/0.002979, allocations: 1.641 kB / 0.6488 GB, free: 36.92 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 9.768e-05/0.003077, allocations: 21.77 kB / 0.6489 GB, free: 36.91 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.003202, allocations: 50.64 kB / 0.6489 GB, free: 36.89 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.003348, allocations: 43.78 kB / 0.649 GB, free: 36.86 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.003552, allocations: 211 kB / 0.6492 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.003662, allocations: 28.19 kB / 0.6492 GB, free: 36.78 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.00378, allocations: 107.2 kB / 0.6493 GB, free: 36.73 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.003882, allocations: 60.8 kB / 0.6493 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.67e-05/0.003908, allocations: 13.69 kB / 0.6494 GB, free: 36.72 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.189e-05/0.00393, allocations: 19.09 kB / 0.6494 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.856e-05/0.003959, allocations: 33.09 kB / 0.6494 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 5.905e-05/0.004018, allocations: 61.75 kB / 0.6495 GB, free: 36.66 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.004168, allocations: 123 kB / 0.6496 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.004171, allocations: 0 / 0.6496 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of FrontEnd: time 9.42e-07/0.004172, allocations: 4.031 kB / 0.6496 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.004177, allocations: 0 / 0.6496 GB, free: 36.61 MB / 0.5262 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.0005203/0.004697, allocations: 0.53 MB / 0.6501 GB, free: 36.11 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.004734, allocations: 9.625 kB / 0.6501 GB, free: 36.11 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.004789, allocations: 26.72 kB / 0.6501 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.004932, allocations: 157.8 kB / 0.6503 GB, free: 35.94 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.004955, allocations: 13.59 kB / 0.6503 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.155e-05/0.004986, allocations: 8.438 kB / 0.6503 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.00518, allocations: 142.6 kB / 0.6504 GB, free: 35.84 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.005192, allocations: 10.67 kB / 0.6505 GB, free: 35.83 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.005206, allocations: 7.156 kB / 0.6505 GB, free: 35.83 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.005215, allocations: 3.938 kB / 0.6505 GB, free: 35.83 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.005319, allocations: 83.55 kB / 0.6505 GB, free: 35.79 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004291/0.005748, allocations: 397.3 kB / 0.6509 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.005894, allocations: 126.6 kB / 0.651 GB, free: 35.37 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.807e-05/0.005952, allocations: 66.36 kB / 0.6511 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.005963, allocations: 8.219 kB / 0.6511 GB, free: 35.32 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000169/0.006132, allocations: 195.8 kB / 0.6513 GB, free: 35.16 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.006134, allocations: 0 / 0.6513 GB, free: 35.16 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0007461/0.00688, allocations: 0.574 MB / 0.6519 GB, free: 34.74 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.006918, allocations: 142.9 kB / 0.652 GB, free: 34.58 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.007018, allocations: 214.2 kB / 0.6522 GB, free: 34.39 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.007032, allocations: 35.55 kB / 0.6522 GB, free: 34.36 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.506e-05/0.007077, allocations: 153.6 kB / 0.6524 GB, free: 34.21 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.007109, allocations: 67.91 kB / 0.6525 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.007163, allocations: 55.91 kB / 0.6525 GB, free: 34.12 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.119e-05/0.007214, allocations: 0.5034 MB / 0.653 GB, free: 33.62 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.157e-05/0.007286, allocations: 99.67 kB / 0.6531 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.087e-05/0.007377, allocations: 197.8 kB / 0.6533 GB, free: 33.33 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.007577, allocations: 326.5 kB / 0.6536 GB, free: 33.04 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.007578, allocations: 0 / 0.6536 GB, free: 33.04 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002503/0.007829, allocations: 311 kB / 0.6539 GB, free: 32.84 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.007857, allocations: 68.11 kB / 0.654 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.007862, allocations: 2.469 kB / 0.654 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.007879, allocations: 3.406 kB / 0.654 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.008026, allocations: 51.45 kB / 0.654 GB, free: 32.77 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.008032, allocations: 5.406 kB / 0.654 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.562e-05/0.008108, allocations: 17.06 kB / 0.654 GB, free: 32.76 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.008122, allocations: 17.25 kB / 0.654 GB, free: 32.75 MB / 0.5262 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.0001307/0.008252, allocations: 232.4 kB / 0.6543 GB, free: 32.54 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.008277, allocations: 22.69 kB / 0.6543 GB, free: 32.53 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.00831, allocations: 21.34 kB / 0.6543 GB, free: 32.51 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.008313, allocations: 1.812 kB / 0.6543 GB, free: 32.51 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.008316, allocations: 0 / 0.6543 GB, free: 32.51 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.008321, allocations: 10.25 kB / 0.6543 GB, free: 32.51 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003524/0.008673, allocations: 0.5168 MB / 0.6548 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.008675, allocations: 0 / 0.6548 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.008793, allocations: 30.77 kB / 0.6549 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.008797, allocations: 2.375 kB / 0.6549 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.008811, allocations: 9.484 kB / 0.6549 GB, free: 32.08 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.008815, allocations: 5.406 kB / 0.6549 GB, free: 32.08 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.008817, allocations: 0 / 0.6549 GB, free: 32.08 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.009112, allocations: 462.4 kB / 0.6553 GB, free: 31.75 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.894e-05/0.009131, allocations: 15.44 kB / 0.6553 GB, free: 31.74 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.677e-05/0.009158, allocations: 7.906 kB / 0.6553 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.945e-05/0.009238, allocations: 16.86 kB / 0.6553 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.009304, allocations: 19.91 kB / 0.6554 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.009321, allocations: 4.969 kB / 0.6554 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 6.279e-05/0.009384, allocations: 157.4 kB / 0.6555 GB, free: 31.6 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.009384, allocations: 0 / 0.6555 GB, free: 31.6 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002308/0.009615, allocations: 47.03 kB / 0.6556 GB, free: 31.6 MB / 0.5262 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 7.867e-05/0.009693, allocations: 104 kB / 0.6557 GB, free: 31.51 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0002502/0.009944, allocations: 328.2 kB / 0.656 GB, free: 31.25 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.009945, allocations: 0 / 0.656 GB, free: 31.25 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 9.508e-05/0.01004, allocations: 157 kB / 0.6561 GB, free: 31.12 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.01033, allocations: 49.7 kB / 0.6562 GB, free: 31.11 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.01171, allocations: 0.6035 MB / 0.6568 GB, free: 30.73 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.987e-05/0.01176, allocations: 78.36 kB / 0.6568 GB, free: 30.66 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 6.235e-05/0.01182, allocations: 26 kB / 0.6569 GB, free: 30.65 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.147e-05/0.01187, allocations: 22.91 kB / 0.6569 GB, free: 30.64 MB / 0.5262 GB Notification: Performance of SimCode: time 5.91e-07/0.01187, allocations: 0 / 0.6569 GB, free: 30.64 MB / 0.5262 GB Notification: Performance of Templates: time 0.004559/0.01643, allocations: 2.719 MB / 0.6595 GB, free: 30.41 MB / 0.5262 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: 5.636594231706113]