Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 180.9 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.4 MB / 223.1 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008609/0.0008609, allocations: 99.89 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000288/0.000288, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2964, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.4047, allocations: 82.5 MB / 458.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.4049, allocations: 71.97 kB / 458.5 MB, free: 14.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06261/0.4676, allocations: 32.67 MB / 491.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.4676, allocations: 0 / 491.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.238e-05/0.4677, allocations: 12 kB / 491.2 MB, free: 13.4 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002597/0.4703, allocations: 1.496 MB / 492.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.342e-05/0.4704, allocations: 8.031 kB / 492.7 MB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000147/0.4705, allocations: 62.53 kB / 492.7 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002397/0.4708, allocations: 134.4 kB / 492.9 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.4719, allocations: 0.509 MB / 493.4 MB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.607e-05/0.472, allocations: 27.98 kB / 493.4 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.199e-05/0.4721, allocations: 35.94 kB / 493.4 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.4734, allocations: 0.6268 MB / 494.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.4734, allocations: 0 / 494.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.066e-05/0.4735, allocations: 19.98 kB / 494.1 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.4736, allocations: 4 kB / 494.1 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008142/0.4744, allocations: 459.7 kB / 494.5 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.4768, allocations: 1.103 MB / 495.6 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.4779, allocations: 0.6936 MB / 496.3 MB, free: 8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.4779, allocations: 4 kB / 496.3 MB, free: 7.996 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.4791, allocations: 0.7731 MB / 497.1 MB, free: 7.188 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 4.248e-06/0.4792, allocations: 4 kB / 497.1 MB, free: 7.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.003256/0.4824, allocations: 2.129 MB / 499.2 MB, free: 4.941 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000217/0.4826, allocations: 321 kB / 499.5 MB, free: 4.566 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002391/0.485, allocations: 1.612 MB / 0.4894 GB, free: 2.941 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.852e-05/0.4851, allocations: 45.69 kB / 0.4895 GB, free: 2.891 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.4854, allocations: 230.5 kB / 0.4897 GB, free: 2.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.4855, allocations: 87.05 kB / 0.4898 GB, free: 2.574 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-05/0.4856, allocations: 12 kB / 0.4898 GB, free: 2.562 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.4858, allocations: 394.7 kB / 0.4901 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006499/0.4864, allocations: 447.9 kB / 0.4906 GB, free: 1.727 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006684/0.4871, allocations: 478.7 kB / 0.491 GB, free: 1.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006966/0.4878, allocations: 0.5947 MB / 0.4916 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.4879, allocations: 7.891 kB / 0.4916 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.2041/0.6919, allocations: 1.355 MB / 0.4929 GB, free: 105.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002855/0.6923, allocations: 289.5 kB / 0.4932 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.6923, allocations: 1.219 kB / 0.4932 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.602e-05/0.6923, allocations: 1.594 kB / 0.4932 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.861e-05/0.6924, allocations: 5.5 kB / 0.4932 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.6924, allocations: 1.281 kB / 0.4932 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005604/0.693, allocations: 53.12 kB / 0.4933 GB, free: 105.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003012/0.6933, allocations: 148.1 kB / 0.4934 GB, free: 105.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 43 ($PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.001731/0.695, allocations: 0.9897 MB / 0.4944 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/0.6953, allocations: 132.1 kB / 0.4945 GB, free: 104.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006591/0.696, allocations: 250.3 kB / 0.4947 GB, free: 104.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.696, allocations: 1.156 kB / 0.4948 GB, free: 104.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.696, allocations: 1 kB / 0.4948 GB, free: 104.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.696, allocations: 11.5 kB / 0.4948 GB, free: 104.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003476/0.6995, allocations: 2.415 MB / 0.4971 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.6995, allocations: 0 / 0.4971 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.081e-05/0.6996, allocations: 1.281 kB / 0.4971 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.6996, allocations: 1.281 kB / 0.4971 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.876e-05/0.6997, allocations: 42.78 kB / 0.4972 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.6997, allocations: 8.125 kB / 0.4972 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6997, allocations: 0 / 0.4972 GB, free: 103.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.7022, allocations: 1.628 MB / 0.4988 GB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/0.7037, allocations: 0.6799 MB / 0.4994 GB, free: 103.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002541/0.7039, allocations: 68.36 kB / 0.4995 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.7043, allocations: 37.66 kB / 0.4995 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006014/0.7049, allocations: 357.7 kB / 0.4999 GB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002295/0.7052, allocations: 160.3 kB / 0.5 GB, free: 103.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002843/0.708, allocations: 1.331 MB / 0.5013 GB, free: 102.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.708, allocations: 0 / 0.5013 GB, free: 102.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001017/0.7091, allocations: 154.5 kB / 0.5015 GB, free: 102.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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 Backend phase and start with SimCode phase: time 0.0029/0.712, allocations: 2.277 MB / 0.5037 GB, free: 101.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002303/0.7143, allocations: 1.929 MB / 0.5056 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.7143, allocations: 2.078 kB / 0.5056 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.7156, allocations: 1.406 MB / 0.507 GB, free: 99.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.717, allocations: 297.6 kB / 0.5072 GB, free: 99.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.7295, allocations: 7.279 MB / 0.5143 GB, free: 96.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.7306, allocations: 1.22 MB / 0.5155 GB, free: 95.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003994/0.731, allocations: 152.9 kB / 0.5157 GB, free: 95.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.7312, allocations: 149.1 kB / 0.5158 GB, free: 95.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.345e-06/0.7312, allocations: 3.188 kB / 0.5158 GB, free: 95.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.7666, allocations: 22.23 MB / 0.5375 GB, free: 75.43 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.7668, allocations: 180 kB / 0.5377 GB, free: 75.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.369/3.136, allocations: 0 / 0.5377 GB, free: 75.18 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_DFFREGSRL.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat