Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.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.0009934/0.0009934, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001484/0.002477, 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.000739/0.000739, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009571/0.001696, 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 0.8713/0.8713, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08385/0.9552, 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.7414/0.7414, allocations: 291.1 MB / 0.5227 GB, free: 52.48 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02787/0.7693, allocations: 21.05 MB / 0.5433 GB, free: 31.49 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_Lithium.PK_1C_Lithium,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium") translateModel(Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium,tolerance=1e-09,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 0.5447 GB, free: 30.08 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/2.037e-05, allocations: 2.312 kB / 0.5447 GB, free: 30.07 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium): time 0.003277/0.003298, allocations: 3.281 MB / 0.5479 GB, free: 26.78 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008414/0.004139, allocations: 0.7322 MB / 0.5486 GB, free: 26.05 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.004258, allocations: 4 kB / 0.5486 GB, free: 26.04 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 9.786e-05/0.004356, allocations: 35.58 kB / 0.5486 GB, free: 26.01 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.004572, allocations: 134.9 kB / 0.5488 GB, free: 25.88 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001641/0.004736, allocations: 87.83 kB / 0.5488 GB, free: 25.79 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.005, allocations: 429.9 kB / 0.5493 GB, free: 25.37 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.00512, allocations: 67.58 kB / 0.5493 GB, free: 25.3 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.005345, allocations: 257.5 kB / 0.5496 GB, free: 25.05 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.005527, allocations: 131.6 kB / 0.5497 GB, free: 24.92 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.005558, allocations: 36 kB / 0.5497 GB, free: 24.88 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.365e-05/0.005592, allocations: 32 kB / 0.5498 GB, free: 24.85 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.442e-05/0.005626, allocations: 47.81 kB / 0.5498 GB, free: 24.8 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 6.778e-05/0.005694, allocations: 99.81 kB / 0.5499 GB, free: 24.71 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.005883, allocations: 227.2 kB / 0.5501 GB, free: 24.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.08e-05/0.005894, allocations: 4 kB / 0.5501 GB, free: 24.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005895, allocations: 0 / 0.5501 GB, free: 24.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.005905, allocations: 0 / 0.5501 GB, free: 24.48 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005875/0.006492, allocations: 0.6357 MB / 0.5507 GB, free: 23.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.784e-05/0.00652, allocations: 11.89 kB / 0.5507 GB, free: 23.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.16e-05/0.006572, allocations: 36.91 kB / 0.5508 GB, free: 23.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.006739, allocations: 209.4 kB / 0.551 GB, free: 23.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.006756, allocations: 12.88 kB / 0.551 GB, free: 23.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.006787, allocations: 28.36 kB / 0.551 GB, free: 23.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.006991, allocations: 242.2 kB / 0.5513 GB, free: 23.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.007003, allocations: 4 kB / 0.5513 GB, free: 23.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.007017, allocations: 4 kB / 0.5513 GB, free: 23.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.007023, allocations: 12 kB / 0.5513 GB, free: 23.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.007131, allocations: 138.5 kB / 0.5514 GB, free: 23.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004784/0.00761, allocations: 481.8 kB / 0.5519 GB, free: 22.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.00781, allocations: 177.4 kB / 0.552 GB, free: 22.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.305e-05/0.007863, allocations: 100.5 kB / 0.5521 GB, free: 22.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-06/0.007873, allocations: 7.938 kB / 0.5521 GB, free: 22.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001736/0.008047, allocations: 331.4 kB / 0.5525 GB, free: 21.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 1.683e-06/0.008049, allocations: 0 / 0.5525 GB, free: 21.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007056/0.008754, allocations: 0.8438 MB / 0.5533 GB, free: 20.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.008799, allocations: 277 kB / 0.5535 GB, free: 20.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.474e-05/0.008894, allocations: 225 kB / 0.5538 GB, free: 20.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.008912, allocations: 41.7 kB / 0.5538 GB, free: 20.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.008949, allocations: 133.3 kB / 0.5539 GB, free: 20.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.245e-05/0.008991, allocations: 123 kB / 0.554 GB, free: 20.08 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.009049, allocations: 70.16 kB / 0.5541 GB, free: 20.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.692e-05/0.009086, allocations: 346.7 kB / 0.5544 GB, free: 19.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.764e-05/0.009154, allocations: 147.9 kB / 0.5546 GB, free: 19.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.717e-05/0.009241, allocations: 250.8 kB / 0.5548 GB, free: 19.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.009389, allocations: 346.3 kB / 0.5551 GB, free: 18.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.009391, allocations: 3.938 kB / 0.5551 GB, free: 18.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0002052/0.009596, allocations: 392.5 kB / 0.5555 GB, free: 18.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.009632, allocations: 89.09 kB / 0.5556 GB, free: 18.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.009639, allocations: 4 kB / 0.5556 GB, free: 18.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.009649, allocations: 4 kB / 0.5556 GB, free: 18.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.009866, allocations: 103.9 kB / 0.5557 GB, free: 18.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.009871, allocations: 4.344 kB / 0.5557 GB, free: 18.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.757e-05/0.009968, allocations: 27.98 kB / 0.5557 GB, free: 18.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.009983, allocations: 16 kB / 0.5558 GB, free: 18.09 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: 12 * 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 (50): * Single equations (assignments): 47 * 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.0001243/0.01011, allocations: 226.8 kB / 0.556 GB, free: 17.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.01013, allocations: 31.97 kB / 0.556 GB, free: 17.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.01017, allocations: 30.97 kB / 0.556 GB, free: 17.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.01017, allocations: 7.984 kB / 0.556 GB, free: 17.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.01017, allocations: 4 kB / 0.556 GB, free: 17.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.01018, allocations: 0 / 0.556 GB, free: 17.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.01053, allocations: 0.5408 MB / 0.5566 GB, free: 17.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01053, allocations: 0 / 0.5566 GB, free: 17.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001744/0.0107, allocations: 75.83 kB / 0.5567 GB, free: 17.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.353e-05/0.01076, allocations: 31.8 kB / 0.5567 GB, free: 17.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01076, allocations: 4 kB / 0.5567 GB, free: 17.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.01077, allocations: 11.98 kB / 0.5567 GB, free: 17.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.01077, allocations: 4 kB / 0.5567 GB, free: 17.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.01078, allocations: 3.938 kB / 0.5567 GB, free: 17.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.01104, allocations: 0.5297 MB / 0.5572 GB, free: 16.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.01107, allocations: 19.94 kB / 0.5572 GB, free: 16.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.77e-05/0.01116, allocations: 15.98 kB / 0.5573 GB, free: 16.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.927e-05/0.01121, allocations: 23.95 kB / 0.5573 GB, free: 16.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.01122, allocations: 8 kB / 0.5573 GB, free: 16.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.959e-05/0.01127, allocations: 86.7 kB / 0.5574 GB, free: 16.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01127, allocations: 0 / 0.5574 GB, free: 16.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001848/0.01145, allocations: 88 kB / 0.5575 GB, free: 16.23 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 (29): * Single equations (assignments): 25 * 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.096e-05/0.01153, allocations: 96.17 kB / 0.5575 GB, free: 16.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002183/0.01175, allocations: 0.4883 MB / 0.558 GB, free: 15.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.026e-06/0.01176, allocations: 5.031 kB / 0.558 GB, free: 15.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.01187, allocations: 283.6 kB / 0.5583 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.01223, allocations: 0.7157 MB / 0.559 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.211/0.2232, allocations: 0.7647 MB / 0.5597 GB, free: 83 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.003e-05/0.2233, allocations: 94.64 kB / 0.5598 GB, free: 82.93 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.2234, allocations: 35.28 kB / 0.5599 GB, free: 82.93 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/0.2236, allocations: 159.2 kB / 0.56 GB, free: 82.88 MB / 410.8 MB Notification: Performance of SimCode: time 1.393e-06/0.2236, allocations: 0 / 0.56 GB, free: 82.88 MB / 410.8 MB Notification: Performance of Templates: time 0.008012/0.2316, allocations: 5.544 MB / 0.5654 GB, free: 82.04 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.sim & ./Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Examples.PK_Lithium.PK_1C_Lithium.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5204246351495385]