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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.496/1.496, allocations: 251.9 MB / 266.9 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001368/0.001368, allocations: 183.3 kB / 326.5 MB, free: 2.23 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.826/1.826, allocations: 205.4 MB / 0.5775 GB, free: 20.53 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.0009375/0.0009374, allocations: 93.98 kB / 0.6821 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 8.125 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2611, allocations: 106.3 MB / 0.9001 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1782/0.4394, allocations: 135.2 MB / 1.032 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.4397, allocations: 95.92 kB / 1.032 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01183/0.4515, allocations: 4.723 MB / 1.037 GB, free: 4.078 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.774e-06/0.4516, allocations: 0 / 1.037 GB, free: 4.078 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.745e-05/0.4516, allocations: 4 kB / 1.037 GB, free: 4.074 MB / 0.6823 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.0008074/0.4524, allocations: 0.555 MB / 1.037 GB, free: 3.457 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.4524, allocations: 12.03 kB / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.4525, allocations: 31.62 kB / 1.037 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.4528, allocations: 280.5 kB / 1.038 GB, free: 3.102 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.4529, allocations: 24.66 kB / 1.038 GB, free: 3.078 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.257e-05/0.453, allocations: 32 kB / 1.038 GB, free: 3.047 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006043/0.4536, allocations: 332.8 kB / 1.038 GB, free: 2.711 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.4536, allocations: 7.938 kB / 1.038 GB, free: 2.703 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.4536, allocations: 12 kB / 1.038 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.4536, allocations: 15.95 kB / 1.038 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005578/0.4542, allocations: 258.1 kB / 1.038 GB, free: 2.422 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.4556, allocations: 0.9437 MB / 1.039 GB, free: 1.422 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006021/0.4562, allocations: 280 kB / 1.04 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.4562, allocations: 8 kB / 1.04 GB, free: 1.137 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000361/0.4566, allocations: 179.2 kB / 1.04 GB, free: 0.9492 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=32): time 1.834e-06/0.4566, allocations: 0 / 1.04 GB, free: 0.9492 MB / 0.6823 GB Notification: Performance of matching and sorting (n=32): time 0.0008025/0.4574, allocations: 378.5 kB / 1.04 GB, free: 0.5742 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.4575, allocations: 63.39 kB / 1.04 GB, free: 0.5 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.4576, allocations: 183.3 kB / 1.04 GB, free: 316 kB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.4577, allocations: 37.7 kB / 1.04 GB, free: 272 kB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.4578, allocations: 152.6 kB / 1.04 GB, free: 116 kB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.033e-05/0.4579, allocations: 82.89 kB / 1.041 GB, free: 32 kB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/0.4579, allocations: 8 kB / 1.041 GB, free: 24 kB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.458, allocations: 334.8 kB / 1.041 GB, free: 15.69 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.4583, allocations: 112.8 kB / 1.041 GB, free: 15.58 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.4586, allocations: 173.4 kB / 1.041 GB, free: 15.39 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.4588, allocations: 129.7 kB / 1.041 GB, free: 15.26 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4588, allocations: 3.938 kB / 1.041 GB, free: 15.26 MB / 0.698 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006538/0.4595, allocations: 378.6 kB / 1.042 GB, free: 14.88 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.4596, allocations: 41.84 kB / 1.042 GB, free: 14.83 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4596, allocations: 0 / 1.042 GB, free: 14.83 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.4596, allocations: 7.938 kB / 1.042 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.4598, allocations: 47.91 kB / 1.042 GB, free: 14.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.4598, allocations: 7.891 kB / 1.042 GB, free: 14.77 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002435/0.4601, allocations: 51.81 kB / 1.042 GB, free: 14.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.663e-05/0.4601, allocations: 12 kB / 1.042 GB, free: 14.7 MB / 0.698 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.0001755/0.4603, allocations: 173.8 kB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.142e-05/0.4603, allocations: 15.81 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006172/0.4609, allocations: 315.3 kB / 1.042 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.461, allocations: 4 kB / 1.042 GB, free: 14.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.461, allocations: 3.984 kB / 1.042 GB, free: 14.19 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.461, allocations: 3.953 kB / 1.042 GB, free: 14.19 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.4621, allocations: 0.748 MB / 1.043 GB, free: 13.38 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4621, allocations: 0 / 1.043 GB, free: 13.38 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.4622, allocations: 31.92 kB / 1.043 GB, free: 13.35 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.4622, allocations: 8 kB / 1.043 GB, free: 13.34 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/0.4623, allocations: 15.94 kB / 1.043 GB, free: 13.33 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4623, allocations: 0 / 1.043 GB, free: 13.33 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4623, allocations: 0 / 1.043 GB, free: 13.33 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005514/0.4628, allocations: 387.5 kB / 1.043 GB, free: 12.93 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-05/0.4629, allocations: 100.8 kB / 1.044 GB, free: 12.82 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.4629, allocations: 8 kB / 1.044 GB, free: 12.81 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.4632, allocations: 39.92 kB / 1.044 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.4633, allocations: 43.92 kB / 1.044 GB, free: 12.73 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.4633, allocations: 12 kB / 1.044 GB, free: 12.71 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.105e-05/0.4634, allocations: 123.2 kB / 1.044 GB, free: 12.59 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4634, allocations: 3.938 kB / 1.044 GB, free: 12.59 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002954/0.4637, allocations: 63.98 kB / 1.044 GB, free: 12.53 MB / 0.698 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.0001823/0.4639, allocations: 121.4 kB / 1.044 GB, free: 12.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006319/0.4646, allocations: 347.2 kB / 1.044 GB, free: 12.05 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4646, allocations: 0 / 1.044 GB, free: 12.05 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.4648, allocations: 144.9 kB / 1.044 GB, free: 11.91 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.4651, allocations: 28.48 kB / 1.044 GB, free: 11.88 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008435/0.466, allocations: 0.5185 MB / 1.045 GB, free: 11.34 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.4663, allocations: 0.7642 MB / 1.046 GB, free: 10.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001115/0.4664, allocations: 34.22 kB / 1.046 GB, free: 10.51 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.231e-05/0.4665, allocations: 27.44 kB / 1.046 GB, free: 10.48 MB / 0.698 GB Notification: Performance of SimCode: time 4.5e-07/0.4665, allocations: 0 / 1.046 GB, free: 10.48 MB / 0.698 GB Notification: Performance of Templates: time 0.005979/0.4725, allocations: 2.664 MB / 1.048 GB, free: 7.844 MB / 0.698 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