Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.531/2.531, allocations: 287.9 MB / 302.9 MB, free: 8.227 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.001481/0.001481, allocations: 183.7 kB / 371.4 MB, free: 10.69 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.234/2.234, allocations: 205.4 MB / 0.6301 GB, free: 10.45 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.001015/0.001015, allocations: 95.67 kB / 0.7434 GB, free: 6.461 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004555/0.0004558, allocations: 12 kB / 0.8662 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1554, allocations: 115.3 MB / 0.9788 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001089/0.1565, allocations: 393.8 kB / 0.9791 GB, free: 27.81 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.1584, allocations: 1.04 MB / 0.9802 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.82e-05/0.1584, allocations: 0 / 0.9802 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.68e-05/0.1585, allocations: 0 / 0.9802 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.846e-05/0.1586, allocations: 11.98 kB / 0.9802 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.1589, allocations: 35.83 kB / 0.9802 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.561e-05/0.159, allocations: 27.97 kB / 0.9802 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.1592, allocations: 15.98 kB / 0.9802 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.967e-05/0.1593, allocations: 7.938 kB / 0.9802 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.892e-05/0.1594, allocations: 27.89 kB / 0.9803 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.1594, allocations: 7.938 kB / 0.9803 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.593e-05/0.1595, allocations: 15.98 kB / 0.9803 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.587e-05/0.1596, allocations: 7.938 kB / 0.9803 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.009e-05/0.1596, allocations: 29.7 kB / 0.9803 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.1598, allocations: 35.91 kB / 0.9804 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.04e-06/0.1598, allocations: 4 kB / 0.9804 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.863e-06/0.1598, allocations: 0 / 0.9804 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.136e-06/0.1598, allocations: 4 kB / 0.9804 GB, free: 26.52 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006417/0.1605, allocations: 367.5 kB / 0.9807 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1605, allocations: 8.031 kB / 0.9807 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.1606, allocations: 11.91 kB / 0.9807 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.1607, allocations: 170.9 kB / 0.9809 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.1608, allocations: 8 kB / 0.9809 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.1608, allocations: 4 kB / 0.9809 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.1611, allocations: 69.66 kB / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1612, allocations: 0 / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.1612, allocations: 0 / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.314e-06/0.1612, allocations: 4 kB / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003658/0.1616, allocations: 55.95 kB / 0.981 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005836/0.1622, allocations: 280.8 kB / 0.9813 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.1625, allocations: 66.48 kB / 0.9814 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.1626, allocations: 3.984 kB / 0.9814 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.1629, allocations: 87.48 kB / 0.9815 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.608e-06/0.1629, allocations: 0 / 0.9815 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004722/0.1634, allocations: 141.5 kB / 0.9816 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.1634, allocations: 59.41 kB / 0.9817 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.109e-05/0.1635, allocations: 109.8 kB / 0.9818 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.1635, allocations: 25.7 kB / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.256e-05/0.1635, allocations: 84.14 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.1636, allocations: 27.7 kB / 0.9819 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.119e-06/0.1636, allocations: 4 kB / 0.9819 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.037e-05/0.1637, allocations: 314.8 kB / 0.9822 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.1638, allocations: 35.97 kB / 0.9822 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.1639, allocations: 68.2 kB / 0.9823 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.1641, allocations: 39.92 kB / 0.9823 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.134e-06/0.1641, allocations: 4 kB / 0.9823 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003328/0.1644, allocations: 121.7 kB / 0.9824 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1645, allocations: 5.25 kB / 0.9825 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.507e-06/0.1645, allocations: 4 kB / 0.9825 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1645, allocations: 0 / 0.9825 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.1647, allocations: 23.92 kB / 0.9825 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.286e-06/0.1647, allocations: 0 / 0.9825 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.733e-05/0.1648, allocations: 23.89 kB / 0.9825 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.1648, allocations: 7.953 kB / 0.9825 GB, free: 24.1 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 7.337e-05/0.1649, allocations: 113.8 kB / 0.9826 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.1649, allocations: 4 kB / 0.9826 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003302/0.1653, allocations: 118 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.1653, allocations: 4 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.577e-06/0.1653, allocations: 0 / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.56e-06/0.1653, allocations: 3.984 kB / 0.9827 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004802/0.1658, allocations: 370.4 kB / 0.9831 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.394e-06/0.1658, allocations: 0 / 0.9831 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.209e-05/0.1659, allocations: 15.98 kB / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.745e-06/0.1659, allocations: 0 / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.1659, allocations: 0 / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.617e-06/0.166, allocations: 0 / 0.9831 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.166, allocations: 4 kB / 0.9831 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.1663, allocations: 211.4 kB / 0.9833 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.336e-05/0.1663, allocations: 81.02 kB / 0.9834 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.1664, allocations: 8.25 kB / 0.9834 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.1665, allocations: 15.98 kB / 0.9834 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.1666, allocations: 4 kB / 0.9834 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.753e-05/0.1667, allocations: 7.984 kB / 0.9834 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.158e-05/0.1667, allocations: 91.17 kB / 0.9835 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-06/0.1668, allocations: 0 / 0.9835 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000686/0.1675, allocations: 15.94 kB / 0.9835 GB, free: 22.95 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.0001871/0.1677, allocations: 113.1 kB / 0.9836 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004627/0.1682, allocations: 79.88 kB / 0.9837 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.177e-06/0.1682, allocations: 0 / 0.9837 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002223/0.1684, allocations: 40.16 kB / 0.9838 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.1688, allocations: 12.19 kB / 0.9838 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005174/0.1694, allocations: 144.9 kB / 0.9839 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001837/0.1696, allocations: 0.6892 MB / 0.9846 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.226e-05/0.1697, allocations: 8.172 kB / 0.9846 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.1697, allocations: 7.438 kB / 0.9846 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of SimCode: time 2.448e-06/0.1698, allocations: 4 kB / 0.9846 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of Templates: time 0.004955/0.1747, allocations: 0.7089 MB / 0.9853 GB, free: 21.1 MB / 0.6198 GB