Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200.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/ScalableTestSuite 2.2.0-master/package.mo", uses=false) Using package ScalableTestSuite with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.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(ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Elementary_SimpleODE_ScaledExperiments_CascadedFirstOrder_N_200",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200,fileNamePrefix="ScalableTestSuite_ScalableTestSuite_Elementary_SimpleODE_ScaledExperiments_CascadedFirstOrder_N_200",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.00136/0.001361, allocations: 89.3 kB / 16.31 MB, free: 6.41 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.001572/0.001572, allocations: 183.7 kB / 17.21 MB, free: 6.289 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.486/1.486, allocations: 223.2 MB / 241.2 MB, free: 324 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestSuite 2.2.0-master/package.mo): time 1.22/1.22, allocations: 120.5 MB / 412.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003749, allocations: 8 kB / 0.4957 GB, free: 10.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7529/0.7533, allocations: 82.85 MB / 0.5766 GB, free: 42.34 MB / 462.3 MB Notification: Performance of NFInst.instantiate(ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200): time 0.001301/0.7547, allocations: 0.9136 MB / 0.5774 GB, free: 41.6 MB / 462.3 MB Notification: Performance of NFInst.instExpressions: time 0.0001744/0.7549, allocations: 21.47 kB / 0.5775 GB, free: 41.58 MB / 462.3 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.527e-05/0.7549, allocations: 0 / 0.5775 GB, free: 41.58 MB / 462.3 MB Notification: Performance of NFTyping.typeComponents: time 8.522e-05/0.755, allocations: 7.938 kB / 0.5775 GB, free: 41.57 MB / 462.3 MB Notification: Performance of NFTyping.typeBindings: time 4.341e-05/0.7551, allocations: 1.375 kB / 0.5775 GB, free: 41.57 MB / 462.3 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001406/0.7552, allocations: 5.359 kB / 0.5775 GB, free: 41.57 MB / 462.3 MB Notification: Performance of NFFlatten.flatten: time 0.0007813/0.756, allocations: 0.8087 MB / 0.5783 GB, free: 41.1 MB / 462.3 MB Notification: Performance of NFFlatten.resolveConnections: time 6.466e-05/0.7561, allocations: 7.469 kB / 0.5783 GB, free: 41.1 MB / 462.3 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003289/0.7564, allocations: 337.6 kB / 0.5786 GB, free: 40.97 MB / 462.3 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005523/0.757, allocations: 396 kB / 0.579 GB, free: 40.73 MB / 462.3 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.7571, allocations: 50.75 kB / 0.579 GB, free: 40.73 MB / 462.3 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.7573, allocations: 49.78 kB / 0.5791 GB, free: 40.73 MB / 462.3 MB Notification: Performance of NFScalarize.scalarize: time 0.0003451/0.7576, allocations: 316.7 kB / 0.5794 GB, free: 40.55 MB / 462.3 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.7578, allocations: 131.4 kB / 0.5795 GB, free: 40.48 MB / 462.3 MB Notification: Performance of NFConvertDAE.convert: time 0.0004337/0.7582, allocations: 469.4 kB / 0.58 GB, free: 40.24 MB / 462.3 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.7583, allocations: 0 / 0.58 GB, free: 40.24 MB / 462.3 MB Notification: Performance of FrontEnd: time 3.066e-06/0.7583, allocations: 1.25 kB / 0.58 GB, free: 40.24 MB / 462.3 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.7583, allocations: 0 / 0.58 GB, free: 40.24 MB / 462.3 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.003014/0.7613, allocations: 1.423 MB / 0.5813 GB, free: 39.36 MB / 462.3 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.7614, allocations: 9.25 kB / 0.5814 GB, free: 39.36 MB / 462.3 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.7615, allocations: 134.5 kB / 0.5815 GB, free: 39.25 MB / 462.3 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.7617, allocations: 80.08 kB / 0.5816 GB, free: 39.21 MB / 462.3 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.7623, allocations: 388.2 kB / 0.5819 GB, free: 38.9 MB / 462.3 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.067e-05/0.7623, allocations: 57.34 kB / 0.582 GB, free: 38.88 MB / 462.3 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002846/0.7626, allocations: 177.3 kB / 0.5821 GB, free: 38.78 MB / 462.3 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.7643, allocations: 1.006 MB / 0.5831 GB, free: 38.21 MB / 462.3 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.7644, allocations: 0 / 0.5831 GB, free: 38.21 MB / 462.3 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.648e-05/0.7645, allocations: 30.78 kB / 0.5832 GB, free: 38.19 MB / 462.3 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.92e-05/0.7645, allocations: 22.77 kB / 0.5832 GB, free: 38.18 MB / 462.3 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.7655, allocations: 0.5952 MB / 0.5838 GB, free: 37.92 MB / 462.3 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003052/0.7686, allocations: 1.87 MB / 0.5856 GB, free: 36.78 MB / 462.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.7711, allocations: 2.171 MB / 0.5877 GB, free: 34.6 MB / 462.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008899/0.772, allocations: 0.6805 MB / 0.5884 GB, free: 33.93 MB / 462.3 MB Notification: Performance of preOpt evalFunc (simulation): time 8.403e-05/0.7721, allocations: 22 kB / 0.5884 GB, free: 33.91 MB / 462.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.7721, allocations: 56.56 kB / 0.5884 GB, free: 33.84 MB / 462.3 MB Notification: Performance of pre-optimization done (n=200): time 5.34e-06/0.7721, allocations: 0 / 0.5884 GB, free: 33.84 MB / 462.3 MB Notification: Performance of matching and sorting (n=200): time 0.003271/0.7754, allocations: 2.304 MB / 0.5907 GB, free: 31.53 MB / 462.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.7755, allocations: 69.41 kB / 0.5908 GB, free: 31.45 MB / 462.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.7756, allocations: 105.8 kB / 0.5909 GB, free: 31.33 MB / 462.3 MB Notification: Performance of collectPreVariables (initialization): time 8.487e-05/0.7757, allocations: 53.7 kB / 0.5909 GB, free: 31.27 MB / 462.3 MB Notification: Performance of collectInitialEqns (initialization): time 7.05e-05/0.7758, allocations: 91.3 kB / 0.591 GB, free: 31.18 MB / 462.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007021/0.7765, allocations: 0.94 MB / 0.5919 GB, free: 30.23 MB / 462.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.7767, allocations: 60 kB / 0.592 GB, free: 30.17 MB / 462.3 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.7769, allocations: 441.4 kB / 0.5924 GB, free: 29.73 MB / 462.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/0.7784, allocations: 1.181 MB / 0.5936 GB, free: 28.54 MB / 462.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.78, allocations: 1.4 MB / 0.5949 GB, free: 27.13 MB / 462.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.7818, allocations: 1.439 MB / 0.5963 GB, free: 25.68 MB / 462.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.7818, allocations: 4 kB / 0.5963 GB, free: 25.68 MB / 462.3 MB Notification: Performance of matching and sorting (n=401) (initialization): time 0.00346/0.7853, allocations: 3.138 MB / 0.5994 GB, free: 22.52 MB / 462.3 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.7853, allocations: 8 kB / 0.5994 GB, free: 22.51 MB / 462.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.7854, allocations: 0 / 0.5994 GB, free: 22.51 MB / 462.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.223e-05/0.7854, allocations: 15.95 kB / 0.5994 GB, free: 22.49 MB / 462.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002903/0.7883, allocations: 1.023 MB / 0.6004 GB, free: 21.47 MB / 462.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.163e-05/0.7883, allocations: 12 kB / 0.6004 GB, free: 21.46 MB / 462.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007894/0.7891, allocations: 313.4 kB / 0.6007 GB, free: 21.15 MB / 462.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.7893, allocations: 88 kB / 0.6008 GB, free: 21.06 MB / 462.3 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 401 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004273/0.7897, allocations: 321.1 kB / 0.6011 GB, free: 20.74 MB / 462.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.7899, allocations: 83.23 kB / 0.6012 GB, free: 20.66 MB / 462.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004031/0.7903, allocations: 166.9 kB / 0.6014 GB, free: 20.49 MB / 462.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.7903, allocations: 23.95 kB / 0.6014 GB, free: 20.47 MB / 462.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.019e-05/0.7903, allocations: 0 / 0.6014 GB, free: 20.47 MB / 462.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.7903, allocations: 11.95 kB / 0.6014 GB, free: 20.46 MB / 462.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.7915, allocations: 0.9429 MB / 0.6023 GB, free: 19.46 MB / 462.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.7916, allocations: 4 kB / 0.6023 GB, free: 19.46 MB / 462.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004256/0.7958, allocations: 1.03 MB / 0.6033 GB, free: 18.43 MB / 462.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.937e-05/0.7958, allocations: 8 kB / 0.6033 GB, free: 18.42 MB / 462.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/0.7961, allocations: 119.9 kB / 0.6034 GB, free: 18.3 MB / 462.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.7961, allocations: 15.94 kB / 0.6035 GB, free: 18.29 MB / 462.3 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.7961, allocations: 3.953 kB / 0.6035 GB, free: 18.28 MB / 462.3 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003141/0.7992, allocations: 2.582 MB / 0.606 GB, free: 15.67 MB / 462.3 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.7994, allocations: 163.9 kB / 0.6061 GB, free: 15.49 MB / 462.3 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/0.7996, allocations: 107.9 kB / 0.6062 GB, free: 15.38 MB / 462.3 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006736/0.8003, allocations: 127.9 kB / 0.6064 GB, free: 15.26 MB / 462.3 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.8005, allocations: 121.8 kB / 0.6065 GB, free: 15.14 MB / 462.3 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.8006, allocations: 63.91 kB / 0.6065 GB, free: 15.08 MB / 462.3 MB Notification: Performance of sorting global known variables: time 3.943e-05/0.8007, allocations: 83.28 kB / 0.6066 GB, free: 15 MB / 462.3 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8007, allocations: 0 / 0.6066 GB, free: 15 MB / 462.3 MB Notification: Performance of remove unused functions: time 0.001006/0.8017, allocations: 424 kB / 0.607 GB, free: 14.58 MB / 462.3 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 200 (x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15],x[16],x[17],x[18],x[19],x[20],x[21],x[22],x[23],x[24],x[25],x[26],x[27],x[28],x[29],x[30],x[31],x[32],x[33],x[34],x[35],x[36],x[37],x[38],x[39],x[40],x[41],x[42],x[43],x[44],x[45],x[46],x[47],x[48],x[49],x[50],x[51],x[52],x[53],x[54],x[55],x[56],x[57],x[58],x[59],x[60],x[61],x[62],x[63],x[64],x[65],x[66],x[67],x[68],x[69],x[70],x[71],x[72],x[73],x[74],x[75],x[76],x[77],x[78],x[79],x[80],x[81],x[82],x[83],x[84],x[85],x[86],x[87],x[88],x[89],x[90],x[91],x[92],x[93],x[94],x[95],x[96],x[97],x[98],x[99],x[100],x[101],x[102],x[103],x[104],x[105],x[106],x[107],x[108],x[109],x[110],x[111],x[112],x[113],x[114],x[115],x[116],x[117],x[118],x[119],x[120],x[121],x[122],x[123],x[124],x[125],x[126],x[127],x[128],x[129],x[130],x[131],x[132],x[133],x[134],x[135],x[136],x[137],x[138],x[139],x[140],x[141],x[142],x[143],x[144],x[145],x[146],x[147],x[148],x[149],x[150],x[151],x[152],x[153],x[154],x[155],x[156],x[157],x[158],x[159],x[160],x[161],x[162],x[163],x[164],x[165],x[166],x[167],x[168],x[169],x[170],x[171],x[172],x[173],x[174],x[175],x[176],x[177],x[178],x[179],x[180],x[181],x[182],x[183],x[184],x[185],x[186],x[187],x[188],x[189],x[190],x[191],x[192],x[193],x[194],x[195],x[196],x[197],x[198],x[199],x[200]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 200 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003183/0.8049, allocations: 3.28 MB / 0.6102 GB, free: 11.25 MB / 462.3 MB Notification: Performance of simCode: created initialization part: time 0.002995/0.8079, allocations: 2.354 MB / 0.6125 GB, free: 8.906 MB / 462.3 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.8079, allocations: 0 / 0.6125 GB, free: 8.906 MB / 462.3 MB Notification: Performance of simCode: created simulation system equations: time 0.0009768/0.8089, allocations: 0.8583 MB / 0.6134 GB, free: 8.043 MB / 462.3 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.8094, allocations: 72.8 kB / 0.6134 GB, free: 7.973 MB / 462.3 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/0.8216, allocations: 12.86 MB / 0.626 GB, free: 10.98 MB / 478.3 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000731/0.8224, allocations: 1.156 MB / 0.6271 GB, free: 9.797 MB / 478.3 MB Notification: Performance of simCode: alias equations: time 0.001595/0.824, allocations: 0.7674 MB / 0.6279 GB, free: 9.023 MB / 478.3 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006408/0.8247, allocations: 383.3 kB / 0.6282 GB, free: 8.648 MB / 478.3 MB Notification: Performance of SimCode: time 1.463e-06/0.8247, allocations: 0 / 0.6282 GB, free: 8.648 MB / 478.3 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.044/0.8687, allocations: 24.21 MB / 0.6519 GB, free: 0.6562 MB / 494.3 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/0.869, allocations: 228.9 kB / 0.6521 GB, free: 424 kB / 494.3 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.805/3.674, allocations: 0 / 0.6521 GB, free: 424 kB / 494.3 MB (rm -f ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200.pipe ; mkfifo ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200.pipe ; head -c 1048576 < ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200.pipe >> ../files/ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200_res.mat --tempDir=temp_ScalableTestSuite_ScalableTestSuite_Elementary_SimpleODE_ScaledExperiments_CascadedFirstOrder_N_200_fmu --startTime=0 --stopTime=2 --timeout=300 --tolerance=1e-06 ScalableTestSuite_ScalableTestSuite_Elementary_SimpleODE_ScaledExperiments_CascadedFirstOrder_N_200.fmu > ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ScalableTestSuite_ScalableTestSuite.Elementary.SimpleODE.ScaledExperiments.CascadedFirstOrder_N_200_res.mat does not exist to compare? outputFormat=mat