Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.124/2.124, allocations: 284.9 MB / 292.2 MB, free: 10.74 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001561, allocations: 177.3 kB / 360.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.2 MB / 0.6188 GB, free: 12.43 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001214/0.001214, allocations: 93.64 kB / 0.7318 GB, free: 45.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.035e-05/1.041e-05, allocations: 4 kB / 0.8503 GB, free: 3.859 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5688/0.5688, allocations: 115.2 MB / 0.9628 GB, free: 78.45 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.7668, allocations: 137.7 MB / 1.097 GB, free: 3.098 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.7671, allocations: 74.86 kB / 1.097 GB, free: 3.027 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.02568/0.7929, allocations: 5.17 MB / 1.102 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.488e-05/0.7929, allocations: 4 kB / 1.102 GB, free: 13.94 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.0008641/0.7938, allocations: 490.7 kB / 1.103 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.7938, allocations: 8.531 kB / 1.103 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.7939, allocations: 27.8 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004882/0.7944, allocations: 232.8 kB / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.7945, allocations: 11.98 kB / 1.103 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.709e-05/0.7946, allocations: 16 kB / 1.103 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002727/0.7949, allocations: 76.44 kB / 1.103 GB, free: 13 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004404/0.7953, allocations: 175.2 kB / 1.103 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.7954, allocations: 0 / 1.103 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.7954, allocations: 8 kB / 1.103 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.7954, allocations: 7.906 kB / 1.103 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009515/0.7964, allocations: 463.9 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.7967, allocations: 118.9 kB / 1.104 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.7969, allocations: 89.2 kB / 1.104 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.7969, allocations: 8.188 kB / 1.104 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004042/0.7974, allocations: 190.3 kB / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 2.114e-06/0.7974, allocations: 0 / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.0007244/0.7981, allocations: 241.4 kB / 1.104 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.7982, allocations: 59.41 kB / 1.105 GB, free: 11.58 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.7984, allocations: 120.5 kB / 1.105 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.824e-05/0.7985, allocations: 45.69 kB / 1.105 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.793e-05/0.7986, allocations: 100.7 kB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.583e-05/0.7986, allocations: 59.27 kB / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.7987, allocations: 8 kB / 1.105 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.7989, allocations: 334.8 kB / 1.105 GB, free: 10.91 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003912/0.7993, allocations: 120.4 kB / 1.105 GB, free: 10.79 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.7997, allocations: 184.9 kB / 1.105 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006992/0.8004, allocations: 159.2 kB / 1.106 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.8004, allocations: 0 / 1.106 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001349/0.8018, allocations: 411.2 kB / 1.106 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.8018, allocations: 4 kB / 1.106 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.8019, allocations: 5.484 kB / 1.106 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.8019, allocations: 4 kB / 1.106 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.8024, allocations: 60.66 kB / 1.106 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.8024, allocations: 4 kB / 1.106 GB, free: 9.953 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007826/0.8032, allocations: 99.86 kB / 1.106 GB, free: 9.855 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.198e-05/0.8033, allocations: 16 kB / 1.106 GB, free: 9.84 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.0002062/0.8035, allocations: 149.6 kB / 1.106 GB, free: 9.688 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.8036, allocations: 15.81 kB / 1.106 GB, free: 9.672 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.112e-05/0.8036, allocations: 13.75 kB / 1.106 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.8037, allocations: 4 kB / 1.106 GB, free: 9.652 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.8037, allocations: 5.5 kB / 1.106 GB, free: 9.648 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.8037, allocations: 10.42 kB / 1.106 GB, free: 9.641 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009138/0.8046, allocations: 0.5224 MB / 1.107 GB, free: 9.074 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.8046, allocations: 0 / 1.107 GB, free: 9.074 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.399e-05/0.8047, allocations: 8.078 kB / 1.107 GB, free: 9.066 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.278e-05/0.8047, allocations: 7.984 kB / 1.107 GB, free: 9.059 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.8048, allocations: 7.984 kB / 1.107 GB, free: 9.051 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.8048, allocations: 0 / 1.107 GB, free: 9.051 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.8048, allocations: 0 / 1.107 GB, free: 9.051 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006651/0.8055, allocations: 351.1 kB / 1.107 GB, free: 8.691 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.591e-05/0.8056, allocations: 92.86 kB / 1.107 GB, free: 8.582 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.978e-05/0.8057, allocations: 15.98 kB / 1.107 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.8059, allocations: 11.98 kB / 1.107 GB, free: 8.555 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.569e-05/0.806, allocations: 15.97 kB / 1.107 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.971e-05/0.806, allocations: 15.98 kB / 1.107 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of sort global known variables: time 9.596e-05/0.8061, allocations: 100.4 kB / 1.107 GB, free: 8.426 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0005003/0.8067, allocations: 64 kB / 1.108 GB, free: 8.363 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.0002661/0.8069, allocations: 135 kB / 1.108 GB, free: 8.219 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0008371/0.8078, allocations: 347.1 kB / 1.108 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8078, allocations: 0 / 1.108 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002704/0.8081, allocations: 115.9 kB / 1.108 GB, free: 7.754 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003803/0.8085, allocations: 34.11 kB / 1.108 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006778/0.8092, allocations: 197.7 kB / 1.108 GB, free: 7.512 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/0.8097, allocations: 0.7476 MB / 1.109 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of SimCode: time 6.41e-07/0.8097, allocations: 0 / 1.109 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of Templates: time 0.009867/0.8196, allocations: 3.465 MB / 1.112 GB, free: 3.352 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)