Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.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.001326/0.001326, allocations: 93.06 kB / 19.65 MB, free: 280 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.001613/0.001613, allocations: 173 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 0.979/0.979, allocations: 177.2 MB / 203.4 MB, free: 5.633 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.601/1.601, allocations: 273.5 MB / 0.5209 GB, free: 14.78 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.DevModels.SingleDoseLumen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen") translateModel(Pharmacolibrary.DevModels.SingleDoseLumen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=499,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 0.6469 GB, free: 38.7 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.596e-05/1.763e-05, allocations: 5.125 kB / 0.647 GB, free: 38.7 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.SingleDoseLumen): time 0.002414/0.002432, allocations: 2.947 MB / 0.6498 GB, free: 36.8 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0009345/0.003366, allocations: 0.7423 MB / 0.6506 GB, free: 36.3 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.618e-05/0.003452, allocations: 3.969 kB / 0.6506 GB, free: 36.3 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 6.647e-05/0.003519, allocations: 45.17 kB / 0.6506 GB, free: 36.28 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002373/0.003756, allocations: 119.1 kB / 0.6507 GB, free: 36.23 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.003955, allocations: 93.38 kB / 0.6508 GB, free: 36.18 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.000264/0.004219, allocations: 418.2 kB / 0.6512 GB, free: 35.97 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.004484, allocations: 218.7 kB / 0.6514 GB, free: 35.84 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.004697, allocations: 248.9 kB / 0.6516 GB, free: 35.74 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001792/0.004876, allocations: 154.9 kB / 0.6518 GB, free: 35.69 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.004922, allocations: 34.56 kB / 0.6518 GB, free: 35.69 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.362e-05/0.004966, allocations: 33.91 kB / 0.6519 GB, free: 35.69 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 4.334e-05/0.005009, allocations: 81.31 kB / 0.6519 GB, free: 35.64 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 9.313e-05/0.005102, allocations: 131.7 kB / 0.6521 GB, free: 35.58 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.005332, allocations: 263.8 kB / 0.6523 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.005333, allocations: 0 / 0.6523 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of FrontEnd: time 6.51e-07/0.005334, allocations: 3.469 kB / 0.6523 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.005339, allocations: 0 / 0.6523 GB, free: 35.46 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.0006266/0.005965, allocations: 0.6676 MB / 0.653 GB, free: 34.89 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.006, allocations: 10.03 kB / 0.653 GB, free: 34.89 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.15e-05/0.006082, allocations: 55.06 kB / 0.653 GB, free: 34.87 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.006275, allocations: 214.2 kB / 0.6532 GB, free: 34.68 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.0063, allocations: 20.62 kB / 0.6533 GB, free: 34.67 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.006341, allocations: 33.62 kB / 0.6533 GB, free: 34.66 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.006707, allocations: 355.4 kB / 0.6536 GB, free: 34.44 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.006723, allocations: 12.11 kB / 0.6536 GB, free: 34.43 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.006748, allocations: 12.41 kB / 0.6537 GB, free: 34.43 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.006756, allocations: 7.5 kB / 0.6537 GB, free: 34.43 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.006984, allocations: 166 kB / 0.6538 GB, free: 34.38 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008614/0.007845, allocations: 0.8264 MB / 0.6546 GB, free: 33.79 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003184/0.008164, allocations: 181.6 kB / 0.6548 GB, free: 33.69 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.008274, allocations: 84.89 kB / 0.6549 GB, free: 33.64 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.008296, allocations: 5 kB / 0.6549 GB, free: 33.64 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.008529, allocations: 243.5 kB / 0.6551 GB, free: 33.46 MB / 0.5262 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001339/0.008663, allocations: 38.19 kB / 0.6552 GB, free: 33.45 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=30): time 1.694e-06/0.008664, allocations: 0 / 0.6552 GB, free: 33.45 MB / 0.5262 GB Notification: Performance of matching and sorting (n=31): time 0.001031/0.009695, allocations: 0.7383 MB / 0.6559 GB, free: 32.98 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.009727, allocations: 137.4 kB / 0.656 GB, free: 32.82 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.009838, allocations: 244.8 kB / 0.6562 GB, free: 32.63 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.009855, allocations: 33.89 kB / 0.6563 GB, free: 32.59 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 5.599e-05/0.009911, allocations: 211.8 kB / 0.6565 GB, free: 32.4 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.009959, allocations: 114.7 kB / 0.6566 GB, free: 32.31 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.09e-05/0.01003, allocations: 70.86 kB / 0.6566 GB, free: 32.27 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.405e-05/0.01008, allocations: 0.509 MB / 0.6571 GB, free: 31.76 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.01022, allocations: 130.4 kB / 0.6573 GB, free: 31.67 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.01038, allocations: 269.4 kB / 0.6575 GB, free: 31.4 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.0107, allocations: 459.7 kB / 0.658 GB, free: 31.02 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01071, allocations: 1.406 kB / 0.658 GB, free: 31.02 MB / 0.5262 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0003576/0.01106, allocations: 417.7 kB / 0.6584 GB, free: 30.78 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.01109, allocations: 66.62 kB / 0.6584 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.0111, allocations: 6.578 kB / 0.6584 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.01111, allocations: 4.156 kB / 0.6584 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.01133, allocations: 90.58 kB / 0.6585 GB, free: 30.71 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.01134, allocations: 8.234 kB / 0.6585 GB, free: 30.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.01144, allocations: 24.06 kB / 0.6586 GB, free: 30.7 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.01146, allocations: 16.69 kB / 0.6586 GB, free: 30.69 MB / 0.5262 GB Warning: Assuming fixed start value for the following 8 variables: singleDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real singleDose.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real GILumen.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real GIT.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real artery.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real GILumen.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real GILumen.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real GILumen.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.GILumen.Cmin,GILumen.Cmin,$PRE.GILumen.Cmax,GILumen.Cmax,$PRE.GILumen.rising,$PRE.singleDose.pulse.count,$PRE.singleDose.pulse.T_start,GILumen.rising,singleDose.pulse.count,singleDose.pulse.T_start,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 2 * 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.0001401/0.0116, allocations: 245.5 kB / 0.6588 GB, free: 30.48 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.01164, allocations: 38.14 kB / 0.6588 GB, free: 30.46 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003059/0.01195, allocations: 311.8 kB / 0.6591 GB, free: 30.29 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.01195, allocations: 2.781 kB / 0.6591 GB, free: 30.29 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01195, allocations: 0 / 0.6591 GB, free: 30.29 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.01196, allocations: 5.078 kB / 0.6591 GB, free: 30.29 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000459/0.01242, allocations: 0.6402 MB / 0.6598 GB, free: 29.84 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.01242, allocations: 3.938 kB / 0.6598 GB, free: 29.84 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.01258, allocations: 44.7 kB / 0.6598 GB, free: 29.84 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.01258, allocations: 1.375 kB / 0.6598 GB, free: 29.84 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.0126, allocations: 11.64 kB / 0.6598 GB, free: 29.83 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.0126, allocations: 1.406 kB / 0.6598 GB, free: 29.83 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.0126, allocations: 0 / 0.6598 GB, free: 29.83 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.01297, allocations: 0.5399 MB / 0.6604 GB, free: 29.47 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.951e-05/0.01299, allocations: 18.19 kB / 0.6604 GB, free: 29.46 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.01303, allocations: 16.14 kB / 0.6604 GB, free: 29.45 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.396e-05/0.01312, allocations: 7 kB / 0.6604 GB, free: 29.45 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.01318, allocations: 29.06 kB / 0.6604 GB, free: 29.44 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.01319, allocations: 10.69 kB / 0.6604 GB, free: 29.44 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 6.119e-05/0.01325, allocations: 186.8 kB / 0.6606 GB, free: 29.3 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.01325, allocations: 0 / 0.6606 GB, free: 29.3 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002192/0.01347, allocations: 82.16 kB / 0.6607 GB, free: 29.3 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (singleDose.TotalCumulativeMass,singleDose.variableDose.TotalCumulativeMass,GILumen.C,GILumen.AUC,GIT.M,GIT.AUC,artery.M,artery.AUC) * Number of discrete variables: 8 ($whenCondition3,$whenCondition1,$whenCondition2,singleDose.pulse.T_start,singleDose.pulse.count,GILumen.Cmax,GILumen.Cmin,GILumen.rising) * Number of discrete states: 6 (singleDose.pulse.count,GILumen.Cmin,$whenCondition2,GILumen.Cmax,$whenCondition1,GILumen.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.947e-05/0.01354, allocations: 109.6 kB / 0.6608 GB, free: 29.2 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0003011/0.01384, allocations: 386.8 kB / 0.6612 GB, free: 28.94 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.01384, allocations: 2.312 kB / 0.6612 GB, free: 28.94 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.01396, allocations: 183.4 kB / 0.6613 GB, free: 28.81 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.01431, allocations: 76.67 kB / 0.6614 GB, free: 28.8 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.0158, allocations: 0.8722 MB / 0.6623 GB, free: 28.24 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.662e-05/0.01585, allocations: 94.16 kB / 0.6624 GB, free: 28.16 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 8.442e-05/0.01593, allocations: 35.41 kB / 0.6624 GB, free: 28.15 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.809e-05/0.016, allocations: 33.83 kB / 0.6624 GB, free: 28.14 MB / 0.5262 GB Notification: Performance of SimCode: time 7.62e-07/0.016, allocations: 0 / 0.6624 GB, free: 28.14 MB / 0.5262 GB Notification: Performance of Templates: time 0.005899/0.0219, allocations: 4.397 MB / 0.6667 GB, free: 27.75 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.SingleDoseLumen.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.385599330998957]