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.00106/0.00106, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001721/0.001721, allocations: 169 kB / 23.27 MB, free: 1.227 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.9647/0.9647, allocations: 177.2 MB / 203.7 MB, free: 5.52 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.522/1.522, allocations: 273.5 MB / 0.5212 GB, free: 14.69 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.633e-06/1.633e-06, allocations: 0 / 0.6474 GB, free: 38.46 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.559e-05/1.722e-05, allocations: 2.312 kB / 0.6474 GB, free: 38.46 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel): time 0.001953/0.00197, allocations: 1.731 MB / 0.6491 GB, free: 37.32 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0002274/0.002198, allocations: 87.89 kB / 0.6492 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.062e-05/0.002248, allocations: 2.375 kB / 0.6492 GB, free: 37.26 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 9.093e-05/0.002339, allocations: 12.83 kB / 0.6492 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 8.701e-05/0.002426, allocations: 22.36 kB / 0.6492 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 8.779e-05/0.002514, allocations: 24.05 kB / 0.6492 GB, free: 37.23 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.002655, allocations: 85.17 kB / 0.6493 GB, free: 37.21 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.468e-05/0.00274, allocations: 17.67 kB / 0.6493 GB, free: 37.21 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.064e-05/0.0028, allocations: 41.47 kB / 0.6494 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.194e-05/0.002872, allocations: 25.11 kB / 0.6494 GB, free: 37.19 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.002892, allocations: 7 kB / 0.6494 GB, free: 37.19 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.114e-05/0.002903, allocations: 5.25 kB / 0.6494 GB, free: 37.19 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.145e-05/0.002924, allocations: 14.22 kB / 0.6494 GB, free: 37.18 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 3.511e-05/0.00296, allocations: 28.77 kB / 0.6494 GB, free: 37.18 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 9.221e-05/0.003052, allocations: 53.28 kB / 0.6495 GB, free: 37.16 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.003053, allocations: 1.281 kB / 0.6495 GB, free: 37.16 MB / 0.5262 GB Notification: Performance of FrontEnd: time 7.02e-07/0.003054, allocations: 0 / 0.6495 GB, free: 37.16 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 3.045e-06/0.003057, allocations: 0 / 0.6495 GB, free: 37.16 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.000296/0.003353, allocations: 423.7 kB / 0.6499 GB, free: 36.73 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.003389, allocations: 9.25 kB / 0.6499 GB, free: 36.73 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.048e-05/0.003419, allocations: 12.86 kB / 0.6499 GB, free: 36.73 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.307e-05/0.003502, allocations: 129.5 kB / 0.65 GB, free: 36.59 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.003511, allocations: 8.062 kB / 0.65 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.00353, allocations: 9.891 kB / 0.6501 GB, free: 36.58 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.475e-05/0.003615, allocations: 84.86 kB / 0.6501 GB, free: 36.51 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.003624, allocations: 2.875 kB / 0.6501 GB, free: 36.51 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.003632, allocations: 5.75 kB / 0.6501 GB, free: 36.51 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.003637, allocations: 1.688 kB / 0.6501 GB, free: 36.51 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.156e-05/0.003689, allocations: 64.92 kB / 0.6502 GB, free: 36.47 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002654/0.003954, allocations: 291.3 kB / 0.6505 GB, free: 36.2 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.905e-05/0.004023, allocations: 83.52 kB / 0.6506 GB, free: 36.13 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.416e-05/0.004047, allocations: 52.75 kB / 0.6506 GB, free: 36.08 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.004055, allocations: 6.016 kB / 0.6506 GB, free: 36.08 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.637e-05/0.004151, allocations: 174.3 kB / 0.6508 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=12): time 1.072e-06/0.004152, allocations: 2.844 kB / 0.6508 GB, free: 35.92 MB / 0.5262 GB Notification: Performance of matching and sorting (n=13): time 0.0004409/0.004593, allocations: 452.5 kB / 0.6512 GB, free: 35.55 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.004622, allocations: 138.7 kB / 0.6514 GB, free: 35.39 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.924e-05/0.004671, allocations: 173.7 kB / 0.6515 GB, free: 35.22 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 7.874e-06/0.004679, allocations: 27.61 kB / 0.6515 GB, free: 35.19 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 2.041e-05/0.004699, allocations: 133.2 kB / 0.6517 GB, free: 35.05 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.004728, allocations: 48.78 kB / 0.6517 GB, free: 35.02 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.197e-05/0.00476, allocations: 36.42 kB / 0.6518 GB, free: 34.99 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.215e-05/0.004812, allocations: 0.4899 MB / 0.6522 GB, free: 34.49 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.877e-05/0.004841, allocations: 53.31 kB / 0.6523 GB, free: 34.44 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.932e-05/0.00488, allocations: 97.98 kB / 0.6524 GB, free: 34.34 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.74e-05/0.004967, allocations: 194.4 kB / 0.6526 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.004969, allocations: 3.438 kB / 0.6526 GB, free: 34.16 MB / 0.5262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001142/0.005083, allocations: 173.1 kB / 0.6527 GB, free: 34.04 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.005102, allocations: 35.33 kB / 0.6528 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.005107, allocations: 2.375 kB / 0.6528 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.005117, allocations: 1.688 kB / 0.6528 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.154e-05/0.005198, allocations: 33.84 kB / 0.6528 GB, free: 34 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.005203, allocations: 9.766 kB / 0.6528 GB, free: 34 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.824e-05/0.005231, allocations: 1.562 kB / 0.6528 GB, free: 34 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.005238, allocations: 8.312 kB / 0.6528 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 9.757e-05/0.005336, allocations: 210.4 kB / 0.653 GB, free: 33.79 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.005349, allocations: 14.52 kB / 0.653 GB, free: 33.79 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.32e-05/0.005372, allocations: 14.81 kB / 0.653 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.005373, allocations: 0 / 0.653 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.005374, allocations: 0 / 0.653 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.005377, allocations: 1.312 kB / 0.653 GB, free: 33.77 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.005601, allocations: 432.8 kB / 0.6535 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.005602, allocations: 0 / 0.6535 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.98e-05/0.005662, allocations: 21.12 kB / 0.6535 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.005663, allocations: 0 / 0.6535 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.00567, allocations: 2.312 kB / 0.6535 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.00567, allocations: 1.469 kB / 0.6535 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.01e-07/0.005671, allocations: 0 / 0.6535 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001724/0.005843, allocations: 393.1 kB / 0.6539 GB, free: 33.09 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-06/0.00585, allocations: 4.812 kB / 0.6539 GB, free: 33.09 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.005863, allocations: 7.562 kB / 0.6539 GB, free: 33.09 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.494e-05/0.005898, allocations: 1.562 kB / 0.6539 GB, free: 33.09 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.731e-05/0.005926, allocations: 11.61 kB / 0.6539 GB, free: 33.08 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.005931, allocations: 3.156 kB / 0.6539 GB, free: 33.08 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 1.972e-05/0.00595, allocations: 130.9 kB / 0.654 GB, free: 32.96 MB / 0.5262 GB Notification: Performance of sort global known variables: time 5e-08/0.00595, allocations: 0 / 0.654 GB, free: 32.96 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0001522/0.006103, allocations: 27.75 kB / 0.654 GB, free: 32.96 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 5.959e-05/0.006162, allocations: 98.38 kB / 0.6541 GB, free: 32.87 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0001176/0.00628, allocations: 186.2 kB / 0.6543 GB, free: 32.72 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.006281, allocations: 2.172 kB / 0.6543 GB, free: 32.72 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 4.658e-05/0.006327, allocations: 127.3 kB / 0.6544 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.006522, allocations: 24.73 kB / 0.6545 GB, free: 32.61 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007935/0.007316, allocations: 415.9 kB / 0.6549 GB, free: 32.34 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.736e-05/0.007343, allocations: 68.83 kB / 0.6549 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 2.536e-05/0.007368, allocations: 8.375 kB / 0.6549 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.083e-05/0.007439, allocations: 102.4 kB / 0.655 GB, free: 32.2 MB / 0.5262 GB Notification: Performance of SimCode: time 1.032e-06/0.00744, allocations: 0 / 0.655 GB, free: 32.2 MB / 0.5262 GB Notification: Performance of Templates: time 0.002619/0.01006, allocations: 1.379 MB / 0.6564 GB, free: 32.05 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.579321740660816]