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.ChillerSwitch.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.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [: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.308/1.308, allocations: 285.5 MB / 292.8 MB, free: 10.46 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.0009743/0.0009743, allocations: 181.2 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 0.9737/0.9737, allocations: 205.1 MB / 0.6195 GB, free: 10.32 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.0007841/0.0007841, allocations: 98.69 kB / 0.7325 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.451e-06/5.551e-06, allocations: 0 / 0.8511 GB, free: 2.281 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.4007, allocations: 115.3 MB / 0.9637 GB, free: 78.61 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.5306, allocations: 138.6 MB / 1.099 GB, free: 1.348 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.5308, allocations: 93.25 kB / 1.099 GB, free: 1.258 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.004015/0.5349, allocations: 1.202 MB / 1.1 GB, free: 104 kB / 0.698 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.5349, allocations: 0 / 1.1 GB, free: 104 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.0003812/0.5353, allocations: 375 kB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.5353, allocations: 9.719 kB / 1.101 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.523e-05/0.5353, allocations: 7.906 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.5355, allocations: 179.4 kB / 1.101 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.157e-06/0.5355, allocations: 4.688 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.5355, allocations: 1.688 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.336e-05/0.5356, allocations: 28.53 kB / 1.101 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.5358, allocations: 81.5 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.5358, allocations: 0 / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.5358, allocations: 4.875 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.5358, allocations: 0 / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004173/0.5362, allocations: 308.7 kB / 1.101 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.263e-05/0.5363, allocations: 43.23 kB / 1.101 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.706e-05/0.5364, allocations: 12.86 kB / 1.101 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.5364, allocations: 7.828 kB / 1.101 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.5364, allocations: 34.56 kB / 1.101 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.5364, allocations: 2.25 kB / 1.101 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0001699/0.5366, allocations: 62.28 kB / 1.101 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.5366, allocations: 81.11 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.988e-05/0.5367, allocations: 117.3 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.5368, allocations: 25.7 kB / 1.102 GB, free: 14.57 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.5368, allocations: 99.97 kB / 1.102 GB, free: 14.47 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.5368, allocations: 7.812 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-06/0.5368, allocations: 0 / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.786e-05/0.5369, allocations: 322.8 kB / 1.102 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.315e-05/0.537, allocations: 12 kB / 1.102 GB, free: 14.13 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.587e-05/0.537, allocations: 25.72 kB / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.279e-05/0.537, allocations: 20.02 kB / 1.102 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.5371, allocations: 0 / 1.102 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001071/0.5372, allocations: 67.03 kB / 1.102 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.5372, allocations: 4 kB / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.5372, allocations: 0 / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.198e-06/0.5372, allocations: 0 / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.5373, allocations: 23.92 kB / 1.102 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.5373, allocations: 0 / 1.102 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.836e-05/0.5374, allocations: 19.91 kB / 1.102 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.5375, allocations: 4.781 kB / 1.102 GB, free: 13.96 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: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 6.941e-05/0.5375, allocations: 101 kB / 1.102 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.5376, allocations: 7.906 kB / 1.102 GB, free: 13.84 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.215e-05/0.5376, allocations: 12.12 kB / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.5376, allocations: 5.875 kB / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5376, allocations: 0 / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.5376, allocations: 0 / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001484/0.5378, allocations: 166.7 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.5378, allocations: 0 / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.018e-05/0.5379, allocations: 15.98 kB / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.5379, allocations: 0 / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.5379, allocations: 0 / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.5379, allocations: 4.062 kB / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5379, allocations: 6.297 kB / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001355/0.538, allocations: 156.2 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.5381, allocations: 96.94 kB / 1.103 GB, free: 13.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.5381, allocations: 0 / 1.103 GB, free: 13.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.5383, allocations: 19.98 kB / 1.103 GB, free: 13.3 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.898e-05/0.5383, allocations: 7.984 kB / 1.103 GB, free: 13.29 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.5383, allocations: 0 / 1.103 GB, free: 13.29 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.257e-05/0.5384, allocations: 103.2 kB / 1.103 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002257/0.5386, allocations: 8 kB / 1.103 GB, free: 13.18 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 9.607e-05/0.5387, allocations: 103.7 kB / 1.103 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001035/0.5388, allocations: 32 kB / 1.103 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.5388, allocations: 4 kB / 1.103 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.413e-05/0.5389, allocations: 23.92 kB / 1.103 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.539, allocations: 7.828 kB / 1.103 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.5393, allocations: 101.5 kB / 1.103 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.5396, allocations: 0.7071 MB / 1.104 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.5396, allocations: 0 / 1.104 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of Templates: time 0.002403/0.542, allocations: 0.7941 MB / 1.105 GB, free: 11.4 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)