Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.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.001971/0.001971, allocations: 89.47 kB / 19.44 MB, free: 340 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.002332/0.002332, allocations: 169.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.877/1.877, allocations: 177.1 MB / 203.1 MB, free: 5.531 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 7.52/7.52, allocations: 274.5 MB / 0.5215 GB, free: 14.13 MB / 458.7 MB " [Timeout remaining time 172] 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_LithiumCarbonate,tolerance=1e-09,outputFormat="empty",numberOfIntervals=864000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate") translateModel(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate,tolerance=1e-09,outputFormat="empty",numberOfIntervals=864000,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.306e-06/3.306e-06, allocations: 3.188 kB / 0.6472 GB, free: 39.06 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.269e-05/3.6e-05, allocations: 2.312 kB / 0.6472 GB, free: 39.06 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.005497/0.005533, allocations: 2.1 MB / 0.6493 GB, free: 37.67 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.00154/0.007074, allocations: 0.5445 MB / 0.6498 GB, free: 37.31 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.007223, allocations: 7.75 kB / 0.6498 GB, free: 37.31 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.008845, allocations: 19.03 kB / 0.6498 GB, free: 37.3 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003644/0.009209, allocations: 56.34 kB / 0.6499 GB, free: 37.27 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003933/0.009603, allocations: 47.2 kB / 0.6499 GB, free: 37.25 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0005562/0.01016, allocations: 206 kB / 0.6501 GB, free: 37.18 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.01038, allocations: 29.94 kB / 0.6501 GB, free: 37.16 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005775/0.01096, allocations: 108.7 kB / 0.6503 GB, free: 37.12 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.01122, allocations: 58.78 kB / 0.6503 GB, free: 37.1 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 6.616e-05/0.01129, allocations: 15.31 kB / 0.6503 GB, free: 37.1 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.01135, allocations: 17.75 kB / 0.6503 GB, free: 37.1 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 7.071e-05/0.01142, allocations: 22.69 kB / 0.6504 GB, free: 37.08 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.01158, allocations: 63.08 kB / 0.6504 GB, free: 37.05 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005026/0.01209, allocations: 173 kB / 0.6506 GB, free: 36.98 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.0121, allocations: 3.594 kB / 0.6506 GB, free: 36.98 MB / 0.5262 GB Notification: Performance of FrontEnd: time 2.735e-06/0.0121, allocations: 0 / 0.6506 GB, free: 36.98 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 9.989e-06/0.01211, allocations: 0.9375 kB / 0.6506 GB, free: 36.98 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.004381/0.01649, allocations: 0.5365 MB / 0.6511 GB, free: 36.48 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 8.98e-05/0.01658, allocations: 8.094 kB / 0.6511 GB, free: 36.48 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005268/0.01711, allocations: 28.69 kB / 0.6512 GB, free: 36.47 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.01817, allocations: 165.3 kB / 0.6513 GB, free: 36.3 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005018/0.01867, allocations: 10.25 kB / 0.6513 GB, free: 36.3 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-05/0.01875, allocations: 14.59 kB / 0.6513 GB, free: 36.3 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.01982, allocations: 158.3 kB / 0.6515 GB, free: 36.2 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003432/0.02017, allocations: 8.781 kB / 0.6515 GB, free: 36.2 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.0202, allocations: 4 kB / 0.6515 GB, free: 36.2 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.02021, allocations: 1.875 kB / 0.6515 GB, free: 36.2 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008457/0.02105, allocations: 123.5 kB / 0.6516 GB, free: 36.14 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.023, allocations: 438.2 kB / 0.652 GB, free: 35.79 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/0.02343, allocations: 173.8 kB / 0.6522 GB, free: 35.69 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.0236, allocations: 89.58 kB / 0.6523 GB, free: 35.63 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.02362, allocations: 2.219 kB / 0.6523 GB, free: 35.63 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006965/0.02432, allocations: 232.9 kB / 0.6525 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=20): time 2.214e-06/0.02432, allocations: 0 / 0.6525 GB, free: 35.46 MB / 0.5262 GB Notification: Performance of matching and sorting (n=21): time 0.002936/0.02726, allocations: 0.6804 MB / 0.6532 GB, free: 35 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.02737, allocations: 134.7 kB / 0.6533 GB, free: 34.84 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.02762, allocations: 240.2 kB / 0.6535 GB, free: 34.64 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.02764, allocations: 29.73 kB / 0.6536 GB, free: 34.61 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.02775, allocations: 160.4 kB / 0.6537 GB, free: 34.46 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 8.394e-05/0.02783, allocations: 79.58 kB / 0.6538 GB, free: 34.4 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.02794, allocations: 61.95 kB / 0.6538 GB, free: 34.36 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.02811, allocations: 0.5114 MB / 0.6543 GB, free: 33.85 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.02833, allocations: 148.2 kB / 0.6545 GB, free: 33.74 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.02864, allocations: 231.1 kB / 0.6547 GB, free: 33.53 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006988/0.02934, allocations: 418.4 kB / 0.6551 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.02934, allocations: 0 / 0.6551 GB, free: 33.2 MB / 0.5262 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006993/0.03004, allocations: 375.6 kB / 0.6555 GB, free: 32.96 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 6.967e-05/0.03011, allocations: 64.17 kB / 0.6555 GB, free: 32.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.03012, allocations: 1.25 kB / 0.6555 GB, free: 32.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008544/0.03098, allocations: 2.25 kB / 0.6555 GB, free: 32.9 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.03126, allocations: 54.83 kB / 0.6556 GB, free: 32.89 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/0.03128, allocations: 13.84 kB / 0.6556 GB, free: 32.89 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.03146, allocations: 18.19 kB / 0.6556 GB, free: 32.88 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.03149, allocations: 8.062 kB / 0.6556 GB, free: 32.88 MB / 0.5262 GB Warning: Assuming fixed start value for the following 6 variables: central.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real 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 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: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,$PRE.central.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,central.rising,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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.000823/0.03231, allocations: 236.9 kB / 0.6558 GB, free: 32.66 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.475e-05/0.03239, allocations: 21.78 kB / 0.6559 GB, free: 32.66 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.629e-05/0.03248, allocations: 24.16 kB / 0.6559 GB, free: 32.64 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.03249, allocations: 2.25 kB / 0.6559 GB, free: 32.64 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.0325, allocations: 4.406 kB / 0.6559 GB, free: 32.64 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.03252, allocations: 7.734 kB / 0.6559 GB, free: 32.64 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.03371, allocations: 0.5801 MB / 0.6565 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.03371, allocations: 0.5625 kB / 0.6565 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.03393, allocations: 34.27 kB / 0.6565 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.03394, allocations: 1.125 kB / 0.6565 GB, free: 32.19 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/0.03397, allocations: 10.58 kB / 0.6565 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.03397, allocations: 0.5625 kB / 0.6565 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.03397, allocations: 0.5625 kB / 0.6565 GB, free: 32.18 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.03501, allocations: 0.5257 MB / 0.657 GB, free: 31.82 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.03505, allocations: 19.72 kB / 0.657 GB, free: 31.81 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.03509, allocations: 9.188 kB / 0.6571 GB, free: 31.81 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.03523, allocations: 16.03 kB / 0.6571 GB, free: 31.8 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004438/0.03567, allocations: 22.81 kB / 0.6571 GB, free: 31.8 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.0357, allocations: 8.312 kB / 0.6571 GB, free: 31.79 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0001321/0.03583, allocations: 172.9 kB / 0.6573 GB, free: 31.66 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7e-08/0.03583, allocations: 0 / 0.6573 GB, free: 31.66 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.000406/0.03624, allocations: 50.34 kB / 0.6573 GB, free: 31.65 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.variableDose.TotalCumulativeMass) * Number of discrete variables: 8 ($whenCondition1,$whenCondition2,$whenCondition3,central.Cmax,central.Cmin,central.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 6 (periodicDose.pulse.count,central.Cmin,$whenCondition3,central.Cmax,$whenCondition2,central.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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 0.001081/0.03732, allocations: 113.9 kB / 0.6574 GB, free: 31.56 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.001261/0.03858, allocations: 393.8 kB / 0.6578 GB, free: 31.27 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.03858, allocations: 0 / 0.6578 GB, free: 31.27 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.03888, allocations: 185.5 kB / 0.658 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.03944, allocations: 52.83 kB / 0.658 GB, free: 31.13 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.04085, allocations: 0.561 MB / 0.6586 GB, free: 30.76 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.041, allocations: 112.3 kB / 0.6587 GB, free: 30.68 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 9.352e-05/0.04109, allocations: 21.88 kB / 0.6587 GB, free: 30.68 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.054e-05/0.04117, allocations: 22.28 kB / 0.6587 GB, free: 30.67 MB / 0.5262 GB Notification: Performance of SimCode: time 9.92e-07/0.04117, allocations: 0 / 0.6587 GB, free: 30.67 MB / 0.5262 GB Notification: Performance of Templates: time 0.01512/0.05629, allocations: 2.725 MB / 0.6614 GB, free: 30.44 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PK_1C_LithiumCarbonate.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 14.714273088960908]