Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY.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.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_TransformerStepDownDY",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_TransformerStepDownDY",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.001125/0.001125, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001183/0.001183, allocations: 172.7 kB / 15.95 MB, free: 192 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.458/1.458, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.712/2.712, allocations: 409.4 MB / 0.684 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003446/0.0003446, allocations: 8 kB / 0.8378 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.75/0.7503, allocations: 146.8 MB / 0.9811 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY): time 0.01836/0.7687, allocations: 15.43 MB / 0.9962 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.009141/0.7779, allocations: 5.68 MB / 1.002 GB, free: 1.129 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.7792, allocations: 39.88 kB / 1.002 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.7802, allocations: 309.8 kB / 1.002 GB, free: 0.7852 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.002281/0.7825, allocations: 0.8093 MB / 1.003 GB, free: 15.97 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.7844, allocations: 0.5951 MB / 1.003 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005573/0.79, allocations: 4.993 MB / 1.008 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01128/0.8013, allocations: 6.296 MB / 1.014 GB, free: 4.02 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002679/0.804, allocations: 1.343 MB / 1.016 GB, free: 2.672 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003924/0.8079, allocations: 1.932 MB / 1.018 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.809, allocations: 192 kB / 1.018 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00236/0.8114, allocations: 0.597 MB / 1.018 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002616/0.814, allocations: 1.466 MB / 1.02 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001619/0.8157, allocations: 0.5667 MB / 1.02 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.007421/0.8231, allocations: 5.582 MB / 1.026 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.8231, allocations: 0 / 1.026 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.865e-06/0.8231, allocations: 0 / 1.026 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002258/0.8234, allocations: 4 kB / 1.026 GB, free: 8.309 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 809 * Number of variables: 809 Notification: Performance of Generate backend data structure: time 0.007609/0.831, allocations: 2.492 MB / 1.028 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.512e-05/0.8311, allocations: 12.03 kB / 1.028 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001772/0.8329, allocations: 462.6 kB / 1.029 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01062/0.8435, allocations: 2.025 MB / 1.031 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003979/0.8475, allocations: 1.634 MB / 1.032 GB, free: 1.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003183/0.8479, allocations: 230.1 kB / 1.033 GB, free: 1.344 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001512/0.8494, allocations: 295.9 kB / 1.033 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0164/0.8658, allocations: 5.896 MB / 1.039 GB, free: 11.07 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.866, allocations: 3.938 kB / 1.039 GB, free: 11.06 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008919/0.8669, allocations: 132 kB / 1.039 GB, free: 10.93 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003636/0.8672, allocations: 197 kB / 1.039 GB, free: 10.74 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/0.8829, allocations: 5.959 MB / 1.045 GB, free: 4.762 MB / 0.795 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.03377/0.9167, allocations: 23 MB / 1.067 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00523/0.922, allocations: 2.499 MB / 1.07 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004392/0.9264, allocations: 1.831 MB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002259/0.9267, allocations: 118 kB / 1.072 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.808e-05/0.9267, allocations: 59.56 kB / 1.072 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=123): time 4.098e-06/0.9268, allocations: 0 / 1.072 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=153): time 0.03683/0.9636, allocations: 11.74 MB / 1.083 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.9638, allocations: 230.9 kB / 1.083 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001547/0.9653, allocations: 1.059 MB / 1.084 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.000313/0.9657, allocations: 53.7 kB / 1.084 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008007/0.9665, allocations: 1.254 MB / 1.086 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005522/0.967, allocations: 0.5277 MB / 1.086 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.9672, allocations: 48 kB / 1.086 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002128/0.9674, allocations: 427.2 kB / 1.087 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004126/0.9715, allocations: 1.811 MB / 1.088 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004497/0.9761, allocations: 2.49 MB / 1.091 GB, free: 2.996 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004486/0.9806, allocations: 2.152 MB / 1.093 GB, free: 0.8477 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.457e-05/0.9806, allocations: 8 kB / 1.093 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.01135/0.9919, allocations: 5.177 MB / 1.098 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004587/0.9924, allocations: 0.7199 MB / 1.099 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/0.9925, allocations: 23.95 kB / 1.099 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002708/0.9952, allocations: 0.8753 MB / 1.1 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003037/0.9982, allocations: 0.7682 MB / 1.1 GB, free: 8.926 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/1.011, allocations: 12.78 MB / 1.113 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003284/1.015, allocations: 470.9 kB / 1.113 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003534/1.015, allocations: 115.9 kB / 1.113 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/1.015, allocations: 4 kB / 1.113 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.012/1.027, allocations: 5.017 MB / 1.118 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.674e-05/1.027, allocations: 20 kB / 1.118 GB, free: 5.707 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002031/1.029, allocations: 0.759 MB / 1.119 GB, free: 4.93 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003357/1.033, allocations: 0.7682 MB / 1.12 GB, free: 4.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/1.045, allocations: 12.61 MB / 1.132 GB, free: 6.746 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002711/1.048, allocations: 443.2 kB / 1.132 GB, free: 6.312 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002185/1.048, allocations: 112 kB / 1.133 GB, free: 6.203 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (240): * Single equations (assignments): 234 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002024/1.05, allocations: 1.328 MB / 1.134 GB, free: 4.863 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003598/1.05, allocations: 130.5 kB / 1.134 GB, free: 4.734 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.061, allocations: 4.592 MB / 1.138 GB, free: 80 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/1.061, allocations: 19.95 kB / 1.138 GB, free: 60 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-05/1.061, allocations: 15.98 kB / 1.138 GB, free: 44 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/1.061, allocations: 7.984 kB / 1.139 GB, free: 36 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01706/1.078, allocations: 8.309 MB / 1.147 GB, free: 7.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/1.078, allocations: 8 kB / 1.147 GB, free: 7.512 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/1.081, allocations: 0.5309 MB / 1.147 GB, free: 6.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002087/1.083, allocations: 0.7001 MB / 1.148 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002196/1.083, allocations: 55.95 kB / 1.148 GB, free: 6.207 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/1.096, allocations: 12.25 MB / 1.16 GB, free: 9.156 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/1.096, allocations: 11.94 kB / 1.16 GB, free: 9.145 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009979/1.106, allocations: 4.285 MB / 1.164 GB, free: 4.73 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009912/1.107, allocations: 0.5032 MB / 1.165 GB, free: 4.207 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/1.107, allocations: 32 kB / 1.165 GB, free: 4.176 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002146/1.109, allocations: 391.4 kB / 1.165 GB, free: 3.793 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/1.11, allocations: 140.7 kB / 1.165 GB, free: 3.656 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/1.11, allocations: 63.91 kB / 1.165 GB, free: 3.594 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001028/1.111, allocations: 0.7722 MB / 1.166 GB, free: 2.82 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.2e-07/1.111, allocations: 0 / 1.166 GB, free: 2.82 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003673/1.114, allocations: 1.152 MB / 1.167 GB, free: 1.668 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009446/1.124, allocations: 4.873 MB / 1.172 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.01636/1.14, allocations: 8.159 MB / 1.18 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/1.14, allocations: 4 kB / 1.18 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.005775/1.146, allocations: 2.745 MB / 1.182 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/1.148, allocations: 183.3 kB / 1.183 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03869/1.187, allocations: 17.99 MB / 1.2 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/1.189, allocations: 2.336 MB / 1.202 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.003941/1.193, allocations: 1.288 MB / 1.204 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/1.194, allocations: 0.8702 MB / 1.205 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of SimCode: time 7.11e-07/1.194, allocations: 0 / 1.205 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7286/1.923, allocations: 48.45 MB / 1.252 GB, free: 239.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002644/1.923, allocations: 255.4 kB / 1.252 GB, free: 239.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.917/4.84, allocations: 0 / 1.252 GB, free: 239.4 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_TransformerStepDownDY_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Conversion_Examples_TransformerStepDownDY.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Conversion.Examples.TransformerStepDownDY_res.mat does not exist to compare? outputFormat=mat