Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wseCon.wseCWST|wseCon.wseCHWST|wseCon.TWetBul|wseCon.y1|wseCon.y2",fileNamePrefix="Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.175/1.175, allocations: 249.4 MB / 256.7 MB, free: 7.008 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 181.2 kB / 316 MB, free: 3.586 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.022/1.022, allocations: 205.1 MB / 0.5667 GB, free: 15.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008145/0.0008144, allocations: 76.48 kB / 0.671 GB, free: 4.934 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.36e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1369, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3855/0.5225, allocations: 135.4 MB / 1.017 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/0.5227, allocations: 98.11 kB / 1.017 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01081/0.5336, allocations: 4.348 MB / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.328e-05/0.5336, allocations: 4 kB / 1.021 GB, free: 15.75 MB / 0.6511 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.0006498/0.5342, allocations: 0.5387 MB / 1.022 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.5343, allocations: 8.031 kB / 1.022 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.118e-05/0.5344, allocations: 31.62 kB / 1.022 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.5346, allocations: 274.9 kB / 1.022 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.5347, allocations: 15.94 kB / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.5347, allocations: 20 kB / 1.022 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003604/0.5351, allocations: 202.3 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003923/0.5355, allocations: 271.5 kB / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.5355, allocations: 0 / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.832e-05/0.5355, allocations: 7.984 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.443e-06/0.5356, allocations: 4 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.5367, allocations: 0.8946 MB / 1.023 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/0.5371, allocations: 203.9 kB / 1.024 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.5372, allocations: 94.17 kB / 1.024 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.5373, allocations: 4 kB / 1.024 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/0.5375, allocations: 147.7 kB / 1.024 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=32): time 1.543e-06/0.5375, allocations: 0 / 1.024 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of matching and sorting (n=32): time 0.000317/0.5378, allocations: 194 kB / 1.024 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.5378, allocations: 67.27 kB / 1.024 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.5379, allocations: 156.9 kB / 1.024 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.538, allocations: 33.58 kB / 1.024 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.91e-05/0.5381, allocations: 143 kB / 1.024 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.851e-05/0.5381, allocations: 80.02 kB / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.327e-05/0.5381, allocations: 0 / 1.024 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.483e-05/0.5382, allocations: 329.7 kB / 1.025 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.5384, allocations: 85.31 kB / 1.025 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.5385, allocations: 142.9 kB / 1.025 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.5387, allocations: 83.06 kB / 1.025 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5387, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003768/0.539, allocations: 263 kB / 1.025 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.5391, allocations: 8 kB / 1.025 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.5391, allocations: 0 / 1.025 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.5391, allocations: 11.92 kB / 1.025 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.5393, allocations: 43.8 kB / 1.025 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.5393, allocations: 3.984 kB / 1.025 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.5396, allocations: 47.97 kB / 1.025 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.5396, allocations: 19.75 kB / 1.025 GB, free: 11.95 MB / 0.6511 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.049e-05/0.5397, allocations: 120.2 kB / 1.026 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.193e-05/0.5397, allocations: 31.33 kB / 1.026 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003656/0.5401, allocations: 221 kB / 1.026 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5401, allocations: 4 kB / 1.026 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.5401, allocations: 3.984 kB / 1.026 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.5401, allocations: 4 kB / 1.026 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007403/0.5409, allocations: 0.6297 MB / 1.026 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5409, allocations: 3.984 kB / 1.026 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.5411, allocations: 35.55 kB / 1.026 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.5411, allocations: 7.938 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.5411, allocations: 0 / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5411, allocations: 3.938 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5411, allocations: 3.984 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003188/0.5414, allocations: 303.4 kB / 1.027 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.615e-05/0.5415, allocations: 96.92 kB / 1.027 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.005e-05/0.5415, allocations: 3.906 kB / 1.027 GB, free: 10.63 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.5418, allocations: 43.77 kB / 1.027 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.5419, allocations: 42.44 kB / 1.027 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.5419, allocations: 7.188 kB / 1.027 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.914e-05/0.542, allocations: 113.5 kB / 1.027 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002788/0.5423, allocations: 51.94 kB / 1.027 GB, free: 10.41 MB / 0.6511 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.0001804/0.5425, allocations: 121.6 kB / 1.027 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000364/0.5428, allocations: 246 kB / 1.027 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.5428, allocations: 4 kB / 1.027 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.543, allocations: 115.5 kB / 1.028 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.5433, allocations: 28.62 kB / 1.028 GB, free: 10 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006533/0.5439, allocations: 315.9 kB / 1.028 GB, free: 9.719 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003787/0.5443, allocations: 0.7871 MB / 1.029 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/0.5443, allocations: 4 kB / 1.029 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of Templates: time 0.006022/0.5504, allocations: 3.012 MB / 1.032 GB, free: 5.918 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches