Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.002155/0.002155, allocations: 177.3 kB / 15.95 MB, free: 216 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.752/1.752, 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.703/1.703, allocations: 251.9 MB / 0.51 GB, free: 4.852 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.0006056/0.0006058, allocations: 12 kB / 0.6241 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5435/0.5441, allocations: 106.3 MB / 0.728 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002252/0.5464, allocations: 1.304 MB / 0.7293 GB, free: 10.11 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009324/0.5474, allocations: 367.9 kB / 0.7296 GB, free: 9.746 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.046e-05/0.5475, allocations: 7.875 kB / 0.7296 GB, free: 9.738 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.5476, allocations: 7.922 kB / 0.7296 GB, free: 9.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.5478, allocations: 39.86 kB / 0.7297 GB, free: 9.691 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.5481, allocations: 59.86 kB / 0.7297 GB, free: 9.633 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000174/0.5483, allocations: 111.8 kB / 0.7298 GB, free: 9.523 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.5485, allocations: 29.39 kB / 0.7299 GB, free: 9.488 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.5486, allocations: 63.77 kB / 0.7299 GB, free: 9.426 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.5488, allocations: 79.72 kB / 0.73 GB, free: 9.348 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.5489, allocations: 4 kB / 0.73 GB, free: 9.344 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.613e-05/0.5489, allocations: 8 kB / 0.73 GB, free: 9.336 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.549, allocations: 39.81 kB / 0.73 GB, free: 9.297 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.082e-05/0.5491, allocations: 49.64 kB / 0.7301 GB, free: 9.242 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.5493, allocations: 125.6 kB / 0.7302 GB, free: 9.121 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.5493, allocations: 7.938 kB / 0.7302 GB, free: 9.113 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5493, allocations: 0 / 0.7302 GB, free: 9.113 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.5493, allocations: 0 / 0.7302 GB, free: 9.113 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0009415/0.5503, allocations: 455.3 kB / 0.7307 GB, free: 8.621 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.5503, allocations: 12.03 kB / 0.7307 GB, free: 8.609 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.5504, allocations: 19.8 kB / 0.7307 GB, free: 8.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.5507, allocations: 217.8 kB / 0.7309 GB, free: 8.34 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.5507, allocations: 15.98 kB / 0.7309 GB, free: 8.324 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.5508, allocations: 8 kB / 0.7309 GB, free: 8.316 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003865/0.5512, allocations: 182.3 kB / 0.7311 GB, free: 8.133 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.5512, allocations: 4 kB / 0.7311 GB, free: 8.129 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.5512, allocations: 7.984 kB / 0.7311 GB, free: 8.121 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.5512, allocations: 4 kB / 0.7311 GB, free: 8.117 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.5515, allocations: 99.94 kB / 0.7312 GB, free: 8.02 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006529/0.5521, allocations: 420.4 kB / 0.7316 GB, free: 7.559 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.5524, allocations: 159.1 kB / 0.7317 GB, free: 7.395 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.5525, allocations: 7.953 kB / 0.7318 GB, free: 7.387 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003472/0.5528, allocations: 193.3 kB / 0.7319 GB, free: 7.188 MB / 0.545 GB Notification: Performance of pre-optimization done (n=28): time 2.564e-06/0.5528, allocations: 0 / 0.7319 GB, free: 7.188 MB / 0.545 GB Notification: Performance of matching and sorting (n=28): time 0.0009454/0.5538, allocations: 0.5996 MB / 0.7325 GB, free: 6.547 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.5539, allocations: 55.39 kB / 0.7326 GB, free: 6.48 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.5541, allocations: 153.9 kB / 0.7327 GB, free: 6.316 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.5541, allocations: 37.69 kB / 0.7328 GB, free: 6.273 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.205e-05/0.5542, allocations: 96.61 kB / 0.7329 GB, free: 6.176 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.038e-05/0.5543, allocations: 71.23 kB / 0.7329 GB, free: 6.105 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.509e-05/0.5543, allocations: 12 kB / 0.7329 GB, free: 6.094 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002645/0.5546, allocations: 334.8 kB / 0.7333 GB, free: 5.758 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.5548, allocations: 100.3 kB / 0.7333 GB, free: 5.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.5551, allocations: 167.3 kB / 0.7335 GB, free: 5.473 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.5554, allocations: 133 kB / 0.7336 GB, free: 5.344 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.5554, allocations: 0 / 0.7336 GB, free: 5.344 MB / 0.545 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005527/0.556, allocations: 351.1 kB / 0.734 GB, free: 4.996 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.556, allocations: 4 kB / 0.734 GB, free: 4.992 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.556, allocations: 4 kB / 0.734 GB, free: 4.988 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.5561, allocations: 4 kB / 0.734 GB, free: 4.984 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.5563, allocations: 59.91 kB / 0.734 GB, free: 4.926 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.5563, allocations: 4 kB / 0.734 GB, free: 4.922 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.5565, allocations: 43.73 kB / 0.7341 GB, free: 4.879 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.5566, allocations: 19.98 kB / 0.7341 GB, free: 4.859 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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.0001733/0.5567, allocations: 165.7 kB / 0.7343 GB, free: 4.688 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.5568, allocations: 15.81 kB / 0.7343 GB, free: 4.672 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.5568, allocations: 17.86 kB / 0.7343 GB, free: 4.656 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.5568, allocations: 4 kB / 0.7343 GB, free: 4.652 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.5569, allocations: 0 / 0.7343 GB, free: 4.652 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5569, allocations: 0 / 0.7343 GB, free: 4.652 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.5579, allocations: 0.7211 MB / 0.735 GB, free: 3.871 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.5579, allocations: 0 / 0.735 GB, free: 3.871 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.375e-05/0.558, allocations: 8 kB / 0.735 GB, free: 3.863 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.558, allocations: 4 kB / 0.735 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.558, allocations: 11.98 kB / 0.735 GB, free: 3.848 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.558, allocations: 3.984 kB / 0.735 GB, free: 3.844 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.558, allocations: 3.938 kB / 0.735 GB, free: 3.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005748/0.5586, allocations: 447.9 kB / 0.7355 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.5587, allocations: 96.92 kB / 0.7356 GB, free: 3.273 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.5588, allocations: 11.98 kB / 0.7356 GB, free: 3.262 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.559, allocations: 27.97 kB / 0.7356 GB, free: 3.234 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.559, allocations: 19.91 kB / 0.7356 GB, free: 3.215 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.5591, allocations: 19.98 kB / 0.7356 GB, free: 3.195 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.058e-05/0.5592, allocations: 109.7 kB / 0.7357 GB, free: 3.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5592, allocations: 0 / 0.7357 GB, free: 3.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002998/0.5595, allocations: 55.94 kB / 0.7358 GB, free: 3.035 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: 27 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.0001611/0.5596, allocations: 125.5 kB / 0.7359 GB, free: 2.906 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004848/0.5601, allocations: 260.5 kB / 0.7362 GB, free: 2.652 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5601, allocations: 320 / 0.7362 GB, free: 2.652 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.5604, allocations: 126.7 kB / 0.7363 GB, free: 2.531 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.5606, allocations: 30.69 kB / 0.7363 GB, free: 2.504 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006216/0.5613, allocations: 359.1 kB / 0.7366 GB, free: 2.121 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.5616, allocations: 0.7284 MB / 0.7374 GB, free: 1.363 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.918e-05/0.5617, allocations: 22.12 kB / 0.7374 GB, free: 1.344 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.875e-05/0.5618, allocations: 19.42 kB / 0.7374 GB, free: 1.324 MB / 0.545 GB Notification: Performance of SimCode: time 6.31e-07/0.5618, allocations: 4 kB / 0.7374 GB, free: 1.32 MB / 0.545 GB Notification: Performance of Templates: time 0.005255/0.5671, allocations: 2.404 MB / 0.7397 GB, free: 14.93 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) Environment - environmentSimulation: