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.566/1.566, allocations: 289.9 MB / 297.4 MB, free: 6.418 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.001167/0.001167, allocations: 188.8 kB / 366.7 MB, free: 1.688 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.72/1.72, allocations: 205.3 MB / 0.626 GB, free: 7.176 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.0008666/0.0008666, allocations: 82.11 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.267e-05/3.3e-05, allocations: 4 kB / 0.8597 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7324/0.7324, allocations: 116.3 MB / 0.9733 GB, free: 76.46 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2095/0.942, allocations: 138.9 MB / 1.109 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.9422, allocations: 73.53 kB / 1.109 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01602/0.9582, allocations: 5.487 MB / 1.114 GB, free: 5.812 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.824e-06/0.9583, allocations: 0 / 1.114 GB, free: 5.812 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.608e-05/0.9583, allocations: 4 kB / 1.114 GB, free: 5.809 MB / 0.7136 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.0008134/0.9591, allocations: 494.9 kB / 1.115 GB, free: 5.262 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.9592, allocations: 12.03 kB / 1.115 GB, free: 5.25 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.9593, allocations: 23.75 kB / 1.115 GB, free: 5.227 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.9597, allocations: 236.5 kB / 1.115 GB, free: 4.957 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.9598, allocations: 8 kB / 1.115 GB, free: 4.949 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-05/0.9598, allocations: 23.98 kB / 1.115 GB, free: 4.926 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001814/0.96, allocations: 68.39 kB / 1.115 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.9603, allocations: 176.8 kB / 1.115 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.9604, allocations: 0 / 1.115 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.643e-05/0.9604, allocations: 7.984 kB / 1.115 GB, free: 4.676 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.9604, allocations: 4 kB / 1.115 GB, free: 4.672 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000729/0.9611, allocations: 445.7 kB / 1.116 GB, free: 4.195 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.9614, allocations: 132.5 kB / 1.116 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.9615, allocations: 81.22 kB / 1.116 GB, free: 3.977 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.9615, allocations: 4.188 kB / 1.116 GB, free: 3.973 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000305/0.9618, allocations: 204.3 kB / 1.116 GB, free: 3.762 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.9618, allocations: 0 / 1.116 GB, free: 3.762 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0005957/0.9624, allocations: 345.3 kB / 1.117 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.9625, allocations: 59.36 kB / 1.117 GB, free: 3.348 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.9626, allocations: 135 kB / 1.117 GB, free: 3.211 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.62e-05/0.9627, allocations: 37.7 kB / 1.117 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.145e-05/0.9628, allocations: 100.6 kB / 1.117 GB, free: 3.062 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.262e-05/0.9629, allocations: 67.19 kB / 1.117 GB, free: 2.996 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/0.9629, allocations: 8 kB / 1.117 GB, free: 2.988 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.963, allocations: 330.8 kB / 1.117 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.9633, allocations: 120.4 kB / 1.117 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.9635, allocations: 180.9 kB / 1.118 GB, free: 2.34 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004641/0.964, allocations: 149.3 kB / 1.118 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.964, allocations: 7.219 kB / 1.118 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000868/0.9649, allocations: 403.4 kB / 1.118 GB, free: 1.793 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/0.965, allocations: 67.41 kB / 1.118 GB, free: 1.715 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.965, allocations: 3.984 kB / 1.118 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.9651, allocations: 8.125 kB / 1.118 GB, free: 1.703 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.9653, allocations: 63.84 kB / 1.118 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.9654, allocations: 2.062 kB / 1.118 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004103/0.9658, allocations: 87.7 kB / 1.118 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.236e-05/0.9658, allocations: 23.98 kB / 1.118 GB, free: 1.531 MB / 0.7136 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.0001648/0.966, allocations: 146.2 kB / 1.118 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.9661, allocations: 23.8 kB / 1.118 GB, free: 1.359 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.9661, allocations: 17.97 kB / 1.118 GB, free: 1.344 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.9661, allocations: 4 kB / 1.118 GB, free: 1.34 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.9661, allocations: 0 / 1.118 GB, free: 1.34 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.9661, allocations: 3.984 kB / 1.118 GB, free: 1.336 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007055/0.9669, allocations: 0.612 MB / 1.119 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.9669, allocations: 0 / 1.119 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.897e-05/0.9669, allocations: 4 kB / 1.119 GB, free: 0.6758 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.9669, allocations: 0 / 1.119 GB, free: 0.6758 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.967, allocations: 19.97 kB / 1.119 GB, free: 0.6562 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.967, allocations: 0 / 1.119 GB, free: 0.6562 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.967, allocations: 0 / 1.119 GB, free: 0.6562 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005394/0.9675, allocations: 435.6 kB / 1.12 GB, free: 220 kB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.9676, allocations: 96.86 kB / 1.12 GB, free: 104 kB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.75e-05/0.9677, allocations: 17.73 kB / 1.12 GB, free: 88 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.9678, allocations: 11.92 kB / 1.12 GB, free: 76 kB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.9679, allocations: 23.97 kB / 1.12 GB, free: 52 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.338e-05/0.9679, allocations: 15.98 kB / 1.12 GB, free: 36 kB / 0.7136 GB Notification: Performance of sorting global known variables: time 8.702e-05/0.968, allocations: 96.83 kB / 1.12 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.968, allocations: 0 / 1.12 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003811/0.9684, allocations: 71.98 kB / 1.12 GB, free: 15.87 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]) * 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.0002588/0.9687, allocations: 149.5 kB / 1.12 GB, free: 15.72 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005903/0.9693, allocations: 414.8 kB / 1.12 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.9693, allocations: 0 / 1.12 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.9695, allocations: 107.9 kB / 1.12 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.9698, allocations: 27.36 kB / 1.12 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005488/0.9704, allocations: 199.5 kB / 1.121 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.9708, allocations: 0.7364 MB / 1.121 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 8.41e-05/0.9709, allocations: 18.08 kB / 1.121 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.808e-05/0.9709, allocations: 19.44 kB / 1.121 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of SimCode: time 3.51e-07/0.9709, allocations: 0 / 1.121 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of Templates: time 0.00753/0.9785, allocations: 3.171 MB / 1.125 GB, free: 11.06 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)