Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.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.00853/0.00853, allocations: 105.5 kB / 18.95 MB, free: 1.18 MB / 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.002596/0.002596, allocations: 210.4 kB / 22.25 MB, free: 3.574 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.624/1.624, allocations: 230.6 MB / 256 MB, free: 9.598 MB / 202.7 MB " [Timeout remaining time 178] 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 1.378/1.378, allocations: 316.7 MB / 0.6144 GB, free: 93.32 MB / 410.7 MB " [Timeout remaining time 178] 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.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI") translateModel(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI") [Timeout 660] "Notification: Pharmacolibrary requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004084/0.004084, allocations: 75.44 kB / 0.775 GB, free: 14.86 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1591, allocations: 73.98 MB / 0.8472 GB, free: 5.02 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI): time 0.004188/0.1633, allocations: 2.305 MB / 0.8495 GB, free: 2.719 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1647, allocations: 0.6033 MB / 0.8501 GB, free: 2.121 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1648, allocations: 3.938 kB / 0.8501 GB, free: 2.117 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1649, allocations: 24.38 kB / 0.8501 GB, free: 2.094 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.1652, allocations: 80.64 kB / 0.8502 GB, free: 2.016 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.1655, allocations: 52.47 kB / 0.8502 GB, free: 1.965 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0003837/0.1658, allocations: 254.7 kB / 0.8505 GB, free: 1.715 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.166, allocations: 37.08 kB / 0.8505 GB, free: 1.68 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.1662, allocations: 96.25 kB / 0.8506 GB, free: 1.586 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.1664, allocations: 95.55 kB / 0.8507 GB, free: 1.492 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.1665, allocations: 20.53 kB / 0.8507 GB, free: 1.473 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 4.715e-05/0.1665, allocations: 20.59 kB / 0.8507 GB, free: 1.453 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 5.853e-05/0.1666, allocations: 35.84 kB / 0.8507 GB, free: 1.418 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.1667, allocations: 88.19 kB / 0.8508 GB, free: 1.332 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.1671, allocations: 199.7 kB / 0.851 GB, free: 1.137 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.269e-05/0.1671, allocations: 0 / 0.851 GB, free: 1.137 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1671, allocations: 0.75 kB / 0.851 GB, free: 1.137 MB / 474.8 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1671, allocations: 4 kB / 0.851 GB, free: 1.133 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001085/0.1682, allocations: 0.4948 MB / 0.8515 GB, free: 0.5938 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1682, allocations: 8.594 kB / 0.8515 GB, free: 0.5859 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.05e-05/0.1683, allocations: 24.8 kB / 0.8515 GB, free: 0.5625 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.1686, allocations: 187.6 kB / 0.8517 GB, free: 360 kB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.1686, allocations: 9.109 kB / 0.8517 GB, free: 352 kB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.341e-05/0.1687, allocations: 23.88 kB / 0.8518 GB, free: 328 kB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004236/0.1691, allocations: 191.6 kB / 0.8519 GB, free: 120 kB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.1691, allocations: 4 kB / 0.8519 GB, free: 116 kB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.1691, allocations: 4.625 kB / 0.8519 GB, free: 112 kB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.1691, allocations: 8.656 kB / 0.852 GB, free: 104 kB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004032/0.1695, allocations: 142.9 kB / 0.8521 GB, free: 15.96 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.1706, allocations: 482.6 kB / 0.8525 GB, free: 15.45 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005491/0.1711, allocations: 174.2 kB / 0.8527 GB, free: 15.27 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.1713, allocations: 90.53 kB / 0.8528 GB, free: 15.17 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.1714, allocations: 4.594 kB / 0.8528 GB, free: 15.17 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004099/0.1718, allocations: 230 kB / 0.853 GB, free: 14.92 MB / 490.8 MB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.1718, allocations: 0 / 0.853 GB, free: 14.92 MB / 490.8 MB Notification: Performance of matching and sorting (n=21): time 0.001743/0.1735, allocations: 0.7075 MB / 0.8537 GB, free: 14.15 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.1736, allocations: 132.5 kB / 0.8538 GB, free: 13.99 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.1739, allocations: 217 kB / 0.8541 GB, free: 13.77 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/0.174, allocations: 33.7 kB / 0.8541 GB, free: 13.73 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1741, allocations: 132.5 kB / 0.8542 GB, free: 13.6 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.834e-05/0.1742, allocations: 71.42 kB / 0.8543 GB, free: 13.53 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1743, allocations: 57.66 kB / 0.8543 GB, free: 13.46 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.1745, allocations: 338.8 kB / 0.8547 GB, free: 13.12 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.1747, allocations: 146.4 kB / 0.8548 GB, free: 12.96 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/0.1751, allocations: 221.3 kB / 0.855 GB, free: 12.7 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004948/0.1756, allocations: 281.6 kB / 0.8553 GB, free: 12.39 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1756, allocations: 0.7188 kB / 0.8553 GB, free: 12.39 MB / 490.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.2949/0.4705, allocations: 385.9 kB / 0.8556 GB, free: 28.26 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.026e-05/0.4705, allocations: 66.83 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.4705, allocations: 2.406 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4706, allocations: 4.906 kB / 0.8557 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.4708, allocations: 53.62 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.4708, allocations: 3.406 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.471, allocations: 19.11 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.471, allocations: 11.34 kB / 0.8558 GB, free: 28.2 MB / 490.8 MB Warning: Assuming fixed start value for the following 1 variables: periodicDose.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: 8 * Number of states: 0 () * Number of discrete variables: 13 (central.Cmin,$PRE.central.Cmin,central.Cmax,$PRE.central.Cmax,periodicDose.pulse.count,$PRE.periodicDose.pulse.count,periodicDose.pulse.T_start,$PRE.periodicDose.pulse.T_start,central.rising,$PRE.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 (31): * Single equations (assignments): 29 * 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.0001692/0.4712, allocations: 174.8 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.4712, allocations: 24.77 kB / 0.856 GB, free: 28.05 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.433e-05/0.4713, allocations: 27.52 kB / 0.856 GB, free: 28.04 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.4713, allocations: 5.031 kB / 0.856 GB, free: 28.04 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4713, allocations: 0 / 0.856 GB, free: 28.04 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.4713, allocations: 4.781 kB / 0.856 GB, free: 28.04 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006806/0.4719, allocations: 0.5356 MB / 0.8565 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.472, allocations: 4.688 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.4721, allocations: 32.73 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.4721, allocations: 1.344 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.4721, allocations: 4.781 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.4721, allocations: 2.719 kB / 0.8566 GB, free: 27.75 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4722, allocations: 4.641 kB / 0.8566 GB, free: 27.74 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.4728, allocations: 0.4925 MB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.171e-05/0.4728, allocations: 22.78 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/0.4728, allocations: 8.312 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.473, allocations: 12.64 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.156e-05/0.4731, allocations: 19.72 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.4731, allocations: 11.83 kB / 0.8571 GB, free: 27.52 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001086/0.4732, allocations: 157.8 kB / 0.8573 GB, free: 27.44 MB / 490.8 MB Notification: Performance of sort global known variables: time 8e-08/0.4732, allocations: 0 / 0.8573 GB, free: 27.44 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002778/0.4735, allocations: 53.72 kB / 0.8573 GB, free: 27.44 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (central.C,central.AUC,elim.MExc,periodicDose.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.0001014/0.4736, allocations: 121.2 kB / 0.8575 GB, free: 27.36 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0004876/0.4741, allocations: 384.4 kB / 0.8578 GB, free: 27.13 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4741, allocations: 3.109 kB / 0.8578 GB, free: 27.13 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.4743, allocations: 176.8 kB / 0.858 GB, free: 27.04 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004373/0.4747, allocations: 67.23 kB / 0.8581 GB, free: 27.04 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.4758, allocations: 0.6714 MB / 0.8587 GB, free: 26.77 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.247e-05/0.4759, allocations: 126 kB / 0.8588 GB, free: 26.69 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 9.326e-05/0.476, allocations: 24.33 kB / 0.8589 GB, free: 26.68 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.216e-05/0.476, allocations: 22.06 kB / 0.8589 GB, free: 26.68 MB / 490.8 MB Notification: Performance of SimCode: time 4.51e-07/0.476, allocations: 0 / 0.8589 GB, free: 26.68 MB / 490.8 MB Notification: Performance of Templates: time 0.007416/0.4834, allocations: 3.649 MB / 0.8624 GB, free: 26.39 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI -abortSlowSimulation -alarm=240 -lv LOG_STATS > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.291210483992472]