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.001312/0.001312, allocations: 73.97 kB / 20.65 MB, free: 3.844 MB / 18.57 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.001472/0.001472, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.9551/0.9551, allocations: 177.2 MB / 204.5 MB, free: 5.48 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.556/1.556, allocations: 273.5 MB / 0.522 GB, free: 14.7 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.603e-06/1.603e-06, allocations: 0 / 0.6482 GB, free: 38.56 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.97e-05/2.13e-05, allocations: 6.141 kB / 0.6482 GB, free: 38.55 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.002274/0.002296, allocations: 2.114 MB / 0.6502 GB, free: 37.18 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0007079/0.003004, allocations: 0.5546 MB / 0.6508 GB, free: 36.81 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.335e-05/0.003077, allocations: 2.219 kB / 0.6508 GB, free: 36.81 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.003178, allocations: 22.97 kB / 0.6508 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.003306, allocations: 50.83 kB / 0.6509 GB, free: 36.78 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001489/0.003455, allocations: 45.39 kB / 0.6509 GB, free: 36.75 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.003654, allocations: 206.3 kB / 0.6511 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.00376, allocations: 31.73 kB / 0.6511 GB, free: 36.67 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.003883, allocations: 105.7 kB / 0.6512 GB, free: 36.63 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.003983, allocations: 65.36 kB / 0.6513 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.78e-05/0.004011, allocations: 14.28 kB / 0.6513 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.04e-05/0.004032, allocations: 15.97 kB / 0.6513 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.004062, allocations: 33.88 kB / 0.6513 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 5.383e-05/0.004116, allocations: 56.27 kB / 0.6514 GB, free: 36.56 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001428/0.004259, allocations: 132.9 kB / 0.6515 GB, free: 36.49 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.004261, allocations: 1.375 kB / 0.6515 GB, free: 36.49 MB / 0.5262 GB Notification: Performance of FrontEnd: time 5.56e-06/0.004267, allocations: 0 / 0.6515 GB, free: 36.49 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.004272, allocations: 3.938 kB / 0.6515 GB, free: 36.49 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.0004634/0.004735, allocations: 0.5278 MB / 0.652 GB, free: 35.99 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.004768, allocations: 9.531 kB / 0.6521 GB, free: 35.99 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/0.004815, allocations: 28.16 kB / 0.6521 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.00494, allocations: 153.5 kB / 0.6522 GB, free: 35.83 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.004957, allocations: 14.12 kB / 0.6522 GB, free: 35.82 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.00498, allocations: 13.72 kB / 0.6523 GB, free: 35.82 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/0.00513, allocations: 133 kB / 0.6524 GB, free: 35.73 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.005142, allocations: 11.12 kB / 0.6524 GB, free: 35.72 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.005153, allocations: 5.562 kB / 0.6524 GB, free: 35.72 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.005158, allocations: 2.219 kB / 0.6524 GB, free: 35.72 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.374e-05/0.005241, allocations: 72.77 kB / 0.6525 GB, free: 35.68 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003517/0.005593, allocations: 385.3 kB / 0.6528 GB, free: 35.38 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.005709, allocations: 106.1 kB / 0.6529 GB, free: 35.3 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.087e-05/0.00575, allocations: 66.08 kB / 0.653 GB, free: 35.25 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.005759, allocations: 6 kB / 0.653 GB, free: 35.25 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001381/0.005897, allocations: 190.6 kB / 0.6532 GB, free: 35.09 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.512e-06/0.005899, allocations: 0 / 0.6532 GB, free: 35.09 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.0005692/0.006468, allocations: 0.5348 MB / 0.6537 GB, free: 34.7 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.0065, allocations: 141.6 kB / 0.6538 GB, free: 34.54 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.922e-05/0.006579, allocations: 208 kB / 0.654 GB, free: 34.36 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.006593, allocations: 33.39 kB / 0.6541 GB, free: 34.32 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.304e-05/0.006636, allocations: 158 kB / 0.6542 GB, free: 34.18 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.39e-05/0.00667, allocations: 74.33 kB / 0.6543 GB, free: 34.12 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.228e-05/0.006722, allocations: 53.67 kB / 0.6543 GB, free: 34.08 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.499e-05/0.006787, allocations: 0.5074 MB / 0.6548 GB, free: 33.57 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.272e-05/0.00685, allocations: 96.62 kB / 0.6549 GB, free: 33.48 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.511e-05/0.006935, allocations: 190.1 kB / 0.6551 GB, free: 33.29 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.007112, allocations: 309.2 kB / 0.6554 GB, free: 33 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.007113, allocations: 0 / 0.6554 GB, free: 33 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002174/0.00733, allocations: 295.2 kB / 0.6557 GB, free: 32.8 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.007365, allocations: 63.34 kB / 0.6558 GB, free: 32.74 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.007372, allocations: 5.625 kB / 0.6558 GB, free: 32.74 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.007386, allocations: 2.75 kB / 0.6558 GB, free: 32.74 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.007547, allocations: 56.27 kB / 0.6558 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.007552, allocations: 2.25 kB / 0.6558 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.582e-05/0.007627, allocations: 17.08 kB / 0.6558 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.007641, allocations: 9.75 kB / 0.6558 GB, free: 32.73 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.0001419/0.007782, allocations: 230.2 kB / 0.6561 GB, free: 32.51 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.007818, allocations: 29.61 kB / 0.6561 GB, free: 32.5 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.163e-05/0.00785, allocations: 17.06 kB / 0.6561 GB, free: 32.48 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.007854, allocations: 2.188 kB / 0.6561 GB, free: 32.48 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.007856, allocations: 4.5 kB / 0.6561 GB, free: 32.48 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.007861, allocations: 1.219 kB / 0.6561 GB, free: 32.48 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003322/0.008193, allocations: 496.5 kB / 0.6566 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.008197, allocations: 10.05 kB / 0.6566 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.008305, allocations: 32.2 kB / 0.6566 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.008306, allocations: 0 / 0.6566 GB, free: 32.09 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.008318, allocations: 10.81 kB / 0.6566 GB, free: 32.08 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.008319, allocations: 1.688 kB / 0.6566 GB, free: 32.08 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.008321, allocations: 0 / 0.6566 GB, free: 32.08 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.008568, allocations: 441.7 kB / 0.6571 GB, free: 31.76 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.916e-05/0.008587, allocations: 15.78 kB / 0.6571 GB, free: 31.75 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.008612, allocations: 13 kB / 0.6571 GB, free: 31.74 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.182e-05/0.008684, allocations: 14.88 kB / 0.6571 GB, free: 31.74 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-05/0.008734, allocations: 19.8 kB / 0.6571 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.008746, allocations: 11.72 kB / 0.6571 GB, free: 31.73 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 5.391e-05/0.0088, allocations: 150.8 kB / 0.6573 GB, free: 31.61 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.0088, allocations: 0 / 0.6573 GB, free: 31.61 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002325/0.009032, allocations: 49.78 kB / 0.6573 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 0.0001315/0.009164, allocations: 112.3 kB / 0.6574 GB, free: 31.51 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003318/0.009496, allocations: 312.2 kB / 0.6577 GB, free: 31.25 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.009498, allocations: 3.469 kB / 0.6577 GB, free: 31.25 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.009623, allocations: 144 kB / 0.6579 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.009923, allocations: 50.33 kB / 0.6579 GB, free: 31.13 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.01114, allocations: 0.5891 MB / 0.6585 GB, free: 30.75 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.637e-05/0.01117, allocations: 78.86 kB / 0.6586 GB, free: 30.68 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 5.877e-05/0.01123, allocations: 20.28 kB / 0.6586 GB, free: 30.68 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.01135, allocations: 125 kB / 0.6587 GB, free: 30.61 MB / 0.5262 GB Notification: Performance of SimCode: time 7.71e-07/0.01135, allocations: 4 kB / 0.6587 GB, free: 30.6 MB / 0.5262 GB Notification: Performance of Templates: time 0.005141/0.01649, allocations: 3.042 MB / 0.6617 GB, free: 30.33 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.207379658706486]