Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.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.002312/0.002312, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.002761/0.002761, allocations: 170.3 kB / 22.45 MB, free: 2.105 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.588/1.588, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.534/3.534, allocations: 274 MB / 0.5207 GB, free: 14.98 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.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic") translateModel(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.7563 GB, free: 10.03 MB / 0.5887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.025e-05/3.186e-05, allocations: 3.547 kB / 0.7563 GB, free: 10.02 MB / 0.5887 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic): time 0.007586/0.007618, allocations: 1.953 MB / 0.7582 GB, free: 8.078 MB / 0.5887 GB Notification: Performance of NFInst.instExpressions: time 0.004372/0.01199, allocations: 0.5226 MB / 0.7587 GB, free: 7.559 MB / 0.5887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.0121, allocations: 3.938 kB / 0.7587 GB, free: 7.555 MB / 0.5887 GB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.01223, allocations: 17.27 kB / 0.7587 GB, free: 7.539 MB / 0.5887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.01244, allocations: 55.11 kB / 0.7587 GB, free: 7.5 MB / 0.5887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.01267, allocations: 41.25 kB / 0.7588 GB, free: 7.461 MB / 0.5887 GB Notification: Performance of NFFlatten.flatten: time 0.0003674/0.01304, allocations: 193.2 kB / 0.759 GB, free: 7.293 MB / 0.5887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.0132, allocations: 29.89 kB / 0.759 GB, free: 7.254 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.01342, allocations: 103.8 kB / 0.7591 GB, free: 7.152 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.01359, allocations: 55.81 kB / 0.7592 GB, free: 7.098 MB / 0.5887 GB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.01364, allocations: 16 kB / 0.7592 GB, free: 7.082 MB / 0.5887 GB Notification: Performance of NFFlatten.collectFunctions: time 4.59e-05/0.01369, allocations: 16 kB / 0.7592 GB, free: 7.066 MB / 0.5887 GB Notification: Performance of NFScalarize.scalarize: time 6.297e-05/0.01375, allocations: 31.84 kB / 0.7592 GB, free: 7.035 MB / 0.5887 GB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.01387, allocations: 55.89 kB / 0.7593 GB, free: 6.98 MB / 0.5887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.01419, allocations: 159.5 kB / 0.7594 GB, free: 6.824 MB / 0.5887 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.0142, allocations: 0 / 0.7594 GB, free: 6.824 MB / 0.5887 GB Notification: Performance of FrontEnd: time 1.523e-06/0.0142, allocations: 0 / 0.7594 GB, free: 6.824 MB / 0.5887 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.0142, allocations: 4 kB / 0.7594 GB, free: 6.82 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.004107/0.01831, allocations: 433.1 kB / 0.7598 GB, free: 6.355 MB / 0.5887 GB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.01836, allocations: 11.97 kB / 0.7598 GB, free: 6.344 MB / 0.5887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.646e-05/0.01844, allocations: 16.84 kB / 0.7599 GB, free: 6.328 MB / 0.5887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.01875, allocations: 165.5 kB / 0.76 GB, free: 6.141 MB / 0.5887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.01877, allocations: 8.375 kB / 0.76 GB, free: 6.133 MB / 0.5887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.01882, allocations: 16.31 kB / 0.76 GB, free: 6.117 MB / 0.5887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000484/0.01931, allocations: 157.4 kB / 0.7602 GB, free: 5.953 MB / 0.5887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.01933, allocations: 11.89 kB / 0.7602 GB, free: 5.941 MB / 0.5887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.01935, allocations: 4 kB / 0.7602 GB, free: 5.938 MB / 0.5887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.01936, allocations: 4 kB / 0.7602 GB, free: 5.934 MB / 0.5887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005142/0.01987, allocations: 141.5 kB / 0.7603 GB, free: 5.789 MB / 0.5887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004073/0.02395, allocations: 352.2 kB / 0.7607 GB, free: 5.414 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005868/0.02453, allocations: 179.6 kB / 0.7609 GB, free: 5.227 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.02481, allocations: 86.69 kB / 0.7609 GB, free: 5.133 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.02482, allocations: 4 kB / 0.7609 GB, free: 5.129 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005427/0.02537, allocations: 223.2 kB / 0.7612 GB, free: 4.883 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=20): time 1.954e-06/0.02537, allocations: 0 / 0.7612 GB, free: 4.883 MB / 0.5887 GB Notification: Performance of matching and sorting (n=21): time 0.002122/0.02749, allocations: 0.6839 MB / 0.7618 GB, free: 4.137 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.02761, allocations: 136.5 kB / 0.762 GB, free: 3.973 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.02778, allocations: 156.2 kB / 0.7621 GB, free: 3.812 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.02782, allocations: 33.7 kB / 0.7621 GB, free: 3.773 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.02791, allocations: 108.5 kB / 0.7622 GB, free: 3.664 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 7.806e-05/0.02798, allocations: 75.41 kB / 0.7623 GB, free: 3.59 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.165e-05/0.02808, allocations: 49.7 kB / 0.7624 GB, free: 3.535 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0001866/0.02826, allocations: 326.8 kB / 0.7627 GB, free: 3.207 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.02854, allocations: 148.6 kB / 0.7628 GB, free: 3.047 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003507/0.02889, allocations: 216.3 kB / 0.763 GB, free: 2.793 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.03009, allocations: 0.5057 MB / 0.7635 GB, free: 2.227 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.03009, allocations: 0 / 0.7635 GB, free: 2.227 MB / 0.5887 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007032/0.03079, allocations: 385.8 kB / 0.7639 GB, free: 1.82 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 6.191e-05/0.03085, allocations: 59.41 kB / 0.7639 GB, free: 1.75 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.03086, allocations: 0 / 0.7639 GB, free: 1.75 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.03088, allocations: 4 kB / 0.7639 GB, free: 1.746 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.03112, allocations: 51.91 kB / 0.764 GB, free: 1.695 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.03113, allocations: 3.938 kB / 0.764 GB, free: 1.691 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.03128, allocations: 19.98 kB / 0.764 GB, free: 1.672 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.03131, allocations: 11.98 kB / 0.764 GB, free: 1.66 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.0002379/0.03155, allocations: 191.8 kB / 0.7642 GB, free: 1.461 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.03158, allocations: 15.84 kB / 0.7642 GB, free: 1.445 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.32e-05/0.03162, allocations: 17.28 kB / 0.7642 GB, free: 1.434 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.03163, allocations: 7.984 kB / 0.7642 GB, free: 1.426 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.03163, allocations: 7.938 kB / 0.7643 GB, free: 1.418 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.03164, allocations: 0 / 0.7643 GB, free: 1.418 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008496/0.03249, allocations: 0.5095 MB / 0.7647 GB, free: 0.8555 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.03249, allocations: 3.375 kB / 0.7648 GB, free: 0.8555 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002076/0.0327, allocations: 35.97 kB / 0.7648 GB, free: 0.8203 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.0327, allocations: 4 kB / 0.7648 GB, free: 0.8164 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.03272, allocations: 0 / 0.7648 GB, free: 0.8164 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.03273, allocations: 7.984 kB / 0.7648 GB, free: 0.8086 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.03273, allocations: 4 kB / 0.7648 GB, free: 0.8047 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008555/0.03358, allocations: 497.4 kB / 0.7653 GB, free: 292 kB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.03362, allocations: 19.89 kB / 0.7653 GB, free: 272 kB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.569e-05/0.03365, allocations: 8.062 kB / 0.7653 GB, free: 264 kB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.0338, allocations: 11.98 kB / 0.7653 GB, free: 252 kB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.595e-05/0.03389, allocations: 19.97 kB / 0.7653 GB, free: 232 kB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.0339, allocations: 11.94 kB / 0.7653 GB, free: 220 kB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.0001164/0.03402, allocations: 114.2 kB / 0.7655 GB, free: 108 kB / 0.5887 GB Notification: Performance of sort global known variables: time 9e-08/0.03402, allocations: 8 kB / 0.7655 GB, free: 100 kB / 0.5887 GB Notification: Performance of remove unused functions: time 0.0002836/0.0343, allocations: 48 kB / 0.7655 GB, free: 52 kB / 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.0001673/0.03447, allocations: 103.2 kB / 0.7656 GB, free: 15.93 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0006583/0.03513, allocations: 378.8 kB / 0.766 GB, free: 15.53 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.03513, allocations: 0 / 0.766 GB, free: 15.53 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.03542, allocations: 177.4 kB / 0.7661 GB, free: 15.34 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000369/0.03579, allocations: 36.09 kB / 0.7662 GB, free: 15.3 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.03703, allocations: 0.5213 MB / 0.7667 GB, free: 14.75 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.03717, allocations: 111.5 kB / 0.7668 GB, free: 14.62 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 9.533e-05/0.03726, allocations: 21.33 kB / 0.7668 GB, free: 14.61 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.896e-05/0.03732, allocations: 20.5 kB / 0.7668 GB, free: 14.59 MB / 0.6043 GB Notification: Performance of SimCode: time 6.71e-07/0.03732, allocations: 3.938 kB / 0.7668 GB, free: 14.59 MB / 0.6043 GB Notification: Performance of Templates: time 0.007545/0.04487, allocations: 2.482 MB / 0.7693 GB, free: 12.24 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.PKOneCompartmentModelPeriodic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.080539399757981]