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.001897/0.001897, allocations: 85.48 kB / 19.44 MB, free: 344 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.002105/0.002105, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.677/1.677, allocations: 177.1 MB / 203.1 MB, free: 5.609 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 6.571/6.571, allocations: 274.5 MB / 0.5215 GB, free: 14.19 MB / 458.7 MB " [Timeout remaining time 173] 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 2.144e-06/2.144e-06, allocations: 0 / 0.6472 GB, free: 39.09 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.069e-05/3.283e-05, allocations: 5.266 kB / 0.6472 GB, free: 39.08 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKOneCompartmentSimplestModel): time 0.002923/0.002956, allocations: 1.704 MB / 0.6489 GB, free: 37.94 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0003177/0.003274, allocations: 90.88 kB / 0.649 GB, free: 37.88 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.186e-05/0.003336, allocations: 1.438 kB / 0.649 GB, free: 37.88 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.003454, allocations: 9.859 kB / 0.649 GB, free: 37.88 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.00357, allocations: 22.42 kB / 0.649 GB, free: 37.87 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00011/0.00368, allocations: 23.7 kB / 0.649 GB, free: 37.86 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.003889, allocations: 85.39 kB / 0.6491 GB, free: 37.84 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.004002, allocations: 12.3 kB / 0.6491 GB, free: 37.83 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.266e-05/0.004084, allocations: 44.33 kB / 0.6492 GB, free: 37.82 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.951e-05/0.004174, allocations: 21.36 kB / 0.6492 GB, free: 37.82 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.0042, allocations: 9.766 kB / 0.6492 GB, free: 37.82 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.007e-05/0.00422, allocations: 5.781 kB / 0.6492 GB, free: 37.82 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 2.692e-05/0.004247, allocations: 13.69 kB / 0.6492 GB, free: 37.81 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 5.932e-05/0.004306, allocations: 29.34 kB / 0.6492 GB, free: 37.8 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.004461, allocations: 66.98 kB / 0.6493 GB, free: 37.78 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.004464, allocations: 0 / 0.6493 GB, free: 37.78 MB / 0.5262 GB Notification: Performance of FrontEnd: time 6.41e-07/0.004464, allocations: 1.281 kB / 0.6493 GB, free: 37.78 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.004472, allocations: 1.719 kB / 0.6493 GB, free: 37.78 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.0005369/0.005009, allocations: 426.1 kB / 0.6497 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.005053, allocations: 10.22 kB / 0.6497 GB, free: 37.36 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.94e-05/0.005112, allocations: 16.41 kB / 0.6497 GB, free: 37.35 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.005258, allocations: 127.2 kB / 0.6498 GB, free: 37.21 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.005273, allocations: 5.125 kB / 0.6499 GB, free: 37.21 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.005304, allocations: 11.53 kB / 0.6499 GB, free: 37.2 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000156/0.00546, allocations: 107.3 kB / 0.65 GB, free: 37.12 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.005474, allocations: 1.656 kB / 0.65 GB, free: 37.12 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.005486, allocations: 6.156 kB / 0.65 GB, free: 37.12 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.005493, allocations: 2.031 kB / 0.65 GB, free: 37.12 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001416/0.005634, allocations: 75.03 kB / 0.65 GB, free: 37.07 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004311/0.006065, allocations: 317.3 kB / 0.6503 GB, free: 36.78 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.006217, allocations: 119.7 kB / 0.6505 GB, free: 36.69 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.406e-05/0.006271, allocations: 55.27 kB / 0.6505 GB, free: 36.64 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.006287, allocations: 3.906 kB / 0.6505 GB, free: 36.64 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.006478, allocations: 181.6 kB / 0.6507 GB, free: 36.47 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.006479, allocations: 0 / 0.6507 GB, free: 36.47 MB / 0.5262 GB Notification: Performance of matching and sorting (n=13): time 0.001497/0.007976, allocations: 0.5054 MB / 0.6512 GB, free: 36.07 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.008034, allocations: 136.5 kB / 0.6513 GB, free: 35.91 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.33e-05/0.008127, allocations: 167.7 kB / 0.6515 GB, free: 35.75 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.008144, allocations: 32.08 kB / 0.6515 GB, free: 35.71 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.113e-05/0.008185, allocations: 132.1 kB / 0.6516 GB, free: 35.58 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 4.611e-05/0.008231, allocations: 50.73 kB / 0.6517 GB, free: 35.54 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.206e-05/0.008283, allocations: 36.16 kB / 0.6517 GB, free: 35.51 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.008386, allocations: 0.5011 MB / 0.6522 GB, free: 35.01 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.008463, allocations: 69.19 kB / 0.6523 GB, free: 34.95 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.841e-05/0.008561, allocations: 115 kB / 0.6524 GB, free: 34.84 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.008767, allocations: 231.5 kB / 0.6526 GB, free: 34.65 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.008768, allocations: 0 / 0.6526 GB, free: 34.65 MB / 0.5262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002311/0.008999, allocations: 209.1 kB / 0.6528 GB, free: 34.51 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.009034, allocations: 37.77 kB / 0.6528 GB, free: 34.47 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.00904, allocations: 0 / 0.6528 GB, free: 34.47 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.009059, allocations: 3.25 kB / 0.6528 GB, free: 34.47 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.009204, allocations: 31.03 kB / 0.6529 GB, free: 34.47 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.009215, allocations: 8.938 kB / 0.6529 GB, free: 34.46 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.931e-05/0.009264, allocations: 7.188 kB / 0.6529 GB, free: 34.46 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.009275, allocations: 7.531 kB / 0.6529 GB, free: 34.46 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.0001703/0.009445, allocations: 214 kB / 0.6531 GB, free: 34.25 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.009469, allocations: 14.64 kB / 0.6531 GB, free: 34.25 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.009513, allocations: 10.66 kB / 0.6531 GB, free: 34.24 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.009516, allocations: 1.938 kB / 0.6531 GB, free: 34.24 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.00952, allocations: 1.594 kB / 0.6531 GB, free: 34.24 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.009524, allocations: 3.938 kB / 0.6531 GB, free: 34.23 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000392/0.009916, allocations: 477.4 kB / 0.6536 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.009918, allocations: 2.781 kB / 0.6536 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.01003, allocations: 20.12 kB / 0.6536 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.01003, allocations: 0 / 0.6536 GB, free: 33.83 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.01004, allocations: 10.94 kB / 0.6536 GB, free: 33.82 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.01004, allocations: 1.531 kB / 0.6536 GB, free: 33.82 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01005, allocations: 0 / 0.6536 GB, free: 33.82 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000352/0.0104, allocations: 430 kB / 0.654 GB, free: 33.49 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.371e-05/0.01041, allocations: 9.656 kB / 0.654 GB, free: 33.49 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.01045, allocations: 6.656 kB / 0.654 GB, free: 33.49 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.785e-05/0.01051, allocations: 7.156 kB / 0.654 GB, free: 33.48 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.225e-05/0.01057, allocations: 7.453 kB / 0.6541 GB, free: 33.48 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.01058, allocations: 11.66 kB / 0.6541 GB, free: 33.48 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 4.045e-05/0.01062, allocations: 132.4 kB / 0.6542 GB, free: 33.36 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.01062, allocations: 0 / 0.6542 GB, free: 33.36 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002365/0.01086, allocations: 28.12 kB / 0.6542 GB, free: 33.35 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 9.58e-05/0.01095, allocations: 104.9 kB / 0.6543 GB, free: 33.26 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0002541/0.01121, allocations: 216.7 kB / 0.6545 GB, free: 33.1 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.01121, allocations: 0 / 0.6545 GB, free: 33.1 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.01131, allocations: 143.4 kB / 0.6547 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.01164, allocations: 25.17 kB / 0.6547 GB, free: 32.97 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006563/0.0123, allocations: 380.9 kB / 0.6551 GB, free: 32.71 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.323e-05/0.01237, allocations: 88.73 kB / 0.6551 GB, free: 32.64 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 3.774e-05/0.01241, allocations: 9.938 kB / 0.6551 GB, free: 32.63 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.01244, allocations: 12.09 kB / 0.6552 GB, free: 32.62 MB / 0.5262 GB Notification: Performance of SimCode: time 4.01e-07/0.01244, allocations: 0 / 0.6552 GB, free: 32.62 MB / 0.5262 GB Notification: Performance of Templates: time 0.004915/0.01735, allocations: 1.235 MB / 0.6564 GB, free: 32.5 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: 12.116800050018355]