Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.636/1.636, allocations: 289.7 MB / 302.3 MB, free: 2.074 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001116, allocations: 184.7 kB / 371.6 MB, free: 3.363 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.818/1.818, allocations: 205.1 MB / 0.6309 GB, free: 11.77 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008615/0.0008611, allocations: 95.27 kB / 0.745 GB, free: 54.64 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.553e-05/4.576e-05, allocations: 0 / 0.8663 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2528, allocations: 116.3 MB / 0.9798 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.748/1.001, allocations: 139.6 MB / 1.116 GB, free: 44.29 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/1.001, allocations: 69.69 kB / 1.116 GB, free: 44.26 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01458/1.016, allocations: 5.512 MB / 1.122 GB, free: 41.17 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.463e-06/1.016, allocations: 4 kB / 1.122 GB, free: 41.16 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.017e-05/1.016, allocations: 0 / 1.122 GB, free: 41.16 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006448/1.016, allocations: 494.4 kB / 1.122 GB, free: 40.66 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/1.016, allocations: 11.5 kB / 1.122 GB, free: 40.65 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.386e-05/1.017, allocations: 21.53 kB / 1.122 GB, free: 40.63 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/1.017, allocations: 229.8 kB / 1.122 GB, free: 40.41 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/1.017, allocations: 19.05 kB / 1.122 GB, free: 40.4 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/1.017, allocations: 20.08 kB / 1.122 GB, free: 40.38 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/1.017, allocations: 193.6 kB / 1.123 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/1.017, allocations: 0 / 1.123 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/1.017, allocations: 7.172 kB / 1.123 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/1.017, allocations: 4 kB / 1.123 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/1.017, allocations: 76.98 kB / 1.123 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/1.018, allocations: 493.3 kB / 1.123 GB, free: 39.86 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/1.018, allocations: 134.4 kB / 1.123 GB, free: 39.77 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/1.018, allocations: 91.95 kB / 1.123 GB, free: 39.71 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/1.018, allocations: 4.078 kB / 1.123 GB, free: 39.71 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/1.019, allocations: 211.3 kB / 1.123 GB, free: 39.58 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/1.019, allocations: 5.219 kB / 1.123 GB, free: 39.57 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28): time 0.0005715/1.019, allocations: 359.9 kB / 1.124 GB, free: 39.32 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/1.019, allocations: 61.42 kB / 1.124 GB, free: 39.26 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.895e-05/1.019, allocations: 131.9 kB / 1.124 GB, free: 39.14 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/1.02, allocations: 44.55 kB / 1.124 GB, free: 39.1 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.793e-05/1.02, allocations: 98.73 kB / 1.124 GB, free: 39.01 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.408e-05/1.02, allocations: 70.86 kB / 1.124 GB, free: 38.96 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/1.02, allocations: 10.62 kB / 1.124 GB, free: 38.95 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.412e-05/1.02, allocations: 331.1 kB / 1.125 GB, free: 38.64 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/1.02, allocations: 136 kB / 1.125 GB, free: 38.55 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/1.02, allocations: 194.1 kB / 1.125 GB, free: 38.41 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/1.021, allocations: 209 kB / 1.125 GB, free: 38.26 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.021, allocations: 4 kB / 1.125 GB, free: 38.26 MB / 0.7448 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007452/1.021, allocations: 471.7 kB / 1.126 GB, free: 37.92 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.904e-05/1.021, allocations: 70.88 kB / 1.126 GB, free: 37.85 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/1.021, allocations: 0 / 1.126 GB, free: 37.85 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/1.022, allocations: 4 kB / 1.126 GB, free: 37.85 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002945/1.022, allocations: 65.69 kB / 1.126 GB, free: 37.79 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/1.022, allocations: 7.953 kB / 1.126 GB, free: 37.79 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000374/1.022, allocations: 91.44 kB / 1.126 GB, free: 37.72 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.732e-05/1.022, allocations: 26.2 kB / 1.126 GB, free: 37.7 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * 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.0001229/1.022, allocations: 149.8 kB / 1.126 GB, free: 37.56 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/1.022, allocations: 15.81 kB / 1.126 GB, free: 37.55 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.851e-05/1.022, allocations: 19.3 kB / 1.126 GB, free: 37.54 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.022, allocations: 4 kB / 1.126 GB, free: 37.53 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.023, allocations: 0 / 1.126 GB, free: 37.53 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.023, allocations: 10.61 kB / 1.126 GB, free: 37.52 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006006/1.023, allocations: 0.6559 MB / 1.127 GB, free: 36.99 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/1.023, allocations: 3.469 kB / 1.127 GB, free: 36.99 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.37e-05/1.023, allocations: 8 kB / 1.127 GB, free: 36.98 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/1.023, allocations: 0 / 1.127 GB, free: 36.98 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/1.023, allocations: 14.12 kB / 1.127 GB, free: 36.98 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/1.023, allocations: 3.953 kB / 1.127 GB, free: 36.97 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/1.023, allocations: 0 / 1.127 GB, free: 36.97 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/1.024, allocations: 462 kB / 1.127 GB, free: 36.62 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/1.024, allocations: 96.8 kB / 1.127 GB, free: 36.51 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.174e-05/1.024, allocations: 17.66 kB / 1.127 GB, free: 36.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/1.024, allocations: 12.03 kB / 1.127 GB, free: 36.5 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.813e-05/1.024, allocations: 21.84 kB / 1.127 GB, free: 36.48 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/1.024, allocations: 20.06 kB / 1.127 GB, free: 36.47 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.641e-05/1.024, allocations: 105.9 kB / 1.127 GB, free: 36.38 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/1.024, allocations: 0 / 1.127 GB, free: 36.38 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003378/1.024, allocations: 81.88 kB / 1.127 GB, free: 36.31 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: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.000225/1.025, allocations: 142.9 kB / 1.128 GB, free: 36.18 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005254/1.025, allocations: 433.4 kB / 1.128 GB, free: 35.85 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.025, allocations: 0 / 1.128 GB, free: 35.85 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001475/1.025, allocations: 113.2 kB / 1.128 GB, free: 35.78 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/1.026, allocations: 32.94 kB / 1.128 GB, free: 35.76 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004115/1.026, allocations: 219.5 kB / 1.128 GB, free: 35.57 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/1.026, allocations: 0.7214 MB / 1.129 GB, free: 34.84 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 6.655e-05/1.026, allocations: 25.47 kB / 1.129 GB, free: 34.82 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/1.026, allocations: 22.77 kB / 1.129 GB, free: 34.81 MB / 0.7448 GB Notification: Performance of SimCode: time 3.01e-07/1.026, allocations: 0 / 1.129 GB, free: 34.81 MB / 0.7448 GB Notification: Performance of Templates: time 0.005733/1.032, allocations: 3.32 MB / 1.132 GB, free: 32.99 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)