Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") [: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.35/1.35, allocations: 289.8 MB / 297.1 MB, free: 6.719 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.0009527/0.0009527, allocations: 177.3 kB / 366.3 MB, free: 2.008 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.032/1.032, allocations: 205.1 MB / 0.6256 GB, free: 5.84 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.0008127/0.0008127, allocations: 89.78 kB / 0.7395 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.67e-06/5.69e-06, allocations: 0 / 0.859 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.395/0.3951, allocations: 116.3 MB / 0.9726 GB, free: 68.31 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.5288, allocations: 141.6 MB / 1.111 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.529, allocations: 99.86 kB / 1.111 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01094/0.54, allocations: 4.34 MB / 1.115 GB, free: 2.492 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.414e-05/0.54, allocations: 12 kB / 1.115 GB, free: 2.48 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0006712/0.5407, allocations: 0.5349 MB / 1.116 GB, free: 1.895 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.5407, allocations: 8.031 kB / 1.116 GB, free: 1.887 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.708e-05/0.5408, allocations: 31.62 kB / 1.116 GB, free: 1.855 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.5411, allocations: 270.1 kB / 1.116 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.5411, allocations: 15.91 kB / 1.116 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.5412, allocations: 27.98 kB / 1.116 GB, free: 1.512 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003606/0.5416, allocations: 201.3 kB / 1.116 GB, free: 1.316 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/0.542, allocations: 274.3 kB / 1.117 GB, free: 1.039 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.542, allocations: 0 / 1.117 GB, free: 1.039 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.542, allocations: 0 / 1.117 GB, free: 1.039 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.542, allocations: 16.58 kB / 1.117 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.5432, allocations: 0.8747 MB / 1.117 GB, free: 112 kB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003798/0.5436, allocations: 211.2 kB / 1.118 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.5438, allocations: 101.4 kB / 1.118 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.5438, allocations: 8 kB / 1.118 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001957/0.544, allocations: 147.2 kB / 1.118 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.544, allocations: 0 / 1.118 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of matching and sorting (n=32): time 0.0003488/0.5444, allocations: 187.3 kB / 1.118 GB, free: 15.44 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.5444, allocations: 55.41 kB / 1.118 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.5445, allocations: 164.4 kB / 1.118 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.5446, allocations: 37.7 kB / 1.118 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.74e-05/0.5447, allocations: 144.5 kB / 1.118 GB, free: 15.02 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.99e-05/0.5447, allocations: 78.95 kB / 1.118 GB, free: 14.94 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/0.5447, allocations: 0 / 1.118 GB, free: 14.94 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.5448, allocations: 330.8 kB / 1.119 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.545, allocations: 85.53 kB / 1.119 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.5452, allocations: 140.3 kB / 1.119 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.5453, allocations: 83.92 kB / 1.119 GB, free: 14.28 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5453, allocations: 0 / 1.119 GB, free: 14.28 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003825/0.5457, allocations: 257.2 kB / 1.119 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 8.345e-06/0.5457, allocations: 4 kB / 1.119 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.5457, allocations: 8.156 kB / 1.119 GB, free: 14.01 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.5457, allocations: 13.06 kB / 1.119 GB, free: 14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.546, allocations: 43.91 kB / 1.119 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.546, allocations: 7.984 kB / 1.119 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/0.5462, allocations: 51.75 kB / 1.119 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.5463, allocations: 12 kB / 1.119 GB, free: 13.89 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.T1.condition,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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 9.267e-05/0.5464, allocations: 124.3 kB / 1.12 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.5464, allocations: 19.72 kB / 1.12 GB, free: 13.74 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003781/0.5468, allocations: 231.8 kB / 1.12 GB, free: 13.51 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.5468, allocations: 0 / 1.12 GB, free: 13.51 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.5468, allocations: 4 kB / 1.12 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.5468, allocations: 3.984 kB / 1.12 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007814/0.5476, allocations: 0.6354 MB / 1.12 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5476, allocations: 0 / 1.12 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.5478, allocations: 37.84 kB / 1.121 GB, free: 12.79 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.5478, allocations: 4 kB / 1.121 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.5478, allocations: 4 kB / 1.121 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5478, allocations: 3.938 kB / 1.121 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5478, allocations: 3.906 kB / 1.121 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003254/0.5481, allocations: 299.2 kB / 1.121 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.847e-05/0.5482, allocations: 96.83 kB / 1.121 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.5482, allocations: 0 / 1.121 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.5485, allocations: 39.95 kB / 1.121 GB, free: 12.31 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.337e-05/0.5486, allocations: 47.88 kB / 1.121 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.5486, allocations: 8 kB / 1.121 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6.217e-05/0.5487, allocations: 112.9 kB / 1.121 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002813/0.549, allocations: 51.84 kB / 1.121 GB, free: 12.09 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.fire,wseCon.T1.t_start,wseCon.T1.condition,wseCon.on.newActive,wseCon.on.oldActive,wseCon.on.active,wseCon.T2.fire,wseCon.T2.t_start,wseCon.T2.condition,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001328/0.5491, allocations: 121.9 kB / 1.121 GB, free: 11.97 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003528/0.5495, allocations: 245.8 kB / 1.121 GB, free: 11.72 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.5495, allocations: 4.062 kB / 1.121 GB, free: 11.72 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.5497, allocations: 116.4 kB / 1.122 GB, free: 11.61 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002137/0.5499, allocations: 22.25 kB / 1.122 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006051/0.5505, allocations: 318.1 kB / 1.122 GB, free: 11.26 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.5509, allocations: 0.795 MB / 1.123 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of SimCode: time 2.6e-07/0.5509, allocations: 0 / 1.123 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of Templates: time 0.005452/0.5563, allocations: 3.013 MB / 1.126 GB, free: 7.484 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)