Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam.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.0009538/0.0009538, allocations: 91.55 kB / 20.19 MB, free: 4.348 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.001694/0.001694, allocations: 169 kB / 23.5 MB, free: 1.043 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.942/0.942, allocations: 177.1 MB / 203.8 MB, free: 5.66 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.525/1.525, allocations: 273.5 MB / 0.5213 GB, free: 14.92 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.PKPD_Midazolam,tolerance=1e-08,outputFormat="empty",numberOfIntervals=43200,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam") translateModel(Pharmacolibrary.Examples.PKPD_Midazolam,tolerance=1e-08,outputFormat="empty",numberOfIntervals=43200,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 0.647 GB, free: 38.71 MB / 0.5262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.112e-05/2.281e-05, allocations: 2.312 kB / 0.647 GB, free: 38.71 MB / 0.5262 GB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PKPD_Midazolam): time 0.002694/0.002717, allocations: 2.927 MB / 0.6499 GB, free: 36.82 MB / 0.5262 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.004154, allocations: 1.324 MB / 0.6511 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001539/0.004308, allocations: 7.438 kB / 0.6512 GB, free: 35.98 MB / 0.5262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005319/0.00484, allocations: 0.5345 MB / 0.6517 GB, free: 35.9 MB / 0.5262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005238/0.005364, allocations: 457.1 kB / 0.6521 GB, free: 35.79 MB / 0.5262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002641/0.005628, allocations: 183.9 kB / 0.6523 GB, free: 35.68 MB / 0.5262 GB Notification: Performance of NFFlatten.flatten: time 0.0004137/0.006042, allocations: 0.6267 MB / 0.6529 GB, free: 35.42 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.006183, allocations: 58.09 kB / 0.653 GB, free: 35.38 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.006447, allocations: 364 kB / 0.6533 GB, free: 35.26 MB / 0.5262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.006782, allocations: 421.1 kB / 0.6537 GB, free: 35.2 MB / 0.5262 GB Notification: Performance of NFPackage.collectConstants: time 5.758e-05/0.006839, allocations: 32.09 kB / 0.6537 GB, free: 35.2 MB / 0.5262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.006952, allocations: 74.17 kB / 0.6538 GB, free: 35.18 MB / 0.5262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.007058, allocations: 150.2 kB / 0.6539 GB, free: 35.11 MB / 0.5262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.007178, allocations: 151.5 kB / 0.6541 GB, free: 35.04 MB / 0.5262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004509/0.007628, allocations: 436.6 kB / 0.6545 GB, free: 34.85 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.007632, allocations: 0 / 0.6545 GB, free: 34.85 MB / 0.5262 GB Notification: Performance of FrontEnd: time 8.82e-07/0.007633, allocations: 0.5625 kB / 0.6545 GB, free: 34.85 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.00764, allocations: 0 / 0.6545 GB, free: 34.85 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001068/0.008709, allocations: 1.056 MB / 0.6555 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.008752, allocations: 8.938 kB / 0.6555 GB, free: 34.01 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/0.008898, allocations: 96.78 kB / 0.6556 GB, free: 33.96 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.009227, allocations: 367.3 kB / 0.656 GB, free: 33.68 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.009253, allocations: 19.03 kB / 0.656 GB, free: 33.67 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.009292, allocations: 25.25 kB / 0.656 GB, free: 33.66 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.009632, allocations: 314.2 kB / 0.6563 GB, free: 33.46 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.009647, allocations: 4.391 kB / 0.6563 GB, free: 33.46 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.009671, allocations: 6.938 kB / 0.6563 GB, free: 33.46 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.009681, allocations: 5.625 kB / 0.6563 GB, free: 33.46 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.009903, allocations: 178.9 kB / 0.6565 GB, free: 33.38 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.01076, allocations: 0.9933 MB / 0.6575 GB, free: 32.64 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.01104, allocations: 283.3 kB / 0.6578 GB, free: 32.44 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.01115, allocations: 140 kB / 0.6579 GB, free: 32.33 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.01117, allocations: 9.594 kB / 0.6579 GB, free: 32.33 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.01145, allocations: 403 kB / 0.6583 GB, free: 32.02 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=42): time 2.325e-06/0.01145, allocations: 0 / 0.6583 GB, free: 32.02 MB / 0.5262 GB Notification: Performance of matching and sorting (n=44): time 0.001231/0.01269, allocations: 1.301 MB / 0.6596 GB, free: 31.14 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.01274, allocations: 276.7 kB / 0.6598 GB, free: 30.82 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005066/0.01324, allocations: 0.7234 MB / 0.6605 GB, free: 30.5 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.01327, allocations: 39.33 kB / 0.6606 GB, free: 30.46 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.01341, allocations: 359.1 kB / 0.6609 GB, free: 30.17 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 6.754e-05/0.01348, allocations: 145.3 kB / 0.661 GB, free: 30.06 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.544e-05/0.01357, allocations: 89.11 kB / 0.6611 GB, free: 30.01 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.065e-05/0.01362, allocations: 0.4973 MB / 0.6616 GB, free: 29.52 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.01375, allocations: 181 kB / 0.6618 GB, free: 29.38 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.01392, allocations: 337.9 kB / 0.6621 GB, free: 29.05 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.01429, allocations: 0.5813 MB / 0.6627 GB, free: 28.53 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.01429, allocations: 1.438 kB / 0.6627 GB, free: 28.53 MB / 0.5262 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004996/0.01479, allocations: 0.5842 MB / 0.6633 GB, free: 28.17 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.01483, allocations: 94.8 kB / 0.6633 GB, free: 28.07 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.01484, allocations: 2.75 kB / 0.6633 GB, free: 28.07 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.01486, allocations: 5.625 kB / 0.6633 GB, free: 28.07 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.01512, allocations: 107.7 kB / 0.6635 GB, free: 28.06 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.01513, allocations: 7.094 kB / 0.6635 GB, free: 28.06 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.01528, allocations: 32.84 kB / 0.6635 GB, free: 28.05 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.0153, allocations: 19.53 kB / 0.6635 GB, free: 28.05 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 peripheral.AUC:VARIABLE(unit = \"kg.s/m3\" fixed = true ) \"area under curve\" type: Real 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 peripheral.Cmin:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real peripheral.Cmax:DISCRETE(min = -1e-9 unit = \"kg/m3\" fixed = true ) type: Real central.rising:DISCRETE(fixed = true protected = true ) type: Boolean peripheral.rising:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.central.Cmin,central.Cmin,$PRE.central.Cmax,central.Cmax,$PRE.peripheral.Cmin,peripheral.Cmin,$PRE.peripheral.Cmax,peripheral.Cmax,$PRE.CTT_MidazolamC.nextTimeEvent,$whenCondition2,CTT_MidazolamC.nextTimeEventScaled,$PRE.CTT_MidazolamC.nextTimeEventScaled,CTT_MidazolamC.nextTimeEvent,$PRE.CTT_MidazolamEffect_Epileptic.nextTimeEvent,$whenCondition1,CTT_MidazolamEffect_Epileptic.nextTimeEventScaled,$PRE.CTT_MidazolamEffect_Epileptic.nextTimeEventScaled,CTT_MidazolamEffect_Epileptic.nextTimeEvent,$PRE.central.rising,$PRE.peripheral.rising,$PRE.periodicDose.pulse.count,$PRE.periodicDose.pulse.T_start,central.rising,peripheral.rising,periodicDose.pulse.count,periodicDose.pulse.T_start,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 59 * 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.000219/0.01552, allocations: 312.8 kB / 0.6638 GB, free: 27.77 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.32e-05/0.0156, allocations: 91.33 kB / 0.6639 GB, free: 27.72 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002242/0.01582, allocations: 186.3 kB / 0.6641 GB, free: 27.62 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.01583, allocations: 4.344 kB / 0.6641 GB, free: 27.62 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.01583, allocations: 1.469 kB / 0.6641 GB, free: 27.62 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.547e-05/0.01588, allocations: 52.55 kB / 0.6641 GB, free: 27.59 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.825e-05/0.01593, allocations: 17.84 kB / 0.6641 GB, free: 27.58 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.01605, allocations: 20.44 kB / 0.6642 GB, free: 27.57 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.075e-05/0.01613, allocations: 49.47 kB / 0.6642 GB, free: 27.55 MB / 0.5262 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005576/0.01669, allocations: 0.8419 MB / 0.665 GB, free: 26.96 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006377/0.01732, allocations: 1.159 MB / 0.6662 GB, free: 26.1 MB / 0.5262 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001545/0.01748, allocations: 186.6 kB / 0.6663 GB, free: 26 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.0003193/0.0178, allocations: 474.8 kB / 0.6668 GB, free: 25.8 MB / 0.5262 GB Notification: Performance of Backend: time 4.91e-07/0.0178, allocations: 1.438 kB / 0.6668 GB, free: 25.8 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.001542/0.01934, allocations: 0.8534 MB / 0.6676 GB, free: 25.32 MB / 0.5262 GB Notification: Performance of SimCode: time 0.001871/0.02121, allocations: 2.073 MB / 0.6697 GB, free: 23.74 MB / 0.5262 GB Notification: Performance of Templates: time 0.009726/0.03094, allocations: 7.084 MB / 0.6766 GB, free: 22.92 MB / 0.5262 GB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PKPD_Midazolam.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.723701040027663]