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.352/2.352, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.002246/0.002246, allocations: 180.1 kB / 498.1 MB, free: 5.77 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.597/1.597, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.0009644/0.0009643, allocations: 100.2 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0004, allocations: 10.94 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3561, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2097/0.5659, allocations: 152.6 MB / 1.372 GB, free: 9.453 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.5662, allocations: 95.94 kB / 1.372 GB, free: 9.359 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01328/0.5795, allocations: 4.748 MB / 1.377 GB, free: 4.574 MB / 0.8698 GB Notification: Performance of FrontEnd: time 7.874e-06/0.5795, allocations: 0 / 1.377 GB, free: 4.574 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.419e-05/0.5796, allocations: 11.88 kB / 1.377 GB, free: 4.562 MB / 0.8698 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.001122/0.5807, allocations: 0.5513 MB / 1.377 GB, free: 3.957 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.5808, allocations: 12.03 kB / 1.377 GB, free: 3.945 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.5809, allocations: 31.62 kB / 1.377 GB, free: 3.914 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.5814, allocations: 266.6 kB / 1.378 GB, free: 3.613 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.315e-05/0.5815, allocations: 32.66 kB / 1.378 GB, free: 3.582 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.661e-05/0.5816, allocations: 39.94 kB / 1.378 GB, free: 3.543 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007574/0.5823, allocations: 328.8 kB / 1.378 GB, free: 3.207 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.5824, allocations: 0 / 1.378 GB, free: 3.207 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.967e-05/0.5824, allocations: 15.95 kB / 1.378 GB, free: 3.191 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.5824, allocations: 8 kB / 1.378 GB, free: 3.184 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006597/0.5831, allocations: 262.1 kB / 1.378 GB, free: 2.93 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.5848, allocations: 0.9513 MB / 1.379 GB, free: 1.922 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007255/0.5855, allocations: 275.1 kB / 1.379 GB, free: 1.645 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.5856, allocations: 0 / 1.379 GB, free: 1.645 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004083/0.586, allocations: 179.3 kB / 1.38 GB, free: 1.457 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=32): time 2.144e-06/0.586, allocations: 0 / 1.38 GB, free: 1.457 MB / 0.8698 GB Notification: Performance of matching and sorting (n=32): time 0.0008809/0.5869, allocations: 381.1 kB / 1.38 GB, free: 1.078 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.5869, allocations: 55.41 kB / 1.38 GB, free: 1.012 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.5871, allocations: 186.4 kB / 1.38 GB, free: 0.8164 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.958e-05/0.5872, allocations: 45.7 kB / 1.38 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.5873, allocations: 152.5 kB / 1.38 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.781e-05/0.5874, allocations: 78.97 kB / 1.38 GB, free: 0.5352 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/0.5874, allocations: 7.938 kB / 1.38 GB, free: 0.5273 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.5876, allocations: 342.8 kB / 1.381 GB, free: 188 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.5879, allocations: 108.8 kB / 1.381 GB, free: 76 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.5882, allocations: 169.5 kB / 1.381 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.5885, allocations: 133.6 kB / 1.381 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5885, allocations: 0 / 1.381 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007166/0.5892, allocations: 378.6 kB / 1.381 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.5893, allocations: 29.7 kB / 1.382 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.5893, allocations: 7.938 kB / 1.382 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.5893, allocations: 4 kB / 1.382 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.5895, allocations: 52.02 kB / 1.382 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.5895, allocations: 4 kB / 1.382 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.5898, allocations: 59.73 kB / 1.382 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.5899, allocations: 16 kB / 1.382 GB, free: 15.2 MB / 0.8855 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 () * Number of clocked 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.0001946/0.5901, allocations: 171.7 kB / 1.382 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.5901, allocations: 23.72 kB / 1.382 GB, free: 15 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006183/0.5907, allocations: 307.2 kB / 1.382 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.5908, allocations: 4 kB / 1.382 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.5908, allocations: 3.953 kB / 1.382 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.5908, allocations: 7.969 kB / 1.382 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.5919, allocations: 0.7619 MB / 1.383 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.5919, allocations: 0 / 1.383 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.5921, allocations: 27.92 kB / 1.383 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.5921, allocations: 7.953 kB / 1.383 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.5921, allocations: 4 kB / 1.383 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.5921, allocations: 7.984 kB / 1.383 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5921, allocations: 0 / 1.383 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005969/0.5928, allocations: 375.4 kB / 1.383 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.232e-05/0.5928, allocations: 96.81 kB / 1.383 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.927e-05/0.5929, allocations: 15.89 kB / 1.383 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002826/0.5932, allocations: 35.97 kB / 1.383 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.5933, allocations: 43.94 kB / 1.383 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.5933, allocations: 11.98 kB / 1.383 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001147/0.5934, allocations: 127.2 kB / 1.384 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5934, allocations: 0 / 1.384 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003413/0.5938, allocations: 63.94 kB / 1.384 GB, free: 13.03 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0002104/0.594, allocations: 125.4 kB / 1.384 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006838/0.5947, allocations: 344.3 kB / 1.384 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.5947, allocations: 0 / 1.384 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.595, allocations: 143.8 kB / 1.384 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.5953, allocations: 28.17 kB / 1.384 GB, free: 12.38 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009709/0.5963, allocations: 0.5193 MB / 1.385 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.5967, allocations: 0.7681 MB / 1.386 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001296/0.5968, allocations: 34.28 kB / 1.386 GB, free: 11 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.708e-05/0.5969, allocations: 23.44 kB / 1.386 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of SimCode: time 2.1e-07/0.5969, allocations: 0 / 1.386 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of Templates: time 0.007869/0.6048, allocations: 2.664 MB / 1.388 GB, free: 8.32 MB / 0.8855 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