Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.672/2.672, allocations: 287.9 MB / 302.9 MB, free: 8.262 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.001452/0.001452, allocations: 188.4 kB / 371.4 MB, free: 10.65 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.108/2.108, allocations: 205.4 MB / 0.6301 GB, free: 10.32 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.001044/0.001044, allocations: 92.73 kB / 0.7434 GB, free: 6.32 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004669/0.0004671, allocations: 11 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1631, allocations: 115.3 MB / 0.9788 GB, free: 28.15 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0009003/0.1641, allocations: 0.5754 MB / 0.9793 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001555/0.1656, allocations: 1.255 MB / 0.9805 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.325e-05/0.1657, allocations: 0 / 0.9805 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.21e-05/0.1658, allocations: 3.938 kB / 0.9806 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001273/0.166, allocations: 35.88 kB / 0.9806 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007784/0.1667, allocations: 237.9 kB / 0.9808 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.1669, allocations: 147.8 kB / 0.981 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1671, allocations: 29.09 kB / 0.981 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.1672, allocations: 99.78 kB / 0.9811 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.1674, allocations: 103.7 kB / 0.9812 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.496e-05/0.1675, allocations: 12 kB / 0.9812 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.504e-05/0.1676, allocations: 31.92 kB / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.684e-05/0.1677, allocations: 39.81 kB / 0.9813 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.6e-05/0.1678, allocations: 61.62 kB / 0.9813 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.168, allocations: 175.8 kB / 0.9815 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.713e-06/0.168, allocations: 0 / 0.9815 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.253e-06/0.168, allocations: 0 / 0.9815 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.566e-06/0.1681, allocations: 4 kB / 0.9815 GB, free: 25.34 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007523/0.1688, allocations: 494.6 kB / 0.982 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1689, allocations: 8.031 kB / 0.982 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.306e-05/0.169, allocations: 23.8 kB / 0.982 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.1692, allocations: 238.7 kB / 0.9822 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/0.1693, allocations: 12 kB / 0.9822 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/0.1694, allocations: 19.98 kB / 0.9822 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.1698, allocations: 182.2 kB / 0.9824 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1698, allocations: 0 / 0.9824 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.1698, allocations: 7.984 kB / 0.9824 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.548e-06/0.1698, allocations: 4 kB / 0.9824 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002594/0.1701, allocations: 100.2 kB / 0.9825 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006554/0.1708, allocations: 472.6 kB / 0.983 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.1711, allocations: 138.6 kB / 0.9831 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.1711, allocations: 0 / 0.9831 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003928/0.1715, allocations: 216.9 kB / 0.9833 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 3.393e-06/0.1716, allocations: 0 / 0.9833 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.001065/0.1726, allocations: 0.6032 MB / 0.9839 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.1727, allocations: 63.39 kB / 0.984 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.1728, allocations: 144.8 kB / 0.9841 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.776e-05/0.1729, allocations: 37.7 kB / 0.9841 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.556e-05/0.173, allocations: 100.6 kB / 0.9842 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.923e-05/0.173, allocations: 71.17 kB / 0.9843 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.743e-05/0.1731, allocations: 15.94 kB / 0.9843 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.487e-05/0.1732, allocations: 330.8 kB / 0.9846 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.1736, allocations: 148.7 kB / 0.9848 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.174, allocations: 209.1 kB / 0.985 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.1744, allocations: 220.4 kB / 0.9852 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.394e-06/0.1744, allocations: 0 / 0.9852 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001046/0.1754, allocations: 0.4937 MB / 0.9857 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/0.1755, allocations: 71.33 kB / 0.9857 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.1755, allocations: 4 kB / 0.9857 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1756, allocations: 4 kB / 0.9857 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003046/0.1759, allocations: 52.03 kB / 0.9858 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1759, allocations: 7.953 kB / 0.9858 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004839/0.1764, allocations: 99.67 kB / 0.9859 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.42e-05/0.1765, allocations: 23.98 kB / 0.9859 GB, free: 20.47 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001958/0.1767, allocations: 161.8 kB / 0.9861 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.534e-05/0.1768, allocations: 15.89 kB / 0.9861 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.1768, allocations: 9.875 kB / 0.9861 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.4e-06/0.1768, allocations: 8 kB / 0.9861 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.367e-06/0.1768, allocations: 3.938 kB / 0.9861 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.612e-06/0.1769, allocations: 3.953 kB / 0.9861 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000909/0.1778, allocations: 0.6668 MB / 0.9868 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1778, allocations: 0 / 0.9868 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.684e-05/0.1779, allocations: 4 kB / 0.9868 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.519e-06/0.1779, allocations: 8 kB / 0.9868 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.1779, allocations: 15.97 kB / 0.9868 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.425e-06/0.1779, allocations: 3.953 kB / 0.9868 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.927e-06/0.178, allocations: 0 / 0.9868 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007023/0.1787, allocations: 455 kB / 0.9872 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.491e-05/0.1787, allocations: 92.86 kB / 0.9873 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.87e-05/0.1788, allocations: 27.92 kB / 0.9873 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.179, allocations: 7.984 kB / 0.9874 GB, free: 18.9 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.479e-05/0.1791, allocations: 19.94 kB / 0.9874 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-05/0.1791, allocations: 19.97 kB / 0.9874 GB, free: 18.86 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.152e-05/0.1792, allocations: 104.8 kB / 0.9875 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.2e-07/0.1792, allocations: 0 / 0.9875 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000482/0.1797, allocations: 64 kB / 0.9876 GB, free: 18.7 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: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0001912/0.1799, allocations: 133.4 kB / 0.9877 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0008329/0.1808, allocations: 456.1 kB / 0.9881 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.061e-06/0.1808, allocations: 0 / 0.9881 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002586/0.1811, allocations: 123.9 kB / 0.9882 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.1814, allocations: 28.17 kB / 0.9883 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006528/0.1821, allocations: 354.9 kB / 0.9886 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.1823, allocations: 0.7245 MB / 0.9893 GB, free: 16.82 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.313e-05/0.1824, allocations: 25.72 kB / 0.9893 GB, free: 16.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.129e-05/0.1824, allocations: 23.42 kB / 0.9894 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of SimCode: time 1.628e-06/0.1824, allocations: 0 / 0.9894 GB, free: 16.78 MB / 0.6198 GB Notification: Performance of Templates: time 0.007901/0.1904, allocations: 3.258 MB / 0.9925 GB, free: 13.55 MB / 0.6198 GB