Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.695/1.695, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009709/0.0009709, allocations: 173.3 kB / 487 MB, free: 5.367 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.071/1.071, allocations: 221.3 MB / 0.7819 GB, free: 1.328 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008444/0.0008444, allocations: 103.3 kB / 0.9213 GB, free: 2.59 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.31e-06/5.34e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1677, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.6229, allocations: 151.8 MB / 1.353 GB, free: 16.12 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.6232, allocations: 95.97 kB / 1.354 GB, free: 16.12 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01105/0.6343, allocations: 4.371 MB / 1.358 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.482e-05/0.6343, allocations: 10.28 kB / 1.358 GB, free: 15.8 MB / 0.8073 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.0006141/0.6349, allocations: 0.5448 MB / 1.358 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.635, allocations: 9.594 kB / 1.358 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.635, allocations: 32.44 kB / 1.358 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.6353, allocations: 264.1 kB / 1.359 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.6353, allocations: 19.33 kB / 1.359 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.446e-05/0.6354, allocations: 23.89 kB / 1.359 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003673/0.6357, allocations: 200.7 kB / 1.359 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004168/0.6362, allocations: 274.8 kB / 1.359 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.6362, allocations: 0 / 1.359 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.6362, allocations: 1.5 kB / 1.359 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.6362, allocations: 7.562 kB / 1.359 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.6374, allocations: 0.8801 MB / 1.36 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.6378, allocations: 210.6 kB / 1.36 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.6379, allocations: 94.16 kB / 1.36 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.638, allocations: 3.375 kB / 1.36 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.6382, allocations: 158.1 kB / 1.36 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=32): time 1.513e-06/0.6382, allocations: 0.5625 kB / 1.36 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of matching and sorting (n=32): time 0.0003697/0.6386, allocations: 186.3 kB / 1.361 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.15e-05/0.6386, allocations: 61.12 kB / 1.361 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.6387, allocations: 166 kB / 1.361 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.6388, allocations: 35.48 kB / 1.361 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/0.6388, allocations: 139.9 kB / 1.361 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.6389, allocations: 85.91 kB / 1.361 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/0.6389, allocations: 0 / 1.361 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.383e-05/0.6389, allocations: 337.9 kB / 1.361 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.6391, allocations: 78.53 kB / 1.362 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.6392, allocations: 137.3 kB / 1.362 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.6393, allocations: 79.84 kB / 1.362 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.6393, allocations: 0 / 1.362 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000338/0.6397, allocations: 264.1 kB / 1.362 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.794e-06/0.6397, allocations: 4 kB / 1.362 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.6397, allocations: 0.6094 kB / 1.362 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.6397, allocations: 7.906 kB / 1.362 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.6399, allocations: 55.05 kB / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.6399, allocations: 4.703 kB / 1.362 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.6402, allocations: 44.42 kB / 1.362 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.6402, allocations: 16.41 kB / 1.362 GB, free: 13.33 MB / 0.8073 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 7.175e-05/0.6403, allocations: 136.2 kB / 1.362 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.6403, allocations: 20.42 kB / 1.362 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003384/0.6406, allocations: 224.3 kB / 1.362 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.6407, allocations: 4 kB / 1.362 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6407, allocations: 0.5156 kB / 1.362 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.6407, allocations: 1.641 kB / 1.362 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006752/0.6414, allocations: 0.6281 MB / 1.363 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.6414, allocations: 4 kB / 1.363 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.6415, allocations: 29.08 kB / 1.363 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.6415, allocations: 4.516 kB / 1.363 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.6415, allocations: 9.156 kB / 1.363 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.6415, allocations: 8 kB / 1.363 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6416, allocations: 8.641 kB / 1.363 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002802/0.6418, allocations: 297.9 kB / 1.363 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.553e-05/0.6419, allocations: 97.89 kB / 1.364 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.6419, allocations: 0.5625 kB / 1.364 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.6422, allocations: 40.94 kB / 1.364 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.974e-05/0.6422, allocations: 46.45 kB / 1.364 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.6423, allocations: 9.312 kB / 1.364 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.612e-05/0.6423, allocations: 117.9 kB / 1.364 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002615/0.6426, allocations: 52.41 kB / 1.364 GB, free: 11.96 MB / 0.8073 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.0001107/0.6427, allocations: 125.9 kB / 1.364 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000296/0.643, allocations: 254.1 kB / 1.364 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.643, allocations: 320 / 1.364 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001351/0.6432, allocations: 116.1 kB / 1.364 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.6434, allocations: 18.17 kB / 1.364 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005432/0.6439, allocations: 319.5 kB / 1.365 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003321/0.6443, allocations: 0.7922 MB / 1.365 GB, free: 26.53 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/0.6443, allocations: 0 / 1.365 GB, free: 26.53 MB / 0.823 GB Notification: Performance of Templates: time 0.005104/0.6494, allocations: 3.017 MB / 1.368 GB, free: 24.14 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches