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.001766/0.001766, allocations: 80.44 kB / 19.17 MB, free: 0.7344 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.001908/0.001908, allocations: 169.9 kB / 22.45 MB, free: 2.098 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.695/1.695, allocations: 177.1 MB / 202.8 MB, free: 5.762 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.535/3.535, allocations: 274 MB / 0.5207 GB, free: 14.96 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.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.573e-06/1.573e-06, allocations: 0 / 0.7563 GB, free: 9.992 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.764e-05/2.922e-05, allocations: 5.094 kB / 0.7563 GB, free: 9.988 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKTwoCompartmentModel): time 0.003637/0.003667, allocations: 2.247 MB / 0.7585 GB, free: 7.75 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.001098/0.004765, allocations: 0.6009 MB / 0.759 GB, free: 7.156 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.184e-05/0.004846, allocations: 4 kB / 0.7591 GB, free: 7.152 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 7.88e-05/0.004925, allocations: 27.72 kB / 0.7591 GB, free: 7.125 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.005142, allocations: 77.95 kB / 0.7592 GB, free: 7.074 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.005332, allocations: 63.91 kB / 0.7592 GB, free: 7.012 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0003547/0.005687, allocations: 292.3 kB / 0.7595 GB, free: 6.73 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.005836, allocations: 52.67 kB / 0.7595 GB, free: 6.68 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.00607, allocations: 155.7 kB / 0.7597 GB, free: 6.527 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.006233, allocations: 87.75 kB / 0.7598 GB, free: 6.441 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 4.891e-05/0.006282, allocations: 27.94 kB / 0.7598 GB, free: 6.414 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 4.496e-05/0.006327, allocations: 20 kB / 0.7598 GB, free: 6.395 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.006392, allocations: 47.83 kB / 0.7599 GB, free: 6.348 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.006519, allocations: 87.83 kB / 0.7599 GB, free: 6.262 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.006845, allocations: 247.2 kB / 0.7602 GB, free: 6.02 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.006847, allocations: 0 / 0.7602 GB, free: 6.02 MB / 0.5887 GB Notification: Performance of FrontEnd: time 8.41e-07/0.006848, allocations: 0 / 0.7602 GB, free: 6.02 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.006854, allocations: 8 kB / 0.7602 GB, free: 6.012 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009643/0.007819, allocations: 0.5147 MB / 0.7607 GB, free: 5.449 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.007856, allocations: 12.03 kB / 0.7607 GB, free: 5.438 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.485e-05/0.007921, allocations: 20.8 kB / 0.7607 GB, free: 5.418 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.008092, allocations: 158.4 kB / 0.7609 GB, free: 5.238 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.00812, allocations: 16.38 kB / 0.7609 GB, free: 5.223 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.938e-05/0.008169, allocations: 28.27 kB / 0.7609 GB, free: 5.195 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004706/0.00864, allocations: 254.4 kB / 0.7612 GB, free: 4.926 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.008656, allocations: 3.938 kB / 0.7612 GB, free: 4.922 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.008679, allocations: 4 kB / 0.7612 GB, free: 4.918 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.008686, allocations: 8 kB / 0.7612 GB, free: 4.91 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004824/0.009168, allocations: 215.6 kB / 0.7614 GB, free: 4.688 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.0102, allocations: 472.5 kB / 0.7618 GB, free: 4.195 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.01071, allocations: 253.3 kB / 0.7621 GB, free: 3.93 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.01098, allocations: 144.2 kB / 0.7622 GB, free: 3.773 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.01099, allocations: 7.938 kB / 0.7622 GB, free: 3.766 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005022/0.0115, allocations: 346.1 kB / 0.7625 GB, free: 3.379 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=31): time 1.373e-06/0.0115, allocations: 0 / 0.7625 GB, free: 3.379 MB / 0.5887 GB Notification: Performance of matching and sorting (n=33): time 0.002085/0.01358, allocations: 1.051 MB / 0.7636 GB, free: 2.234 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001559/0.01374, allocations: 217.6 kB / 0.7638 GB, free: 1.973 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.01393, allocations: 164.5 kB / 0.7639 GB, free: 1.805 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.01396, allocations: 33.7 kB / 0.764 GB, free: 1.766 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 9.856e-05/0.01406, allocations: 128.9 kB / 0.7641 GB, free: 1.637 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.01417, allocations: 115.1 kB / 0.7642 GB, free: 1.523 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.01427, allocations: 61.69 kB / 0.7643 GB, free: 1.457 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0001735/0.01445, allocations: 334.8 kB / 0.7646 GB, free: 1.121 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003166/0.01476, allocations: 195 kB / 0.7648 GB, free: 0.9102 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.01516, allocations: 279 kB / 0.765 GB, free: 0.582 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.01649, allocations: 0.7441 MB / 0.7658 GB, free: 15.75 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.01649, allocations: 0 / 0.7658 GB, free: 15.75 MB / 0.6043 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008596/0.01735, allocations: 0.5161 MB / 0.7663 GB, free: 15.19 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 7.555e-05/0.01743, allocations: 89.09 kB / 0.7664 GB, free: 15.08 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.01743, allocations: 8.25 kB / 0.7664 GB, free: 15.07 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.01745, allocations: 7.938 kB / 0.7664 GB, free: 15.07 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.01775, allocations: 71.91 kB / 0.7664 GB, free: 15 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.01777, allocations: 7.984 kB / 0.7664 GB, free: 14.99 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.01795, allocations: 19.98 kB / 0.7665 GB, free: 14.97 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.01797, allocations: 12 kB / 0.7665 GB, free: 14.96 MB / 0.6043 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.0002907/0.01826, allocations: 251.8 kB / 0.7667 GB, free: 14.7 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.971e-05/0.0183, allocations: 27.86 kB / 0.7667 GB, free: 14.67 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.171e-05/0.01836, allocations: 25.95 kB / 0.7668 GB, free: 14.64 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.01837, allocations: 4 kB / 0.7668 GB, free: 14.64 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.01837, allocations: 0 / 0.7668 GB, free: 14.64 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.01838, allocations: 0 / 0.7668 GB, free: 14.64 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.01955, allocations: 0.7368 MB / 0.7675 GB, free: 13.84 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.01955, allocations: 0 / 0.7675 GB, free: 13.84 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.01983, allocations: 47.97 kB / 0.7675 GB, free: 13.79 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/0.01984, allocations: 8 kB / 0.7675 GB, free: 13.79 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.01987, allocations: 11.98 kB / 0.7676 GB, free: 13.77 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.01987, allocations: 0 / 0.7676 GB, free: 13.77 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01987, allocations: 0 / 0.7676 GB, free: 13.77 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.02112, allocations: 0.7119 MB / 0.7682 GB, free: 13.01 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 2.834e-05/0.02115, allocations: 11.91 kB / 0.7683 GB, free: 13 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.715e-05/0.02119, allocations: 12.06 kB / 0.7683 GB, free: 12.98 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.02137, allocations: 15.98 kB / 0.7683 GB, free: 12.97 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.983e-05/0.02146, allocations: 31.95 kB / 0.7683 GB, free: 12.94 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.02148, allocations: 11.98 kB / 0.7683 GB, free: 12.93 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.0001216/0.0216, allocations: 127.2 kB / 0.7684 GB, free: 12.8 MB / 0.6043 GB Notification: Performance of sort global known variables: time 6e-08/0.02161, allocations: 0 / 0.7684 GB, free: 12.8 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0003321/0.02194, allocations: 75.94 kB / 0.7685 GB, free: 12.73 MB / 0.6043 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 0.0001444/0.02208, allocations: 115.3 kB / 0.7686 GB, free: 12.61 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0008402/0.02292, allocations: 0.5534 MB / 0.7692 GB, free: 11.98 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.02292, allocations: 0 / 0.7692 GB, free: 11.98 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0004186/0.02334, allocations: 298.1 kB / 0.7695 GB, free: 11.66 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.02381, allocations: 66.69 kB / 0.7695 GB, free: 11.59 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.02522, allocations: 0.7187 MB / 0.7702 GB, free: 10.85 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.02537, allocations: 138.7 kB / 0.7704 GB, free: 10.7 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 0.0001011/0.02547, allocations: 17.95 kB / 0.7704 GB, free: 10.68 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.134e-05/0.02554, allocations: 24.48 kB / 0.7704 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of SimCode: time 5.11e-07/0.02554, allocations: 0 / 0.7704 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of Templates: time 0.007854/0.0334, allocations: 3.403 MB / 0.7737 GB, free: 7.441 MB / 0.6043 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: 9.127343541942537]