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.004866/0.004866, allocations: 101.7 kB / 15.73 MB, free: 6.477 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.001255/0.001255, allocations: 192.6 kB / 16.67 MB, free: 6.391 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.149/1.149, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.332/1.332, allocations: 251.7 MB / 0.5094 GB, free: 3.09 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.001233/0.001233, allocations: 63.91 kB / 0.7258 GB, free: 9.074 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1591, allocations: 104.7 MB / 0.828 GB, free: 260 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.00218/0.1614, allocations: 1.407 MB / 0.8294 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005024/0.1619, allocations: 276 kB / 0.8297 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.1619, allocations: 0 / 0.8297 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 8.623e-05/0.162, allocations: 7.922 kB / 0.8297 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.1621, allocations: 15.86 kB / 0.8297 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001332/0.1623, allocations: 35.84 kB / 0.8297 GB, free: 14.51 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001296/0.1624, allocations: 75.77 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 7.804e-05/0.1625, allocations: 8 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.458e-05/0.1626, allocations: 23.92 kB / 0.8298 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.776e-05/0.1627, allocations: 35.89 kB / 0.8299 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.1627, allocations: 4 kB / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.312e-05/0.1627, allocations: 8 kB / 0.8299 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.409e-05/0.1628, allocations: 7.938 kB / 0.8299 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.601e-05/0.1628, allocations: 27.86 kB / 0.8299 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.1629, allocations: 67.7 kB / 0.83 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1629, allocations: 0 / 0.83 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.343e-06/0.163, allocations: 3.938 kB / 0.83 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.163, allocations: 4 kB / 0.83 GB, free: 14.25 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.0004293/0.1634, allocations: 389 kB / 0.8303 GB, free: 13.81 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.1634, allocations: 12.03 kB / 0.8304 GB, free: 13.8 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.1635, allocations: 8.844 kB / 0.8304 GB, free: 13.79 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.1636, allocations: 180.3 kB / 0.8305 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.1636, allocations: 384 / 0.8305 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.1637, allocations: 4.375 kB / 0.8305 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001481/0.1638, allocations: 74.16 kB / 0.8306 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.1638, allocations: 192 / 0.8306 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.1639, allocations: 11.88 kB / 0.8306 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.1639, allocations: 0 / 0.8306 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.164, allocations: 43.92 kB / 0.8307 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003676/0.1643, allocations: 284.8 kB / 0.8309 GB, free: 13.11 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.1645, allocations: 70.5 kB / 0.831 GB, free: 13.03 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.315e-05/0.1645, allocations: 60.88 kB / 0.8311 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.1646, allocations: 4 kB / 0.8311 GB, free: 12.96 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.1647, allocations: 121.1 kB / 0.8312 GB, free: 12.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.1647, allocations: 0 / 0.8312 GB, free: 12.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003534/0.1651, allocations: 191.2 kB / 0.8314 GB, free: 12.63 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.1652, allocations: 110.9 kB / 0.8315 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.113e-05/0.1652, allocations: 117.8 kB / 0.8316 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.1653, allocations: 29.7 kB / 0.8316 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.561e-05/0.1653, allocations: 88.12 kB / 0.8317 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.1653, allocations: 31.7 kB / 0.8317 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.1654, allocations: 33.7 kB / 0.8318 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.1655, allocations: 322.8 kB / 0.8321 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.964e-05/0.1656, allocations: 39.94 kB / 0.8321 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.1657, allocations: 111.4 kB / 0.8322 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.1659, allocations: 211.8 kB / 0.8324 GB, free: 11.43 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1659, allocations: 3.938 kB / 0.8324 GB, free: 11.42 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002791/0.1662, allocations: 203.3 kB / 0.8326 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.1663, allocations: 37.69 kB / 0.8326 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1663, allocations: 0 / 0.8326 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1663, allocations: 7.938 kB / 0.8326 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.1664, allocations: 27.98 kB / 0.8327 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.1664, allocations: 0 / 0.8327 GB, free: 11.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.556e-05/0.1665, allocations: 19.78 kB / 0.8327 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.1665, allocations: 8 kB / 0.8327 GB, free: 11.11 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.0001194/0.1666, allocations: 175.5 kB / 0.8329 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.1667, allocations: 7.906 kB / 0.8329 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.84e-05/0.1667, allocations: 8.375 kB / 0.8329 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.1667, allocations: 0 / 0.8329 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.1667, allocations: 0 / 0.8329 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1667, allocations: 0 / 0.8329 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.1668, allocations: 189.5 kB / 0.8331 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1668, allocations: 3.984 kB / 0.8331 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.801e-05/0.1669, allocations: 11.94 kB / 0.8331 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.1669, allocations: 0 / 0.8331 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1669, allocations: 8 kB / 0.8331 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1669, allocations: 0 / 0.8331 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1669, allocations: 0 / 0.8331 GB, free: 10.64 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.1672, allocations: 230.5 kB / 0.8333 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.1673, allocations: 88.94 kB / 0.8334 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.1673, allocations: 8 kB / 0.8334 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.611e-05/0.1673, allocations: 4 kB / 0.8334 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.857e-05/0.1674, allocations: 11.98 kB / 0.8334 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.1674, allocations: 4 kB / 0.8334 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.538e-05/0.1674, allocations: 91.27 kB / 0.8335 GB, free: 10.17 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1675, allocations: 0 / 0.8335 GB, free: 10.17 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002079/0.1677, allocations: 20 kB / 0.8335 GB, free: 10.15 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.751e-05/0.1678, allocations: 114 kB / 0.8336 GB, free: 10.04 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002657/0.168, allocations: 175.2 kB / 0.8338 GB, free: 9.852 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.168, allocations: 0 / 0.8338 GB, free: 9.852 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.1682, allocations: 183.3 kB / 0.834 GB, free: 9.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000171/0.1684, allocations: 11.94 kB / 0.834 GB, free: 9.648 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003187/0.1687, allocations: 187.7 kB / 0.8342 GB, free: 9.438 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.1689, allocations: 0.7001 MB / 0.8349 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.153e-05/0.169, allocations: 12.92 kB / 0.8349 GB, free: 8.695 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.487e-05/0.169, allocations: 11.44 kB / 0.8349 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.169, allocations: 0 / 0.8349 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of Templates: time 0.002601/0.1716, allocations: 0.9784 MB / 0.8358 GB, free: 7.711 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)