Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",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.002001/0.002001, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.163/2.163, allocations: 205.3 MB / 213.7 MB, free: 1.738 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.001287/0.001287, allocations: 78.64 kB / 261.7 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2672/0.2672, allocations: 43.49 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.854e-05/2.857e-05, allocations: 4 kB / 418.4 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1712, allocations: 58.85 MB / 477.2 MB, free: 1.566 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.122/8.293, allocations: 2.827 GB / 3.293 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/8.294, allocations: 83.11 kB / 3.293 GB, free: 130.2 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 2.937/11.23, allocations: 0.7952 GB / 4.088 GB, free: 41.36 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.512e-06/11.23, allocations: 0 / 4.088 GB, free: 41.36 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000189/11.23, allocations: 66.02 kB / 4.088 GB, free: 41.34 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01388/11.25, allocations: 3.859 MB / 4.092 GB, free: 39.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/11.25, allocations: 10.81 kB / 4.092 GB, free: 39.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006616/11.25, allocations: 0.8402 MB / 4.093 GB, free: 39.36 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005496/11.26, allocations: 2.095 MB / 4.095 GB, free: 38.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/11.26, allocations: 89.75 kB / 4.095 GB, free: 38.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006148/11.26, allocations: 114.8 kB / 4.095 GB, free: 38.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004043/11.26, allocations: 2.542 MB / 4.097 GB, free: 38.89 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004106/11.27, allocations: 2.792 MB / 4.1 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.694e-05/11.27, allocations: 5.188 kB / 4.1 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002283/11.27, allocations: 7.562 kB / 4.1 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001701/11.27, allocations: 166.2 kB / 4.1 GB, free: 38.34 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.156/11.42, allocations: 93.93 MB / 4.192 GB, free: 9.715 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/11.42, allocations: 1.647 MB / 4.194 GB, free: 8.855 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/11.43, allocations: 0.987 MB / 4.195 GB, free: 8.344 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0304/11.46, allocations: 16.93 MB / 4.211 GB, free: 7.934 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002086/11.46, allocations: 1.178 MB / 4.212 GB, free: 7.297 MB / 0.573 GB Notification: Performance of pre-optimization done (n=147): time 5.65e-06/11.46, allocations: 0 / 4.212 GB, free: 7.297 MB / 0.573 GB Notification: Performance of matching and sorting (n=163): time 0.0225/11.48, allocations: 8.097 MB / 4.22 GB, free: 1.934 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001931/11.48, allocations: 377.2 kB / 4.221 GB, free: 1.48 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001825/11.48, allocations: 1.134 MB / 4.222 GB, free: 0.7578 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003457/11.48, allocations: 31.62 kB / 4.222 GB, free: 0.7266 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009155/11.48, allocations: 0.9949 MB / 4.223 GB, free: 140 kB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.3752/11.86, allocations: 0.5418 MB / 4.223 GB, free: 89.2 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/11.86, allocations: 1.031 kB / 4.223 GB, free: 89.2 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002154/11.86, allocations: 390.3 kB / 4.224 GB, free: 88.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001925/11.86, allocations: 1.02 MB / 4.225 GB, free: 88.89 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/11.86, allocations: 1.476 MB / 4.226 GB, free: 88.41 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01347/11.88, allocations: 3.312 MB / 4.229 GB, free: 88.39 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.391e-05/11.88, allocations: 3.562 kB / 4.229 GB, free: 88.39 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01783/11.9, allocations: 5.028 MB / 4.234 GB, free: 88.28 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001272/11.9, allocations: 4.736 MB / 4.239 GB, free: 83.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.373e-05/11.9, allocations: 13.38 kB / 4.239 GB, free: 83.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008238/11.9, allocations: 244 kB / 4.239 GB, free: 83.42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/11.9, allocations: 0.5126 MB / 4.24 GB, free: 83.42 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/11.9, allocations: 2.526 MB / 4.242 GB, free: 81.35 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002786/11.9, allocations: 260.3 kB / 4.242 GB, free: 81.35 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/11.9, allocations: 99.31 kB / 4.242 GB, free: 81.35 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/11.9, allocations: 5.406 kB / 4.242 GB, free: 81.35 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01635/11.92, allocations: 4.59 MB / 4.247 GB, free: 81.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.016e-05/11.92, allocations: 14.25 kB / 4.247 GB, free: 81.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005091/11.92, allocations: 239.1 kB / 4.247 GB, free: 81.24 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/11.92, allocations: 0.5155 MB / 4.248 GB, free: 81.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/11.93, allocations: 2.514 MB / 4.25 GB, free: 79.17 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002672/11.93, allocations: 236.9 kB / 4.25 GB, free: 79.17 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002448/11.93, allocations: 101.2 kB / 4.25 GB, free: 79.17 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 239 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008378/11.93, allocations: 200.7 kB / 4.251 GB, free: 79.03 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005973/11.93, allocations: 2.562 MB / 4.253 GB, free: 78.88 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003932/11.94, allocations: 185.3 kB / 4.253 GB, free: 78.79 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008688/11.94, allocations: 6.883 MB / 4.26 GB, free: 78.25 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-05/11.94, allocations: 76.06 kB / 4.26 GB, free: 78.25 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/11.94, allocations: 3.156 kB / 4.26 GB, free: 78.25 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006488/11.95, allocations: 5.698 MB / 4.266 GB, free: 77.56 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/11.96, allocations: 9.359 MB / 4.275 GB, free: 77.05 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/11.96, allocations: 3.906 kB / 4.275 GB, free: 77.05 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/11.97, allocations: 358.3 kB / 4.275 GB, free: 77.05 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008067/11.97, allocations: 336 kB / 4.275 GB, free: 77.01 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/11.97, allocations: 43.34 kB / 4.275 GB, free: 77.01 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/11.97, allocations: 2.686 MB / 4.278 GB, free: 74.92 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/11.97, allocations: 2.719 kB / 4.278 GB, free: 74.92 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009179/11.98, allocations: 6.464 MB / 4.284 GB, free: 74.33 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/11.98, allocations: 0.7074 MB / 4.285 GB, free: 74.09 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004606/11.98, allocations: 23.02 kB / 4.285 GB, free: 74.08 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/11.98, allocations: 165.2 kB / 4.285 GB, free: 74.07 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002701/11.98, allocations: 139.8 kB / 4.285 GB, free: 74.07 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001508/11.98, allocations: 71.95 kB / 4.285 GB, free: 74.07 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001377/11.98, allocations: 1.081 MB / 4.287 GB, free: 73.96 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.91e-07/11.98, allocations: 1.75 kB / 4.287 GB, free: 73.96 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008995/11.99, allocations: 2.66 MB / 4.289 GB, free: 73.95 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02094/12.01, allocations: 10.16 MB / 4.299 GB, free: 72.38 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.007537/12.02, allocations: 4.699 MB / 4.304 GB, free: 72.13 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/12.02, allocations: 0 / 4.304 GB, free: 72.13 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002898/12.02, allocations: 2.167 MB / 4.306 GB, free: 72.06 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/12.03, allocations: 0.7726 MB / 4.306 GB, free: 72.04 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01775/12.05, allocations: 7.048 MB / 4.313 GB, free: 70.65 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/12.05, allocations: 2.221 MB / 4.316 GB, free: 69.88 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005096/12.05, allocations: 2.893 MB / 4.318 GB, free: 69.84 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/12.05, allocations: 1.217 MB / 4.32 GB, free: 69.83 MB / 0.573 GB Notification: Performance of SimCode: time 8.52e-07/12.05, allocations: 3.094 kB / 4.32 GB, free: 69.83 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1519/12.21, allocations: 100.3 MB / 4.418 GB, free: 29.4 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/12.21, allocations: 183.4 kB / 4.418 GB, free: 29.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.746/18.95, allocations: 0 / 4.418 GB, free: 29.2 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat