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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.209/2.209, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.00104/0.00104, allocations: 176.8 kB / 487.4 MB, free: 5.035 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.414/1.414, allocations: 221.5 MB / 0.7824 GB, free: 0.9805 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.0009452/0.0009451, allocations: 91.91 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.7e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2762, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.163/1.439, allocations: 151.9 MB / 1.354 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/1.44, allocations: 92.56 kB / 1.354 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01396/1.454, allocations: 4.677 MB / 1.359 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.864e-06/1.454, allocations: 0 / 1.359 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.138e-05/1.454, allocations: 7.812 kB / 1.359 GB, free: 33.78 MB / 0.8386 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.001149/1.455, allocations: 0.5394 MB / 1.359 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/1.455, allocations: 13.19 kB / 1.36 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/1.455, allocations: 31.03 kB / 1.36 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/1.456, allocations: 260 kB / 1.36 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/1.456, allocations: 14.91 kB / 1.36 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/1.456, allocations: 20.61 kB / 1.36 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004548/1.456, allocations: 199 kB / 1.36 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004949/1.457, allocations: 270.7 kB / 1.36 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/1.457, allocations: 0 / 1.36 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.502e-05/1.457, allocations: 13.72 kB / 1.36 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/1.457, allocations: 3.656 kB / 1.36 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/1.459, allocations: 0.8902 MB / 1.361 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/1.459, allocations: 206.5 kB / 1.361 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/1.459, allocations: 97.59 kB / 1.361 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/1.459, allocations: 7.875 kB / 1.361 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/1.459, allocations: 158.2 kB / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 1.974e-06/1.459, allocations: 0 / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=32): time 0.0004146/1.46, allocations: 203.9 kB / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/1.46, allocations: 63.22 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/1.46, allocations: 170 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.159e-05/1.46, allocations: 36.05 kB / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/1.46, allocations: 154.5 kB / 1.362 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.469e-05/1.46, allocations: 80.31 kB / 1.362 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/1.46, allocations: 0 / 1.362 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001278/1.46, allocations: 330.6 kB / 1.363 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/1.461, allocations: 80.62 kB / 1.363 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/1.461, allocations: 141.1 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/1.461, allocations: 74.27 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.461, allocations: 0 / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004211/1.461, allocations: 272.8 kB / 1.363 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/1.461, allocations: 38.5 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/1.461, allocations: 160 / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/1.461, allocations: 7.844 kB / 1.363 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/1.462, allocations: 46.89 kB / 1.363 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/1.462, allocations: 5.297 kB / 1.363 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/1.462, allocations: 46.7 kB / 1.363 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.862e-05/1.462, allocations: 17.02 kB / 1.363 GB, free: 31.67 MB / 0.8386 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 0.0001298/1.462, allocations: 129.9 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.369e-05/1.462, allocations: 15.53 kB / 1.363 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004383/1.463, allocations: 247.5 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/1.463, allocations: 3.875 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/1.463, allocations: 0 / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/1.463, allocations: 5.969 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000843/1.464, allocations: 0.6361 MB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/1.464, allocations: 0 / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/1.464, allocations: 33.25 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/1.464, allocations: 0 / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/1.464, allocations: 14.55 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/1.464, allocations: 3.984 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.464, allocations: 3.953 kB / 1.364 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/1.464, allocations: 319.9 kB / 1.365 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/1.464, allocations: 100.5 kB / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/1.464, allocations: 0 / 1.365 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/1.465, allocations: 37.58 kB / 1.365 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/1.465, allocations: 49.47 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/1.465, allocations: 7.688 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.981e-05/1.465, allocations: 115.3 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.465, allocations: 0 / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003314/1.465, allocations: 46.16 kB / 1.365 GB, free: 30.84 MB / 0.8386 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.0001882/1.465, allocations: 127.3 kB / 1.365 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003766/1.466, allocations: 283.9 kB / 1.365 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/1.466, allocations: 0 / 1.365 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001485/1.466, allocations: 115.3 kB / 1.365 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/1.466, allocations: 18.92 kB / 1.366 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000628/1.467, allocations: 310.9 kB / 1.366 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/1.467, allocations: 0.7635 MB / 1.367 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001198/1.467, allocations: 31.64 kB / 1.367 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.412e-05/1.467, allocations: 29.64 kB / 1.367 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of SimCode: time 3.3e-07/1.467, allocations: 0 / 1.367 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of Templates: time 0.005927/1.473, allocations: 2.489 MB / 1.369 GB, free: 29.63 MB / 0.8386 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