Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") [: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.339/1.339, allocations: 285.5 MB / 292.8 MB, free: 10.51 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.0009717/0.0009717, allocations: 187.7 kB / 361.1 MB, free: 7.125 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.004/1.004, allocations: 205.1 MB / 0.6195 GB, free: 10.34 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.0007666/0.0007668, allocations: 90.3 kB / 0.7326 GB, free: 44.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.38e-06/5.41e-06, allocations: 0 / 0.8511 GB, free: 3.02 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4042/0.4042, allocations: 115.3 MB / 0.9637 GB, free: 78.34 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1293/0.5336, allocations: 138.8 MB / 1.099 GB, free: 1.316 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.5338, allocations: 91.88 kB / 1.099 GB, free: 1.227 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.004408/0.5383, allocations: 1.209 MB / 1.1 GB, free: 68 kB / 0.698 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.5383, allocations: 0.5625 kB / 1.1 GB, free: 68 kB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004972/0.5388, allocations: 438.9 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.5388, allocations: 8.531 kB / 1.101 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.5389, allocations: 11.91 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.5391, allocations: 190.9 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.5391, allocations: 0.5625 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.5391, allocations: 5.266 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001238/0.5392, allocations: 35.92 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.5394, allocations: 73.67 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.5394, allocations: 0 / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.5394, allocations: 3.906 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.5394, allocations: 0.5156 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005151/0.5399, allocations: 328.4 kB / 1.101 GB, free: 14.86 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.616e-05/0.5401, allocations: 46.58 kB / 1.102 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.785e-05/0.5401, allocations: 32.97 kB / 1.102 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.5401, allocations: 4 kB / 1.102 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001065/0.5403, allocations: 72.19 kB / 1.102 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.5403, allocations: 0 / 1.102 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001894/0.5405, allocations: 87.41 kB / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.5405, allocations: 89.09 kB / 1.102 GB, free: 14.49 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.654e-05/0.5406, allocations: 116 kB / 1.102 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.5406, allocations: 29.69 kB / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.068e-05/0.5407, allocations: 92.14 kB / 1.102 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.5407, allocations: 23.58 kB / 1.102 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.5407, allocations: 4 kB / 1.102 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.077e-05/0.5408, allocations: 314.8 kB / 1.102 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.669e-05/0.5409, allocations: 31.98 kB / 1.102 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.003e-05/0.5409, allocations: 26.44 kB / 1.102 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.265e-05/0.541, allocations: 19.98 kB / 1.102 GB, free: 13.83 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.541, allocations: 0 / 1.102 GB, free: 13.83 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001626/0.5411, allocations: 97.52 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.5412, allocations: 14.97 kB / 1.103 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.5412, allocations: 0 / 1.103 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.927e-06/0.5412, allocations: 0 / 1.103 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.5413, allocations: 23.98 kB / 1.103 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.5413, allocations: 0 / 1.103 GB, free: 13.69 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.5415, allocations: 27.89 kB / 1.103 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.5415, allocations: 3.984 kB / 1.103 GB, free: 13.66 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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 8.015e-05/0.5416, allocations: 138.2 kB / 1.103 GB, free: 13.52 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.5416, allocations: 7.906 kB / 1.103 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.687e-05/0.5417, allocations: 13.17 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.5417, allocations: 7 kB / 1.103 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5417, allocations: 3.906 kB / 1.103 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.5417, allocations: 0 / 1.103 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.5419, allocations: 319.1 kB / 1.103 GB, free: 13.13 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.5419, allocations: 0 / 1.103 GB, free: 13.13 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.5421, allocations: 19.98 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.5421, allocations: 4 kB / 1.103 GB, free: 13.11 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.5421, allocations: 7.891 kB / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5421, allocations: 5.156 kB / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5421, allocations: 0 / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000157/0.5423, allocations: 182.8 kB / 1.103 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.783e-05/0.5423, allocations: 89.98 kB / 1.103 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.5423, allocations: 0 / 1.103 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.5425, allocations: 23.98 kB / 1.103 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.278e-05/0.5426, allocations: 19.97 kB / 1.103 GB, free: 12.76 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.5426, allocations: 7.984 kB / 1.103 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.321e-05/0.5427, allocations: 91.28 kB / 1.103 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002421/0.5429, allocations: 23.84 kB / 1.104 GB, free: 12.64 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: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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 9.774e-05/0.543, allocations: 115 kB / 1.104 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001805/0.5432, allocations: 125.4 kB / 1.104 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5432, allocations: 0 / 1.104 GB, free: 12.38 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.632e-05/0.5433, allocations: 61.7 kB / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.5435, allocations: 7.984 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003496/0.5439, allocations: 139.2 kB / 1.104 GB, free: 12.15 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002396/0.5441, allocations: 0.7083 MB / 1.105 GB, free: 11.42 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.5441, allocations: 4 kB / 1.105 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of Templates: time 0.002913/0.5471, allocations: 1.198 MB / 1.106 GB, free: 10.26 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)