Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") translateModel(IBPSA.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009055/0.0009056, allocations: 97.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009733/0.0009734, allocations: 179.7 kB / 16.57 MB, free: 6.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 240.5 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6624/0.6624, allocations: 113.8 MB / 405.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003316, allocations: 4.938 kB / 493 MB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1511, allocations: 77.16 MB / 0.5568 GB, free: 11.61 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPID): time 0.003423/0.1545, allocations: 3.115 MB / 0.5599 GB, free: 8.484 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1564, allocations: 1.204 MB / 0.5611 GB, free: 7.273 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.1567, allocations: 19.88 kB / 0.5611 GB, free: 7.254 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.137e-05/0.1568, allocations: 51.39 kB / 0.5611 GB, free: 7.203 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004879/0.1573, allocations: 187.4 kB / 0.5613 GB, free: 7.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009042/0.1582, allocations: 473.1 kB / 0.5618 GB, free: 6.574 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007677/0.159, allocations: 0.6022 MB / 0.5623 GB, free: 5.969 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003609/0.1594, allocations: 259.1 kB / 0.5626 GB, free: 5.707 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003493/0.1597, allocations: 298.6 kB / 0.5629 GB, free: 5.414 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00028/0.16, allocations: 258.4 kB / 0.5631 GB, free: 5.16 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.633e-05/0.1601, allocations: 20 kB / 0.5631 GB, free: 5.141 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.54e-05/0.1601, allocations: 24 kB / 0.5632 GB, free: 5.117 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1602, allocations: 111.4 kB / 0.5633 GB, free: 5.008 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1604, allocations: 137.3 kB / 0.5634 GB, free: 4.867 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005179/0.1609, allocations: 0.6198 MB / 0.564 GB, free: 4.246 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.1609, allocations: 0 / 0.564 GB, free: 4.246 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1609, allocations: 0 / 0.564 GB, free: 4.246 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.1609, allocations: 0 / 0.564 GB, free: 4.246 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.0017/0.1626, allocations: 1.067 MB / 0.565 GB, free: 3.121 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1627, allocations: 12.02 kB / 0.5651 GB, free: 3.109 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.1628, allocations: 94.88 kB / 0.5651 GB, free: 3.016 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008695/0.1637, allocations: 0.5668 MB / 0.5657 GB, free: 2.406 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.1638, allocations: 100.4 kB / 0.5658 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.273e-05/0.1639, allocations: 52 kB / 0.5658 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.1649, allocations: 0.6079 MB / 0.5664 GB, free: 1.598 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1649, allocations: 0 / 0.5664 GB, free: 1.598 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.307e-05/0.165, allocations: 20 kB / 0.5665 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.165, allocations: 16 kB / 0.5665 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000927/0.1659, allocations: 443.6 kB / 0.5669 GB, free: 1.129 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002639/0.1686, allocations: 2.126 MB / 0.569 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.1698, allocations: 0.5342 MB / 0.5695 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.1699, allocations: 7.938 kB / 0.5695 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006471/0.1705, allocations: 286.2 kB / 0.5698 GB, free: 14.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 2.004e-06/0.1705, allocations: 0 / 0.5698 GB, free: 14.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.00143/0.172, allocations: 0.6404 MB / 0.5704 GB, free: 13.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.272e-05/0.1721, allocations: 92.8 kB / 0.5705 GB, free: 13.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006618/0.1727, allocations: 0.6139 MB / 0.5711 GB, free: 12.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.651e-05/0.1728, allocations: 33.7 kB / 0.5711 GB, free: 12.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.1731, allocations: 356.8 kB / 0.5715 GB, free: 12.31 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.1732, allocations: 149.8 kB / 0.5716 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.1732, allocations: 12 kB / 0.5716 GB, free: 12.15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1733, allocations: 326 kB / 0.5719 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004274/0.1738, allocations: 185 kB / 0.5721 GB, free: 11.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.1743, allocations: 280.2 kB / 0.5724 GB, free: 11.34 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004643/0.1747, allocations: 234.4 kB / 0.5726 GB, free: 11.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1747, allocations: 4 kB / 0.5726 GB, free: 11.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00114/0.1759, allocations: 0.6178 MB / 0.5732 GB, free: 10.46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003965/0.1763, allocations: 0.9869 MB / 0.5742 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1763, allocations: 4 kB / 0.5742 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1763, allocations: 11.95 kB / 0.5742 GB, free: 9.383 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.1768, allocations: 111.8 kB / 0.5743 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.1768, allocations: 11.98 kB / 0.5743 GB, free: 9.262 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.1772, allocations: 67.41 kB / 0.5744 GB, free: 9.195 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.481e-05/0.1773, allocations: 29.08 kB / 0.5744 GB, free: 9.168 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/0.1773, allocations: 4 kB / 0.5744 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009248/0.1782, allocations: 0.496 MB / 0.5749 GB, free: 8.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1782, allocations: 4 kB / 0.5749 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.233e-06/0.1783, allocations: 7.984 kB / 0.5749 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.1787, allocations: 103.8 kB / 0.575 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1787, allocations: 4 kB / 0.575 GB, free: 8.543 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.179, allocations: 67.75 kB / 0.5751 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.1791, allocations: 16 kB / 0.5751 GB, free: 8.461 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002873/0.1794, allocations: 277 kB / 0.5753 GB, free: 8.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.699e-05/0.1795, allocations: 79 kB / 0.5754 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.1796, allocations: 83.2 kB / 0.5755 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1796, allocations: 4 kB / 0.5755 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1797, allocations: 0 / 0.5755 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1797, allocations: 4 kB / 0.5755 GB, free: 8.008 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006448/0.1803, allocations: 0.6219 MB / 0.5761 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1803, allocations: 4 kB / 0.5761 GB, free: 7.332 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004546/0.1808, allocations: 83.89 kB / 0.5762 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1808, allocations: 4 kB / 0.5762 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.054e-05/0.1808, allocations: 11.98 kB / 0.5762 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.1808, allocations: 4 kB / 0.5762 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1808, allocations: 0 / 0.5762 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.1823, allocations: 0.7512 MB / 0.5769 GB, free: 6.461 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002307/0.1825, allocations: 192.1 kB / 0.5771 GB, free: 6.254 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.115e-05/0.1826, allocations: 8 kB / 0.5771 GB, free: 6.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.183, allocations: 51.95 kB / 0.5772 GB, free: 6.195 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.066e-05/0.1831, allocations: 27.95 kB / 0.5772 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/0.1832, allocations: 19.98 kB / 0.5772 GB, free: 6.148 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004404/0.1836, allocations: 419.1 kB / 0.5776 GB, free: 5.746 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1836, allocations: 4 kB / 0.5776 GB, free: 5.742 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005656/0.1842, allocations: 219.3 kB / 0.5778 GB, free: 5.527 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001359/0.1843, allocations: 110.7 kB / 0.5779 GB, free: 5.414 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.1858, allocations: 0.8049 MB / 0.5787 GB, free: 4.586 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1858, allocations: 3.938 kB / 0.5787 GB, free: 4.582 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004506/0.1863, allocations: 236 kB / 0.579 GB, free: 4.352 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000744/0.187, allocations: 169.7 kB / 0.5791 GB, free: 4.191 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.189, allocations: 1.385 MB / 0.5805 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.1894, allocations: 0.9339 MB / 0.5814 GB, free: 1.812 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003413/0.1898, allocations: 89.11 kB / 0.5815 GB, free: 1.727 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.1899, allocations: 43.44 kB / 0.5815 GB, free: 1.684 MB / 446.1 MB Notification: Performance of SimCode: time 1.683e-06/0.1899, allocations: 0 / 0.5815 GB, free: 1.684 MB / 446.1 MB Notification: Performance of Templates: time 0.2741/0.4641, allocations: 6.867 MB / 0.5882 GB, free: 31.24 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.makefile (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.sim & ./IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)