Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004647/0.004647, allocations: 105.8 kB / 15.74 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 192.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.136/1.136, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.337/1.337, allocations: 251.7 MB / 0.5094 GB, free: 2.977 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.91 kB / 0.7258 GB, free: 9.086 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1569, allocations: 104.7 MB / 0.828 GB, free: 276 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002287/0.1592, allocations: 1.403 MB / 0.8294 GB, free: 14.86 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005121/0.1598, allocations: 272 kB / 0.8297 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.982e-05/0.1598, allocations: 0 / 0.8297 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 7.391e-05/0.1599, allocations: 7.922 kB / 0.8297 GB, free: 14.58 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.948e-05/0.16, allocations: 15.88 kB / 0.8297 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001267/0.1602, allocations: 31.89 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.1603, allocations: 75.78 kB / 0.8298 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 6.754e-05/0.1604, allocations: 4 kB / 0.8298 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.034e-05/0.1605, allocations: 35.84 kB / 0.8298 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.895e-05/0.1606, allocations: 23.91 kB / 0.8298 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.1606, allocations: 8 kB / 0.8299 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.1606, allocations: 4 kB / 0.8299 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.266e-05/0.1606, allocations: 11.94 kB / 0.8299 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.561e-05/0.1607, allocations: 31.86 kB / 0.8299 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 9.458e-05/0.1608, allocations: 63.7 kB / 0.83 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1608, allocations: 0 / 0.83 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1608, allocations: 0 / 0.83 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.1608, allocations: 0 / 0.83 GB, free: 14.28 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004142/0.1612, allocations: 393 kB / 0.8303 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.1613, allocations: 12.03 kB / 0.8303 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.1613, allocations: 8.844 kB / 0.8304 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.1614, allocations: 172.3 kB / 0.8305 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1615, allocations: 8.375 kB / 0.8305 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.1615, allocations: 4.375 kB / 0.8305 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.1616, allocations: 74.16 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.1616, allocations: 192 / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.1617, allocations: 7.938 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.1617, allocations: 0 / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.592e-05/0.1618, allocations: 39.92 kB / 0.8306 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003519/0.1621, allocations: 292.8 kB / 0.8309 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.1622, allocations: 78.38 kB / 0.831 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.317e-05/0.1623, allocations: 64.88 kB / 0.8311 GB, free: 12.99 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.1624, allocations: 0 / 0.8311 GB, free: 12.99 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.1625, allocations: 117.1 kB / 0.8312 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.1625, allocations: 0 / 0.8312 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003425/0.1629, allocations: 191.2 kB / 0.8314 GB, free: 12.66 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.1629, allocations: 122.8 kB / 0.8315 GB, free: 12.51 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.347e-05/0.163, allocations: 105.8 kB / 0.8316 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.163, allocations: 33.7 kB / 0.8316 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.1631, allocations: 88.25 kB / 0.8317 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.1631, allocations: 27.64 kB / 0.8317 GB, free: 12.24 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.1632, allocations: 37.7 kB / 0.8318 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.907e-05/0.1632, allocations: 322.8 kB / 0.8321 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.517e-05/0.1633, allocations: 39.92 kB / 0.8321 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.1634, allocations: 100.6 kB / 0.8322 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.1636, allocations: 211.8 kB / 0.8324 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1636, allocations: 3.938 kB / 0.8324 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002729/0.1639, allocations: 207 kB / 0.8326 GB, free: 11.24 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.164, allocations: 36.34 kB / 0.8326 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.164, allocations: 4.281 kB / 0.8326 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.164, allocations: 8 kB / 0.8326 GB, free: 11.19 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.1641, allocations: 23.92 kB / 0.8327 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1641, allocations: 4 kB / 0.8327 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.543e-05/0.1642, allocations: 15.84 kB / 0.8327 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.1642, allocations: 8 kB / 0.8327 GB, free: 11.14 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001191/0.1643, allocations: 179.4 kB / 0.8329 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.1643, allocations: 7.906 kB / 0.8329 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.921e-05/0.1644, allocations: 12.38 kB / 0.8329 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1644, allocations: 0 / 0.8329 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.1644, allocations: 0 / 0.8329 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1644, allocations: 4 kB / 0.8329 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.1645, allocations: 185.5 kB / 0.8331 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1645, allocations: 0 / 0.8331 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.342e-05/0.1646, allocations: 11.98 kB / 0.8331 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1646, allocations: 0 / 0.8331 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.1646, allocations: 4 kB / 0.8331 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1646, allocations: 0 / 0.8331 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1646, allocations: 4.312 kB / 0.8331 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.1649, allocations: 226.8 kB / 0.8333 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.497e-05/0.165, allocations: 92.94 kB / 0.8334 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.165, allocations: 11.94 kB / 0.8334 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.856e-05/0.1651, allocations: 4 kB / 0.8334 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.876e-05/0.1651, allocations: 11.92 kB / 0.8334 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.1651, allocations: 4 kB / 0.8334 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.072e-05/0.1652, allocations: 95.25 kB / 0.8335 GB, free: 10.19 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1652, allocations: 0 / 0.8335 GB, free: 10.19 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002106/0.1654, allocations: 24 kB / 0.8335 GB, free: 10.17 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 9.512e-05/0.1655, allocations: 107.2 kB / 0.8336 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.1657, allocations: 171.7 kB / 0.8338 GB, free: 9.875 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1658, allocations: 4.062 kB / 0.8338 GB, free: 9.871 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001617/0.1659, allocations: 183.4 kB / 0.834 GB, free: 9.68 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001751/0.1661, allocations: 22.69 kB / 0.834 GB, free: 9.66 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003184/0.1664, allocations: 179.1 kB / 0.8342 GB, free: 9.457 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.1667, allocations: 0.6887 MB / 0.8348 GB, free: 8.742 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.556e-05/0.1667, allocations: 16.64 kB / 0.8349 GB, free: 8.723 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.1667, allocations: 11.44 kB / 0.8349 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of SimCode: time 2.21e-07/0.1667, allocations: 0 / 0.8349 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of Templates: time 0.002943/0.1697, allocations: 0.9749 MB / 0.8358 GB, free: 7.742 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)