Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.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.DC.Sources.Examples.PVSimpleOriented,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimpleOriented",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimpleOriented",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.001682/0.001682, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.00255/0.00255, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.585/2.585, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.613/4.613, allocations: 409.2 MB / 0.6838 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0008182/0.0008186, allocations: 8 kB / 0.8375 GB, free: 6.531 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.34/1.341, allocations: 146.8 MB / 0.9809 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented): time 0.01287/1.354, allocations: 7.232 MB / 0.9879 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.2881/1.642, allocations: 129.2 MB / 1.114 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002343/1.645, allocations: 23.88 kB / 1.114 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.00126/1.646, allocations: 150.7 kB / 1.114 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00553/1.652, allocations: 0.7533 MB / 1.115 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.005445/1.657, allocations: 0.9088 MB / 1.116 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005514/1.663, allocations: 1.396 MB / 1.117 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004245/1.667, allocations: 1.455 MB / 1.119 GB, free: 8.723 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002796/1.67, allocations: 0.6379 MB / 1.119 GB, free: 8.082 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002354/1.672, allocations: 0.6841 MB / 1.12 GB, free: 7.395 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005472/1.673, allocations: 56 kB / 1.12 GB, free: 7.34 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002595/1.675, allocations: 399.5 kB / 1.12 GB, free: 6.949 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0009229/1.676, allocations: 354.6 kB / 1.121 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001051/1.677, allocations: 364.6 kB / 1.121 GB, free: 6.238 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006115/1.683, allocations: 2.478 MB / 1.124 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/1.683, allocations: 0 / 1.124 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of FrontEnd: time 4.699e-06/1.684, allocations: 0 / 1.124 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001901/1.684, allocations: 0 / 1.124 GB, free: 3.754 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01034/1.694, allocations: 1.965 MB / 1.125 GB, free: 1.734 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 7.051e-05/1.694, allocations: 8.031 kB / 1.125 GB, free: 1.727 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001671/1.696, allocations: 265.8 kB / 1.126 GB, free: 1.457 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0127/1.709, allocations: 0.9924 MB / 1.127 GB, free: 472 kB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005671/1.714, allocations: 1.149 MB / 1.128 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000371/1.715, allocations: 135.6 kB / 1.128 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/1.716, allocations: 180 kB / 1.128 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01119/1.728, allocations: 2.327 MB / 1.13 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.206e-05/1.728, allocations: 0 / 1.13 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003252/1.728, allocations: 75.98 kB / 1.13 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/1.728, allocations: 83.47 kB / 1.131 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01205/1.74, allocations: 2.679 MB / 1.133 GB, free: 9.727 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02616/1.766, allocations: 7.424 MB / 1.14 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009264/1.776, allocations: 1.764 MB / 1.142 GB, free: 308 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001363/1.777, allocations: 494.7 kB / 1.143 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005339/1.783, allocations: 1.078 MB / 1.144 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=144): time 7.605e-06/1.783, allocations: 0 / 1.144 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of matching and sorting (n=144): time 0.01443/1.797, allocations: 2.519 MB / 1.146 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003627/1.798, allocations: 300 kB / 1.146 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/1.8, allocations: 0.9493 MB / 1.147 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0005184/1.801, allocations: 53.7 kB / 1.147 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.00114/1.802, allocations: 0.7181 MB / 1.148 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.001131/1.803, allocations: 469.2 kB / 1.149 GB, free: 9.492 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/1.803, allocations: 24 kB / 1.149 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002833/1.804, allocations: 353.9 kB / 1.149 GB, free: 9.117 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003922/1.808, allocations: 0.6909 MB / 1.15 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004452/1.812, allocations: 0.8901 MB / 1.15 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004297/1.816, allocations: 0.7442 MB / 1.151 GB, free: 6.73 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.691e-05/1.817, allocations: 0 / 1.151 GB, free: 6.73 MB / 0.9044 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.009597/1.826, allocations: 1.808 MB / 1.153 GB, free: 4.91 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009173/1.827, allocations: 1.147 MB / 1.154 GB, free: 3.676 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/1.827, allocations: 4 kB / 1.154 GB, free: 3.672 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003285/1.828, allocations: 36.83 kB / 1.154 GB, free: 3.633 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003635/1.831, allocations: 359.5 kB / 1.154 GB, free: 3.281 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/1.833, allocations: 1.311 MB / 1.156 GB, free: 1.832 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/1.837, allocations: 234.7 kB / 1.156 GB, free: 1.602 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004563/1.837, allocations: 59.95 kB / 1.156 GB, free: 1.543 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/1.837, allocations: 4 kB / 1.156 GB, free: 1.539 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007835/1.845, allocations: 1.663 MB / 1.158 GB, free: 15.87 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/1.845, allocations: 8.188 kB / 1.158 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/1.845, allocations: 8 kB / 1.158 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/1.848, allocations: 375.4 kB / 1.158 GB, free: 15.49 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.4e-05/1.848, allocations: 8 kB / 1.158 GB, free: 15.48 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/1.851, allocations: 219.4 kB / 1.158 GB, free: 15.27 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002844/1.851, allocations: 63.95 kB / 1.158 GB, free: 15.2 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pv.HDifTil.incAng.decAng.tNext,pv.HDifTil.incAng.decAng.tNext,$PRE.pv.HDirTil.incAng.decAng.tNext,pv.HDirTil.incAng.decAng.tNext,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001818/1.853, allocations: 0.4912 MB / 1.159 GB, free: 14.7 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006553/1.854, allocations: 138.3 kB / 1.159 GB, free: 14.57 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009602/1.863, allocations: 2.144 MB / 1.161 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.249e-05/1.864, allocations: 19.94 kB / 1.161 GB, free: 12.39 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/1.864, allocations: 0 / 1.161 GB, free: 12.39 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.837e-05/1.864, allocations: 7.969 kB / 1.161 GB, free: 12.38 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005955/1.87, allocations: 2.167 MB / 1.163 GB, free: 10.15 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/1.87, allocations: 0 / 1.163 GB, free: 10.15 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003586/1.873, allocations: 335.6 kB / 1.163 GB, free: 9.824 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002779/1.874, allocations: 24.84 kB / 1.163 GB, free: 9.797 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003595/1.874, allocations: 47.95 kB / 1.163 GB, free: 9.75 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001977/1.876, allocations: 1.292 MB / 1.165 GB, free: 8.328 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.876, allocations: 3.938 kB / 1.165 GB, free: 8.324 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/1.886, allocations: 1.923 MB / 1.167 GB, free: 6.363 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002176/1.889, allocations: 466.7 kB / 1.167 GB, free: 5.887 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006019/1.889, allocations: 35.98 kB / 1.167 GB, free: 5.852 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002871/1.892, allocations: 170.6 kB / 1.167 GB, free: 5.688 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004442/1.893, allocations: 109.2 kB / 1.167 GB, free: 5.582 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002811/1.893, allocations: 55.95 kB / 1.167 GB, free: 5.527 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.00214/1.895, allocations: 0.6553 MB / 1.168 GB, free: 4.863 MB / 0.92 GB Notification: Performance of sort global known variables: time 2e-07/1.895, allocations: 0 / 1.168 GB, free: 4.863 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.004825/1.9, allocations: 0.8367 MB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pv.HDifTil.incAng.decAng.tNext,pv.HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 7 (weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext,pv.HDirTil.incAng.decAng.tNext,pv.HDifTil.incAng.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (160): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01122/1.911, allocations: 3.144 MB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.01437/1.926, allocations: 2.739 MB / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.19e-05/1.926, allocations: 0 / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.004779/1.931, allocations: 1.041 MB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/1.934, allocations: 307.3 kB / 1.176 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04088/1.975, allocations: 11.25 MB / 1.187 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001725/1.976, allocations: 1.364 MB / 1.188 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.005378/1.982, allocations: 0.5457 MB / 1.189 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002168/1.984, allocations: 0.6944 MB / 1.189 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of SimCode: time 1.343e-06/1.984, allocations: 3.938 kB / 1.189 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3203/2.304, allocations: 33.46 MB / 1.222 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005447/2.305, allocations: 271.5 kB / 1.222 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.068/8.373, allocations: 0 / 1.222 GB, free: 13.25 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimpleOriented_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_PVSimpleOriented.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.PVSimpleOriented_res.mat does not exist to compare? outputFormat=mat