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.0009281/0.0009281, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.0009128/0.0009128, allocations: 173.3 kB / 23.5 MB, free: 1.059 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.9062/0.9062, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.511/1.511, allocations: 273.5 MB / 0.5213 GB, free: 14.8 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.303e-06/1.303e-06, allocations: 0 / 0.647 GB, free: 38.66 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.367e-05/1.497e-05, allocations: 3.688 kB / 0.647 GB, free: 38.66 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel): time 0.00174/0.001755, allocations: 1.73 MB / 0.6487 GB, free: 37.52 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0002377/0.001992, allocations: 88.97 kB / 0.6487 GB, free: 37.46 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.396e-05/0.002046, allocations: 0 / 0.6487 GB, free: 37.46 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 9.813e-05/0.002144, allocations: 12.72 kB / 0.6487 GB, free: 37.45 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 9.638e-05/0.002241, allocations: 21.86 kB / 0.6488 GB, free: 37.45 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 8.778e-05/0.002329, allocations: 25.52 kB / 0.6488 GB, free: 37.43 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.002469, allocations: 89.42 kB / 0.6489 GB, free: 37.41 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.436e-05/0.002564, allocations: 8.906 kB / 0.6489 GB, free: 37.41 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.705e-05/0.002621, allocations: 43.78 kB / 0.6489 GB, free: 37.4 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.195e-05/0.002693, allocations: 26.94 kB / 0.649 GB, free: 37.39 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.002714, allocations: 6.812 kB / 0.649 GB, free: 37.39 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.404e-05/0.002728, allocations: 4.406 kB / 0.649 GB, free: 37.39 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/0.002749, allocations: 11.16 kB / 0.649 GB, free: 37.39 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 4.622e-05/0.002796, allocations: 32.42 kB / 0.649 GB, free: 37.38 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.002911, allocations: 55.8 kB / 0.6491 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.002913, allocations: 1.844 kB / 0.6491 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of FrontEnd: time 4.4e-07/0.002914, allocations: 1.312 kB / 0.6491 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.002917, allocations: 1.281 kB / 0.6491 GB, free: 37.36 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.0003479/0.003265, allocations: 416.5 kB / 0.6495 GB, free: 36.94 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.0033, allocations: 11.47 kB / 0.6495 GB, free: 36.94 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.034e-05/0.00334, allocations: 10.89 kB / 0.6495 GB, free: 36.93 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.003447, allocations: 135.2 kB / 0.6496 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.789e-06/0.003457, allocations: 1.844 kB / 0.6496 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.003479, allocations: 11.59 kB / 0.6496 GB, free: 36.79 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.003581, allocations: 89.78 kB / 0.6497 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.003593, allocations: 1.656 kB / 0.6497 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.003604, allocations: 9.938 kB / 0.6497 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.003611, allocations: 1.406 kB / 0.6497 GB, free: 36.71 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.079e-05/0.003682, allocations: 74.81 kB / 0.6498 GB, free: 36.67 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002837/0.003965, allocations: 312.7 kB / 0.6501 GB, free: 36.38 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.131e-05/0.004047, allocations: 93.92 kB / 0.6502 GB, free: 36.29 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.284e-05/0.004079, allocations: 48.38 kB / 0.6502 GB, free: 36.25 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.00409, allocations: 3.594 kB / 0.6502 GB, free: 36.25 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001033/0.004194, allocations: 163.8 kB / 0.6504 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.004195, allocations: 1.469 kB / 0.6504 GB, free: 36.09 MB / 0.5262 GB Notification: Performance of matching and sorting (n=13): time 0.0005378/0.004733, allocations: 486.4 kB / 0.6509 GB, free: 35.71 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.004766, allocations: 136 kB / 0.651 GB, free: 35.55 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.257e-05/0.004818, allocations: 166.7 kB / 0.6511 GB, free: 35.38 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 7.745e-06/0.004826, allocations: 27.8 kB / 0.6512 GB, free: 35.35 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 2.18e-05/0.004848, allocations: 135.9 kB / 0.6513 GB, free: 35.22 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.004878, allocations: 44.81 kB / 0.6513 GB, free: 35.18 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.00491, allocations: 39.48 kB / 0.6514 GB, free: 35.15 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 4.281e-05/0.004953, allocations: 0.4917 MB / 0.6519 GB, free: 34.65 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-05/0.004996, allocations: 59.64 kB / 0.6519 GB, free: 34.6 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.648e-05/0.005042, allocations: 89.3 kB / 0.652 GB, free: 34.51 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.005157, allocations: 213.2 kB / 0.6522 GB, free: 34.32 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.005158, allocations: 2.375 kB / 0.6522 GB, free: 34.32 MB / 0.5262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001357/0.005294, allocations: 178.8 kB / 0.6524 GB, free: 34.2 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.005313, allocations: 31.52 kB / 0.6524 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.005318, allocations: 3.656 kB / 0.6524 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.005331, allocations: 5.219 kB / 0.6524 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.661e-05/0.005428, allocations: 30.73 kB / 0.6524 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.005433, allocations: 6.062 kB / 0.6524 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.224e-05/0.005465, allocations: 3.562 kB / 0.6525 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.005473, allocations: 8.938 kB / 0.6525 GB, free: 34.16 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.0001067/0.00558, allocations: 216 kB / 0.6527 GB, free: 33.95 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.005595, allocations: 16.36 kB / 0.6527 GB, free: 33.94 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.275e-05/0.005618, allocations: 10.72 kB / 0.6527 GB, free: 33.93 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.00562, allocations: 3.031 kB / 0.6527 GB, free: 33.93 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.005623, allocations: 0 / 0.6527 GB, free: 33.93 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.005628, allocations: 3.703 kB / 0.6527 GB, free: 33.93 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002485/0.005876, allocations: 457.3 kB / 0.6531 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.005877, allocations: 0 / 0.6531 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.519e-05/0.005942, allocations: 15.03 kB / 0.6532 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.005944, allocations: 3.312 kB / 0.6532 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.005954, allocations: 9.438 kB / 0.6532 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.005955, allocations: 1.25 kB / 0.6532 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.005956, allocations: 0 / 0.6532 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.006156, allocations: 402.7 kB / 0.6535 GB, free: 33.21 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.404e-06/0.006164, allocations: 9.422 kB / 0.6536 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.00618, allocations: 7.609 kB / 0.6536 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.686e-05/0.006217, allocations: 5.875 kB / 0.6536 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.378e-05/0.006251, allocations: 5.031 kB / 0.6536 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.006258, allocations: 8.156 kB / 0.6536 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 2.259e-05/0.00628, allocations: 130.9 kB / 0.6537 GB, free: 33.07 MB / 0.5262 GB Notification: Performance of sort global known variables: time 5e-08/0.00628, allocations: 2.125 kB / 0.6537 GB, free: 33.07 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0001589/0.006439, allocations: 27 kB / 0.6537 GB, free: 33.07 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.195e-05/0.006501, allocations: 109.4 kB / 0.6538 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0001427/0.006644, allocations: 191.8 kB / 0.654 GB, free: 32.82 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.006645, allocations: 1.312 kB / 0.654 GB, free: 32.82 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 5.379e-05/0.006699, allocations: 133.1 kB / 0.6542 GB, free: 32.71 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.006908, allocations: 23.45 kB / 0.6542 GB, free: 32.71 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009266/0.007834, allocations: 419.7 kB / 0.6546 GB, free: 32.44 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.794e-05/0.007862, allocations: 66.17 kB / 0.6546 GB, free: 32.36 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 2.726e-05/0.007889, allocations: 8.594 kB / 0.6546 GB, free: 32.36 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.373e-05/0.007913, allocations: 14.25 kB / 0.6547 GB, free: 32.35 MB / 0.5262 GB Notification: Performance of SimCode: time 6.81e-07/0.007914, allocations: 0 / 0.6547 GB, free: 32.35 MB / 0.5262 GB Notification: Performance of Templates: time 0.002592/0.01051, allocations: 1.238 MB / 0.6559 GB, free: 32.23 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.362552257021889]