Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.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.001039/0.001039, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001082/0.001082, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.033/1.033, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.64/1.64, allocations: 273.5 MB / 0.522 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.DevModels.PKTwoCompartmentModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel") translateModel(Pharmacolibrary.DevModels.PKTwoCompartmentModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 0.6482 GB, free: 38.5 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.893e-05/2.038e-05, allocations: 5.406 kB / 0.6482 GB, free: 38.5 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.DevModels.PKTwoCompartmentModel): time 0.00235/0.00237, allocations: 2.379 MB / 0.6505 GB, free: 36.95 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.0007471/0.003117, allocations: 0.6103 MB / 0.6511 GB, free: 36.54 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.526e-05/0.003203, allocations: 4.906 kB / 0.6511 GB, free: 36.54 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 5.46e-05/0.003257, allocations: 37.45 kB / 0.6511 GB, free: 36.52 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.00343, allocations: 71.22 kB / 0.6512 GB, free: 36.49 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.003589, allocations: 65.05 kB / 0.6513 GB, free: 36.45 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.000222/0.003811, allocations: 300.5 kB / 0.6515 GB, free: 36.33 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.003938, allocations: 50.83 kB / 0.6516 GB, free: 36.3 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.004097, allocations: 155.6 kB / 0.6517 GB, free: 36.24 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.004229, allocations: 82.31 kB / 0.6518 GB, free: 36.21 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.004263, allocations: 22.69 kB / 0.6518 GB, free: 36.21 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.749e-05/0.00429, allocations: 23.81 kB / 0.6519 GB, free: 36.21 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 3.56e-05/0.004326, allocations: 45.16 kB / 0.6519 GB, free: 36.18 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 7.49e-05/0.004401, allocations: 97.91 kB / 0.652 GB, free: 36.14 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.00458, allocations: 179.9 kB / 0.6522 GB, free: 36.05 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.004583, allocations: 0 / 0.6522 GB, free: 36.05 MB / 0.5262 GB Notification: Performance of FrontEnd: time 6.21e-07/0.004583, allocations: 0 / 0.6522 GB, free: 36.05 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.004587, allocations: 5.406 kB / 0.6522 GB, free: 36.05 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0005344/0.005122, allocations: 0.6151 MB / 0.6528 GB, free: 35.49 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.005154, allocations: 10.09 kB / 0.6528 GB, free: 35.49 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.69e-05/0.005211, allocations: 41.38 kB / 0.6528 GB, free: 35.48 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.005346, allocations: 174.5 kB / 0.653 GB, free: 35.31 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.005365, allocations: 12.5 kB / 0.653 GB, free: 35.3 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.005395, allocations: 29.52 kB / 0.653 GB, free: 35.29 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.005592, allocations: 202.4 kB / 0.6532 GB, free: 35.16 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.005604, allocations: 0 / 0.6532 GB, free: 35.16 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.005618, allocations: 9.625 kB / 0.6532 GB, free: 35.16 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.005624, allocations: 3.938 kB / 0.6532 GB, free: 35.16 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.005734, allocations: 144.8 kB / 0.6534 GB, free: 35.08 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004642/0.006198, allocations: 475.3 kB / 0.6538 GB, free: 34.74 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.00635, allocations: 175.9 kB / 0.654 GB, free: 34.62 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.52e-05/0.006405, allocations: 100.3 kB / 0.6541 GB, free: 34.54 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.006414, allocations: 7.094 kB / 0.6541 GB, free: 34.54 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/0.006589, allocations: 315.7 kB / 0.6544 GB, free: 34.27 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=31): time 1.933e-06/0.006591, allocations: 0 / 0.6544 GB, free: 34.27 MB / 0.5262 GB Notification: Performance of matching and sorting (n=33): time 0.0008285/0.007419, allocations: 0.8448 MB / 0.6552 GB, free: 33.67 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.007476, allocations: 222.5 kB / 0.6554 GB, free: 33.41 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.793e-05/0.007564, allocations: 212 kB / 0.6556 GB, free: 33.23 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.007581, allocations: 37.8 kB / 0.6557 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.601e-05/0.007627, allocations: 169.1 kB / 0.6558 GB, free: 33.04 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/0.007672, allocations: 112 kB / 0.6559 GB, free: 32.95 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-05/0.007736, allocations: 70.75 kB / 0.656 GB, free: 32.91 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.588e-05/0.007792, allocations: 0.5037 MB / 0.6565 GB, free: 32.4 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.956e-05/0.007862, allocations: 148.1 kB / 0.6566 GB, free: 32.29 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.007962, allocations: 260.7 kB / 0.6569 GB, free: 32.02 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.008238, allocations: 459.2 kB / 0.6573 GB, free: 31.6 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.008241, allocations: 1.094 kB / 0.6573 GB, free: 31.6 MB / 0.5262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004238/0.008665, allocations: 431.7 kB / 0.6577 GB, free: 31.31 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.28e-05/0.008707, allocations: 94.38 kB / 0.6578 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.008715, allocations: 2.188 kB / 0.6578 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.008731, allocations: 7.125 kB / 0.6578 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.008934, allocations: 70.59 kB / 0.6579 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.008942, allocations: 4.312 kB / 0.6579 GB, free: 31.21 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.708e-05/0.00904, allocations: 17.59 kB / 0.6579 GB, free: 31.2 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.009062, allocations: 17.75 kB / 0.6579 GB, free: 31.2 MB / 0.5262 GB Warning: Assuming fixed start value for the following 10 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real intestine.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real blood.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real intestine.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real intestine.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real blood.rising:DISCRETE(fixed = true protected = true ) type: Boolean intestine.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.intestine.Cmin,intestine.Cmin,$PRE.intestine.Cmax,intestine.Cmax,$PRE.blood.Cmin,blood.Cmin,$PRE.blood.Cmax,blood.Cmax,$PRE.blood.rising,$PRE.intestine.rising,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,blood.rising,intestine.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 3 * 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.0001806/0.009243, allocations: 279.4 kB / 0.6582 GB, free: 30.94 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.009281, allocations: 38.56 kB / 0.6582 GB, free: 30.93 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.009313, allocations: 22.48 kB / 0.6583 GB, free: 30.91 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.009315, allocations: 6.75 kB / 0.6583 GB, free: 30.91 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-06/0.009317, allocations: 0 / 0.6583 GB, free: 30.91 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.009322, allocations: 3.375 kB / 0.6583 GB, free: 30.91 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.009779, allocations: 0.6764 MB / 0.6589 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.009781, allocations: 3.938 kB / 0.6589 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.009926, allocations: 51.44 kB / 0.659 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.009929, allocations: 1.406 kB / 0.659 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.009943, allocations: 10 kB / 0.659 GB, free: 30.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.009946, allocations: 1.438 kB / 0.659 GB, free: 30.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.009948, allocations: 3.875 kB / 0.659 GB, free: 30.4 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/0.01031, allocations: 0.6394 MB / 0.6596 GB, free: 29.95 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 1.881e-05/0.01033, allocations: 19.69 kB / 0.6597 GB, free: 29.94 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.01036, allocations: 9.562 kB / 0.6597 GB, free: 29.93 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.36e-05/0.01045, allocations: 15.58 kB / 0.6597 GB, free: 29.93 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.466e-05/0.0105, allocations: 26.73 kB / 0.6597 GB, free: 29.93 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.01051, allocations: 5.656 kB / 0.6597 GB, free: 29.93 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 4.559e-05/0.01056, allocations: 156.7 kB / 0.6599 GB, free: 29.8 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01056, allocations: 1.406 kB / 0.6599 GB, free: 29.8 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.0002163/0.01077, allocations: 76.72 kB / 0.6599 GB, free: 29.79 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (periodicDose.TotalCumulativeMass,periodicDose.variableDose.TotalCumulativeMass,intestine.C,intestine.AUC,blood.C,blood.AUC) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,periodicDose.pulse.T_start,periodicDose.pulse.count,intestine.Cmax,intestine.Cmin,intestine.rising,blood.Cmax,blood.Cmin,blood.rising) * Number of discrete states: 11 (periodicDose.pulse.count,blood.Cmin,$whenCondition3,blood.Cmax,$whenCondition2,blood.rising,intestine.Cmin,$whenCondition5,intestine.Cmax,$whenCondition4,intestine.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 2 * 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 8.781e-05/0.01086, allocations: 118.1 kB / 0.66 GB, free: 29.7 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0002641/0.01113, allocations: 470.6 kB / 0.6605 GB, free: 29.32 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01113, allocations: 1.406 kB / 0.6605 GB, free: 29.32 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.01124, allocations: 261.7 kB / 0.6607 GB, free: 29.1 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.01152, allocations: 59 kB / 0.6608 GB, free: 29.09 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.01277, allocations: 0.7547 MB / 0.6615 GB, free: 28.6 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.028e-05/0.01281, allocations: 82.05 kB / 0.6616 GB, free: 28.53 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 6.766e-05/0.01288, allocations: 23.5 kB / 0.6616 GB, free: 28.52 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.01303, allocations: 146.9 kB / 0.6618 GB, free: 28.45 MB / 0.5262 GB Notification: Performance of SimCode: time 9.62e-07/0.01303, allocations: 0 / 0.6618 GB, free: 28.45 MB / 0.5262 GB Notification: Performance of Templates: time 0.005313/0.01834, allocations: 3.846 MB / 0.6655 GB, free: 28.08 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.sim & ./Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.DevModels.PKTwoCompartmentModel.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.852603120729327]