Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.651/2.651, allocations: 287.9 MB / 302.9 MB, free: 8.332 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001428/0.001428, allocations: 181.2 kB / 371.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.15/2.15, allocations: 205.4 MB / 0.6301 GB, free: 10.43 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001033/0.001032, allocations: 93.28 kB / 0.7434 GB, free: 6.445 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007949/0.0007955, allocations: 15.81 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1609, allocations: 115.2 MB / 0.9788 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0007626/0.1617, allocations: 457.6 kB / 0.9792 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.1631, allocations: 1.15 MB / 0.9803 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.665e-05/0.1632, allocations: 4 kB / 0.9803 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.761e-05/0.1632, allocations: 0 / 0.9803 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.673e-05/0.1633, allocations: 7.922 kB / 0.9803 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.1638, allocations: 117.6 kB / 0.9804 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.993e-05/0.1639, allocations: 59.86 kB / 0.9805 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.546e-05/0.164, allocations: 23.92 kB / 0.9805 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.014e-05/0.1641, allocations: 39.89 kB / 0.9806 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.057e-05/0.1642, allocations: 31.91 kB / 0.9806 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.421e-05/0.1642, allocations: 4 kB / 0.9806 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.304e-05/0.1643, allocations: 15.98 kB / 0.9806 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.1643, allocations: 15.97 kB / 0.9806 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.217e-05/0.1644, allocations: 41.64 kB / 0.9807 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.1645, allocations: 67.83 kB / 0.9807 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.992e-06/0.1645, allocations: 4 kB / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.296e-06/0.1645, allocations: 0 / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.864e-06/0.1646, allocations: 0 / 0.9807 GB, free: 26.17 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004625/0.165, allocations: 391.4 kB / 0.9811 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.1651, allocations: 12.02 kB / 0.9811 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.278e-05/0.1651, allocations: 7.906 kB / 0.9811 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.959e-05/0.1652, allocations: 171 kB / 0.9813 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.1653, allocations: 12 kB / 0.9813 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.025e-05/0.1653, allocations: 8 kB / 0.9813 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002086/0.1655, allocations: 69.59 kB / 0.9814 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/0.1655, allocations: 0 / 0.9814 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.1656, allocations: 4 kB / 0.9814 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.44e-06/0.1656, allocations: 0 / 0.9814 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.1658, allocations: 55.95 kB / 0.9814 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.1663, allocations: 320.7 kB / 0.9817 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/0.1665, allocations: 62.48 kB / 0.9818 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.1665, allocations: 0 / 0.9818 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.1668, allocations: 91.53 kB / 0.9819 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.521e-06/0.1668, allocations: 4 kB / 0.9819 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.000492/0.1673, allocations: 153.4 kB / 0.982 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.1674, allocations: 59.34 kB / 0.9821 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.283e-05/0.1674, allocations: 121.7 kB / 0.9822 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.1675, allocations: 33.7 kB / 0.9822 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.1675, allocations: 88.27 kB / 0.9823 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.1676, allocations: 19.8 kB / 0.9823 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.473e-05/0.1676, allocations: 0 / 0.9823 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.267e-05/0.1677, allocations: 314.8 kB / 0.9826 GB, free: 24 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.1679, allocations: 59.95 kB / 0.9827 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.1681, allocations: 83.39 kB / 0.9828 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.1683, allocations: 85.67 kB / 0.9829 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1683, allocations: 0 / 0.9829 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005113/0.1688, allocations: 207.1 kB / 0.9831 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.1689, allocations: 37.69 kB / 0.9831 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.1689, allocations: 4.375 kB / 0.9831 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.1689, allocations: 0 / 0.9831 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.169, allocations: 15.98 kB / 0.9831 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.914e-06/0.1691, allocations: 0 / 0.9831 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.1693, allocations: 59.81 kB / 0.9832 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.1694, allocations: 11.98 kB / 0.9832 GB, free: 23.41 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 9.322e-05/0.1695, allocations: 124 kB / 0.9833 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.1695, allocations: 7.984 kB / 0.9833 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003523/0.1699, allocations: 130 kB / 0.9834 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.34e-06/0.1699, allocations: 0 / 0.9834 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.713e-06/0.1699, allocations: 0 / 0.9834 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.401e-06/0.1699, allocations: 0 / 0.9834 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004632/0.1704, allocations: 374.4 kB / 0.9838 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.583e-06/0.1704, allocations: 4 kB / 0.9838 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.624e-05/0.1705, allocations: 15.98 kB / 0.9838 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.1705, allocations: 0 / 0.9838 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.1705, allocations: 0 / 0.9838 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.752e-06/0.1706, allocations: 480 / 0.9838 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.743e-06/0.1706, allocations: 3.953 kB / 0.9838 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.1709, allocations: 223.3 kB / 0.984 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.1709, allocations: 85 kB / 0.9841 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.171, allocations: 0 / 0.9841 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.1711, allocations: 11.94 kB / 0.9841 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.1712, allocations: 15.92 kB / 0.9841 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.1712, allocations: 3.953 kB / 0.9841 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.225e-05/0.1712, allocations: 91.27 kB / 0.9842 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.85e-07/0.1713, allocations: 0 / 0.9842 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000359/0.1716, allocations: 24 kB / 0.9842 GB, free: 22.21 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001322/0.1718, allocations: 107.2 kB / 0.9843 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004363/0.1722, allocations: 179.3 kB / 0.9845 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.059e-06/0.1722, allocations: 0 / 0.9845 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.1724, allocations: 39.95 kB / 0.9846 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.1726, allocations: 20.11 kB / 0.9846 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003561/0.173, allocations: 162.6 kB / 0.9847 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.1732, allocations: 0.6887 MB / 0.9854 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.708e-05/0.1733, allocations: 12.17 kB / 0.9854 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.1733, allocations: 7.438 kB / 0.9854 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of SimCode: time 1.443e-06/0.1733, allocations: 0 / 0.9854 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of Templates: time 0.004111/0.1774, allocations: 1.226 MB / 0.9866 GB, free: 19.72 MB / 0.6198 GB