Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009956/0.0009957, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.152/1.152, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008374/0.0008374, allocations: 86.34 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1661/0.1661, allocations: 45.15 MB / 383.4 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2056/0.3717, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09279/0.4646, allocations: 63.24 MB / 0.5039 GB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2924/0.757, allocations: 103.5 MB / 0.605 GB, free: 15.39 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.7572, allocations: 66.16 kB / 0.605 GB, free: 15.36 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 470 * Number of variables: 470 Notification: Performance of Generate backend data structure: time 0.08733/0.8446, allocations: 34.85 MB / 0.6391 GB, free: 2.109 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.8446, allocations: 8 kB / 0.6391 GB, free: 2.102 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/0.8459, allocations: 281.2 kB / 0.6393 GB, free: 1.824 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005688/0.8516, allocations: 2.225 MB / 0.6415 GB, free: 60 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.94e-05/0.8517, allocations: 63.94 kB / 0.6416 GB, free: 0 / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004984/0.8522, allocations: 116 kB / 0.6417 GB, free: 15.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003757/0.856, allocations: 2.045 MB / 0.6437 GB, free: 14.63 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003555/0.8596, allocations: 2.298 MB / 0.6459 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.577e-05/0.8596, allocations: 11.91 kB / 0.6459 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/0.8598, allocations: 4 kB / 0.6459 GB, free: 12.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-05/0.8599, allocations: 75.62 kB / 0.646 GB, free: 12.87 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01173/0.8716, allocations: 7.094 MB / 0.6529 GB, free: 6.754 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/0.8738, allocations: 1.579 MB / 0.6545 GB, free: 5.156 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.8755, allocations: 1.198 MB / 0.6556 GB, free: 3.957 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.183e-05/0.8756, allocations: 13 kB / 0.6557 GB, free: 3.945 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001279/0.8769, allocations: 0.9042 MB / 0.6565 GB, free: 3.008 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 3.447e-06/0.8769, allocations: 0 / 0.6565 GB, free: 3.008 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.002771/0.8797, allocations: 1.747 MB / 0.6582 GB, free: 1.246 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.8798, allocations: 264.6 kB / 0.6585 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.8814, allocations: 1.064 MB / 0.6595 GB, free: 15.86 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.8815, allocations: 49.69 kB / 0.6596 GB, free: 15.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005677/0.8821, allocations: 0.6359 MB / 0.6602 GB, free: 15.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000323/0.8824, allocations: 394.5 kB / 0.6606 GB, free: 14.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.396e-05/0.8825, allocations: 4 kB / 0.6606 GB, free: 14.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.8826, allocations: 361.9 kB / 0.6609 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000946/0.8836, allocations: 0.6872 MB / 0.6616 GB, free: 13.71 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.8848, allocations: 0.9911 MB / 0.6626 GB, free: 12.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.8858, allocations: 0.7596 MB / 0.6633 GB, free: 11.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.8858, allocations: 0 / 0.6633 GB, free: 11.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002886/0.8887, allocations: 2.02 MB / 0.6653 GB, free: 9.824 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009461/0.8897, allocations: 2.453 MB / 0.6677 GB, free: 7.191 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.8897, allocations: 8 kB / 0.6677 GB, free: 7.184 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.891, allocations: 0.5551 MB / 0.6682 GB, free: 6.625 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007271/0.8917, allocations: 187.7 kB / 0.6684 GB, free: 6.441 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007322/0.8991, allocations: 5.478 MB / 0.6738 GB, free: 0.8398 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.9004, allocations: 179 kB / 0.6739 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.9005, allocations: 52 kB / 0.674 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.264e-06/0.9006, allocations: 4 kB / 0.674 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002654/0.9032, allocations: 1.845 MB / 0.6758 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.9032, allocations: 4 kB / 0.6758 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.9044, allocations: 0.5566 MB / 0.6763 GB, free: 14.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006829/0.9051, allocations: 191.6 kB / 0.6765 GB, free: 14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007123/0.9123, allocations: 5.475 MB / 0.6819 GB, free: 8.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.9135, allocations: 159.1 kB / 0.682 GB, free: 8.254 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.9136, allocations: 48 kB / 0.6821 GB, free: 8.207 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[3].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 131 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 38} Notification: Performance of prepare postOptimizeDAE: time 0.0003389/0.914, allocations: 180.8 kB / 0.6822 GB, free: 8.027 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/0.9142, allocations: 138.3 kB / 0.6824 GB, free: 7.891 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003803/0.9146, allocations: 165.9 kB / 0.6825 GB, free: 7.723 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.9146, allocations: 19.84 kB / 0.6825 GB, free: 7.703 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.9146, allocations: 0 / 0.6825 GB, free: 7.703 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/0.9146, allocations: 7.969 kB / 0.6825 GB, free: 7.695 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005715/0.9203, allocations: 3.764 MB / 0.6862 GB, free: 3.887 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.9204, allocations: 3.984 kB / 0.6862 GB, free: 3.883 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.9208, allocations: 103.8 kB / 0.6863 GB, free: 3.781 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001149/0.922, allocations: 0.5401 MB / 0.6869 GB, free: 3.238 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-05/0.9221, allocations: 7.984 kB / 0.6869 GB, free: 3.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006714/0.9288, allocations: 5.34 MB / 0.6921 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.9288, allocations: 3.984 kB / 0.6921 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0036/0.9324, allocations: 2.78 MB / 0.6948 GB, free: 10.96 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004808/0.9373, allocations: 4.184 MB / 0.6989 GB, free: 6.754 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007987/0.9381, allocations: 387 kB / 0.6992 GB, free: 6.355 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/0.9384, allocations: 19.98 kB / 0.6993 GB, free: 6.336 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008997/0.9393, allocations: 99.91 kB / 0.6994 GB, free: 6.238 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.9396, allocations: 117.1 kB / 0.6995 GB, free: 6.125 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.982e-05/0.9397, allocations: 28 kB / 0.6995 GB, free: 6.098 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001175/0.9409, allocations: 0.7972 MB / 0.7003 GB, free: 5.293 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003366/0.9443, allocations: 0.8716 MB / 0.7011 GB, free: 4.418 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 42 (pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[3].y,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002715/0.9445, allocations: 156.6 kB / 0.7013 GB, free: 4.254 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004695/0.9492, allocations: 3.054 MB / 0.7043 GB, free: 1.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.9493, allocations: 0 / 0.7043 GB, free: 1.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.9508, allocations: 1.039 MB / 0.7053 GB, free: 140 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.9524, allocations: 302 kB / 0.7056 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006524/0.9589, allocations: 3.161 MB / 0.7087 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00196/0.9609, allocations: 1.9 MB / 0.7105 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of SimCode: time 7.62e-07/0.9609, allocations: 0 / 0.7105 GB, free: 10.7 MB / 0.4948 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat