Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.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.001007/0.001007, allocations: 84.53 kB / 19.93 MB, free: 4.609 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.002032/0.002032, allocations: 173.9 kB / 23.21 MB, free: 1.328 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.9871/0.9871, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.642/1.642, allocations: 273.5 MB / 0.5209 GB, free: 14.93 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.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") translateModel(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 0.7558 GB, free: 10.62 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.771e-05/3.968e-05, allocations: 2.281 kB / 0.7558 GB, free: 10.61 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic): time 0.003351/0.00339, allocations: 1.959 MB / 0.7577 GB, free: 8.66 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.004722, allocations: 0.5263 MB / 0.7582 GB, free: 8.137 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.004886, allocations: 0 / 0.7582 GB, free: 8.137 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.005049, allocations: 19.78 kB / 0.7582 GB, free: 8.117 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.005292, allocations: 48.02 kB / 0.7583 GB, free: 8.086 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003061/0.005598, allocations: 49.19 kB / 0.7583 GB, free: 8.039 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0004283/0.006027, allocations: 204.5 kB / 0.7585 GB, free: 7.871 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.006232, allocations: 21.91 kB / 0.7585 GB, free: 7.84 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002245/0.006456, allocations: 107.7 kB / 0.7586 GB, free: 7.734 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.006602, allocations: 55.86 kB / 0.7587 GB, free: 7.68 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 3.767e-05/0.00664, allocations: 12 kB / 0.7587 GB, free: 7.668 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.707e-05/0.006667, allocations: 16 kB / 0.7587 GB, free: 7.652 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 4.998e-05/0.006717, allocations: 31.84 kB / 0.7587 GB, free: 7.621 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 9.346e-05/0.00681, allocations: 47.92 kB / 0.7588 GB, free: 7.574 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002809/0.007091, allocations: 171.5 kB / 0.7589 GB, free: 7.406 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.007098, allocations: 0 / 0.7589 GB, free: 7.406 MB / 0.5887 GB Notification: Performance of FrontEnd: time 4.148e-06/0.007102, allocations: 0 / 0.7589 GB, free: 7.406 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.007113, allocations: 4 kB / 0.7589 GB, free: 7.402 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.0009362/0.00805, allocations: 433.1 kB / 0.7594 GB, free: 6.938 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/0.008106, allocations: 8.031 kB / 0.7594 GB, free: 6.93 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.869e-05/0.008175, allocations: 16.84 kB / 0.7594 GB, free: 6.914 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.008384, allocations: 157.5 kB / 0.7595 GB, free: 6.734 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.008399, allocations: 4.375 kB / 0.7595 GB, free: 6.73 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.619e-05/0.008446, allocations: 12.38 kB / 0.7595 GB, free: 6.719 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003035/0.008749, allocations: 165.2 kB / 0.7597 GB, free: 6.547 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.008774, allocations: 15.22 kB / 0.7597 GB, free: 6.535 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.008792, allocations: 4 kB / 0.7597 GB, free: 6.531 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.008801, allocations: 4 kB / 0.7597 GB, free: 6.527 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.009022, allocations: 129.6 kB / 0.7598 GB, free: 6.395 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007006/0.009723, allocations: 372.1 kB / 0.7602 GB, free: 6 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002811/0.01, allocations: 171 kB / 0.7604 GB, free: 5.82 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.01012, allocations: 90.67 kB / 0.7605 GB, free: 5.723 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.01013, allocations: 7.938 kB / 0.7605 GB, free: 5.715 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.01043, allocations: 223.2 kB / 0.7607 GB, free: 5.469 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=20): time 3.166e-06/0.01043, allocations: 0 / 0.7607 GB, free: 5.469 MB / 0.5887 GB Notification: Performance of matching and sorting (n=21): time 0.001323/0.01176, allocations: 0.6815 MB / 0.7613 GB, free: 4.723 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.462e-05/0.01184, allocations: 140.5 kB / 0.7615 GB, free: 4.555 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.01199, allocations: 152.2 kB / 0.7616 GB, free: 4.398 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.01201, allocations: 37.64 kB / 0.7617 GB, free: 4.355 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 7.864e-05/0.01209, allocations: 108.5 kB / 0.7618 GB, free: 4.246 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 4.624e-05/0.01214, allocations: 67.42 kB / 0.7618 GB, free: 4.18 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.348e-05/0.01221, allocations: 53.69 kB / 0.7619 GB, free: 4.121 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.01234, allocations: 334.8 kB / 0.7622 GB, free: 3.785 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.01252, allocations: 136.7 kB / 0.7623 GB, free: 3.637 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.01271, allocations: 212.3 kB / 0.7625 GB, free: 3.387 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006549/0.01337, allocations: 0.5096 MB / 0.763 GB, free: 2.816 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.01337, allocations: 3.938 kB / 0.763 GB, free: 2.812 MB / 0.5887 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004557/0.01383, allocations: 376.2 kB / 0.7634 GB, free: 2.414 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 6.771e-05/0.01389, allocations: 67.39 kB / 0.7634 GB, free: 2.336 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.0139, allocations: 0 / 0.7634 GB, free: 2.336 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.01393, allocations: 4 kB / 0.7635 GB, free: 2.332 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.01408, allocations: 47.91 kB / 0.7635 GB, free: 2.285 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.0141, allocations: 7.938 kB / 0.7635 GB, free: 2.277 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.0142, allocations: 15.98 kB / 0.7635 GB, free: 2.262 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.01422, allocations: 12 kB / 0.7635 GB, free: 2.25 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.0003053/0.01452, allocations: 188.7 kB / 0.7637 GB, free: 2.055 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.01455, allocations: 15.91 kB / 0.7637 GB, free: 2.039 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.0146, allocations: 17.28 kB / 0.7637 GB, free: 2.027 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.01461, allocations: 8 kB / 0.7638 GB, free: 2.02 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.01462, allocations: 3.938 kB / 0.7638 GB, free: 2.016 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.01463, allocations: 0 / 0.7638 GB, free: 2.016 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00062/0.01525, allocations: 0.522 MB / 0.7643 GB, free: 1.445 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.01525, allocations: 0 / 0.7643 GB, free: 1.445 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005806/0.01583, allocations: 35.97 kB / 0.7643 GB, free: 1.41 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.01584, allocations: 0 / 0.7643 GB, free: 1.41 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.01585, allocations: 8 kB / 0.7643 GB, free: 1.402 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.01586, allocations: 0 / 0.7643 GB, free: 1.402 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.01586, allocations: 4 kB / 0.7643 GB, free: 1.398 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005465/0.01641, allocations: 0.4942 MB / 0.7648 GB, free: 0.8711 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 2.802e-05/0.01644, allocations: 15.97 kB / 0.7648 GB, free: 0.8555 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.491e-05/0.01647, allocations: 8 kB / 0.7648 GB, free: 0.8477 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.073e-05/0.01655, allocations: 11.98 kB / 0.7648 GB, free: 0.8359 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.524e-05/0.01665, allocations: 19.95 kB / 0.7648 GB, free: 0.8164 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.01666, allocations: 12 kB / 0.7649 GB, free: 0.8047 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 7.629e-05/0.01674, allocations: 118 kB / 0.765 GB, free: 0.6914 MB / 0.5887 GB Notification: Performance of sort global known variables: time 7e-08/0.01674, allocations: 0 / 0.765 GB, free: 0.6914 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.0002336/0.01697, allocations: 47.98 kB / 0.765 GB, free: 0.6445 MB / 0.5887 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.0001789/0.01715, allocations: 105.2 kB / 0.7651 GB, free: 0.5312 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.0004353/0.01759, allocations: 379.6 kB / 0.7655 GB, free: 120 kB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.01759, allocations: 384 / 0.7655 GB, free: 120 kB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001824/0.01777, allocations: 177 kB / 0.7656 GB, free: 15.93 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.01809, allocations: 30.17 kB / 0.7657 GB, free: 15.9 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009233/0.01902, allocations: 0.5549 MB / 0.7662 GB, free: 15.31 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.73e-05/0.01911, allocations: 107.5 kB / 0.7663 GB, free: 15.19 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.899e-05/0.01917, allocations: 24.5 kB / 0.7663 GB, free: 15.16 MB / 0.6043 GB Notification: Performance of SimCode: time 7.71e-07/0.01917, allocations: 0 / 0.7663 GB, free: 15.16 MB / 0.6043 GB Notification: Performance of Templates: time 0.004248/0.02342, allocations: 2.289 MB / 0.7686 GB, free: 12.92 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.923773485934362]