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.001915/0.001915, allocations: 89.48 kB / 19.44 MB, free: 336 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.002177/0.002177, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.945/1.945, allocations: 177.1 MB / 203.1 MB, free: 5.629 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 7.519/7.519, allocations: 274.5 MB / 0.5215 GB, free: 14.21 MB / 458.7 MB " [Timeout remaining time 172] 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 2.114e-06/2.114e-06, allocations: 0 / 0.6472 GB, free: 39.05 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.14e-05/4.351e-05, allocations: 6.031 kB / 0.6472 GB, free: 39.05 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic): time 0.00431/0.004353, allocations: 2.013 MB / 0.6492 GB, free: 37.71 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001133/0.005486, allocations: 0.543 MB / 0.6497 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.878e-05/0.005564, allocations: 1.375 kB / 0.6497 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.00569, allocations: 22.61 kB / 0.6497 GB, free: 37.34 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.005857, allocations: 49.22 kB / 0.6498 GB, free: 37.32 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001915/0.006049, allocations: 40.03 kB / 0.6498 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0003094/0.006358, allocations: 198 kB / 0.65 GB, free: 37.24 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.006513, allocations: 30.28 kB / 0.65 GB, free: 37.22 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.006684, allocations: 106.4 kB / 0.6501 GB, free: 37.17 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.006828, allocations: 61.2 kB / 0.6502 GB, free: 37.15 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 4.067e-05/0.006868, allocations: 14.72 kB / 0.6502 GB, free: 37.15 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.969e-05/0.006908, allocations: 16.59 kB / 0.6502 GB, free: 37.15 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 4.238e-05/0.00695, allocations: 28.52 kB / 0.6503 GB, free: 37.13 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.007058, allocations: 56.89 kB / 0.6503 GB, free: 37.11 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.007338, allocations: 165.8 kB / 0.6505 GB, free: 37.04 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.007343, allocations: 0 / 0.6505 GB, free: 37.04 MB / 0.5262 GB Notification: Performance of FrontEnd: time 5.81e-07/0.007344, allocations: 0 / 0.6505 GB, free: 37.04 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.007351, allocations: 0 / 0.6505 GB, free: 37.04 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.0008186/0.00817, allocations: 0.52 MB / 0.651 GB, free: 36.55 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.008223, allocations: 11.34 kB / 0.651 GB, free: 36.55 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.304e-05/0.008306, allocations: 25.53 kB / 0.651 GB, free: 36.54 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.008512, allocations: 167.8 kB / 0.6512 GB, free: 36.38 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.008534, allocations: 13.5 kB / 0.6512 GB, free: 36.37 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.008575, allocations: 13.72 kB / 0.6512 GB, free: 36.37 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002953/0.00887, allocations: 149.2 kB / 0.6513 GB, free: 36.28 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.008895, allocations: 9.703 kB / 0.6514 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.008915, allocations: 7.5 kB / 0.6514 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.008921, allocations: 1.625 kB / 0.6514 GB, free: 36.27 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002923/0.009213, allocations: 123.7 kB / 0.6515 GB, free: 36.21 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.009915, allocations: 430.9 kB / 0.6519 GB, free: 35.87 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000361/0.01028, allocations: 177.4 kB / 0.6521 GB, free: 35.76 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.01044, allocations: 88.3 kB / 0.6521 GB, free: 35.7 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.01045, allocations: 3.406 kB / 0.6521 GB, free: 35.7 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003625/0.01082, allocations: 232 kB / 0.6524 GB, free: 35.52 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.01082, allocations: 0 / 0.6524 GB, free: 35.52 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.001477/0.0123, allocations: 0.6824 MB / 0.653 GB, free: 35.07 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.021e-05/0.01238, allocations: 140.2 kB / 0.6532 GB, free: 34.91 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.01258, allocations: 224.4 kB / 0.6534 GB, free: 34.72 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.01261, allocations: 31.23 kB / 0.6534 GB, free: 34.68 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 8.451e-05/0.01269, allocations: 158.2 kB / 0.6536 GB, free: 34.54 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 9.784e-05/0.01279, allocations: 84.36 kB / 0.6536 GB, free: 34.47 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.01291, allocations: 60.5 kB / 0.6537 GB, free: 34.43 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0001691/0.01308, allocations: 0.507 MB / 0.6542 GB, free: 33.93 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.0133, allocations: 139.4 kB / 0.6543 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.01357, allocations: 233.7 kB / 0.6546 GB, free: 33.61 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005777/0.01415, allocations: 409.3 kB / 0.6549 GB, free: 33.29 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.01415, allocations: 1.094 kB / 0.6549 GB, free: 33.29 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007232/0.01487, allocations: 390.6 kB / 0.6553 GB, free: 33.04 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.01492, allocations: 59.81 kB / 0.6554 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.01492, allocations: 2 kB / 0.6554 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.01494, allocations: 7.312 kB / 0.6554 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.01515, allocations: 50.66 kB / 0.6554 GB, free: 32.97 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.01516, allocations: 10.39 kB / 0.6554 GB, free: 32.97 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.01529, allocations: 13.97 kB / 0.6555 GB, free: 32.96 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.154e-05/0.01531, allocations: 8.25 kB / 0.6555 GB, free: 32.96 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.0002502/0.01556, allocations: 239.5 kB / 0.6557 GB, free: 32.75 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-05/0.01561, allocations: 22.19 kB / 0.6557 GB, free: 32.74 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.774e-05/0.01567, allocations: 24.05 kB / 0.6557 GB, free: 32.73 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.01568, allocations: 7.312 kB / 0.6557 GB, free: 32.72 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.01568, allocations: 0 / 0.6557 GB, free: 32.72 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.01569, allocations: 3.938 kB / 0.6557 GB, free: 32.72 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008744/0.01656, allocations: 0.5803 MB / 0.6563 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.01656, allocations: 1.938 kB / 0.6563 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.01679, allocations: 32.08 kB / 0.6563 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.01679, allocations: 1.125 kB / 0.6563 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.01682, allocations: 10 kB / 0.6564 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.01682, allocations: 1.125 kB / 0.6564 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.01682, allocations: 0.5625 kB / 0.6564 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009845/0.01781, allocations: 0.5315 MB / 0.6569 GB, free: 31.9 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.047e-05/0.01785, allocations: 20.16 kB / 0.6569 GB, free: 31.89 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.849e-05/0.01791, allocations: 10.95 kB / 0.6569 GB, free: 31.88 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.01805, allocations: 6.75 kB / 0.6569 GB, free: 31.88 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.01815, allocations: 23.58 kB / 0.6569 GB, free: 31.88 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.01818, allocations: 8.656 kB / 0.6569 GB, free: 31.88 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0001495/0.01833, allocations: 160.7 kB / 0.6571 GB, free: 31.75 MB / 0.5262 GB Notification: Performance of sort global known variables: time 6e-08/0.01833, allocations: 2.406 kB / 0.6571 GB, free: 31.75 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0003429/0.01867, allocations: 45.56 kB / 0.6571 GB, free: 31.74 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.0001381/0.01881, allocations: 111.5 kB / 0.6572 GB, free: 31.65 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0005951/0.0194, allocations: 393.7 kB / 0.6576 GB, free: 31.36 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.0194, allocations: 1.375 kB / 0.6576 GB, free: 31.36 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003326/0.01974, allocations: 184 kB / 0.6578 GB, free: 31.23 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006162/0.02035, allocations: 44.33 kB / 0.6578 GB, free: 31.22 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.02149, allocations: 0.537 MB / 0.6584 GB, free: 30.85 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.02163, allocations: 111.7 kB / 0.6585 GB, free: 30.77 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.0001223/0.02175, allocations: 16.86 kB / 0.6585 GB, free: 30.77 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.337e-05/0.02183, allocations: 18.41 kB / 0.6585 GB, free: 30.76 MB / 0.5262 GB Notification: Performance of SimCode: time 1.292e-06/0.02184, allocations: 0 / 0.6585 GB, free: 30.76 MB / 0.5262 GB Notification: Performance of Templates: time 0.01424/0.03607, allocations: 2.509 MB / 0.661 GB, free: 30.54 MB / 0.5262 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 13.856474234024063]