Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.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.00102/0.00102, allocations: 93.06 kB / 19.65 MB, free: 272 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.001172/0.001172, allocations: 165 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 1.023/1.023, allocations: 177.1 MB / 203.4 MB, free: 5.617 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.575/1.575, allocations: 273.5 MB / 0.5209 GB, free: 14.83 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.PKOneCompartmentSimplestModel,tolerance=1e-09,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel") translateModel(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel,tolerance=1e-09,outputFormat="empty",numberOfIntervals=600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.647 GB, free: 38.5 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.463e-05, allocations: 3.734 kB / 0.647 GB, free: 38.5 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel): time 0.001962/0.001987, allocations: 1.729 MB / 0.6486 GB, free: 37.37 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0002439/0.00223, allocations: 87.69 kB / 0.6487 GB, free: 37.31 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.591e-05/0.002286, allocations: 1.875 kB / 0.6487 GB, free: 37.31 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.002388, allocations: 8.562 kB / 0.6487 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 9.682e-05/0.002485, allocations: 27.08 kB / 0.6488 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001014/0.002587, allocations: 23.7 kB / 0.6488 GB, free: 37.29 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.00014/0.002727, allocations: 95.2 kB / 0.6489 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.941e-05/0.002826, allocations: 5.219 kB / 0.6489 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.055e-05/0.002887, allocations: 45.19 kB / 0.6489 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.409e-05/0.002961, allocations: 25.72 kB / 0.6489 GB, free: 37.24 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.002985, allocations: 7.156 kB / 0.649 GB, free: 37.24 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.415e-05/0.002999, allocations: 5.875 kB / 0.649 GB, free: 37.24 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.178e-05/0.003021, allocations: 11.5 kB / 0.649 GB, free: 37.23 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 4.362e-05/0.003064, allocations: 30.73 kB / 0.649 GB, free: 37.23 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.003178, allocations: 54.91 kB / 0.6491 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.00318, allocations: 1.422 kB / 0.6491 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.383e-06/0.003182, allocations: 0 / 0.6491 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.003187, allocations: 0 / 0.6491 GB, free: 37.2 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003844/0.003571, allocations: 420 kB / 0.6495 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.003609, allocations: 9.969 kB / 0.6495 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.003651, allocations: 14.89 kB / 0.6495 GB, free: 36.78 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.003764, allocations: 131.9 kB / 0.6496 GB, free: 36.64 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.003775, allocations: 6.75 kB / 0.6496 GB, free: 36.63 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.003804, allocations: 7.156 kB / 0.6496 GB, free: 36.63 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.003915, allocations: 91.7 kB / 0.6497 GB, free: 36.56 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.003926, allocations: 192 / 0.6497 GB, free: 36.56 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.003937, allocations: 10.72 kB / 0.6497 GB, free: 36.55 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.003946, allocations: 1.719 kB / 0.6497 GB, free: 36.55 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.906e-05/0.004015, allocations: 64.17 kB / 0.6498 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003106/0.004325, allocations: 316.3 kB / 0.6501 GB, free: 36.22 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.723e-05/0.004412, allocations: 94.64 kB / 0.6502 GB, free: 36.14 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.66e-05/0.004449, allocations: 52.73 kB / 0.6502 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.004458, allocations: 2.219 kB / 0.6502 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001163/0.004574, allocations: 171.2 kB / 0.6504 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=12): time 1.012e-06/0.004575, allocations: 0 / 0.6504 GB, free: 35.93 MB / 0.5262 GB Notification: Performance of matching and sorting (n=13): time 0.0006709/0.005246, allocations: 479.8 kB / 0.6508 GB, free: 35.55 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.005279, allocations: 136.4 kB / 0.651 GB, free: 35.39 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.373e-05/0.005333, allocations: 165.3 kB / 0.6511 GB, free: 35.23 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 8.436e-06/0.005342, allocations: 33.55 kB / 0.6512 GB, free: 35.19 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 2.396e-05/0.005366, allocations: 132.5 kB / 0.6513 GB, free: 35.06 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 2.847e-05/0.005394, allocations: 44.77 kB / 0.6513 GB, free: 35.03 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.622e-05/0.00543, allocations: 36.27 kB / 0.6514 GB, free: 35 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 4.83e-05/0.005479, allocations: 0.4973 MB / 0.6519 GB, free: 34.5 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.255e-05/0.005521, allocations: 53.42 kB / 0.6519 GB, free: 34.45 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.615e-05/0.005567, allocations: 96.72 kB / 0.652 GB, free: 34.35 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.005675, allocations: 205.9 kB / 0.6522 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.005677, allocations: 1.094 kB / 0.6522 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001488/0.005826, allocations: 183.8 kB / 0.6524 GB, free: 34.04 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.005848, allocations: 39.56 kB / 0.6524 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.005853, allocations: 1.312 kB / 0.6524 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.00587, allocations: 3.969 kB / 0.6524 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.00597, allocations: 30.03 kB / 0.6524 GB, free: 34 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.005977, allocations: 2.375 kB / 0.6524 GB, free: 34 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.267e-05/0.00601, allocations: 9.906 kB / 0.6525 GB, free: 34 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.006018, allocations: 6.438 kB / 0.6525 GB, free: 34 MB / 0.5262 GB Warning: Assuming fixed start value for the following 4 variables: central.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" 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: 5 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.central.rising,central.rising,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.0001142/0.006132, allocations: 215 kB / 0.6527 GB, free: 33.79 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.006147, allocations: 16.86 kB / 0.6527 GB, free: 33.78 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.536e-05/0.006172, allocations: 13.3 kB / 0.6527 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.006175, allocations: 2.344 kB / 0.6527 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.006178, allocations: 0 / 0.6527 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.006181, allocations: 1.469 kB / 0.6527 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002643/0.006445, allocations: 457 kB / 0.6531 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.006448, allocations: 0 / 0.6531 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.002e-05/0.006518, allocations: 18.72 kB / 0.6532 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.00652, allocations: 3.062 kB / 0.6532 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.00653, allocations: 1.531 kB / 0.6532 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.006532, allocations: 2.062 kB / 0.6532 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.006533, allocations: 1.25 kB / 0.6532 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.006735, allocations: 402 kB / 0.6535 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.095e-06/0.006743, allocations: 6.141 kB / 0.6535 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.00676, allocations: 9.25 kB / 0.6536 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.382e-05/0.006794, allocations: 1.906 kB / 0.6536 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.006832, allocations: 7.531 kB / 0.6536 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.006838, allocations: 10.19 kB / 0.6536 GB, free: 33.04 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 2.314e-05/0.006862, allocations: 133.4 kB / 0.6537 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of sort global known variables: time 5e-08/0.006862, allocations: 0 / 0.6537 GB, free: 32.92 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0001556/0.007017, allocations: 27.22 kB / 0.6537 GB, free: 32.91 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (central.C,central.AUC,elim.MExc) * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,central.Cmax,central.Cmin,central.rising) * Number of discrete states: 5 (central.Cmin,$whenCondition2,central.Cmax,$whenCondition1,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 6.564e-05/0.007083, allocations: 101.9 kB / 0.6538 GB, free: 32.82 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0001568/0.00724, allocations: 199.4 kB / 0.654 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.007241, allocations: 0 / 0.654 GB, free: 32.67 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 5.662e-05/0.007298, allocations: 126.3 kB / 0.6541 GB, free: 32.56 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.007514, allocations: 31.44 kB / 0.6542 GB, free: 32.55 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.008622, allocations: 414.9 kB / 0.6546 GB, free: 32.29 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.44e-05/0.008656, allocations: 68.64 kB / 0.6546 GB, free: 32.21 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 3.04e-05/0.008687, allocations: 7.641 kB / 0.6546 GB, free: 32.21 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.008717, allocations: 18.31 kB / 0.6547 GB, free: 32.2 MB / 0.5262 GB Notification: Performance of SimCode: time 8.61e-07/0.008718, allocations: 0 / 0.6547 GB, free: 32.2 MB / 0.5262 GB Notification: Performance of Templates: time 0.002879/0.0116, allocations: 1.234 MB / 0.6559 GB, free: 32.08 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PKOneCompartmentSimplestModel.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.8438496380113065]