Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.1.4-maint.8.1.x/package.mo): time 1.339/1.339, allocations: 289.8 MB / 297.1 MB, free: 6.652 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.0009535/0.0009535, allocations: 180.2 kB / 366.3 MB, free: 1.938 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.02/1.02, allocations: 205.1 MB / 0.6256 GB, free: 5.77 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.0007906/0.0007906, allocations: 96.05 kB / 0.7396 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.663e-06/6.773e-06, allocations: 4 kB / 0.859 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4037, allocations: 116.3 MB / 0.9726 GB, free: 68.31 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1348/0.5385, allocations: 139.6 MB / 1.109 GB, free: 8.852 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.5387, allocations: 95.86 kB / 1.109 GB, free: 8.758 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.003843/0.5426, allocations: 1.193 MB / 1.11 GB, free: 7.578 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.5426, allocations: 0 / 1.11 GB, free: 7.578 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003606/0.543, allocations: 374.2 kB / 1.111 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.543, allocations: 8.031 kB / 1.111 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.543, allocations: 7.906 kB / 1.111 GB, free: 7.152 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.5432, allocations: 191.5 kB / 1.111 GB, free: 6.926 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.5432, allocations: 4 kB / 1.111 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.5432, allocations: 4 kB / 1.111 GB, free: 6.918 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.251e-05/0.5433, allocations: 24 kB / 1.111 GB, free: 6.895 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.5434, allocations: 80.27 kB / 1.111 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.471e-06/0.5434, allocations: 0 / 1.111 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.5434, allocations: 0 / 1.111 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.5435, allocations: 4 kB / 1.111 GB, free: 6.801 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004046/0.5439, allocations: 305.3 kB / 1.111 GB, free: 6.465 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.557e-05/0.5439, allocations: 34.67 kB / 1.111 GB, free: 6.422 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.696e-05/0.544, allocations: 28.8 kB / 1.111 GB, free: 6.391 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.544, allocations: 0 / 1.111 GB, free: 6.391 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.544, allocations: 30.56 kB / 1.111 GB, free: 6.352 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/0.544, allocations: 0.5625 kB / 1.111 GB, free: 6.352 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.000169/0.5442, allocations: 61.69 kB / 1.111 GB, free: 6.285 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.5443, allocations: 77.11 kB / 1.111 GB, free: 6.191 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.494e-05/0.5443, allocations: 119.8 kB / 1.111 GB, free: 6.066 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.5444, allocations: 25.7 kB / 1.111 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.999e-05/0.5444, allocations: 100.1 kB / 1.112 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.5444, allocations: 12.38 kB / 1.112 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-06/0.5445, allocations: 4 kB / 1.112 GB, free: 5.918 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.824e-05/0.5445, allocations: 314.8 kB / 1.112 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.936e-05/0.5446, allocations: 16 kB / 1.112 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.764e-05/0.5446, allocations: 25.72 kB / 1.112 GB, free: 5.555 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.11e-05/0.5447, allocations: 19.92 kB / 1.112 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.5447, allocations: 1.219 kB / 1.112 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001066/0.5448, allocations: 69.62 kB / 1.112 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.5448, allocations: 4 kB / 1.112 GB, free: 5.457 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.5448, allocations: 0 / 1.112 GB, free: 5.457 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.627e-06/0.5448, allocations: 4 kB / 1.112 GB, free: 5.453 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.5449, allocations: 15.92 kB / 1.112 GB, free: 5.438 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.835e-06/0.5449, allocations: 0 / 1.112 GB, free: 5.438 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.006e-05/0.545, allocations: 19.91 kB / 1.112 GB, free: 5.418 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.5451, allocations: 3.984 kB / 1.112 GB, free: 5.414 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.844e-05/0.5451, allocations: 109 kB / 1.112 GB, free: 5.301 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.5452, allocations: 7.906 kB / 1.112 GB, free: 5.293 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.5452, allocations: 8.125 kB / 1.112 GB, free: 5.273 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.5452, allocations: 0 / 1.112 GB, free: 5.273 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5452, allocations: 4.5 kB / 1.112 GB, free: 5.27 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.5452, allocations: 8 kB / 1.112 GB, free: 5.262 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001484/0.5454, allocations: 166.1 kB / 1.112 GB, free: 5.062 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.5454, allocations: 0 / 1.112 GB, free: 5.062 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.355e-05/0.5455, allocations: 11.98 kB / 1.112 GB, free: 5.051 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5455, allocations: 0 / 1.112 GB, free: 5.051 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.5455, allocations: 0.9375 kB / 1.112 GB, free: 5.051 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.5455, allocations: 0 / 1.112 GB, free: 5.051 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5455, allocations: 4 kB / 1.112 GB, free: 5.047 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001364/0.5456, allocations: 159.6 kB / 1.113 GB, free: 4.875 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.5457, allocations: 88.94 kB / 1.113 GB, free: 4.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.5457, allocations: 4 kB / 1.113 GB, free: 4.766 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.5458, allocations: 15.98 kB / 1.113 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.5459, allocations: 15.89 kB / 1.113 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.5459, allocations: 0 / 1.113 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.661e-05/0.546, allocations: 99.27 kB / 1.113 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002045/0.5462, allocations: 12.75 kB / 1.113 GB, free: 4.625 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.146e-05/0.5463, allocations: 99.19 kB / 1.113 GB, free: 4.516 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.731e-05/0.5464, allocations: 32 kB / 1.113 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.5464, allocations: 0 / 1.113 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.784e-05/0.5464, allocations: 23.98 kB / 1.113 GB, free: 4.461 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.5466, allocations: 9.547 kB / 1.113 GB, free: 4.453 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002763/0.5469, allocations: 98.08 kB / 1.113 GB, free: 4.332 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.5471, allocations: 0.7071 MB / 1.114 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of SimCode: time 2.11e-07/0.5472, allocations: 0 / 1.114 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of Templates: time 0.002377/0.5495, allocations: 0.7878 MB / 1.114 GB, free: 2.855 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)