Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",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.001084/0.001084, allocations: 94.3 kB / 16.98 MB, free: 5.938 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.001122/0.001122, allocations: 182.2 kB / 17.87 MB, free: 5.598 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.433/1.433, allocations: 223.2 MB / 241.8 MB, free: 384 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1941/0.1941, allocations: 44.23 MB / 337.1 MB, free: 2.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.000331, allocations: 8.531 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1421, allocations: 61.91 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.0437/0.1859, allocations: 43.56 MB / 0.503 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.291/0.477, allocations: 10.59 MB / 0.5134 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00913/0.4861, allocations: 220.5 kB / 0.5136 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007837/0.494, allocations: 2.141 MB / 0.5157 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0232/0.5173, allocations: 6.335 MB / 0.5219 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003884/0.5212, allocations: 0.7925 MB / 0.5226 GB, free: 9.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006296/0.5275, allocations: 3.053 MB / 0.5256 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007512/0.535, allocations: 4.694 MB / 0.5302 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.5378, allocations: 1.267 MB / 0.5314 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002311/0.5401, allocations: 1.776 MB / 0.5332 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006016/0.5407, allocations: 173 kB / 0.5333 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002029/0.5428, allocations: 0.9113 MB / 0.5342 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00184/0.5446, allocations: 1.909 MB / 0.5361 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00134/0.546, allocations: 0.951 MB / 0.537 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006301/0.5523, allocations: 6.084 MB / 0.543 GB, free: 1.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.5523, allocations: 0 / 0.543 GB, free: 1.492 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5523, allocations: 0 / 0.543 GB, free: 1.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002617/0.5526, allocations: 0 / 0.543 GB, free: 1.492 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.01387/0.5665, allocations: 4.98 MB / 0.5478 GB, free: 14.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.5665, allocations: 12.02 kB / 0.5478 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003146/0.5697, allocations: 0.818 MB / 0.5486 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/0.5817, allocations: 2.686 MB / 0.5513 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008283/0.59, allocations: 3.053 MB / 0.5542 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003369/0.5904, allocations: 285.8 kB / 0.5545 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002759/0.5931, allocations: 0.5991 MB / 0.5551 GB, free: 7.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02879/0.6219, allocations: 12.24 MB / 0.567 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002343/0.6222, allocations: 58.14 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00104/0.6233, allocations: 176.8 kB / 0.5673 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003722/0.627, allocations: 2.137 MB / 0.5694 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02576/0.6528, allocations: 10.89 MB / 0.58 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07407/0.7269, allocations: 47.92 MB / 0.6268 GB, free: 76 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01619/0.7431, allocations: 5.411 MB / 0.6321 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02383/0.767, allocations: 12.39 MB / 0.6442 GB, free: 13.67 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.344e-05/0.7671, allocations: 56.58 kB / 0.6442 GB, free: 13.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=219): time 6.773e-06/0.7671, allocations: 0 / 0.6442 GB, free: 13.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=258): time 0.07616/0.8433, allocations: 25.24 MB / 0.6689 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003723/0.847, allocations: 4.597 MB / 0.6734 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009742/0.8568, allocations: 4.867 MB / 0.6781 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007799/0.8576, allocations: 72.36 kB / 0.6782 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003214/0.8609, allocations: 3.529 MB / 0.6816 GB, free: 6.504 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001776/0.8627, allocations: 1.015 MB / 0.6826 GB, free: 5.496 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/0.8638, allocations: 150.3 kB / 0.6828 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0006759/0.8645, allocations: 0.6283 MB / 0.6834 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005951/0.8705, allocations: 3.302 MB / 0.6866 GB, free: 1.414 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009416/0.8799, allocations: 7.574 MB / 0.694 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008697/0.8887, allocations: 4.842 MB / 0.6987 GB, free: 2.887 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/0.8889, allocations: 44 kB / 0.6988 GB, free: 2.844 MB / 0.5294 GB Notification: Performance of matching and sorting (n=991) (initialization): time 0.297/1.186, allocations: 16.1 MB / 0.7145 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/1.186, allocations: 72.03 kB / 0.7146 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03055/1.217, allocations: 9.414 MB / 0.7238 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02982/1.247, allocations: 6.647 MB / 0.7302 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005808/1.252, allocations: 1.702 MB / 0.7319 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02717/1.28, allocations: 21.89 MB / 0.7533 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008124/1.288, allocations: 0.6667 MB / 0.7539 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001602/1.289, allocations: 461.1 kB / 0.7544 GB, free: 153.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (912): * Single equations (assignments): 892 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00519/1.295, allocations: 2.339 MB / 0.7567 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001231/1.296, allocations: 414.7 kB / 0.757 GB, free: 150.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01422/1.31, allocations: 7.105 MB / 0.764 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01209/1.322, allocations: 6.432 MB / 0.7703 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-05/1.322, allocations: 12.86 kB / 0.7703 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6e-05/1.322, allocations: 11.92 kB / 0.7703 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02905/1.351, allocations: 15.41 MB / 0.7853 GB, free: 121.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.235e-05/1.351, allocations: 8 kB / 0.7854 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002127/1.354, allocations: 448 kB / 0.7858 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009459/1.363, allocations: 3.355 MB / 0.7891 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006568/1.364, allocations: 93.45 kB / 0.7891 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01575/1.379, allocations: 16.81 MB / 0.8056 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002312/1.382, allocations: 4.461 MB / 0.8099 GB, free: 95.29 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01811/1.4, allocations: 11.33 MB / 0.821 GB, free: 83.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001573/1.402, allocations: 499.5 kB / 0.8215 GB, free: 83.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009031/1.403, allocations: 67.97 kB / 0.8215 GB, free: 83.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/1.405, allocations: 299.5 kB / 0.8218 GB, free: 82.72 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005571/1.406, allocations: 198.6 kB / 0.822 GB, free: 82.53 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002006/1.406, allocations: 87.94 kB / 0.8221 GB, free: 82.44 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004216/1.41, allocations: 3.074 MB / 0.8251 GB, free: 79.37 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.71e-07/1.41, allocations: 3.281 kB / 0.8251 GB, free: 79.37 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007847/1.418, allocations: 1.605 MB / 0.8267 GB, free: 77.77 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * 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 (196): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01794/1.436, allocations: 13.28 MB / 0.8396 GB, free: 64.24 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01692/1.453, allocations: 9.57 MB / 0.849 GB, free: 54.51 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/1.453, allocations: 4 kB / 0.849 GB, free: 54.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009463/1.462, allocations: 4.659 MB / 0.8535 GB, free: 49.65 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00396/1.466, allocations: 0.5145 MB / 0.854 GB, free: 49.14 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4024/1.869, allocations: 156.5 MB / 1.007 GB, free: 85.02 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004027/1.873, allocations: 3.799 MB / 1.011 GB, free: 83.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005188/1.878, allocations: 2.255 MB / 1.013 GB, free: 83.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002924/1.881, allocations: 2.29 MB / 1.015 GB, free: 81.71 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/1.881, allocations: 4 kB / 1.015 GB, free: 81.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.39/2.271, allocations: 114.3 MB / 1.127 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001425/2.271, allocations: 200.6 kB / 1.127 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.623/6.895, allocations: 0 / 1.127 GB, free: 166.3 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat