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") [: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.1.4-maint.8.1.x/package.mo): time 1.359/1.359, allocations: 289.8 MB / 297.1 MB, free: 6.66 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.0009486/0.0009485, allocations: 169.3 kB / 366.3 MB, free: 1.973 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.068/1.068, allocations: 205.1 MB / 0.6256 GB, free: 5.809 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.0007591/0.0007592, allocations: 85.38 kB / 0.7395 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.661e-06/5.751e-06, allocations: 0 / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4212/0.4213, allocations: 116.3 MB / 0.9726 GB, free: 68.25 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1358/0.5571, allocations: 138.8 MB / 1.108 GB, free: 9.629 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/0.5573, allocations: 76.58 kB / 1.108 GB, free: 9.555 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01478/0.5721, allocations: 5.161 MB / 1.113 GB, free: 4.41 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.5722, allocations: 4 kB / 1.113 GB, free: 4.406 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.0005919/0.5728, allocations: 490.7 kB / 1.114 GB, free: 3.863 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.5728, allocations: 8.031 kB / 1.114 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.34e-05/0.5729, allocations: 27.8 kB / 1.114 GB, free: 3.828 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.5732, allocations: 235 kB / 1.114 GB, free: 3.559 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.5732, allocations: 7.984 kB / 1.114 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.5733, allocations: 20 kB / 1.114 GB, free: 3.531 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001566/0.5735, allocations: 80.44 kB / 1.114 GB, free: 3.453 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/0.5737, allocations: 180.8 kB / 1.114 GB, free: 3.273 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.5737, allocations: 0 / 1.114 GB, free: 3.273 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.5737, allocations: 0 / 1.114 GB, free: 3.273 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.5738, allocations: 7.906 kB / 1.114 GB, free: 3.266 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000623/0.5744, allocations: 457.7 kB / 1.115 GB, free: 2.777 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.5746, allocations: 130.8 kB / 1.115 GB, free: 2.641 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.5747, allocations: 85.22 kB / 1.115 GB, free: 2.555 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.5747, allocations: 4.188 kB / 1.115 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/0.575, allocations: 186.4 kB / 1.115 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.575, allocations: 0 / 1.115 GB, free: 2.359 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0004349/0.5754, allocations: 245.4 kB / 1.115 GB, free: 2.113 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.088e-05/0.5754, allocations: 59.41 kB / 1.115 GB, free: 2.043 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.67e-05/0.5755, allocations: 127.3 kB / 1.116 GB, free: 1.914 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.713e-05/0.5756, allocations: 37.7 kB / 1.116 GB, free: 1.871 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.15e-05/0.5757, allocations: 100.7 kB / 1.116 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.365e-05/0.5757, allocations: 59.27 kB / 1.116 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.797e-05/0.5758, allocations: 4.656 kB / 1.116 GB, free: 1.707 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.5759, allocations: 334.8 kB / 1.116 GB, free: 1.371 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.5761, allocations: 124.3 kB / 1.116 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.5763, allocations: 188.9 kB / 1.116 GB, free: 1.043 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004149/0.5767, allocations: 157.3 kB / 1.116 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5768, allocations: 0 / 1.116 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007558/0.5775, allocations: 407.2 kB / 1.117 GB, free: 500 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.5775, allocations: 8.562 kB / 1.117 GB, free: 492 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.5775, allocations: 0 / 1.117 GB, free: 492 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.5776, allocations: 4 kB / 1.117 GB, free: 488 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.5778, allocations: 64.03 kB / 1.117 GB, free: 424 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.5778, allocations: 4 kB / 1.117 GB, free: 420 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.5782, allocations: 99.67 kB / 1.117 GB, free: 320 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.5783, allocations: 20.83 kB / 1.117 GB, free: 300 kB / 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.0001237/0.5784, allocations: 140.8 kB / 1.117 GB, free: 152 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.5784, allocations: 19.81 kB / 1.117 GB, free: 132 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.046e-05/0.5785, allocations: 17.73 kB / 1.117 GB, free: 116 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.5785, allocations: 4 kB / 1.117 GB, free: 112 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.5785, allocations: 3.906 kB / 1.117 GB, free: 108 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.5785, allocations: 0 / 1.117 GB, free: 108 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005247/0.579, allocations: 0.5185 MB / 1.118 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.579, allocations: 0 / 1.118 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.095e-05/0.5791, allocations: 12.67 kB / 1.118 GB, free: 15.53 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.5791, allocations: 4 kB / 1.118 GB, free: 15.53 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.5791, allocations: 15.98 kB / 1.118 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.5791, allocations: 0 / 1.118 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5792, allocations: 3.984 kB / 1.118 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003626/0.5795, allocations: 339.1 kB / 1.118 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.6e-05/0.5796, allocations: 92.86 kB / 1.118 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.701e-05/0.5796, allocations: 16.08 kB / 1.118 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.5798, allocations: 9.016 kB / 1.118 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.222e-05/0.5798, allocations: 27.95 kB / 1.118 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.5799, allocations: 19.98 kB / 1.118 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.516e-05/0.5799, allocations: 101.6 kB / 1.118 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003148/0.5802, allocations: 63.98 kB / 1.118 GB, free: 14.82 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.0001671/0.5804, allocations: 137.2 kB / 1.119 GB, free: 14.68 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004655/0.5809, allocations: 339.3 kB / 1.119 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.5809, allocations: 8.062 kB / 1.119 GB, free: 14.33 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.581, allocations: 115.9 kB / 1.119 GB, free: 14.21 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.5813, allocations: 25.23 kB / 1.119 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004341/0.5817, allocations: 209.7 kB / 1.119 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.582, allocations: 0.7437 MB / 1.12 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/0.582, allocations: 0 / 1.12 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of Templates: time 0.005605/0.5877, allocations: 3.469 MB / 1.123 GB, free: 9.789 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)