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.001114/0.001114, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00138/0.002493, allocations: 435.8 kB / 10.33 MB, free: 368 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.0007428/0.0007428, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001008/0.001751, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.9787/0.9787, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1144/1.093, allocations: 53.65 MB / 243.2 MB, free: 15.59 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.9629/0.9629, allocations: 291.2 MB / 0.5226 GB, free: 52.91 MB / 410.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03956/1.002, allocations: 21.04 MB / 0.5432 GB, free: 31.94 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.174e-06/2.174e-06, allocations: 0 / 0.5444 GB, free: 30.65 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.578e-05/1.795e-05, allocations: 2.312 kB / 0.5444 GB, free: 30.64 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Examples.PK_1C_LithiumCarbonate): time 0.003423/0.003441, allocations: 2.761 MB / 0.5471 GB, free: 27.87 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009977/0.004439, allocations: 0.6699 MB / 0.5478 GB, free: 27.2 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.004556, allocations: 0 / 0.5478 GB, free: 27.2 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.03e-05/0.004637, allocations: 39.64 kB / 0.5478 GB, free: 27.16 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.00481, allocations: 103.2 kB / 0.5479 GB, free: 27.05 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001631/0.004974, allocations: 79.8 kB / 0.548 GB, free: 26.98 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00027/0.005244, allocations: 382.2 kB / 0.5484 GB, free: 26.6 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.005383, allocations: 58.22 kB / 0.5484 GB, free: 26.55 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.005612, allocations: 216.3 kB / 0.5486 GB, free: 26.34 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001556/0.005767, allocations: 107.7 kB / 0.5487 GB, free: 26.23 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.005809, allocations: 28 kB / 0.5487 GB, free: 26.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.17e-05/0.005841, allocations: 28 kB / 0.5488 GB, free: 26.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.005878, allocations: 47.81 kB / 0.5488 GB, free: 26.13 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 8.783e-05/0.005966, allocations: 95.86 kB / 0.5489 GB, free: 26.04 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.006192, allocations: 199.3 kB / 0.5491 GB, free: 25.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.638e-05/0.006208, allocations: 4 kB / 0.5491 GB, free: 25.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.72e-07/0.006208, allocations: 0 / 0.5491 GB, free: 25.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.006225, allocations: 0 / 0.5491 GB, free: 25.84 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.0007183/0.006944, allocations: 0.5832 MB / 0.5497 GB, free: 25.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.006981, allocations: 11.89 kB / 0.5497 GB, free: 25.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.197e-05/0.007043, allocations: 32.91 kB / 0.5497 GB, free: 25.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.007243, allocations: 178.1 kB / 0.5499 GB, free: 24.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.00727, allocations: 20.38 kB / 0.5499 GB, free: 24.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.007301, allocations: 20.36 kB / 0.5499 GB, free: 24.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.007507, allocations: 206.5 kB / 0.5501 GB, free: 24.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.007522, allocations: 12.12 kB / 0.5501 GB, free: 24.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/0.00754, allocations: 4.375 kB / 0.5501 GB, free: 24.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.007549, allocations: 7.938 kB / 0.5501 GB, free: 24.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.007667, allocations: 132.8 kB / 0.5503 GB, free: 24.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.00816, allocations: 375.4 kB / 0.5506 GB, free: 24.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002557/0.008416, allocations: 170.1 kB / 0.5508 GB, free: 23.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.785e-05/0.008474, allocations: 100.5 kB / 0.5509 GB, free: 23.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.008486, allocations: 4 kB / 0.5509 GB, free: 23.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002112/0.008697, allocations: 327 kB / 0.5512 GB, free: 23.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.915e-06/0.0087, allocations: 0 / 0.5512 GB, free: 23.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.000827/0.009527, allocations: 0.8174 MB / 0.552 GB, free: 22.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.00959, allocations: 221.6 kB / 0.5522 GB, free: 22.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.48e-05/0.009685, allocations: 179.5 kB / 0.5524 GB, free: 22.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.009703, allocations: 33.7 kB / 0.5524 GB, free: 22.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.947e-05/0.009743, allocations: 124.9 kB / 0.5525 GB, free: 21.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.009792, allocations: 119 kB / 0.5526 GB, free: 21.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.873e-05/0.009851, allocations: 73.66 kB / 0.5527 GB, free: 21.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.348e-05/0.009904, allocations: 334.8 kB / 0.553 GB, free: 21.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.2e-05/0.009976, allocations: 143.4 kB / 0.5532 GB, free: 21.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.01009, allocations: 241.4 kB / 0.5534 GB, free: 20.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.01025, allocations: 331.6 kB / 0.5537 GB, free: 20.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.01025, allocations: 0 / 0.5537 GB, free: 20.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0002316/0.01048, allocations: 371.3 kB / 0.5541 GB, free: 20.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.651e-05/0.01053, allocations: 96.22 kB / 0.5542 GB, free: 20.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.01054, allocations: 4 kB / 0.5542 GB, free: 20.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.01055, allocations: 12.22 kB / 0.5542 GB, free: 20.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.01078, allocations: 99.81 kB / 0.5543 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.01079, allocations: 4 kB / 0.5543 GB, free: 19.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.905e-05/0.01087, allocations: 19.98 kB / 0.5543 GB, free: 19.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.01089, allocations: 16 kB / 0.5543 GB, free: 19.93 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.0001384/0.01103, allocations: 215.7 kB / 0.5545 GB, free: 19.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.01105, allocations: 27.98 kB / 0.5545 GB, free: 19.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.0111, allocations: 34.58 kB / 0.5546 GB, free: 19.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.0111, allocations: 4 kB / 0.5546 GB, free: 19.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.0111, allocations: 0 / 0.5546 GB, free: 19.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.01111, allocations: 0 / 0.5546 GB, free: 19.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003822/0.01149, allocations: 0.5199 MB / 0.5551 GB, free: 19.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.01149, allocations: 7.047 kB / 0.5551 GB, free: 19.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.01168, allocations: 75.89 kB / 0.5552 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.146e-05/0.01173, allocations: 27.84 kB / 0.5552 GB, free: 18.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.01174, allocations: 0 / 0.5552 GB, free: 18.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.01175, allocations: 8 kB / 0.5552 GB, free: 18.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.01176, allocations: 4 kB / 0.5552 GB, free: 18.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.01176, allocations: 3.984 kB / 0.5552 GB, free: 18.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.01206, allocations: 0.5234 MB / 0.5557 GB, free: 18.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.432e-05/0.0121, allocations: 16 kB / 0.5557 GB, free: 18.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.032e-05/0.01219, allocations: 19.98 kB / 0.5558 GB, free: 18.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/0.01224, allocations: 23.95 kB / 0.5558 GB, free: 18.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.01225, allocations: 11.98 kB / 0.5558 GB, free: 18.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.06e-05/0.01229, allocations: 52.55 kB / 0.5558 GB, free: 18.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01229, allocations: 4 kB / 0.5558 GB, free: 18.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002037/0.0125, allocations: 80 kB / 0.5559 GB, free: 18.15 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 7.923e-05/0.01258, allocations: 99.27 kB / 0.556 GB, free: 18.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002598/0.01284, allocations: 492.5 kB / 0.5565 GB, free: 17.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/0.01285, allocations: 4 kB / 0.5565 GB, free: 17.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.01296, allocations: 270.9 kB / 0.5567 GB, free: 17.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.01323, allocations: 109.4 kB / 0.5569 GB, free: 17.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006896/0.02013, allocations: 0.7017 MB / 0.5575 GB, free: 16.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.182e-05/0.02018, allocations: 88.81 kB / 0.5576 GB, free: 16.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000111/0.02029, allocations: 34.27 kB / 0.5577 GB, free: 16.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.02048, allocations: 135.3 kB / 0.5578 GB, free: 16.08 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.02048, allocations: 0 / 0.5578 GB, free: 16.08 MB / 410.7 MB Notification: Performance of Templates: time 0.4023/0.4228, allocations: 4.755 MB / 0.5624 GB, free: 83.93 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: 5.320369633845985]