Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.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.00128/0.00128, allocations: 93.06 kB / 19.65 MB, free: 276 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.00134/0.00134, allocations: 165 kB / 23.02 MB, free: 1.551 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.011/1.011, allocations: 177.1 MB / 203.4 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.688/1.688, allocations: 273.5 MB / 0.5209 GB, free: 14.86 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.PK_1C_GentamicineSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple") translateModel(Pharmacolibrary.Examples.PK_1C_GentamicineSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 0.647 GB, free: 38.57 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.68e-05/2.855e-05, allocations: 3.219 kB / 0.647 GB, free: 38.57 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_GentamicineSimple): time 0.002731/0.00276, allocations: 1.741 MB / 0.6487 GB, free: 37.43 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0003433/0.003103, allocations: 90.12 kB / 0.6487 GB, free: 37.37 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.861e-05/0.003172, allocations: 1.844 kB / 0.6487 GB, free: 37.37 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.003356, allocations: 7.688 kB / 0.6487 GB, free: 37.37 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.003535, allocations: 34.56 kB / 0.6488 GB, free: 37.35 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001217/0.003657, allocations: 19.39 kB / 0.6488 GB, free: 37.34 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0001644/0.003821, allocations: 88.48 kB / 0.6489 GB, free: 37.32 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.003937, allocations: 12.88 kB / 0.6489 GB, free: 37.32 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.846e-05/0.004005, allocations: 42.05 kB / 0.6489 GB, free: 37.31 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.787e-05/0.004083, allocations: 28.69 kB / 0.649 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.004104, allocations: 3.5 kB / 0.649 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.563e-05/0.004119, allocations: 8.312 kB / 0.649 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.00414, allocations: 9.078 kB / 0.649 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 5.261e-05/0.004192, allocations: 33.33 kB / 0.649 GB, free: 37.29 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.004319, allocations: 59.77 kB / 0.6491 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.004322, allocations: 0 / 0.6491 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of FrontEnd: time 1.183e-06/0.004323, allocations: 0 / 0.6491 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.004328, allocations: 0 / 0.6491 GB, free: 37.26 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.0003873/0.004715, allocations: 415.1 kB / 0.6495 GB, free: 36.84 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.004755, allocations: 9.469 kB / 0.6495 GB, free: 36.84 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.705e-05/0.004802, allocations: 16.67 kB / 0.6495 GB, free: 36.84 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.004923, allocations: 133.7 kB / 0.6496 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.004934, allocations: 2.75 kB / 0.6496 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.146e-05/0.004965, allocations: 10.12 kB / 0.6496 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.005082, allocations: 91.34 kB / 0.6497 GB, free: 36.62 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.005094, allocations: 2.828 kB / 0.6497 GB, free: 36.62 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.005106, allocations: 6.438 kB / 0.6497 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.005115, allocations: 0 / 0.6497 GB, free: 36.61 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.689e-05/0.005191, allocations: 64.3 kB / 0.6498 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003322/0.005524, allocations: 319 kB / 0.6501 GB, free: 36.28 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.901e-05/0.005613, allocations: 87.27 kB / 0.6502 GB, free: 36.2 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.611e-05/0.005649, allocations: 52.38 kB / 0.6502 GB, free: 36.16 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/0.005657, allocations: 4.031 kB / 0.6502 GB, free: 36.16 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.005776, allocations: 169.5 kB / 0.6504 GB, free: 36 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.005777, allocations: 2.969 kB / 0.6504 GB, free: 36 MB / 0.5262 GB Notification: Performance of matching and sorting (n=13): time 0.0006117/0.006389, allocations: 481.3 kB / 0.6509 GB, free: 35.62 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.006423, allocations: 133.4 kB / 0.651 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.93e-05/0.006483, allocations: 174.9 kB / 0.6512 GB, free: 35.29 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 9.248e-06/0.006492, allocations: 31.31 kB / 0.6512 GB, free: 35.25 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 2.533e-05/0.006517, allocations: 133.2 kB / 0.6513 GB, free: 35.12 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.006555, allocations: 44.77 kB / 0.6514 GB, free: 35.09 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.006605, allocations: 38.64 kB / 0.6514 GB, free: 35.05 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 6.234e-05/0.006668, allocations: 0.4936 MB / 0.6519 GB, free: 34.55 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.052e-05/0.006718, allocations: 60.08 kB / 0.6519 GB, free: 34.5 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.989e-05/0.006768, allocations: 93.06 kB / 0.652 GB, free: 34.41 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.006889, allocations: 199 kB / 0.6522 GB, free: 34.22 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.00689, allocations: 2.062 kB / 0.6522 GB, free: 34.22 MB / 0.5262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001597/0.00705, allocations: 186.3 kB / 0.6524 GB, free: 34.1 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.007081, allocations: 37.02 kB / 0.6524 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.007086, allocations: 0 / 0.6524 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.007106, allocations: 0 / 0.6524 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.007219, allocations: 33.06 kB / 0.6525 GB, free: 34.06 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.007227, allocations: 2.375 kB / 0.6525 GB, free: 34.06 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.749e-05/0.007265, allocations: 5.531 kB / 0.6525 GB, free: 34.06 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.007273, allocations: 5.344 kB / 0.6525 GB, free: 34.06 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.00013/0.007403, allocations: 219.5 kB / 0.6527 GB, free: 33.85 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.00742, allocations: 15.7 kB / 0.6527 GB, free: 33.84 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.666e-05/0.007446, allocations: 10.81 kB / 0.6527 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.007448, allocations: 1.094 kB / 0.6527 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.007452, allocations: 0 / 0.6527 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.007457, allocations: 2.781 kB / 0.6527 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.007724, allocations: 459.6 kB / 0.6531 GB, free: 33.44 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.007726, allocations: 0 / 0.6531 GB, free: 33.44 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.648e-05/0.007792, allocations: 19.2 kB / 0.6532 GB, free: 33.44 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.007795, allocations: 3.625 kB / 0.6532 GB, free: 33.44 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.007805, allocations: 7.562 kB / 0.6532 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-06/0.007807, allocations: 3.516 kB / 0.6532 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.007809, allocations: 1.469 kB / 0.6532 GB, free: 33.43 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002355/0.008044, allocations: 395.8 kB / 0.6536 GB, free: 33.12 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.176e-05/0.008056, allocations: 12.98 kB / 0.6536 GB, free: 33.11 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.008075, allocations: 4.312 kB / 0.6536 GB, free: 33.11 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.769e-05/0.008113, allocations: 1.5 kB / 0.6536 GB, free: 33.11 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.008151, allocations: 10.39 kB / 0.6536 GB, free: 33.11 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.008157, allocations: 7.75 kB / 0.6536 GB, free: 33.1 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 2.347e-05/0.00818, allocations: 128.4 kB / 0.6537 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of sort global known variables: time 4e-08/0.00818, allocations: 3.281 kB / 0.6537 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0001624/0.008343, allocations: 26.38 kB / 0.6537 GB, free: 32.98 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.74e-05/0.00841, allocations: 101.2 kB / 0.6538 GB, free: 32.89 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.000201/0.008611, allocations: 191.9 kB / 0.654 GB, free: 32.74 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.008613, allocations: 0 / 0.654 GB, free: 32.74 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 8.367e-05/0.008696, allocations: 132.6 kB / 0.6541 GB, free: 32.62 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.008914, allocations: 22.77 kB / 0.6542 GB, free: 32.62 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009915/0.009906, allocations: 413.3 kB / 0.6546 GB, free: 32.36 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.107e-05/0.009937, allocations: 66.83 kB / 0.6546 GB, free: 32.29 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 3.63e-05/0.009973, allocations: 6.375 kB / 0.6546 GB, free: 32.28 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.01, allocations: 15.61 kB / 0.6546 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of SimCode: time 1.052e-06/0.01001, allocations: 7.5 kB / 0.6547 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of Templates: time 0.002996/0.013, allocations: 1.253 MB / 0.6559 GB, free: 32.14 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_GentamicineSimple.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.99821116682142]