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.0009641/0.000964, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001103/0.001102, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.642/1.642, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.651/1.651, allocations: 252 MB / 0.5102 GB, free: 4.793 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.0005665/0.0005667, allocations: 15.44 kB / 0.6243 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6336/0.6342, allocations: 106.3 MB / 0.7281 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001689/0.6359, allocations: 1.117 MB / 0.7292 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005678/0.6365, allocations: 268.2 kB / 0.7295 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.103e-05/0.6366, allocations: 0 / 0.7295 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.988e-05/0.6367, allocations: 7.875 kB / 0.7295 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.6369, allocations: 15.91 kB / 0.7295 GB, free: 10 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001374/0.637, allocations: 23.98 kB / 0.7295 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001/0.6371, allocations: 55.78 kB / 0.7296 GB, free: 9.926 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.182e-05/0.6372, allocations: 7.984 kB / 0.7296 GB, free: 9.918 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.951e-05/0.6373, allocations: 27.92 kB / 0.7296 GB, free: 9.891 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.6375, allocations: 27.91 kB / 0.7297 GB, free: 9.863 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.183e-05/0.6375, allocations: 0 / 0.7297 GB, free: 9.863 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.517e-05/0.6375, allocations: 4 kB / 0.7297 GB, free: 9.859 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.444e-05/0.6375, allocations: 7.922 kB / 0.7297 GB, free: 9.852 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.081e-05/0.6376, allocations: 37.7 kB / 0.7297 GB, free: 9.809 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.6377, allocations: 45.88 kB / 0.7297 GB, free: 9.766 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.6377, allocations: 0 / 0.7297 GB, free: 9.766 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.183e-06/0.6377, allocations: 0 / 0.7297 GB, free: 9.766 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.6378, allocations: 0 / 0.7297 GB, free: 9.766 MB / 0.545 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.0005285/0.6383, allocations: 388.8 kB / 0.7301 GB, free: 9.332 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.6383, allocations: 16.02 kB / 0.7301 GB, free: 9.316 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.265e-05/0.6384, allocations: 7.906 kB / 0.7301 GB, free: 9.309 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.6386, allocations: 182.9 kB / 0.7303 GB, free: 9.09 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.6386, allocations: 7.938 kB / 0.7303 GB, free: 9.082 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.6386, allocations: 0 / 0.7303 GB, free: 9.082 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.6388, allocations: 69.67 kB / 0.7304 GB, free: 9.008 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.6388, allocations: 4 kB / 0.7304 GB, free: 9.004 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.6389, allocations: 4 kB / 0.7304 GB, free: 9 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.6389, allocations: 0 / 0.7304 GB, free: 9 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.639, allocations: 43.97 kB / 0.7304 GB, free: 8.957 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.6395, allocations: 300.7 kB / 0.7307 GB, free: 8.613 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.6396, allocations: 78.55 kB / 0.7308 GB, free: 8.527 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.32e-05/0.6397, allocations: 56.89 kB / 0.7309 GB, free: 8.469 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.6398, allocations: 3.984 kB / 0.7309 GB, free: 8.465 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.64, allocations: 121.1 kB / 0.731 GB, free: 8.328 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.794e-06/0.64, allocations: 0 / 0.731 GB, free: 8.328 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004163/0.6404, allocations: 211.3 kB / 0.7312 GB, free: 8.109 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/0.6405, allocations: 118.8 kB / 0.7313 GB, free: 7.969 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.196e-05/0.6406, allocations: 113.7 kB / 0.7314 GB, free: 7.848 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.6407, allocations: 33.7 kB / 0.7314 GB, free: 7.809 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.891e-05/0.6407, allocations: 92.12 kB / 0.7315 GB, free: 7.715 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.503e-05/0.6408, allocations: 23.66 kB / 0.7315 GB, free: 7.691 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/0.6408, allocations: 8 kB / 0.7315 GB, free: 7.684 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.6409, allocations: 318.8 kB / 0.7318 GB, free: 7.363 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.463e-05/0.641, allocations: 39.97 kB / 0.7319 GB, free: 7.324 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.6411, allocations: 108.5 kB / 0.732 GB, free: 7.188 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.6413, allocations: 81.69 kB / 0.7321 GB, free: 7.102 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6413, allocations: 0 / 0.7321 GB, free: 7.102 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000327/0.6416, allocations: 207 kB / 0.7323 GB, free: 6.887 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/0.6417, allocations: 29.7 kB / 0.7323 GB, free: 6.852 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.6417, allocations: 4.281 kB / 0.7323 GB, free: 6.848 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.6417, allocations: 11.95 kB / 0.7323 GB, free: 6.836 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.6419, allocations: 27.98 kB / 0.7323 GB, free: 6.809 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.6419, allocations: 3.938 kB / 0.7323 GB, free: 6.805 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.805e-05/0.6419, allocations: 8 kB / 0.7323 GB, free: 6.797 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.642, allocations: 15.94 kB / 0.7324 GB, free: 6.781 MB / 0.545 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 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.6421, allocations: 167.5 kB / 0.7325 GB, free: 6.602 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.6422, allocations: 15.91 kB / 0.7325 GB, free: 6.586 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.569e-05/0.6422, allocations: 4.375 kB / 0.7325 GB, free: 6.582 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.6422, allocations: 3.938 kB / 0.7325 GB, free: 6.578 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.6422, allocations: 3.953 kB / 0.7325 GB, free: 6.574 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.6422, allocations: 3.938 kB / 0.7326 GB, free: 6.57 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.6424, allocations: 193.5 kB / 0.7327 GB, free: 6.332 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6424, allocations: 0 / 0.7327 GB, free: 6.332 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.94e-05/0.6425, allocations: 4 kB / 0.7327 GB, free: 6.328 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.6425, allocations: 0 / 0.7327 GB, free: 6.328 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.6425, allocations: 7.984 kB / 0.7327 GB, free: 6.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6425, allocations: 8 kB / 0.7328 GB, free: 6.312 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6425, allocations: 0 / 0.7328 GB, free: 6.312 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000339/0.6429, allocations: 230.7 kB / 0.733 GB, free: 6.062 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.6429, allocations: 81.02 kB / 0.7331 GB, free: 5.965 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.6429, allocations: 19.92 kB / 0.7331 GB, free: 5.945 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.242e-05/0.643, allocations: 8 kB / 0.7331 GB, free: 5.938 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.842e-05/0.6431, allocations: 0 / 0.7331 GB, free: 5.938 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.6431, allocations: 4 kB / 0.7331 GB, free: 5.934 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.637e-05/0.6431, allocations: 95.22 kB / 0.7332 GB, free: 5.84 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6431, allocations: 0 / 0.7332 GB, free: 5.84 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002348/0.6434, allocations: 20 kB / 0.7332 GB, free: 5.82 MB / 0.545 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 (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.0001272/0.6435, allocations: 121.9 kB / 0.7333 GB, free: 5.695 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003042/0.6438, allocations: 171.3 kB / 0.7335 GB, free: 5.516 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6438, allocations: 0 / 0.7335 GB, free: 5.516 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.644, allocations: 195.3 kB / 0.7337 GB, free: 5.312 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.6443, allocations: 8 kB / 0.7337 GB, free: 5.305 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000412/0.6447, allocations: 197.7 kB / 0.7339 GB, free: 5.082 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.645, allocations: 0.6926 MB / 0.7345 GB, free: 4.363 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.954e-05/0.645, allocations: 8.656 kB / 0.7345 GB, free: 4.352 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.6451, allocations: 11.44 kB / 0.7346 GB, free: 4.34 MB / 0.545 GB Notification: Performance of SimCode: time 2.7e-07/0.6451, allocations: 4 kB / 0.7346 GB, free: 4.336 MB / 0.545 GB Notification: Performance of Templates: time 0.003323/0.6484, allocations: 0.8588 MB / 0.7354 GB, free: 3.484 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: