Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.653/1.653, allocations: 297.8 MB / 313.7 MB, free: 132 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 180.2 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 0.6626 GB, free: 4.273 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008032/0.0008034, allocations: 97.59 kB / 0.7808 GB, free: 50.49 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006223/0.0006225, allocations: 23.97 kB / 0.9088 GB, free: 2.824 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7417/0.7423, allocations: 120.3 MB / 1.026 GB, free: 55.9 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.218/0.9604, allocations: 141.5 MB / 1.164 GB, free: 2.047 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003347/0.9608, allocations: 77.45 kB / 1.165 GB, free: 1.984 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.005116/0.966, allocations: 1.654 MB / 1.166 GB, free: 0.75 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.415e-06/0.966, allocations: 0 / 1.166 GB, free: 0.75 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.477e-06/0.966, allocations: 0 / 1.166 GB, free: 0.75 MB / 0.7292 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.0004204/0.9664, allocations: 400 kB / 1.167 GB, free: 320 kB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.9665, allocations: 8.031 kB / 1.167 GB, free: 312 kB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.196e-05/0.9665, allocations: 8.844 kB / 1.167 GB, free: 304 kB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.9667, allocations: 181 kB / 1.167 GB, free: 88 kB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.9668, allocations: 2.031 kB / 1.167 GB, free: 88 kB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.853e-05/0.9668, allocations: 6.75 kB / 1.167 GB, free: 84 kB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.967, allocations: 72.28 kB / 1.167 GB, free: 16 kB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.967, allocations: 192 / 1.167 GB, free: 16 kB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.967, allocations: 9.172 kB / 1.167 GB, free: 8 kB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.967, allocations: 3 kB / 1.167 GB, free: 8 kB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.9672, allocations: 42.39 kB / 1.167 GB, free: 15.97 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005485/0.9678, allocations: 298.9 kB / 1.167 GB, free: 15.66 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.9679, allocations: 72 kB / 1.167 GB, free: 15.58 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.968, allocations: 60.22 kB / 1.167 GB, free: 15.53 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.9681, allocations: 1.891 kB / 1.167 GB, free: 15.53 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.9683, allocations: 125.1 kB / 1.167 GB, free: 15.4 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 1.994e-06/0.9683, allocations: 0.9375 kB / 1.167 GB, free: 15.4 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.0004503/0.9687, allocations: 196.3 kB / 1.168 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/0.9688, allocations: 114.1 kB / 1.168 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.969, allocations: 112.3 kB / 1.168 GB, free: 14.97 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.969, allocations: 35.02 kB / 1.168 GB, free: 14.93 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.904e-05/0.9691, allocations: 84.8 kB / 1.168 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.789e-05/0.9692, allocations: 26.58 kB / 1.168 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.297e-06/0.9692, allocations: 11.94 kB / 1.168 GB, free: 14.81 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.9693, allocations: 318.9 kB / 1.168 GB, free: 14.5 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.9694, allocations: 43.19 kB / 1.168 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.9696, allocations: 107.4 kB / 1.168 GB, free: 14.34 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.9699, allocations: 211.2 kB / 1.169 GB, free: 14.11 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.9699, allocations: 5.469 kB / 1.169 GB, free: 14.1 MB / 0.7448 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003782/0.9703, allocations: 207.3 kB / 1.169 GB, free: 13.91 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.9704, allocations: 36.66 kB / 1.169 GB, free: 13.87 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.9704, allocations: 0 / 1.169 GB, free: 13.87 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.9704, allocations: 4 kB / 1.169 GB, free: 13.86 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.9705, allocations: 24.08 kB / 1.169 GB, free: 13.84 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.9705, allocations: 8.453 kB / 1.169 GB, free: 13.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.876e-05/0.9706, allocations: 18.31 kB / 1.169 GB, free: 13.82 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.9707, allocations: 8.797 kB / 1.169 GB, free: 13.81 MB / 0.7448 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.0001822/0.9708, allocations: 174 kB / 1.169 GB, free: 13.64 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/0.9709, allocations: 12.7 kB / 1.169 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.54e-05/0.9709, allocations: 10.34 kB / 1.169 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.9709, allocations: 3.25 kB / 1.169 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.9709, allocations: 0.7969 kB / 1.169 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.971, allocations: 3.938 kB / 1.169 GB, free: 13.61 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001802/0.9711, allocations: 191.9 kB / 1.169 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.9712, allocations: 0 / 1.169 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.372e-05/0.9712, allocations: 5.406 kB / 1.169 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.9712, allocations: 0.7031 kB / 1.169 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.9712, allocations: 4.656 kB / 1.169 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.9712, allocations: 1.812 kB / 1.169 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.9713, allocations: 0.9375 kB / 1.169 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003753/0.9716, allocations: 229.4 kB / 1.17 GB, free: 13.16 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.786e-05/0.9717, allocations: 81.86 kB / 1.17 GB, free: 13.06 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.9717, allocations: 10.25 kB / 1.17 GB, free: 13.05 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.9718, allocations: 12.05 kB / 1.17 GB, free: 13.05 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.751e-05/0.9719, allocations: 1.594 kB / 1.17 GB, free: 13.05 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.9719, allocations: 9.594 kB / 1.17 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.343e-05/0.972, allocations: 81.73 kB / 1.17 GB, free: 12.96 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/0.972, allocations: 1.312 kB / 1.17 GB, free: 12.96 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002437/0.9722, allocations: 28.66 kB / 1.17 GB, free: 12.93 MB / 0.7448 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.0001658/0.9724, allocations: 123.8 kB / 1.17 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000326/0.9727, allocations: 163.8 kB / 1.17 GB, free: 12.65 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.9727, allocations: 0 / 1.17 GB, free: 12.65 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002127/0.973, allocations: 191.1 kB / 1.17 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.9732, allocations: 26.77 kB / 1.17 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004761/0.9737, allocations: 190 kB / 1.17 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.974, allocations: 0.689 MB / 1.171 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.918e-05/0.9741, allocations: 10.59 kB / 1.171 GB, free: 11.53 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.957e-05/0.9741, allocations: 12.19 kB / 1.171 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of SimCode: time 2.31e-07/0.9741, allocations: 0 / 1.171 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of Templates: time 0.003404/0.9775, allocations: 0.8683 MB / 1.172 GB, free: 11.04 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)