Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.726/2.726, allocations: 390.6 MB / 398 MB, free: 10.93 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.001373/0.001373, allocations: 184.8 kB / 491.2 MB, free: 1.539 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.66/1.66, allocations: 221.5 MB / 0.7868 GB, free: 13.23 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009663/0.0009661, allocations: 83.95 kB / 0.9269 GB, free: 13.73 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.14e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3506, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.168/1.518, allocations: 152.7 MB / 1.361 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002548/1.519, allocations: 96.97 kB / 1.362 GB, free: 17.51 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01245/1.531, allocations: 4.662 MB / 1.366 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.834e-06/1.531, allocations: 0 / 1.366 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.091e-05/1.531, allocations: 3.812 kB / 1.366 GB, free: 32.89 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.000891/1.532, allocations: 0.5498 MB / 1.367 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/1.532, allocations: 11.66 kB / 1.367 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.226e-05/1.532, allocations: 31.22 kB / 1.367 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/1.533, allocations: 260.8 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.104e-05/1.533, allocations: 11.59 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.755e-05/1.533, allocations: 23.47 kB / 1.367 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004195/1.533, allocations: 203.8 kB / 1.367 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004625/1.534, allocations: 277.9 kB / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/1.534, allocations: 0 / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/1.534, allocations: 0 / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/1.534, allocations: 7.656 kB / 1.367 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/1.535, allocations: 0.8776 MB / 1.368 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003948/1.536, allocations: 226.5 kB / 1.368 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/1.536, allocations: 90.52 kB / 1.369 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/1.536, allocations: 6.797 kB / 1.369 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/1.536, allocations: 156.7 kB / 1.369 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/1.536, allocations: 4 kB / 1.369 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=32): time 0.0004284/1.536, allocations: 209.5 kB / 1.369 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/1.537, allocations: 62.17 kB / 1.369 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/1.537, allocations: 164.1 kB / 1.369 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/1.537, allocations: 33.42 kB / 1.369 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000114/1.537, allocations: 154.1 kB / 1.369 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.45e-05/1.537, allocations: 71.12 kB / 1.369 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/1.537, allocations: 3.875 kB / 1.369 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000166/1.537, allocations: 335 kB / 1.37 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/1.537, allocations: 82.62 kB / 1.37 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/1.537, allocations: 137 kB / 1.37 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/1.538, allocations: 75.92 kB / 1.37 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.538, allocations: 4 kB / 1.37 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004193/1.538, allocations: 268.8 kB / 1.37 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/1.538, allocations: 33.81 kB / 1.37 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/1.538, allocations: 3.969 kB / 1.37 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/1.538, allocations: 3.812 kB / 1.37 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/1.538, allocations: 48.25 kB / 1.37 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/1.538, allocations: 15.06 kB / 1.37 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/1.539, allocations: 45.58 kB / 1.37 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.159e-05/1.539, allocations: 14.36 kB / 1.37 GB, free: 30.77 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.0001423/1.539, allocations: 131.8 kB / 1.371 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.952e-05/1.539, allocations: 19.34 kB / 1.371 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004759/1.539, allocations: 244.8 kB / 1.371 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/1.539, allocations: 3.328 kB / 1.371 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/1.539, allocations: 7.781 kB / 1.371 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/1.539, allocations: 3.953 kB / 1.371 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008316/1.54, allocations: 0.6383 MB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/1.54, allocations: 0 / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/1.54, allocations: 32.19 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/1.54, allocations: 0 / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/1.54, allocations: 6.906 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/1.54, allocations: 3.953 kB / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.54, allocations: 0 / 1.371 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/1.541, allocations: 321.1 kB / 1.372 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.176e-05/1.541, allocations: 96.61 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.955e-05/1.541, allocations: 10.05 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/1.541, allocations: 28.55 kB / 1.372 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/1.541, allocations: 44.67 kB / 1.372 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/1.541, allocations: 18.36 kB / 1.372 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.988e-05/1.541, allocations: 116 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.541, allocations: 0 / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002881/1.542, allocations: 42.59 kB / 1.372 GB, free: 29.95 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.0001856/1.542, allocations: 122.8 kB / 1.372 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003875/1.542, allocations: 287.4 kB / 1.373 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.542, allocations: 4.062 kB / 1.373 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001558/1.542, allocations: 110.1 kB / 1.373 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/1.543, allocations: 17.97 kB / 1.373 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005767/1.543, allocations: 307 kB / 1.373 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/1.544, allocations: 0.7642 MB / 1.374 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001093/1.544, allocations: 37.91 kB / 1.374 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.052e-05/1.544, allocations: 25.55 kB / 1.374 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.544, allocations: 0 / 1.374 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of Templates: time 0.005615/1.55, allocations: 2.487 MB / 1.376 GB, free: 28.75 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches