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.792/1.792, allocations: 292.6 MB / 307.5 MB, free: 5.184 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.001145/0.001145, allocations: 189 kB / 377.1 MB, free: 1.523 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.633/1.633, allocations: 205.4 MB / 0.6367 GB, free: 8.562 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.0008864/0.0008864, allocations: 93.55 kB / 0.751 GB, free: 63.05 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003738, allocations: 12 kB / 0.8748 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.287, allocations: 116.3 MB / 0.9884 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8343/1.121, allocations: 139.7 MB / 1.125 GB, free: 35.14 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/1.122, allocations: 70.5 kB / 1.125 GB, free: 35.08 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01562/1.137, allocations: 5.535 MB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.824e-06/1.137, allocations: 0 / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.944e-05/1.137, allocations: 4 kB / 1.13 GB, free: 31.13 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009143/1.138, allocations: 0.4938 MB / 1.131 GB, free: 30.6 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/1.138, allocations: 11.97 kB / 1.131 GB, free: 30.59 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/1.139, allocations: 21.88 kB / 1.131 GB, free: 30.57 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/1.139, allocations: 234.5 kB / 1.131 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.909e-05/1.139, allocations: 20.33 kB / 1.131 GB, free: 30.31 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.836e-05/1.139, allocations: 23.44 kB / 1.131 GB, free: 30.29 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/1.14, allocations: 190.3 kB / 1.131 GB, free: 30.15 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/1.14, allocations: 0 / 1.131 GB, free: 30.15 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/1.14, allocations: 12.08 kB / 1.131 GB, free: 30.14 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/1.14, allocations: 4 kB / 1.131 GB, free: 30.14 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/1.14, allocations: 97.75 kB / 1.131 GB, free: 30.06 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007607/1.141, allocations: 480 kB / 1.132 GB, free: 29.64 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/1.141, allocations: 152.1 kB / 1.132 GB, free: 29.51 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/1.141, allocations: 0.75 kB / 1.132 GB, free: 29.51 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003939/1.141, allocations: 219.4 kB / 1.132 GB, free: 29.34 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=28): time 2.805e-06/1.141, allocations: 0 / 1.132 GB, free: 29.34 MB / 0.7292 GB Notification: Performance of matching and sorting (n=28): time 0.001019/1.142, allocations: 473.8 kB / 1.133 GB, free: 28.93 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/1.143, allocations: 62.92 kB / 1.133 GB, free: 28.86 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/1.143, allocations: 127.4 kB / 1.133 GB, free: 28.74 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 8.812e-05/1.143, allocations: 42.27 kB / 1.133 GB, free: 28.69 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/1.143, allocations: 103.1 kB / 1.133 GB, free: 28.59 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.319e-05/1.143, allocations: 66.25 kB / 1.133 GB, free: 28.53 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/1.143, allocations: 8 kB / 1.133 GB, free: 28.52 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.217e-05/1.143, allocations: 332.7 kB / 1.133 GB, free: 28.2 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003479/1.143, allocations: 142.4 kB / 1.133 GB, free: 28.08 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003547/1.144, allocations: 204.3 kB / 1.134 GB, free: 27.88 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003149/1.144, allocations: 215.4 kB / 1.134 GB, free: 27.68 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.144, allocations: 4 kB / 1.134 GB, free: 27.67 MB / 0.7292 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007485/1.145, allocations: 490.8 kB / 1.134 GB, free: 27.22 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.03e-05/1.145, allocations: 70.97 kB / 1.134 GB, free: 27.14 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.974e-06/1.145, allocations: 3.938 kB / 1.134 GB, free: 27.14 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/1.145, allocations: 4 kB / 1.134 GB, free: 27.14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002699/1.145, allocations: 65.17 kB / 1.134 GB, free: 27.08 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/1.145, allocations: 8.781 kB / 1.134 GB, free: 27.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004471/1.146, allocations: 97.92 kB / 1.135 GB, free: 27 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/1.146, allocations: 19.52 kB / 1.135 GB, free: 26.98 MB / 0.7292 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 () * Number of clocked 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.0001968/1.146, allocations: 171.2 kB / 1.135 GB, free: 26.81 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/1.146, allocations: 17.59 kB / 1.135 GB, free: 26.8 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.88e-05/1.146, allocations: 14.67 kB / 1.135 GB, free: 26.79 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/1.146, allocations: 4.797 kB / 1.135 GB, free: 26.78 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/1.146, allocations: 4 kB / 1.135 GB, free: 26.78 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/1.146, allocations: 5.266 kB / 1.135 GB, free: 26.77 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008939/1.147, allocations: 0.6883 MB / 1.135 GB, free: 26.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/1.147, allocations: 0.5625 kB / 1.135 GB, free: 26.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.07e-05/1.147, allocations: 14.28 kB / 1.135 GB, free: 26.1 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/1.147, allocations: 0.9844 kB / 1.135 GB, free: 26.1 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/1.147, allocations: 10.27 kB / 1.135 GB, free: 26.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/1.147, allocations: 4 kB / 1.135 GB, free: 26.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.147, allocations: 4.797 kB / 1.135 GB, free: 26.09 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/1.148, allocations: 466.1 kB / 1.136 GB, free: 25.66 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-05/1.148, allocations: 89.62 kB / 1.136 GB, free: 25.56 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.616e-05/1.148, allocations: 17.12 kB / 1.136 GB, free: 25.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/1.148, allocations: 11.66 kB / 1.136 GB, free: 25.54 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/1.148, allocations: 23.88 kB / 1.136 GB, free: 25.52 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-05/1.148, allocations: 21.25 kB / 1.136 GB, free: 25.51 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 6.883e-05/1.148, allocations: 98.39 kB / 1.136 GB, free: 25.42 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.51e-07/1.148, allocations: 0 / 1.136 GB, free: 25.42 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004358/1.149, allocations: 78.77 kB / 1.136 GB, free: 25.34 MB / 0.7292 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]) * Number of clocked states: 0 () * 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.0002751/1.149, allocations: 150 kB / 1.136 GB, free: 25.2 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007668/1.15, allocations: 458 kB / 1.137 GB, free: 24.77 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.15, allocations: 0 / 1.137 GB, free: 24.77 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002684/1.15, allocations: 126.5 kB / 1.137 GB, free: 24.66 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/1.15, allocations: 33.2 kB / 1.137 GB, free: 24.64 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007851/1.151, allocations: 340.8 kB / 1.137 GB, free: 24.32 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/1.152, allocations: 0.7245 MB / 1.138 GB, free: 23.59 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001018/1.152, allocations: 20.67 kB / 1.138 GB, free: 23.57 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.086e-05/1.152, allocations: 25.27 kB / 1.138 GB, free: 23.55 MB / 0.7292 GB Notification: Performance of SimCode: time 2.31e-07/1.152, allocations: 0 / 1.138 GB, free: 23.55 MB / 0.7292 GB Notification: Performance of Templates: time 0.00903/1.161, allocations: 3.315 MB / 1.141 GB, free: 21.72 MB / 0.7292 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)