Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",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.00143/0.00143, allocations: 93.95 kB / 16.98 MB, free: 6.398 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.001397/0.001397, allocations: 184.1 kB / 17.87 MB, free: 5.957 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.352/1.352, allocations: 223.2 MB / 241.8 MB, free: 14.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2028/0.2028, allocations: 44.23 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003092, allocations: 9.969 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.2558/0.3712, allocations: 49.96 MB / 0.5093 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.3877, allocations: 14.16 MB / 0.5231 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.3889, allocations: 27.06 kB / 0.5231 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.39, allocations: 396.5 kB / 0.5235 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.4014, allocations: 3.876 MB / 0.5273 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005298/0.4067, allocations: 1.911 MB / 0.5292 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002047/0.4088, allocations: 1.574 MB / 0.5307 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.4098, allocations: 0.6992 MB / 0.5314 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006071/0.4159, allocations: 3.644 MB / 0.5349 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004956/0.4209, allocations: 3.299 MB / 0.5382 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002087/0.4211, allocations: 55 kB / 0.5382 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01261/0.4337, allocations: 7.108 MB / 0.5452 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003163/0.4341, allocations: 256.9 kB / 0.5454 GB, free: 8.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004445/0.4345, allocations: 237.2 kB / 0.5456 GB, free: 8.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006639/0.4412, allocations: 3.74 MB / 0.5493 GB, free: 5.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.4412, allocations: 0 / 0.5493 GB, free: 5.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4412, allocations: 0 / 0.5493 GB, free: 5.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.4412, allocations: 0 / 0.5493 GB, free: 5.223 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004024/0.4453, allocations: 1.704 MB / 0.5509 GB, free: 3.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4453, allocations: 19.91 kB / 0.551 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002098/0.4456, allocations: 139.2 kB / 0.5511 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002145/0.4477, allocations: 323.7 kB / 0.5514 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.4487, allocations: 0.6247 MB / 0.552 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.4489, allocations: 295.6 kB / 0.5523 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.449, allocations: 82.66 kB / 0.5524 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002705/0.4517, allocations: 1.536 MB / 0.5539 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.4518, allocations: 7.938 kB / 0.5539 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.912e-05/0.4519, allocations: 34.81 kB / 0.5539 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-05/0.4519, allocations: 46.5 kB / 0.554 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003149/0.4551, allocations: 1.389 MB / 0.5553 GB, free: 14.85 MB / 398.1 MB 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.008373/0.4635, allocations: 6.436 MB / 0.5616 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002815/0.4663, allocations: 1.007 MB / 0.5626 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03205/0.4984, allocations: 15.82 MB / 0.578 GB, free: 5.301 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.393e-05/0.4985, allocations: 43.11 kB / 0.5781 GB, free: 5.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.775e-06/0.4985, allocations: 0 / 0.5781 GB, free: 5.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=64): time 0.008417/0.5069, allocations: 3.063 MB / 0.5811 GB, free: 2.133 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.507, allocations: 166.7 kB / 0.5812 GB, free: 1.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.508, allocations: 0.809 MB / 0.582 GB, free: 1.109 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.075e-05/0.5081, allocations: 45.7 kB / 0.5821 GB, free: 1.059 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003699/0.5085, allocations: 439 kB / 0.5825 GB, free: 0.625 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.5087, allocations: 220.4 kB / 0.5827 GB, free: 420 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.5088, allocations: 20 kB / 0.5827 GB, free: 400 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002153/0.509, allocations: 402.7 kB / 0.5831 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009234/0.51, allocations: 453.6 kB / 0.5835 GB, free: 15.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.511, allocations: 0.6767 MB / 0.5842 GB, free: 14.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000893/0.5119, allocations: 476.7 kB / 0.5846 GB, free: 14.31 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.5119, allocations: 0 / 0.5846 GB, free: 14.31 MB / 430.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002577/0.5145, allocations: 1.242 MB / 0.5859 GB, free: 13.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.5145, allocations: 12.73 kB / 0.5859 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.5146, allocations: 8 kB / 0.5859 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003376/0.5149, allocations: 92.8 kB / 0.586 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003168/0.5181, allocations: 339.4 kB / 0.5863 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005785/0.5239, allocations: 6.419 MB / 0.5926 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.5251, allocations: 128 kB / 0.5927 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.523e-05/0.5252, allocations: 43.98 kB / 0.5927 GB, free: 5.488 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005412/0.5257, allocations: 335.6 kB / 0.593 GB, free: 5.152 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.5259, allocations: 86.97 kB / 0.5931 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003304/0.5292, allocations: 2.266 MB / 0.5953 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.051e-05/0.5292, allocations: 19.97 kB / 0.5954 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.5292, allocations: 0 / 0.5954 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.5293, allocations: 3.984 kB / 0.5954 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005182/0.5344, allocations: 3.518 MB / 0.5988 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.5345, allocations: 8.125 kB / 0.5988 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003083/0.5376, allocations: 295.5 kB / 0.5991 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003436/0.5379, allocations: 112.8 kB / 0.5992 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.577e-05/0.538, allocations: 19.98 kB / 0.5992 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005373/0.5434, allocations: 6.397 MB / 0.6055 GB, free: 7.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.5434, allocations: 3.938 kB / 0.6055 GB, free: 7.816 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003547/0.547, allocations: 2.273 MB / 0.6077 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004826/0.5474, allocations: 338.9 kB / 0.608 GB, free: 5.133 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.5476, allocations: 31.98 kB / 0.608 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008572/0.5485, allocations: 111.8 kB / 0.6081 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.5488, allocations: 128.3 kB / 0.6083 GB, free: 4.867 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-05/0.5488, allocations: 27.97 kB / 0.6083 GB, free: 4.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.55, allocations: 0.8883 MB / 0.6092 GB, free: 3.945 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.55, allocations: 0 / 0.6092 GB, free: 3.945 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003555/0.5535, allocations: 1.23 MB / 0.6104 GB, free: 2.715 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.level,tank.medium.h) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.009218/0.5628, allocations: 4.371 MB / 0.6146 GB, free: 14.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004924/0.5677, allocations: 1.294 MB / 0.6159 GB, free: 13.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.5678, allocations: 0 / 0.6159 GB, free: 13.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003679/0.5715, allocations: 0.9133 MB / 0.6168 GB, free: 12.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002757/0.5742, allocations: 0.52 MB / 0.6173 GB, free: 11.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/0.5907, allocations: 11.78 MB / 0.6288 GB, free: 15.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009553/0.5917, allocations: 1.242 MB / 0.63 GB, free: 14.33 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001409/0.5931, allocations: 0.5092 MB / 0.6305 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000704/0.5939, allocations: 479.3 kB / 0.631 GB, free: 13.35 MB / 478.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5939, allocations: 4 kB / 0.631 GB, free: 13.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/0.7037, allocations: 65.75 MB / 0.6952 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002269/0.704, allocations: 272 kB / 0.6954 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.966/5.67, allocations: 0 / 0.6954 GB, free: 11.55 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat