Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference.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.0009245/0.0009245, allocations: 104.4 kB / 19.71 MB, free: 436 kB / 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.0009992/0.0009992, allocations: 215.5 kB / 23.01 MB, free: 2.934 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.012/1.012, allocations: 230.6 MB / 256.8 MB, free: 9.605 MB / 202.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.7488/0.7488, allocations: 312.3 MB / 0.6108 GB, free: 97.06 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.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference") translateModel(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference,tolerance=1e-09,outputFormat="empty",numberOfIntervals=93600,variableFilter="",fileNamePrefix="Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference") [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.001542/0.001542, allocations: 75.94 kB / 0.7699 GB, free: 19.75 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1592, allocations: 73.99 MB / 0.8421 GB, free: 9.898 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference): time 0.003423/0.1627, allocations: 2.287 MB / 0.8444 GB, free: 7.613 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.0009217/0.1636, allocations: 0.5908 MB / 0.845 GB, free: 7.027 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.612e-05/0.1637, allocations: 4.562 kB / 0.845 GB, free: 7.023 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.1638, allocations: 27.7 kB / 0.845 GB, free: 6.996 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.164, allocations: 80.52 kB / 0.8451 GB, free: 6.918 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002078/0.1642, allocations: 48.52 kB / 0.8451 GB, free: 6.871 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.1645, allocations: 263.3 kB / 0.8454 GB, free: 6.613 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.1646, allocations: 33.11 kB / 0.8454 GB, free: 6.582 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.1648, allocations: 99.58 kB / 0.8455 GB, free: 6.484 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.165, allocations: 92.2 kB / 0.8456 GB, free: 6.395 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.165, allocations: 16.66 kB / 0.8456 GB, free: 6.379 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.769e-05/0.165, allocations: 20 kB / 0.8456 GB, free: 6.359 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.669e-05/0.1651, allocations: 40.55 kB / 0.8456 GB, free: 6.32 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 8.39e-05/0.1651, allocations: 91.53 kB / 0.8457 GB, free: 6.23 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002359/0.1654, allocations: 203.7 kB / 0.8459 GB, free: 6.031 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1654, allocations: 0.5625 kB / 0.8459 GB, free: 6.031 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1654, allocations: 4 kB / 0.8459 GB, free: 6.027 MB / 474.8 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1654, allocations: 0.6875 kB / 0.8459 GB, free: 6.027 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.0008117/0.1662, allocations: 498.1 kB / 0.8464 GB, free: 5.496 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1663, allocations: 8.812 kB / 0.8464 GB, free: 5.488 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.615e-05/0.1663, allocations: 24.8 kB / 0.8464 GB, free: 5.465 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.1665, allocations: 183.8 kB / 0.8466 GB, free: 5.258 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.1666, allocations: 12.61 kB / 0.8466 GB, free: 5.246 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.759e-05/0.1666, allocations: 20.52 kB / 0.8466 GB, free: 5.227 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/0.1669, allocations: 187 kB / 0.8468 GB, free: 5.027 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.1669, allocations: 4.625 kB / 0.8468 GB, free: 5.023 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.1669, allocations: 4 kB / 0.8468 GB, free: 5.02 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.1669, allocations: 4.719 kB / 0.8468 GB, free: 5.016 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.1671, allocations: 147.5 kB / 0.847 GB, free: 4.867 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006717/0.1678, allocations: 490.1 kB / 0.8474 GB, free: 4.355 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003659/0.1682, allocations: 173.4 kB / 0.8476 GB, free: 4.172 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.1683, allocations: 93.8 kB / 0.8477 GB, free: 4.074 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.1683, allocations: 4 kB / 0.8477 GB, free: 4.07 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002558/0.1686, allocations: 233.6 kB / 0.8479 GB, free: 3.812 MB / 474.8 MB Notification: Performance of pre-optimization done (n=20): time 2.706e-06/0.1686, allocations: 0.625 kB / 0.8479 GB, free: 3.812 MB / 474.8 MB Notification: Performance of matching and sorting (n=21): time 0.001031/0.1696, allocations: 0.7032 MB / 0.8486 GB, free: 3.051 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.1697, allocations: 141 kB / 0.8487 GB, free: 2.883 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.1698, allocations: 218.9 kB / 0.849 GB, free: 2.66 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.1698, allocations: 38.23 kB / 0.849 GB, free: 2.617 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.334e-05/0.1699, allocations: 133 kB / 0.8491 GB, free: 2.484 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.17, allocations: 63.5 kB / 0.8492 GB, free: 2.422 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-05/0.17, allocations: 58.31 kB / 0.8492 GB, free: 2.359 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 8.704e-05/0.1701, allocations: 334.8 kB / 0.8496 GB, free: 2.023 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.1703, allocations: 146.2 kB / 0.8497 GB, free: 1.863 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003431/0.1706, allocations: 223.9 kB / 0.8499 GB, free: 1.602 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000253/0.1709, allocations: 277.5 kB / 0.8502 GB, free: 1.293 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1709, allocations: 4.578 kB / 0.8502 GB, free: 1.289 MB / 474.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003799/0.1712, allocations: 390 kB / 0.8505 GB, free: 0.8789 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.73e-05/0.1713, allocations: 72.11 kB / 0.8506 GB, free: 0.7969 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.1713, allocations: 0 / 0.8506 GB, free: 0.7969 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1713, allocations: 4.625 kB / 0.8506 GB, free: 0.793 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1714, allocations: 48.53 kB / 0.8507 GB, free: 0.7461 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.1714, allocations: 4.5 kB / 0.8507 GB, free: 0.7422 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.378e-05/0.1715, allocations: 16.55 kB / 0.8507 GB, free: 0.7266 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.1716, allocations: 15.98 kB / 0.8507 GB, free: 0.7109 MB / 474.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.0001887/0.1717, allocations: 179.8 kB / 0.8509 GB, free: 0.5234 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.1718, allocations: 28.38 kB / 0.8509 GB, free: 0.4961 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.212e-05/0.1718, allocations: 21.97 kB / 0.8509 GB, free: 480 kB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1718, allocations: 4.625 kB / 0.8509 GB, free: 476 kB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1718, allocations: 0 / 0.8509 GB, free: 476 kB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1718, allocations: 4.641 kB / 0.8509 GB, free: 472 kB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005768/0.1724, allocations: 0.538 MB / 0.8515 GB, free: 15.88 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1724, allocations: 0 / 0.8515 GB, free: 15.88 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.1725, allocations: 33.7 kB / 0.8515 GB, free: 15.84 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.287e-06/0.1725, allocations: 0 / 0.8515 GB, free: 15.84 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.1725, allocations: 15.92 kB / 0.8515 GB, free: 15.83 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1725, allocations: 7.938 kB / 0.8515 GB, free: 15.82 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1725, allocations: 1.781 kB / 0.8515 GB, free: 15.82 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004668/0.173, allocations: 0.495 MB / 0.852 GB, free: 15.3 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.544e-05/0.173, allocations: 15.86 kB / 0.852 GB, free: 15.28 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.868e-05/0.1731, allocations: 8.688 kB / 0.852 GB, free: 15.27 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.564e-05/0.1732, allocations: 14.53 kB / 0.852 GB, free: 15.26 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.619e-05/0.1732, allocations: 31.94 kB / 0.8521 GB, free: 15.23 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.1732, allocations: 4 kB / 0.8521 GB, free: 15.23 MB / 490.8 MB Notification: Performance of sorting global known variables: time 9.633e-05/0.1733, allocations: 156.4 kB / 0.8522 GB, free: 15.07 MB / 490.8 MB Notification: Performance of sort global known variables: time 5e-08/0.1733, allocations: 0 / 0.8522 GB, free: 15.07 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0001948/0.1735, allocations: 56 kB / 0.8523 GB, free: 15.02 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.000119/0.1736, allocations: 129 kB / 0.8524 GB, free: 14.88 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003655/0.174, allocations: 379.3 kB / 0.8528 GB, free: 14.47 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.174, allocations: 0 / 0.8528 GB, free: 14.47 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.1742, allocations: 173.6 kB / 0.8529 GB, free: 14.29 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.1745, allocations: 67 kB / 0.853 GB, free: 14.22 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.1756, allocations: 0.6941 MB / 0.8537 GB, free: 13.57 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.216e-05/0.1757, allocations: 125.5 kB / 0.8538 GB, free: 13.43 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.866e-05/0.1758, allocations: 27.42 kB / 0.8538 GB, free: 13.4 MB / 490.8 MB Notification: Performance of SimCode: time 5.91e-07/0.1758, allocations: 0 / 0.8538 GB, free: 13.4 MB / 490.8 MB Notification: Performance of Templates: time 0.2665/0.4422, allocations: 2.924 MB / 0.8567 GB, free: 28.86 MB / 490.8 MB " [Timeout remaining time 660] make -j1 -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference.makefile [Timeout 660] (rm -f Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference.pipe ; mkfifo Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference.pipe ; head -c 1048576 < Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference.pipe >> ../files/Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference.sim & ./Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsInCombination_Chuan2001_reference.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.187750956974924]