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.00121/0.00121, allocations: 104.4 kB / 19.71 MB, free: 440 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.001158/0.001158, allocations: 217.3 kB / 23 MB, free: 2.969 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.9607/0.9607, allocations: 230.6 MB / 256.8 MB, free: 9.582 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.7256/0.7256, allocations: 312.3 MB / 0.6108 GB, free: 97.62 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.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.002083/0.002083, allocations: 82.92 kB / 0.7699 GB, free: 20.19 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1643, allocations: 73.99 MB / 0.8421 GB, free: 10.34 MB / 474.8 MB Notification: Performance of NFInst.instantiate(Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI): time 0.002883/0.1671, allocations: 2.309 MB / 0.8444 GB, free: 8.027 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.001049/0.1682, allocations: 0.5873 MB / 0.845 GB, free: 7.445 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.1683, allocations: 4.562 kB / 0.845 GB, free: 7.441 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.000141/0.1685, allocations: 27.7 kB / 0.845 GB, free: 7.414 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.1687, allocations: 84.42 kB / 0.8451 GB, free: 7.332 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.1689, allocations: 44.58 kB / 0.8451 GB, free: 7.289 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.1692, allocations: 259.3 kB / 0.8454 GB, free: 7.035 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1693, allocations: 33.17 kB / 0.8454 GB, free: 7.004 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.1695, allocations: 99.64 kB / 0.8455 GB, free: 6.906 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.1697, allocations: 96.14 kB / 0.8456 GB, free: 6.812 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.1697, allocations: 16.59 kB / 0.8456 GB, free: 6.797 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 2.739e-05/0.1697, allocations: 19.94 kB / 0.8456 GB, free: 6.777 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 3.742e-05/0.1698, allocations: 44.58 kB / 0.8457 GB, free: 6.734 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 9.447e-05/0.1699, allocations: 87.59 kB / 0.8458 GB, free: 6.648 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.1701, allocations: 198 kB / 0.8459 GB, free: 6.457 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1701, allocations: 0.7812 kB / 0.8459 GB, free: 6.457 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1701, allocations: 0 / 0.8459 GB, free: 6.457 MB / 474.8 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.1701, allocations: 0.625 kB / 0.8459 GB, free: 6.457 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.0007293/0.1708, allocations: 0.4942 MB / 0.8464 GB, free: 5.918 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1709, allocations: 8.625 kB / 0.8464 GB, free: 5.91 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.429e-05/0.1709, allocations: 25.3 kB / 0.8465 GB, free: 5.887 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.1712, allocations: 187.1 kB / 0.8466 GB, free: 5.676 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.1712, allocations: 9.109 kB / 0.8466 GB, free: 5.668 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/0.1712, allocations: 24.61 kB / 0.8467 GB, free: 5.645 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003044/0.1715, allocations: 191 kB / 0.8468 GB, free: 5.441 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.1715, allocations: 0 / 0.8468 GB, free: 5.441 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.1716, allocations: 12.58 kB / 0.8469 GB, free: 5.43 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.1716, allocations: 3.938 kB / 0.8469 GB, free: 5.426 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002405/0.1718, allocations: 147.5 kB / 0.847 GB, free: 5.277 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007216/0.1725, allocations: 482.7 kB / 0.8475 GB, free: 4.773 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.1729, allocations: 169.2 kB / 0.8476 GB, free: 4.594 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.173, allocations: 99.64 kB / 0.8477 GB, free: 4.488 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.268e-05/0.173, allocations: 4 kB / 0.8477 GB, free: 4.484 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.1732, allocations: 225.6 kB / 0.8479 GB, free: 4.234 MB / 474.8 MB Notification: Performance of pre-optimization done (n=20): time 2.665e-06/0.1732, allocations: 0 / 0.8479 GB, free: 4.234 MB / 474.8 MB Notification: Performance of matching and sorting (n=21): time 0.0009757/0.1742, allocations: 0.7042 MB / 0.8486 GB, free: 3.473 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/0.1743, allocations: 137.2 kB / 0.8488 GB, free: 3.309 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.1744, allocations: 219 kB / 0.849 GB, free: 3.086 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.1745, allocations: 30.3 kB / 0.849 GB, free: 3.051 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.823e-05/0.1745, allocations: 132.5 kB / 0.8491 GB, free: 2.918 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.1746, allocations: 67.92 kB / 0.8492 GB, free: 2.852 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-05/0.1746, allocations: 62.28 kB / 0.8492 GB, free: 2.785 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 8.162e-05/0.1747, allocations: 334.8 kB / 0.8496 GB, free: 2.449 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.1748, allocations: 146.1 kB / 0.8497 GB, free: 2.289 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.175, allocations: 221.9 kB / 0.8499 GB, free: 2.027 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.1753, allocations: 285.3 kB / 0.8502 GB, free: 1.711 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1753, allocations: 0.625 kB / 0.8502 GB, free: 1.711 MB / 474.8 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003762/0.1756, allocations: 382.3 kB / 0.8506 GB, free: 1.309 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.341e-05/0.1757, allocations: 75.86 kB / 0.8506 GB, free: 1.223 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1757, allocations: 8 kB / 0.8506 GB, free: 1.215 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1757, allocations: 4.562 kB / 0.8506 GB, free: 1.211 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.1758, allocations: 52.41 kB / 0.8507 GB, free: 1.16 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.1758, allocations: 8.438 kB / 0.8507 GB, free: 1.152 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.521e-05/0.1759, allocations: 16.58 kB / 0.8507 GB, free: 1.137 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.1759, allocations: 16.61 kB / 0.8507 GB, free: 1.121 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.0001634/0.1761, allocations: 176.5 kB / 0.8509 GB, free: 0.9375 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.1761, allocations: 27.8 kB / 0.8509 GB, free: 0.9102 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.1762, allocations: 26.48 kB / 0.8509 GB, free: 0.8789 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.1762, allocations: 4.719 kB / 0.851 GB, free: 0.875 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1762, allocations: 0 / 0.851 GB, free: 0.875 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.1762, allocations: 0.625 kB / 0.851 GB, free: 0.875 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005087/0.1767, allocations: 0.5335 MB / 0.8515 GB, free: 300 kB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1767, allocations: 4.578 kB / 0.8515 GB, free: 296 kB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.1768, allocations: 36.42 kB / 0.8515 GB, free: 260 kB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-06/0.1768, allocations: 0.5938 kB / 0.8515 GB, free: 260 kB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.1768, allocations: 12.58 kB / 0.8515 GB, free: 248 kB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1768, allocations: 3.938 kB / 0.8515 GB, free: 244 kB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1768, allocations: 0.5312 kB / 0.8515 GB, free: 244 kB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004638/0.1773, allocations: 494.1 kB / 0.852 GB, free: 15.72 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.926e-05/0.1773, allocations: 24.73 kB / 0.852 GB, free: 15.7 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.825e-05/0.1773, allocations: 8 kB / 0.852 GB, free: 15.69 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.143e-05/0.1774, allocations: 13.5 kB / 0.852 GB, free: 15.68 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.645e-05/0.1775, allocations: 23.98 kB / 0.8521 GB, free: 15.66 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.1775, allocations: 15.98 kB / 0.8521 GB, free: 15.64 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.0001003/0.1776, allocations: 156.4 kB / 0.8522 GB, free: 15.49 MB / 490.8 MB Notification: Performance of sort global known variables: time 7e-08/0.1776, allocations: 0.625 kB / 0.8522 GB, free: 15.49 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.0002039/0.1778, allocations: 55.94 kB / 0.8523 GB, free: 15.43 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 9.812e-05/0.1779, allocations: 116.5 kB / 0.8524 GB, free: 15.31 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0003606/0.1783, allocations: 386.5 kB / 0.8528 GB, free: 14.89 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1783, allocations: 0.5938 kB / 0.8528 GB, free: 14.89 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.1784, allocations: 173.6 kB / 0.8529 GB, free: 14.71 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.1787, allocations: 70.52 kB / 0.853 GB, free: 14.64 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009994/0.1797, allocations: 0.6937 MB / 0.8537 GB, free: 14 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.025e-05/0.1798, allocations: 121.6 kB / 0.8538 GB, free: 13.86 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.034e-05/0.1799, allocations: 31.42 kB / 0.8538 GB, free: 13.83 MB / 490.8 MB Notification: Performance of SimCode: time 8.62e-07/0.1799, allocations: 0 / 0.8538 GB, free: 13.83 MB / 490.8 MB Notification: Performance of Templates: time 0.2681/0.448, allocations: 2.928 MB / 0.8567 GB, free: 29.78 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 > Pharmacolibrary_Pharmacolibrary.Drugs.A_AlimentaryTractAndMetabolism.A12C_OtherMineralSupplements.A12CC30_MagnesiumDifferentSaltsI.MagnesiumDifferentSaltsI.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.524379379115999]