Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",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.002184/0.002184, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.829/1.829, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008676/0.0008675, allocations: 90.69 kB / 262.5 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.746e-05/1.748e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.09898, allocations: 47.59 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/0.4819, allocations: 98.45 MB / 461.6 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.4821, allocations: 86.12 kB / 461.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.16/1.642, allocations: 303.9 MB / 0.7477 GB, free: 46.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.118e-06/1.643, allocations: 0 / 0.7477 GB, free: 46.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00154/1.644, allocations: 194.8 kB / 0.7479 GB, free: 46.19 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: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.04255/1.687, allocations: 8.725 MB / 0.7564 GB, free: 43.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.009e-05/1.687, allocations: 14.88 kB / 0.7564 GB, free: 43.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02524/1.712, allocations: 4.18 MB / 0.7605 GB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/1.731, allocations: 5.803 MB / 0.7661 GB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009895/1.732, allocations: 292.6 kB / 0.7664 GB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005692/1.738, allocations: 0.4913 MB / 0.7669 GB, free: 42.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03713/1.775, allocations: 11.96 MB / 0.7786 GB, free: 41.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04908/1.824, allocations: 13.71 MB / 0.792 GB, free: 32.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007423/1.825, allocations: 7.938 kB / 0.792 GB, free: 32.08 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005156/1.83, allocations: 11.84 kB / 0.792 GB, free: 32.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000951/1.831, allocations: 0.6019 MB / 0.7926 GB, free: 31.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09755/1.929, allocations: 43.9 MB / 0.8355 GB, free: 8.727 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3902/2.319, allocations: 12.08 MB / 0.8473 GB, free: 57.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01472/2.334, allocations: 7.112 MB / 0.8542 GB, free: 57.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009807/2.335, allocations: 276.6 kB / 0.8545 GB, free: 57.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.701e-05/2.335, allocations: 109.1 kB / 0.8546 GB, free: 57.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=817): time 1.026e-05/2.335, allocations: 0 / 0.8546 GB, free: 57.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=817): time 0.02993/2.365, allocations: 14.05 MB / 0.8683 GB, free: 56.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/2.365, allocations: 150 kB / 0.8684 GB, free: 56.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003025/2.368, allocations: 1.61 MB / 0.87 GB, free: 56.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002077/2.37, allocations: 25.7 kB / 0.87 GB, free: 56.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001803/2.372, allocations: 2.765 MB / 0.8727 GB, free: 55.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004385/2.376, allocations: 2.578 MB / 0.8752 GB, free: 53.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008174/2.377, allocations: 0 / 0.8752 GB, free: 53.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006637/2.378, allocations: 0.6003 MB / 0.8758 GB, free: 53.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007794/2.386, allocations: 5.001 MB / 0.8807 GB, free: 53.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01018/2.396, allocations: 5.811 MB / 0.8864 GB, free: 52.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01403/2.41, allocations: 7.035 MB / 0.8933 GB, free: 52.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.924e-05/2.41, allocations: 6.344 kB / 0.8933 GB, free: 52.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=922) (initialization): time 0.04343/2.454, allocations: 14.93 MB / 0.9078 GB, free: 48.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/2.454, allocations: 10.25 kB / 0.9079 GB, free: 48.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/2.454, allocations: 17.31 kB / 0.9079 GB, free: 48.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009972/2.464, allocations: 4.304 MB / 0.9121 GB, free: 47.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005811/2.47, allocations: 1.096 MB / 0.9131 GB, free: 47.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/2.486, allocations: 10.85 MB / 0.9237 GB, free: 41.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00655/2.492, allocations: 0.6278 MB / 0.9243 GB, free: 41.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002691/2.495, allocations: 251.9 kB / 0.9246 GB, free: 41.12 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: loss_e.conductor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] loss_e.conductor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] loss_e.conductor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] loss_e.conductor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_e.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] loss_e.conductor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_e.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_e.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_e.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_e.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_e.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistor_m.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_m.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor_m.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistor_m.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_m.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerb_m.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerb_m.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_m.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star_m.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (559): * Single equations (assignments): 484 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 71 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,12 72,6 9,12 95} Notification: Performance of prepare postOptimizeDAE: time 0.004673/2.5, allocations: 305 kB / 0.9249 GB, free: 40.98 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.035/2.535, allocations: 14.06 MB / 0.9386 GB, free: 35.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004181/2.539, allocations: 388.4 kB / 0.939 GB, free: 35.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04231/2.581, allocations: 15.51 MB / 0.9541 GB, free: 22.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03242/2.614, allocations: 14.06 MB / 0.9679 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.029e-05/2.614, allocations: 3.438 kB / 0.9679 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002098/2.614, allocations: 36.14 kB / 0.9679 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07645/2.691, allocations: 27.27 MB / 0.9945 GB, free: 6.258 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001297/2.691, allocations: 0 / 0.9945 GB, free: 6.258 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006068/2.697, allocations: 0.945 MB / 0.9954 GB, free: 5.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009843/2.707, allocations: 4.265 MB / 0.9996 GB, free: 2.113 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002158/2.709, allocations: 94.23 kB / 0.9997 GB, free: 2.047 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01924/2.728, allocations: 11.11 MB / 1.011 GB, free: 9.004 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.599e-06/2.728, allocations: 0 / 1.011 GB, free: 9.004 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4159/3.144, allocations: 23.29 MB / 1.033 GB, free: 83 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005294/3.15, allocations: 1.72 MB / 1.035 GB, free: 82.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002007/3.152, allocations: 3.344 kB / 1.035 GB, free: 82.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00406/3.156, allocations: 280.7 kB / 1.035 GB, free: 82.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001649/3.158, allocations: 0.5713 MB / 1.036 GB, free: 82.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009548/3.159, allocations: 209.8 kB / 1.036 GB, free: 82.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002346/3.161, allocations: 1.225 MB / 1.037 GB, free: 82.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/3.161, allocations: 0 / 1.037 GB, free: 82.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0086/3.17, allocations: 2.044 MB / 1.039 GB, free: 82.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (converter_m.port_p.reference.gamma,loss_e.conductor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (488): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 71 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,11 73,6 9,12 95} Notification: Performance of Backend phase and start with SimCode phase: time 0.04763/3.217, allocations: 23.52 MB / 1.062 GB, free: 81.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02434/3.242, allocations: 12.21 MB / 1.074 GB, free: 81.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/3.242, allocations: 3.156 kB / 1.074 GB, free: 81.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01558/3.257, allocations: 6.491 MB / 1.08 GB, free: 79.33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00819/3.265, allocations: 0.5333 MB / 1.081 GB, free: 79.22 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06277/3.328, allocations: 19.69 MB / 1.1 GB, free: 71.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01584/3.344, allocations: 6.202 MB / 1.106 GB, free: 69.82 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007995/3.352, allocations: 1.563 MB / 1.108 GB, free: 69.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009094/3.361, allocations: 2.9 MB / 1.111 GB, free: 67.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.934e-06/3.361, allocations: 0 / 1.111 GB, free: 67.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6218/3.983, allocations: 158.8 MB / 1.266 GB, free: 72.56 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002114/3.984, allocations: 190.1 kB / 1.266 GB, free: 72.36 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.964/9.948, allocations: 7.938 kB / 1.266 GB, free: 72.36 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat does not exist to compare? outputFormat=mat