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.0009864/0.0009864, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001386/0.002372, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006777/0.0006777, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009434/0.001621, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.01/1.01, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07677/1.087, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.0/package.mo): time 0.7108/0.7108, allocations: 291.1 MB / 0.5227 GB, free: 52.46 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02799/0.7388, allocations: 21.04 MB / 0.5433 GB, free: 31.48 MB / 410.7 MB " [Timeout remaining time 179] Using package Pharmacolibrary with version 26.11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Pharmacolibrary 26.11.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 2.003e-06/2.003e-06, allocations: 0 / 0.5446 GB, free: 30.16 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.992e-05/2.192e-05, allocations: 6.312 kB / 0.5446 GB, free: 30.15 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.003911/0.003933, allocations: 2.759 MB / 0.5473 GB, free: 27.38 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.005033, allocations: 0.6731 MB / 0.548 GB, free: 26.7 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.005147, allocations: 3.938 kB / 0.548 GB, free: 26.7 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.005249, allocations: 31.7 kB / 0.548 GB, free: 26.67 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.005452, allocations: 107 kB / 0.5481 GB, free: 26.56 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.005657, allocations: 83.84 kB / 0.5482 GB, free: 26.48 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003595/0.006017, allocations: 370.3 kB / 0.5485 GB, free: 26.12 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.006165, allocations: 59.02 kB / 0.5486 GB, free: 26.06 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.006485, allocations: 224.2 kB / 0.5488 GB, free: 25.84 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.006674, allocations: 107.7 kB / 0.5489 GB, free: 25.74 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.822e-05/0.006722, allocations: 28 kB / 0.5489 GB, free: 25.71 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.855e-05/0.00677, allocations: 32 kB / 0.549 GB, free: 25.68 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.906e-05/0.006819, allocations: 43.88 kB / 0.549 GB, free: 25.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.006922, allocations: 87.88 kB / 0.5491 GB, free: 25.55 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002764/0.007199, allocations: 203.3 kB / 0.5493 GB, free: 25.35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-05/0.007215, allocations: 8 kB / 0.5493 GB, free: 25.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.007216, allocations: 0 / 0.5493 GB, free: 25.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.007228, allocations: 0 / 0.5493 GB, free: 25.34 MB / 410.7 MB 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.0007996/0.008028, allocations: 0.5832 MB / 0.5499 GB, free: 24.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.008067, allocations: 15.89 kB / 0.5499 GB, free: 24.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/0.008139, allocations: 28.92 kB / 0.5499 GB, free: 24.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.008385, allocations: 178.1 kB / 0.5501 GB, free: 24.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.008412, allocations: 16.38 kB / 0.5501 GB, free: 24.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.008452, allocations: 20.38 kB / 0.5501 GB, free: 24.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.008734, allocations: 202.6 kB / 0.5503 GB, free: 24.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.008754, allocations: 4.141 kB / 0.5503 GB, free: 24.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.008775, allocations: 8.375 kB / 0.5503 GB, free: 24.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.008786, allocations: 7.938 kB / 0.5503 GB, free: 24.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.008952, allocations: 136.3 kB / 0.5504 GB, free: 24.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006563/0.009609, allocations: 372.4 kB / 0.5508 GB, free: 23.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.009899, allocations: 179.8 kB / 0.551 GB, free: 23.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.486e-05/0.009984, allocations: 96.47 kB / 0.5511 GB, free: 23.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.009998, allocations: 8 kB / 0.5511 GB, free: 23.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.01025, allocations: 323.3 kB / 0.5514 GB, free: 23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 3.142e-05/0.01028, allocations: 0 / 0.5514 GB, free: 23 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.001243/0.01152, allocations: 0.8273 MB / 0.5522 GB, free: 22.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.01159, allocations: 277 kB / 0.5524 GB, free: 21.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.01171, allocations: 186.3 kB / 0.5526 GB, free: 21.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.01173, allocations: 33.7 kB / 0.5527 GB, free: 21.51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.01178, allocations: 120.9 kB / 0.5528 GB, free: 21.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.482e-05/0.01185, allocations: 119 kB / 0.5529 GB, free: 21.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.387e-05/0.01193, allocations: 70.03 kB / 0.553 GB, free: 21.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.804e-05/0.01198, allocations: 338.8 kB / 0.5533 GB, free: 20.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.968e-05/0.01208, allocations: 143.8 kB / 0.5534 GB, free: 20.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.01221, allocations: 241.5 kB / 0.5536 GB, free: 20.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.01243, allocations: 320.3 kB / 0.5539 GB, free: 20.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01243, allocations: 7.969 kB / 0.554 GB, free: 20.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0002986/0.01273, allocations: 371.1 kB / 0.5543 GB, free: 19.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.835e-05/0.01278, allocations: 93.09 kB / 0.5544 GB, free: 19.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.01279, allocations: 4 kB / 0.5544 GB, free: 19.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.01282, allocations: 7.938 kB / 0.5544 GB, free: 19.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003697/0.01319, allocations: 100.2 kB / 0.5545 GB, free: 19.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.01319, allocations: 11.92 kB / 0.5545 GB, free: 19.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.01334, allocations: 23.19 kB / 0.5545 GB, free: 19.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.01336, allocations: 12 kB / 0.5546 GB, free: 19.36 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: periodicDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real periodicDose.route.variableDose.TotalCumulativeMass:VARIABLE(min = -1e-12 unit = \"kg\" fixed = true ) \"Total dose adminitrated by this source\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 21 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.route.absorptionLumen.Cmin,$PRE.periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.Cmax,$PRE.periodicDose.route.absorptionLumen.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,periodicDose.route.absorptionLumen.rising,$PRE.periodicDose.route.absorptionLumen.rising,central.rising,$PRE.central.rising,$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 (47): * Single equations (assignments): 44 * 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.0001812/0.01355, allocations: 207.7 kB / 0.5547 GB, free: 19.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.01359, allocations: 31.97 kB / 0.5548 GB, free: 19.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.707e-05/0.01364, allocations: 38.53 kB / 0.5548 GB, free: 19.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.01364, allocations: 4 kB / 0.5548 GB, free: 19.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.01365, allocations: 0 / 0.5548 GB, free: 19.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.01365, allocations: 7.922 kB / 0.5548 GB, free: 19.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005314/0.01418, allocations: 0.5104 MB / 0.5553 GB, free: 18.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.01419, allocations: 0 / 0.5553 GB, free: 18.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.01446, allocations: 79.58 kB / 0.5554 GB, free: 18.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.788e-05/0.01453, allocations: 27.84 kB / 0.5554 GB, free: 18.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.01454, allocations: 4 kB / 0.5554 GB, free: 18.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.01456, allocations: 15.98 kB / 0.5554 GB, free: 18.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.01456, allocations: 3.375 kB / 0.5555 GB, free: 18.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01456, allocations: 0 / 0.5555 GB, free: 18.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003801/0.01494, allocations: 0.5235 MB / 0.556 GB, free: 17.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.01499, allocations: 16 kB / 0.556 GB, free: 17.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.01513, allocations: 15.98 kB / 0.556 GB, free: 17.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.057e-05/0.0152, allocations: 28.17 kB / 0.556 GB, free: 17.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.01522, allocations: 15.98 kB / 0.556 GB, free: 17.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.525e-05/0.01528, allocations: 48.81 kB / 0.5561 GB, free: 17.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01528, allocations: 0 / 0.5561 GB, free: 17.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000308/0.01558, allocations: 80 kB / 0.5562 GB, free: 17.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (central.C,central.AUC,elim.MExc,periodicDose.TotalCumulativeMass,periodicDose.route.variableDose.TotalCumulativeMass,periodicDose.route.absorptionLumen.C,periodicDose.route.absorptionLumen.AUC) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,central.Cmax,central.Cmin,central.rising,periodicDose.route.absorptionLumen.Cmax,periodicDose.route.absorptionLumen.Cmin,periodicDose.route.absorptionLumen.rising,periodicDose.pulse.T_start,periodicDose.pulse.count) * Number of discrete states: 11 (periodicDose.pulse.count,central.Cmin,$whenCondition5,central.Cmax,$whenCondition4,central.rising,periodicDose.route.absorptionLumen.Cmin,$whenCondition3,periodicDose.route.absorptionLumen.Cmax,$whenCondition2,periodicDose.route.absorptionLumen.rising) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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 0.0001066/0.01569, allocations: 109.6 kB / 0.5563 GB, free: 17.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003255/0.01602, allocations: 489.2 kB / 0.5567 GB, free: 16.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.01603, allocations: 0 / 0.5567 GB, free: 16.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.0162, allocations: 287 kB / 0.557 GB, free: 16.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.01665, allocations: 0.504 MB / 0.5575 GB, free: 16.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009808/0.02646, allocations: 0.6828 MB / 0.5582 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.996e-05/0.02652, allocations: 92.81 kB / 0.5582 GB, free: 15.18 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.02665, allocations: 30.27 kB / 0.5583 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.02688, allocations: 135.3 kB / 0.5584 GB, free: 15.02 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02688, allocations: 0 / 0.5584 GB, free: 15.02 MB / 410.7 MB Notification: Performance of Templates: time 0.278/0.3049, allocations: 4.751 MB / 0.563 GB, free: 83.34 MB / 410.8 MB " [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: 4.244084059260786]