Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.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.000946/0.000946, allocations: 92.22 kB / 19.65 MB, free: 276 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.0009725/0.0009725, allocations: 173 kB / 23.02 MB, free: 1.547 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.8913/0.8913, allocations: 177.1 MB / 203.4 MB, free: 5.621 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.584/1.584, allocations: 273.5 MB / 0.5209 GB, free: 14.79 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.DevModels.PKTwoCompartmentModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel") translateModel(Pharmacolibrary.DevModels.PKTwoCompartmentModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 0.6469 GB, free: 38.56 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.908e-05, allocations: 6.031 kB / 0.647 GB, free: 38.56 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKTwoCompartmentModel): time 0.003266/0.003285, allocations: 2.393 MB / 0.6493 GB, free: 37 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001174/0.004459, allocations: 0.6156 MB / 0.6499 GB, free: 36.6 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.004567, allocations: 2.375 kB / 0.6499 GB, free: 36.6 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 8.804e-05/0.004655, allocations: 33.94 kB / 0.6499 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.004947, allocations: 77.94 kB / 0.65 GB, free: 36.55 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.005217, allocations: 67.27 kB / 0.6501 GB, free: 36.51 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003971/0.005614, allocations: 292.9 kB / 0.6503 GB, free: 36.39 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.005832, allocations: 58.88 kB / 0.6504 GB, free: 36.35 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002961/0.006128, allocations: 156 kB / 0.6505 GB, free: 36.29 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.006326, allocations: 84.17 kB / 0.6506 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 6.095e-05/0.006387, allocations: 22.28 kB / 0.6507 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.112e-05/0.006438, allocations: 22.06 kB / 0.6507 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.006495, allocations: 47.48 kB / 0.6507 GB, free: 36.23 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.006617, allocations: 92.75 kB / 0.6508 GB, free: 36.19 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.006894, allocations: 182.6 kB / 0.651 GB, free: 36.11 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.006897, allocations: 1.281 kB / 0.651 GB, free: 36.11 MB / 0.5262 GB Notification: Performance of FrontEnd: time 8.22e-07/0.006897, allocations: 0 / 0.651 GB, free: 36.11 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.006904, allocations: 0 / 0.651 GB, free: 36.11 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0008117/0.007716, allocations: 0.6162 MB / 0.6516 GB, free: 35.55 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.00776, allocations: 9.719 kB / 0.6516 GB, free: 35.55 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.364e-05/0.007854, allocations: 42.98 kB / 0.6516 GB, free: 35.53 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.0081, allocations: 165.8 kB / 0.6518 GB, free: 35.37 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.972e-05/0.00814, allocations: 18.84 kB / 0.6518 GB, free: 35.36 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.008191, allocations: 26.78 kB / 0.6518 GB, free: 35.35 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003468/0.008538, allocations: 213.3 kB / 0.652 GB, free: 35.21 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.008555, allocations: 3.938 kB / 0.652 GB, free: 35.21 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.008577, allocations: 15.72 kB / 0.6521 GB, free: 35.2 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.008589, allocations: 5.125 kB / 0.6521 GB, free: 35.2 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/0.008799, allocations: 145.3 kB / 0.6522 GB, free: 35.12 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007106/0.00951, allocations: 0.5019 MB / 0.6527 GB, free: 34.75 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.009749, allocations: 178.1 kB / 0.6529 GB, free: 34.63 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.009855, allocations: 109.9 kB / 0.653 GB, free: 34.55 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.009868, allocations: 4.625 kB / 0.653 GB, free: 34.55 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.01017, allocations: 323.9 kB / 0.6533 GB, free: 34.28 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=31): time 3.126e-06/0.01017, allocations: 1.219 kB / 0.6533 GB, free: 34.28 MB / 0.5262 GB Notification: Performance of matching and sorting (n=33): time 0.001349/0.01152, allocations: 0.9073 MB / 0.6542 GB, free: 33.64 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.81e-05/0.01159, allocations: 218.7 kB / 0.6544 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.01174, allocations: 215 kB / 0.6546 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.01177, allocations: 38.16 kB / 0.6546 GB, free: 33.17 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.01183, allocations: 172.8 kB / 0.6548 GB, free: 33.01 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 7.077e-05/0.0119, allocations: 109.2 kB / 0.6549 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.279e-05/0.012, allocations: 70.02 kB / 0.655 GB, free: 32.88 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 7.876e-05/0.01207, allocations: 0.5065 MB / 0.6554 GB, free: 32.38 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.01222, allocations: 150.2 kB / 0.6556 GB, free: 32.25 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.01239, allocations: 263.1 kB / 0.6558 GB, free: 31.99 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003687/0.01276, allocations: 492.9 kB / 0.6563 GB, free: 31.55 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.01277, allocations: 1.281 kB / 0.6563 GB, free: 31.55 MB / 0.5262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006108/0.01338, allocations: 455 kB / 0.6567 GB, free: 31.25 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 5.539e-05/0.01343, allocations: 90.19 kB / 0.6568 GB, free: 31.16 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.01344, allocations: 2.25 kB / 0.6568 GB, free: 31.16 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.01347, allocations: 3.75 kB / 0.6568 GB, free: 31.16 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.01381, allocations: 76.8 kB / 0.6569 GB, free: 31.15 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.01382, allocations: 4.938 kB / 0.6569 GB, free: 31.15 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.01398, allocations: 21.27 kB / 0.6569 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.881e-05/0.01402, allocations: 12.59 kB / 0.6569 GB, free: 31.14 MB / 0.5262 GB Warning: Assuming fixed start value for the following 10 variables: 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 intestine.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real blood.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real intestine.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real intestine.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.rising:DISCRETE(fixed = true protected = true ) type: Boolean intestine.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.intestine.Cmin,intestine.Cmin,$PRE.intestine.Cmax,intestine.Cmax,$PRE.blood.Cmin,blood.Cmin,$PRE.blood.Cmax,blood.Cmax,$PRE.blood.rising,$PRE.intestine.rising,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,blood.rising,intestine.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 3 * 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.0002306/0.01425, allocations: 285 kB / 0.6572 GB, free: 30.88 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.873e-05/0.01433, allocations: 38.7 kB / 0.6573 GB, free: 30.87 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.58e-05/0.01437, allocations: 20.78 kB / 0.6573 GB, free: 30.85 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.01438, allocations: 6.719 kB / 0.6573 GB, free: 30.85 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.01439, allocations: 3.938 kB / 0.6573 GB, free: 30.84 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.01439, allocations: 3.797 kB / 0.6573 GB, free: 30.84 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007857/0.01518, allocations: 0.7202 MB / 0.658 GB, free: 30.32 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.01518, allocations: 1.375 kB / 0.658 GB, free: 30.32 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.01541, allocations: 46.86 kB / 0.658 GB, free: 30.32 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.01542, allocations: 1.375 kB / 0.658 GB, free: 30.32 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.01544, allocations: 11.52 kB / 0.6581 GB, free: 30.31 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.01545, allocations: 1.312 kB / 0.6581 GB, free: 30.31 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.01545, allocations: 0 / 0.6581 GB, free: 30.31 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000587/0.01604, allocations: 0.6681 MB / 0.6587 GB, free: 29.84 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.641e-05/0.01606, allocations: 13.47 kB / 0.6587 GB, free: 29.84 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.0161, allocations: 11.75 kB / 0.6587 GB, free: 29.83 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.01624, allocations: 19.66 kB / 0.6587 GB, free: 29.83 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.486e-05/0.01633, allocations: 27.05 kB / 0.6588 GB, free: 29.82 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.01635, allocations: 10.94 kB / 0.6588 GB, free: 29.82 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 5.857e-05/0.01641, allocations: 158.1 kB / 0.6589 GB, free: 29.7 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.01641, allocations: 0.875 kB / 0.6589 GB, free: 29.7 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002109/0.01662, allocations: 75.41 kB / 0.659 GB, free: 29.68 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (periodicDose.TotalCumulativeMass,periodicDose.variableDose.TotalCumulativeMass,intestine.C,intestine.AUC,blood.C,blood.AUC) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,periodicDose.pulse.T_start,periodicDose.pulse.count,intestine.Cmax,intestine.Cmin,intestine.rising,blood.Cmax,blood.Cmin,blood.rising) * Number of discrete states: 11 (periodicDose.pulse.count,blood.Cmin,$whenCondition3,blood.Cmax,$whenCondition2,blood.rising,intestine.Cmin,$whenCondition5,intestine.Cmax,$whenCondition4,intestine.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 2 * 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.179e-05/0.01671, allocations: 128.5 kB / 0.6591 GB, free: 29.59 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003392/0.01705, allocations: 493.2 kB / 0.6596 GB, free: 29.2 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01706, allocations: 0 / 0.6596 GB, free: 29.2 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.0172, allocations: 278.5 kB / 0.6599 GB, free: 28.97 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.01749, allocations: 67.16 kB / 0.6599 GB, free: 28.95 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.01884, allocations: 0.7427 MB / 0.6607 GB, free: 28.48 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.161e-05/0.01888, allocations: 90.39 kB / 0.6607 GB, free: 28.4 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 6.19e-05/0.01894, allocations: 16.55 kB / 0.6608 GB, free: 28.39 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.658e-05/0.01899, allocations: 26.53 kB / 0.6608 GB, free: 28.39 MB / 0.5262 GB Notification: Performance of SimCode: time 5.11e-07/0.01899, allocations: 0 / 0.6608 GB, free: 28.39 MB / 0.5262 GB Notification: Performance of Templates: time 0.005752/0.02474, allocations: 3.606 MB / 0.6643 GB, free: 28.08 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.693870150018483]