Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.348/1.348, allocations: 285.5 MB / 292.8 MB, free: 10.49 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.0009173/0.0009173, allocations: 173.4 kB / 361.1 MB, free: 7.109 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.033/1.033, allocations: 205.1 MB / 0.6195 GB, free: 10.31 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.0007362/0.0007363, allocations: 91.42 kB / 0.7326 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.121e-06/6.151e-06, allocations: 0 / 0.8511 GB, free: 2.965 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.4161, allocations: 115.3 MB / 0.9637 GB, free: 78.41 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1324/0.5485, allocations: 137.9 MB / 1.098 GB, free: 2.188 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001733/0.5487, allocations: 72.8 kB / 1.098 GB, free: 2.117 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.01479/0.5635, allocations: 5.168 MB / 1.103 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.989e-06/0.5636, allocations: 4 kB / 1.103 GB, free: 13.02 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.0005944/0.5642, allocations: 486.7 kB / 1.104 GB, free: 12.49 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.5642, allocations: 12.53 kB / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.926e-05/0.5643, allocations: 23.8 kB / 1.104 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.5646, allocations: 243 kB / 1.104 GB, free: 12.18 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.5646, allocations: 11.98 kB / 1.104 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.5647, allocations: 25.92 kB / 1.104 GB, free: 12.14 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001519/0.5648, allocations: 72.45 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.5651, allocations: 175.1 kB / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.5651, allocations: 0 / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.5651, allocations: 0 / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.5652, allocations: 7.906 kB / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000602/0.5658, allocations: 457.8 kB / 1.105 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.5659, allocations: 122.7 kB / 1.105 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.5661, allocations: 89.91 kB / 1.105 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.5661, allocations: 4.188 kB / 1.105 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.5663, allocations: 188.3 kB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 1.793e-06/0.5663, allocations: 0 / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0004293/0.5668, allocations: 247.5 kB / 1.105 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.5668, allocations: 55.41 kB / 1.106 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.521e-05/0.5669, allocations: 125.1 kB / 1.106 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.972e-05/0.567, allocations: 37.7 kB / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.937e-05/0.567, allocations: 100.7 kB / 1.106 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.542e-05/0.5671, allocations: 59.27 kB / 1.106 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.91e-05/0.5671, allocations: 11.98 kB / 1.106 GB, free: 10.33 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.721e-05/0.5672, allocations: 326.8 kB / 1.106 GB, free: 10 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.5675, allocations: 128.3 kB / 1.106 GB, free: 9.875 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.5677, allocations: 189.9 kB / 1.106 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004143/0.5681, allocations: 154.1 kB / 1.107 GB, free: 9.52 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.5681, allocations: 0 / 1.107 GB, free: 9.52 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007848/0.5689, allocations: 413.6 kB / 1.107 GB, free: 9.113 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.569, allocations: 9.562 kB / 1.107 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.569, allocations: 0 / 1.107 GB, free: 9.105 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.569, allocations: 4 kB / 1.107 GB, free: 9.102 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.5692, allocations: 59.91 kB / 1.107 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.5693, allocations: 4 kB / 1.107 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003909/0.5696, allocations: 95.77 kB / 1.107 GB, free: 8.945 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.5697, allocations: 23.98 kB / 1.107 GB, free: 8.922 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.0001286/0.5698, allocations: 148.9 kB / 1.107 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.5699, allocations: 19.81 kB / 1.107 GB, free: 8.75 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.209e-05/0.5699, allocations: 13.73 kB / 1.107 GB, free: 8.734 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.5699, allocations: 4 kB / 1.107 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.5699, allocations: 3.906 kB / 1.107 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.57, allocations: 0 / 1.107 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004766/0.5704, allocations: 0.5108 MB / 1.108 GB, free: 8.172 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.5704, allocations: 4 kB / 1.108 GB, free: 8.168 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.082e-05/0.5705, allocations: 15.92 kB / 1.108 GB, free: 8.152 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.5705, allocations: 0 / 1.108 GB, free: 8.152 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.5705, allocations: 12.98 kB / 1.108 GB, free: 8.141 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.5706, allocations: 0 / 1.108 GB, free: 8.141 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5706, allocations: 3.984 kB / 1.108 GB, free: 8.137 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003665/0.5709, allocations: 343.4 kB / 1.108 GB, free: 7.785 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.914e-05/0.571, allocations: 97.8 kB / 1.108 GB, free: 7.672 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.716e-05/0.571, allocations: 15.98 kB / 1.108 GB, free: 7.656 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.5712, allocations: 7.984 kB / 1.108 GB, free: 7.648 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.5712, allocations: 21.53 kB / 1.108 GB, free: 7.629 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.5713, allocations: 15.98 kB / 1.108 GB, free: 7.613 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.763e-05/0.5713, allocations: 101.9 kB / 1.109 GB, free: 7.516 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000312/0.5716, allocations: 63.98 kB / 1.109 GB, free: 7.453 MB / 0.7136 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.0001808/0.5718, allocations: 144.9 kB / 1.109 GB, free: 7.301 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004657/0.5723, allocations: 339.2 kB / 1.109 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.5723, allocations: 3.938 kB / 1.109 GB, free: 6.953 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.5725, allocations: 118.5 kB / 1.109 GB, free: 6.84 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002486/0.5727, allocations: 23.89 kB / 1.109 GB, free: 6.816 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.5732, allocations: 213 kB / 1.109 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003015/0.5735, allocations: 0.7406 MB / 1.11 GB, free: 5.82 MB / 0.7136 GB Notification: Performance of SimCode: time 2.21e-07/0.5735, allocations: 0 / 1.11 GB, free: 5.82 MB / 0.7136 GB Notification: Performance of Templates: time 0.006005/0.5795, allocations: 3.476 MB / 1.113 GB, free: 2.43 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)