Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 97.56 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007175/0.007175, allocations: 169.2 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.534/2.534, allocations: 437.8 MB / 0.7121 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003968/0.0003968, allocations: 16 kB / 0.8729 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5908/0.5912, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic): time 0.1171/0.7083, allocations: 127.9 MB / 1.148 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03309/0.7415, allocations: 24.93 MB / 1.172 GB, free: 6.469 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004147/0.7457, allocations: 119.2 kB / 1.173 GB, free: 6.352 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.003609/0.7493, allocations: 1.418 MB / 1.174 GB, free: 4.926 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01036/0.7597, allocations: 4.154 MB / 1.178 GB, free: 0.7578 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.007299/0.767, allocations: 3.194 MB / 1.181 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.01216/0.7791, allocations: 11.37 MB / 1.192 GB, free: 2.195 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003484/0.7826, allocations: 2.525 MB / 1.195 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005322/0.788, allocations: 2.745 MB / 1.197 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003602/0.7916, allocations: 2.313 MB / 1.2 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0003783/0.792, allocations: 128 kB / 1.2 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005276/0.7973, allocations: 2.472 MB / 1.202 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0006238/0.7979, allocations: 0.6222 MB / 1.203 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001932/0.7998, allocations: 1.708 MB / 1.204 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.007015/0.8069, allocations: 6.028 MB / 1.21 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.8069, allocations: 3.938 kB / 1.21 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.366e-06/0.8069, allocations: 4 kB / 1.21 GB, free: 15.53 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.216e-05/0.807, allocations: 3.938 kB / 1.21 GB, free: 15.52 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.005771/0.8127, allocations: 3.355 MB / 1.214 GB, free: 12.07 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.8128, allocations: 8.031 kB / 1.214 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000415/0.8132, allocations: 332.8 kB / 1.214 GB, free: 11.72 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/0.8245, allocations: 1.46 MB / 1.215 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004836/0.8293, allocations: 2.93 MB / 1.218 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002272/0.8296, allocations: 251.9 kB / 1.218 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000381/0.8299, allocations: 240 kB / 1.219 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007375/0.8373, allocations: 3.241 MB / 1.222 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.207e-05/0.8374, allocations: 7.938 kB / 1.222 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002645/0.8377, allocations: 100 kB / 1.222 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.209e-05/0.8377, allocations: 75.86 kB / 1.222 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009195/0.847, allocations: 2.897 MB / 1.225 GB, free: 236 kB / 0.9669 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/0.8649, allocations: 13.67 MB / 1.238 GB, free: 1.914 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004354/0.8693, allocations: 1.506 MB / 1.24 GB, free: 412 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003278/0.8726, allocations: 0.9394 MB / 1.241 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001701/0.8743, allocations: 1.781 MB / 1.242 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003755/0.878, allocations: 1.22 MB / 1.244 GB, free: 12 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=126): time 3.376e-06/0.8781, allocations: 0 / 1.244 GB, free: 12 MB / 0.9981 GB Notification: Performance of matching and sorting (n=132): time 0.5054/1.384, allocations: 11.93 MB / 1.255 GB, free: 220.8 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/1.384, allocations: 0.5794 MB / 1.256 GB, free: 220.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004749/1.388, allocations: 2.609 MB / 1.258 GB, free: 219.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004122/1.389, allocations: 67.92 kB / 1.258 GB, free: 219.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001142/1.39, allocations: 1.319 MB / 1.26 GB, free: 219 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005082/1.391, allocations: 462.1 kB / 1.26 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/1.391, allocations: 148 kB / 1.26 GB, free: 218.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.38e-05/1.391, allocations: 302.8 kB / 1.26 GB, free: 218.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004023/1.395, allocations: 1.011 MB / 1.261 GB, free: 218.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004318/1.399, allocations: 1.606 MB / 1.263 GB, free: 217.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007518/1.407, allocations: 2.313 MB / 1.265 GB, free: 216.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/1.407, allocations: 3.906 kB / 1.265 GB, free: 216.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=225) (initialization): time 0.0253/1.432, allocations: 4.272 MB / 1.269 GB, free: 215 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002295/1.432, allocations: 490.6 kB / 1.27 GB, free: 214.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/1.432, allocations: 11.97 kB / 1.27 GB, free: 214.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003963/1.436, allocations: 1.167 MB / 1.271 GB, free: 214.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/1.439, allocations: 474.7 kB / 1.272 GB, free: 214.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003761/1.443, allocations: 2.389 MB / 1.274 GB, free: 212.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004934/1.448, allocations: 409.3 kB / 1.274 GB, free: 212.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002212/1.448, allocations: 106.3 kB / 1.274 GB, free: 212.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/1.448, allocations: 7.75 kB / 1.274 GB, free: 212.5 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02299/1.471, allocations: 3.985 MB / 1.278 GB, free: 211.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.255e-05/1.471, allocations: 16.44 kB / 1.278 GB, free: 211.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003672/1.475, allocations: 1.16 MB / 1.279 GB, free: 211.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002589/1.477, allocations: 471.1 kB / 1.28 GB, free: 211.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/1.481, allocations: 2.386 MB / 1.282 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004371/1.485, allocations: 373.7 kB / 1.283 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/1.485, allocations: 107.5 kB / 1.283 GB, free: 209.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 10 (realToInteger.y,N.count,$PRE.N.count,N.T_start,$PRE.N.T_start,heaPum1.com.isOn,$PRE.heaPum1.com.isOn,heaPum.com.isOn,$PRE.heaPum.com.isOn,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,25), (4,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001389/1.487, allocations: 0.6982 MB / 1.283 GB, free: 209 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000409/1.487, allocations: 278.9 kB / 1.284 GB, free: 208.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007563/1.495, allocations: 2.47 MB / 1.286 GB, free: 208 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/1.495, allocations: 15.22 kB / 1.286 GB, free: 208 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.505e-06/1.495, allocations: 3.969 kB / 1.286 GB, free: 208 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006615/1.501, allocations: 2.07 MB / 1.288 GB, free: 207.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/1.52, allocations: 7.083 MB / 1.295 GB, free: 202.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/1.52, allocations: 7.875 kB / 1.295 GB, free: 202.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/1.522, allocations: 295.8 kB / 1.295 GB, free: 202.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003123/1.525, allocations: 1.032 MB / 1.296 GB, free: 202.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.824e-05/1.525, allocations: 50.03 kB / 1.296 GB, free: 202 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002996/1.528, allocations: 2.152 MB / 1.298 GB, free: 200.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.528, allocations: 13.47 kB / 1.298 GB, free: 200.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01216/1.54, allocations: 3.838 MB / 1.302 GB, free: 197.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/1.541, allocations: 0.6613 MB / 1.303 GB, free: 196.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003549/1.542, allocations: 40 kB / 1.303 GB, free: 196.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003229/1.545, allocations: 299.4 kB / 1.303 GB, free: 196 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/1.545, allocations: 116.7 kB / 1.303 GB, free: 195.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/1.545, allocations: 75.92 kB / 1.303 GB, free: 195.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002404/1.548, allocations: 1.836 MB / 1.305 GB, free: 194 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.91e-07/1.548, allocations: 0 / 1.305 GB, free: 194 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003434/1.551, allocations: 1.476 MB / 1.307 GB, free: 192.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 2 (heaPum1.con.vol.dynBal.U,heaPum1.eva.vol.dynBal.U) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum1.com.isOn,N.T_start,N.count,realToInteger.y) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,19), (4,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01322/1.564, allocations: 5.012 MB / 1.311 GB, free: 187.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01155/1.576, allocations: 3.82 MB / 1.315 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.576, allocations: 4.438 kB / 1.315 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003463/1.579, allocations: 1.119 MB / 1.316 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009102/1.588, allocations: 1.571 MB / 1.318 GB, free: 181.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07678/1.665, allocations: 29.23 MB / 1.346 GB, free: 149.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008794/1.666, allocations: 1.717 MB / 1.348 GB, free: 147.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003054/1.669, allocations: 0.6584 MB / 1.349 GB, free: 147.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/1.67, allocations: 1.183 MB / 1.35 GB, free: 146.1 MB / 0.9981 GB Notification: Performance of SimCode: time 6.71e-07/1.67, allocations: 0 / 1.35 GB, free: 146.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.812/4.483, allocations: 99.8 MB / 1.447 GB, free: 47.22 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/4.483, allocations: 288.8 kB / 1.448 GB, free: 46.85 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.564/10.05, allocations: 0 / 1.448 GB, free: 46.85 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic.fmu > Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_10_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic_res.mat does not exist to compare? outputFormat=mat