Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") [: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.357/1.357, allocations: 289.8 MB / 297.1 MB, free: 6.711 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.0009939/0.0009939, allocations: 189.2 kB / 366.3 MB, free: 2 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.023/1.023, allocations: 205.1 MB / 0.6256 GB, free: 5.836 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.0007659/0.0007659, allocations: 94.92 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.683e-06/6.723e-06, allocations: 4 kB / 0.859 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.3987, allocations: 116.3 MB / 0.9725 GB, free: 68.15 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.5372, allocations: 144.9 MB / 1.114 GB, free: 3.566 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001892/0.5374, allocations: 75.97 kB / 1.114 GB, free: 3.492 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01586/0.5533, allocations: 6.56 MB / 1.121 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.454e-05/0.5533, allocations: 12.12 kB / 1.121 GB, free: 12.92 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0007114/0.554, allocations: 0.6033 MB / 1.121 GB, free: 12.27 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.5541, allocations: 8.031 kB / 1.121 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/0.5542, allocations: 47.44 kB / 1.121 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.5546, allocations: 380.2 kB / 1.122 GB, free: 11.8 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.5547, allocations: 12 kB / 1.122 GB, free: 11.79 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.5547, allocations: 23.94 kB / 1.122 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003511/0.5551, allocations: 193.1 kB / 1.122 GB, free: 11.58 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/0.5555, allocations: 293 kB / 1.122 GB, free: 11.27 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.5555, allocations: 3.938 kB / 1.122 GB, free: 11.26 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.614e-05/0.5556, allocations: 0 / 1.122 GB, free: 11.26 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.5556, allocations: 12 kB / 1.122 GB, free: 11.25 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.557, allocations: 1.174 MB / 1.123 GB, free: 10.01 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.5573, allocations: 162.1 kB / 1.123 GB, free: 9.844 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.5574, allocations: 90.36 kB / 1.123 GB, free: 9.754 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.5575, allocations: 8.078 kB / 1.123 GB, free: 9.746 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.5575, allocations: 38.75 kB / 1.124 GB, free: 9.699 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.5575, allocations: 0 / 1.124 GB, free: 9.699 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22): time 0.0003498/0.5578, allocations: 197 kB / 1.124 GB, free: 9.504 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.5579, allocations: 170.1 kB / 1.124 GB, free: 9.301 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.5582, allocations: 262.1 kB / 1.124 GB, free: 9.039 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.5582, allocations: 29.69 kB / 1.124 GB, free: 9.004 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.873e-05/0.5583, allocations: 176 kB / 1.124 GB, free: 8.828 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.5584, allocations: 74.84 kB / 1.124 GB, free: 8.754 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.5584, allocations: 0.8438 kB / 1.124 GB, free: 8.754 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.5585, allocations: 338.8 kB / 1.125 GB, free: 8.414 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.5586, allocations: 68 kB / 1.125 GB, free: 8.348 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.5588, allocations: 135.7 kB / 1.125 GB, free: 8.188 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001268/0.5589, allocations: 83.75 kB / 1.125 GB, free: 8.105 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5589, allocations: 0 / 1.125 GB, free: 8.105 MB / 0.7292 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003427/0.5593, allocations: 239.1 kB / 1.125 GB, free: 7.867 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 9.368e-06/0.5593, allocations: 4 kB / 1.125 GB, free: 7.863 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.5593, allocations: 1.781 kB / 1.125 GB, free: 7.863 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.5593, allocations: 8 kB / 1.125 GB, free: 7.855 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.5596, allocations: 56.03 kB / 1.125 GB, free: 7.801 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.5596, allocations: 4 kB / 1.125 GB, free: 7.797 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.5598, allocations: 43.81 kB / 1.125 GB, free: 7.754 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.5598, allocations: 8 kB / 1.125 GB, free: 7.746 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * 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.806e-05/0.5599, allocations: 115.1 kB / 1.125 GB, free: 7.629 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.032e-05/0.56, allocations: 31.62 kB / 1.125 GB, free: 7.598 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.333e-05/0.5601, allocations: 39.09 kB / 1.125 GB, free: 7.559 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.5601, allocations: 4 kB / 1.125 GB, free: 7.555 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.5601, allocations: 0 / 1.125 GB, free: 7.555 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.5601, allocations: 3.984 kB / 1.126 GB, free: 7.551 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.5605, allocations: 361.8 kB / 1.126 GB, free: 7.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5605, allocations: 4 kB / 1.126 GB, free: 7.156 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002437/0.5607, allocations: 51.91 kB / 1.126 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.5607, allocations: 0 / 1.126 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.5607, allocations: 0 / 1.126 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.5608, allocations: 4 kB / 1.126 GB, free: 7.102 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.5608, allocations: 0 / 1.126 GB, free: 7.102 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004762/0.5612, allocations: 411.2 kB / 1.126 GB, free: 6.688 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.5614, allocations: 132.6 kB / 1.126 GB, free: 6.539 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.5614, allocations: 4 kB / 1.126 GB, free: 6.535 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.5617, allocations: 28.05 kB / 1.126 GB, free: 6.508 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.5617, allocations: 19.97 kB / 1.126 GB, free: 6.488 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.5617, allocations: 11.89 kB / 1.126 GB, free: 6.477 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001779/0.5619, allocations: 208.6 kB / 1.127 GB, free: 6.273 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002873/0.5622, allocations: 63.78 kB / 1.127 GB, free: 6.211 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001096/0.5623, allocations: 103.2 kB / 1.127 GB, free: 6.102 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000295/0.5626, allocations: 179.9 kB / 1.127 GB, free: 5.926 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.5626, allocations: 0 / 1.127 GB, free: 5.926 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.5628, allocations: 91.94 kB / 1.127 GB, free: 5.836 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.5631, allocations: 62.48 kB / 1.127 GB, free: 5.781 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009758/0.5641, allocations: 0.4901 MB / 1.128 GB, free: 5.266 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004139/0.5646, allocations: 0.8374 MB / 1.128 GB, free: 4.398 MB / 0.7292 GB Notification: Performance of SimCode: time 3.1e-07/0.5646, allocations: 0 / 1.128 GB, free: 4.398 MB / 0.7292 GB Notification: Performance of Templates: time 0.006294/0.5709, allocations: 3.377 MB / 1.132 GB, free: 1.094 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)