Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl",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.001123/0.001123, allocations: 103.3 kB / 15.06 MB, free: 1.098 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.001429/0.001429, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.278/2.278, allocations: 409.2 MB / 0.6838 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003094, allocations: 12 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6005/0.6008, allocations: 146.8 MB / 0.9809 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl): time 0.03374/0.6346, allocations: 40.48 MB / 1.02 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01341/0.648, allocations: 10.26 MB / 1.03 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.6495, allocations: 47.62 kB / 1.03 GB, free: 3.395 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.651, allocations: 0.6023 MB / 1.031 GB, free: 2.789 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00452/0.6555, allocations: 1.932 MB / 1.033 GB, free: 0.8516 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004456/0.66, allocations: 1.913 MB / 1.035 GB, free: 14.97 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.003036/0.6631, allocations: 2.12 MB / 1.037 GB, free: 12.85 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/0.6642, allocations: 0.9307 MB / 1.038 GB, free: 11.89 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001842/0.6661, allocations: 1.187 MB / 1.039 GB, free: 10.7 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007926/0.6669, allocations: 0.7349 MB / 1.04 GB, free: 9.957 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.667, allocations: 56 kB / 1.04 GB, free: 9.902 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00302/0.67, allocations: 1.798 MB / 1.041 GB, free: 8.102 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002464/0.6703, allocations: 258.8 kB / 1.042 GB, free: 7.848 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002725/0.6706, allocations: 312.9 kB / 1.042 GB, free: 7.535 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001982/0.6725, allocations: 1.98 MB / 1.044 GB, free: 5.551 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.6726, allocations: 0 / 1.044 GB, free: 5.551 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.984e-06/0.6726, allocations: 0 / 1.044 GB, free: 5.551 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.227e-05/0.6726, allocations: 0 / 1.044 GB, free: 5.551 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.003059/0.6756, allocations: 1.851 MB / 1.046 GB, free: 3.637 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.6757, allocations: 8.031 kB / 1.046 GB, free: 3.629 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/0.6758, allocations: 139.3 kB / 1.046 GB, free: 3.484 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001481/0.6773, allocations: 421.6 kB / 1.046 GB, free: 3.07 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.6791, allocations: 1.141 MB / 1.047 GB, free: 1.879 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006175/0.6797, allocations: 210.2 kB / 1.048 GB, free: 1.672 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.6799, allocations: 108 kB / 1.048 GB, free: 1.566 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/0.6818, allocations: 1.096 MB / 1.049 GB, free: 448 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.6818, allocations: 0 / 1.049 GB, free: 448 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.03e-05/0.6819, allocations: 36 kB / 1.049 GB, free: 412 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.285e-05/0.682, allocations: 30 kB / 1.049 GB, free: 380 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002283/0.6843, allocations: 1.066 MB / 1.05 GB, free: 15.31 MB / 0.8106 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.006291/0.6906, allocations: 4.812 MB / 1.055 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.6925, allocations: 0.8302 MB / 1.055 GB, free: 9.387 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001023/0.6935, allocations: 1.072 MB / 1.056 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.6946, allocations: 0.543 MB / 1.057 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=72): time 2.564e-06/0.6946, allocations: 0 / 1.057 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of matching and sorting (n=72): time 0.003166/0.6978, allocations: 1.382 MB / 1.058 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.6979, allocations: 64.05 kB / 1.058 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/0.6992, allocations: 1.234 MB / 1.06 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.762e-05/0.6992, allocations: 45.7 kB / 1.06 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003921/0.6996, allocations: 0.5875 MB / 1.06 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.6998, allocations: 248.4 kB / 1.06 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.6999, allocations: 24 kB / 1.06 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.7, allocations: 334 kB / 1.061 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.701, allocations: 441.7 kB / 1.061 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.7022, allocations: 0.6563 MB / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.7033, allocations: 0.5044 MB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7033, allocations: 0 / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002582/0.7059, allocations: 1.29 MB / 1.064 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004691/0.7064, allocations: 1.633 MB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.7064, allocations: 4 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.7064, allocations: 8 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.7078, allocations: 311.5 kB / 1.066 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005519/0.7083, allocations: 1.195 MB / 1.067 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.7096, allocations: 207 kB / 1.067 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-05/0.7097, allocations: 47.97 kB / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.163e-06/0.7097, allocations: 4 kB / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002415/0.7121, allocations: 1.149 MB / 1.068 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.7121, allocations: 4 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.767e-06/0.7121, allocations: 8 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.7132, allocations: 287.8 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.7132, allocations: 12 kB / 1.068 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.7144, allocations: 188.4 kB / 1.069 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-05/0.7145, allocations: 47.97 kB / 1.069 GB, free: 11.36 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,hex.flowRegime,hex.flowRegime_nominal,P.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004983/0.715, allocations: 372.8 kB / 1.069 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.7152, allocations: 146.2 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.718, allocations: 1.309 MB / 1.07 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.718, allocations: 19.92 kB / 1.07 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.718, allocations: 0 / 1.07 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.718, allocations: 3.984 kB / 1.07 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004126/0.7222, allocations: 2.595 MB / 1.073 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.7222, allocations: 0 / 1.073 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009403/0.7231, allocations: 227.9 kB / 1.073 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.7232, allocations: 8 kB / 1.073 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.073e-05/0.7232, allocations: 27.97 kB / 1.073 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000468/0.7237, allocations: 1.188 MB / 1.074 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7237, allocations: 4.188 kB / 1.074 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003589/0.7273, allocations: 1.999 MB / 1.076 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005258/0.7278, allocations: 378.8 kB / 1.077 GB, free: 2.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.728, allocations: 16 kB / 1.077 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.7292, allocations: 152.4 kB / 1.077 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.7293, allocations: 68.56 kB / 1.077 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-05/0.7294, allocations: 35.97 kB / 1.077 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001003/0.7304, allocations: 0.8284 MB / 1.078 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.71e-07/0.7304, allocations: 0 / 1.078 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001769/0.7322, allocations: 0.7761 MB / 1.078 GB, free: 0.9805 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (temSen.T,val.filter.s[1],val.filter.s[2],P.I.y) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004919/0.7371, allocations: 3.534 MB / 1.082 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004116/0.7412, allocations: 1.837 MB / 1.084 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.7412, allocations: 3.938 kB / 1.084 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.7425, allocations: 0.5861 MB / 1.084 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/0.745, allocations: 0.5864 MB / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006139/0.7512, allocations: 6.268 MB / 1.091 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000622/0.7518, allocations: 1.199 MB / 1.092 GB, free: 2.699 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001386/0.7532, allocations: 359.2 kB / 1.092 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000664/0.7539, allocations: 0.5461 MB / 1.093 GB, free: 1.832 MB / 0.8419 GB Notification: Performance of SimCode: time 5.21e-07/0.7539, allocations: 0 / 1.093 GB, free: 1.832 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.924/5.678, allocations: 39.77 MB / 1.132 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/5.678, allocations: 295.9 kB / 1.132 GB, free: 10.33 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.77/8.448, allocations: 0 / 1.132 GB, free: 10.33 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat does not exist to compare? outputFormat=mat