Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.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 3.2.3+maint.om/package.mo", uses=false) 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 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(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop",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.000945/0.0009452, allocations: 101.4 kB / 16.95 MB, free: 6.457 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.001152/0.001152, allocations: 183.2 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004429/0.0004432, allocations: 12.78 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1086, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002068/0.1108, allocations: 1.731 MB / 330.2 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.1129, allocations: 1.097 MB / 331.3 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.157e-05/0.113, allocations: 7.938 kB / 331.3 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.1131, allocations: 35.7 kB / 331.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.929e-05/0.1132, allocations: 35.7 kB / 331.4 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003839/0.1136, allocations: 111.8 kB / 331.5 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.114, allocations: 395.6 kB / 331.8 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.1143, allocations: 135.8 kB / 332 MB, free: 444 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000743/0.115, allocations: 0.6707 MB / 332.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.1153, allocations: 259.4 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.298e-05/0.1154, allocations: 8 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.943e-05/0.1154, allocations: 12 kB / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.1156, allocations: 119.7 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.371e-05/0.1157, allocations: 85.52 kB / 333.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005328/0.1162, allocations: 0.7795 MB / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.1162, allocations: 0 / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1162, allocations: 0 / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1162, allocations: 0 / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.0009208/0.1172, allocations: 0.7318 MB / 334.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1172, allocations: 8.031 kB / 334.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.374e-05/0.1173, allocations: 74.53 kB / 334.7 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.934e-05/0.1174, allocations: 47.44 kB / 334.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.1178, allocations: 346.2 kB / 335.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.1179, allocations: 24.59 kB / 335.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.44e-05/0.118, allocations: 36 kB / 335.2 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008201/0.1188, allocations: 493.8 kB / 335.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1188, allocations: 0 / 335.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-05/0.1189, allocations: 12 kB / 335.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.1189, allocations: 8 kB / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000713/0.1196, allocations: 390.4 kB / 336 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.1212, allocations: 1.116 MB / 337.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.1222, allocations: 463.5 kB / 337.6 MB, free: 10.61 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003264/0.1226, allocations: 181.3 kB / 337.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.031e-05/0.1227, allocations: 4.281 kB / 337.8 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005471/0.1232, allocations: 351.2 kB / 338.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 1.704e-06/0.1232, allocations: 0 / 338.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001331/0.1246, allocations: 0.7422 MB / 338.9 MB, free: 9.309 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.699e-05/0.1246, allocations: 110.8 kB / 339 MB, free: 9.176 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.1249, allocations: 310.3 kB / 339.3 MB, free: 8.863 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.51e-05/0.125, allocations: 37.7 kB / 339.3 MB, free: 8.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1251, allocations: 164.8 kB / 339.5 MB, free: 8.652 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.1252, allocations: 86.98 kB / 339.6 MB, free: 8.566 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.1253, allocations: 15.94 kB / 339.6 MB, free: 8.551 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1254, allocations: 338.8 kB / 339.9 MB, free: 8.211 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.1258, allocations: 188.8 kB / 340.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003851/0.1262, allocations: 240.5 kB / 340.3 MB, free: 7.777 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000427/0.1266, allocations: 255.3 kB / 340.6 MB, free: 7.516 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1266, allocations: 0 / 340.6 MB, free: 7.516 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001055/0.1277, allocations: 0.6642 MB / 341.3 MB, free: 6.832 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.164e-05/0.1278, allocations: 63.41 kB / 341.3 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1278, allocations: 7.969 kB / 341.3 MB, free: 6.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1278, allocations: 4 kB / 341.3 MB, free: 6.746 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.1279, allocations: 59.84 kB / 341.4 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.128, allocations: 0 / 341.4 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.1283, allocations: 63.8 kB / 341.4 MB, free: 6.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002543/0.1285, allocations: 279.7 kB / 341.7 MB, free: 6.352 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.x[1],FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0003094/0.1288, allocations: 277.1 kB / 342 MB, free: 6.059 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.1289, allocations: 39.61 kB / 342 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.696e-05/0.129, allocations: 38.95 kB / 342.1 MB, free: 5.984 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.129, allocations: 4 kB / 342.1 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.129, allocations: 0 / 342.1 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.129, allocations: 3.984 kB / 342.1 MB, free: 5.977 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005275/0.1296, allocations: 489.1 kB / 342.6 MB, free: 5.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1296, allocations: 0 / 342.6 MB, free: 5.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.1297, allocations: 51.97 kB / 342.6 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1297, allocations: 0 / 342.6 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-05/0.1298, allocations: 47.97 kB / 342.7 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1298, allocations: 0 / 342.7 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1298, allocations: 160 / 342.7 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009727/0.1308, allocations: 0.6217 MB / 343.3 MB, free: 4.699 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.131, allocations: 200.6 kB / 343.5 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.1312, allocations: 12 kB / 343.5 MB, free: 4.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.1314, allocations: 43.88 kB / 343.5 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.1316, allocations: 87.91 kB / 343.6 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002459/0.1319, allocations: 279.7 kB / 343.9 MB, free: 4.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001722/0.132, allocations: 201.9 kB / 344.1 MB, free: 3.875 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.132, allocations: 0 / 344.1 MB, free: 3.875 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003712/0.1324, allocations: 99.84 kB / 344.2 MB, free: 3.777 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,K.y,J.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.001295/0.1337, allocations: 1.199 MB / 345.4 MB, free: 2.539 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009191/0.1347, allocations: 0.5537 MB / 345.9 MB, free: 1.961 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1347, allocations: 4 kB / 345.9 MB, free: 1.957 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004838/0.1352, allocations: 366.4 kB / 346.3 MB, free: 1.574 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.1362, allocations: 284.3 kB / 346.6 MB, free: 1.297 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.1396, allocations: 2.119 MB / 348.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.1399, allocations: 0.8033 MB / 349.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.1413, allocations: 0.7588 MB / 350.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007178/0.142, allocations: 334.8 kB / 350.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.142, allocations: 0 / 350.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.1769, allocations: 12.69 MB / 363.3 MB, free: 288 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002724/0.1773, allocations: 182.4 kB / 363.4 MB, free: 40 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.148/2.326, allocations: 0 / 363.4 MB, free: 40 kB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat