Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.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) 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(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",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.001141/0.001141, allocations: 105.3 kB / 17.06 MB, free: 6.016 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.001371/0.001371, allocations: 196 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009792/0.0009792, allocations: 47.91 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2227, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.07822/0.301, allocations: 90.09 MB / 490.3 MB, free: 14.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02676/0.3278, allocations: 21.32 MB / 0.4997 GB, free: 9.039 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002146/0.3299, allocations: 87.44 kB / 0.4997 GB, free: 8.953 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002308/0.3323, allocations: 0.9395 MB / 0.5007 GB, free: 8.008 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008166/0.3405, allocations: 3.721 MB / 0.5043 GB, free: 4.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01232/0.3529, allocations: 5.661 MB / 0.5098 GB, free: 14.61 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008072/0.3609, allocations: 7.046 MB / 0.5167 GB, free: 7.547 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002912/0.3639, allocations: 1.837 MB / 0.5185 GB, free: 5.684 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3336/0.6975, allocations: 74.96 MB / 0.5917 GB, free: 7.625 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05347/0.751, allocations: 31.92 MB / 0.6229 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001081/0.7521, allocations: 248 kB / 0.6231 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01194/0.764, allocations: 6.08 MB / 0.629 GB, free: 8.938 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001659/0.7657, allocations: 1.088 MB / 0.6301 GB, free: 8.285 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002559/0.7683, allocations: 1.5 MB / 0.6316 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008659/0.777, allocations: 5.524 MB / 0.637 GB, free: 3.344 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.777, allocations: 4 kB / 0.637 GB, free: 3.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.777, allocations: 3 kB / 0.637 GB, free: 3.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001089/0.7771, allocations: 0 / 0.637 GB, free: 3.34 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.008936/0.7861, allocations: 3.499 MB / 0.6404 GB, free: 236 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.7862, allocations: 8.031 kB / 0.6404 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006913/0.7869, allocations: 343.4 kB / 0.6407 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001113/0.788, allocations: 307.4 kB / 0.641 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003651/0.7916, allocations: 1.677 MB / 0.6426 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.7919, allocations: 221.1 kB / 0.6429 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004506/0.7923, allocations: 205.8 kB / 0.6431 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005068/0.7974, allocations: 3.304 MB / 0.6463 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.856e-05/0.7975, allocations: 7.656 kB / 0.6463 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002304/0.7977, allocations: 82.16 kB / 0.6464 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002843/0.798, allocations: 255.1 kB / 0.6466 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005309/0.8033, allocations: 3.107 MB / 0.6496 GB, free: 7.223 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01916/0.8225, allocations: 13.81 MB / 0.6631 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00403/0.8266, allocations: 2.228 MB / 0.6653 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002141/0.8287, allocations: 1.372 MB / 0.6666 GB, free: 5.133 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008721/0.8375, allocations: 5.844 MB / 0.6724 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.8375, allocations: 60.56 kB / 0.6724 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006135/0.8382, allocations: 166 kB / 0.6726 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.079e-06/0.8382, allocations: 0 / 0.6726 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02131/0.8595, allocations: 9.156 MB / 0.6815 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.8596, allocations: 69.41 kB / 0.6816 GB, free: 5.285 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002245/0.8618, allocations: 1.845 MB / 0.6834 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003311/0.8622, allocations: 61.7 kB / 0.6834 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006728/0.8628, allocations: 1.072 MB / 0.6845 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006044/0.8635, allocations: 0.6739 MB / 0.6851 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007033/0.8642, allocations: 463.8 kB / 0.6856 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.8643, allocations: 305.1 kB / 0.6859 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001908/0.8662, allocations: 1.233 MB / 0.6871 GB, free: 15.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/0.8684, allocations: 1.802 MB / 0.6888 GB, free: 13.54 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004366/0.8728, allocations: 3.164 MB / 0.6919 GB, free: 10.22 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.8729, allocations: 7.938 kB / 0.6919 GB, free: 10.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007079/0.8799, allocations: 4.29 MB / 0.6961 GB, free: 6.012 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.88, allocations: 14.5 kB / 0.6961 GB, free: 6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.88, allocations: 20 kB / 0.6962 GB, free: 5.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01303/0.8931, allocations: 3.638 MB / 0.6997 GB, free: 2.352 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.8944, allocations: 329 kB / 0.7 GB, free: 2.051 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006034/0.9004, allocations: 3.949 MB / 0.7039 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.9023, allocations: 91.95 kB / 0.704 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002714/0.9026, allocations: 124 kB / 0.7041 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002591/0.9052, allocations: 1.668 MB / 0.7057 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002187/0.9074, allocations: 1.753 MB / 0.7074 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004117/0.9115, allocations: 3.043 MB / 0.7104 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.408e-05/0.9116, allocations: 8 kB / 0.7104 GB, free: 7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006508/0.9181, allocations: 4.03 MB / 0.7143 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.9181, allocations: 19.94 kB / 0.7144 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.9182, allocations: 16 kB / 0.7144 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008966/0.9271, allocations: 2.744 MB / 0.7171 GB, free: 300 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/0.9287, allocations: 375.8 kB / 0.7174 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005027/0.9337, allocations: 3.468 MB / 0.7208 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.9356, allocations: 95.92 kB / 0.7209 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002887/0.9359, allocations: 112 kB / 0.721 GB, free: 12.29 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.000539/0.9365, allocations: 320.1 kB / 0.7213 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005327/0.937, allocations: 229.3 kB / 0.7215 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007218/0.9442, allocations: 3.936 MB / 0.7254 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.967e-05/0.9443, allocations: 27.98 kB / 0.7254 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.9443, allocations: 4 kB / 0.7254 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005692/0.95, allocations: 3.37 MB / 0.7287 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.9609, allocations: 6.296 MB / 0.7348 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.9609, allocations: 0 / 0.7348 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/0.9624, allocations: 315.6 kB / 0.7351 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003904/0.9663, allocations: 1.17 MB / 0.7363 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004509/0.9668, allocations: 75.95 kB / 0.7364 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008144/0.9749, allocations: 11.06 MB / 0.7472 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.975, allocations: 3.281 kB / 0.7472 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1712/1.146, allocations: 5.185 MB / 0.7522 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001376/1.148, allocations: 0.5918 MB / 0.7528 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004034/1.148, allocations: 55.38 kB / 0.7528 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/1.149, allocations: 77.05 kB / 0.7529 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003383/1.15, allocations: 169.1 kB / 0.7531 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001699/1.15, allocations: 77.64 kB / 0.7532 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001369/1.151, allocations: 1.261 MB / 0.7544 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/1.151, allocations: 0 / 0.7544 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003706/1.155, allocations: 1.727 MB / 0.7561 GB, free: 272.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00887/1.164, allocations: 6.648 MB / 0.7626 GB, free: 270.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009122/1.173, allocations: 5.114 MB / 0.7676 GB, free: 267.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.173, allocations: 0 / 0.7676 GB, free: 267.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003364/1.176, allocations: 2.25 MB / 0.7698 GB, free: 265.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004334/1.181, allocations: 1.056 MB / 0.7708 GB, free: 264.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02923/1.21, allocations: 24.16 MB / 0.7944 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009885/1.211, allocations: 1.879 MB / 0.7962 GB, free: 238 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002271/1.213, allocations: 0.9487 MB / 0.7972 GB, free: 237 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/1.214, allocations: 1.011 MB / 0.7981 GB, free: 236 MB / 0.5919 GB Notification: Performance of SimCode: time 8.31e-07/1.214, allocations: 0 / 0.7981 GB, free: 236 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.297/3.512, allocations: 100.7 MB / 0.8965 GB, free: 135.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.5/23.01, allocations: 4 kB / 0.8965 GB, free: 135.6 MB / 0.5919 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat does not exist to compare? outputFormat=mat