Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.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(Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Modulation_TSup",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Modulation_TSup",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.002149/0.00215, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.003043/0.003043, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.63/2.63, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.209/4.209, allocations: 409.2 MB / 0.6838 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006029/0.0006032, allocations: 8 kB / 0.8376 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.088/1.089, allocations: 146.8 MB / 0.981 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup): time 0.003466/1.092, allocations: 1.404 MB / 0.9823 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003666/1.096, allocations: 1.268 MB / 0.9836 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003483/1.096, allocations: 7.938 kB / 0.9836 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001063/1.096, allocations: 27.66 kB / 0.9836 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003372/1.097, allocations: 67.77 kB / 0.9837 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005613/1.097, allocations: 125.2 kB / 0.9838 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0008456/1.098, allocations: 293.1 kB / 0.9841 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005155/1.099, allocations: 196.7 kB / 0.9843 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/1.099, allocations: 103.4 kB / 0.9844 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003399/1.099, allocations: 131.1 kB / 0.9845 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.112e-05/1.099, allocations: 12 kB / 0.9845 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.001e-05/1.099, allocations: 12 kB / 0.9845 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.714e-05/1.1, allocations: 59.7 kB / 0.9846 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/1.1, allocations: 89.52 kB / 0.9846 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001169/1.101, allocations: 0.5903 MB / 0.9852 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/1.101, allocations: 0 / 0.9852 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.507e-06/1.101, allocations: 3.938 kB / 0.9852 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.466e-05/1.101, allocations: 0 / 0.9852 GB, free: 1.918 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001945/1.103, allocations: 0.6705 MB / 0.9859 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.561e-05/1.103, allocations: 19.91 kB / 0.9859 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002967/1.103, allocations: 78.53 kB / 0.986 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/1.104, allocations: 51.34 kB / 0.986 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/1.105, allocations: 399.1 kB / 0.9864 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.085e-05/1.105, allocations: 29 kB / 0.9864 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.792e-05/1.105, allocations: 43.94 kB / 0.9865 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/1.106, allocations: 418.1 kB / 0.9869 GB, free: 124 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/1.106, allocations: 0 / 0.9869 GB, free: 124 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.894e-05/1.106, allocations: 16 kB / 0.9869 GB, free: 108 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/1.106, allocations: 12 kB / 0.9869 GB, free: 96 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/1.108, allocations: 307.9 kB / 0.9872 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/1.111, allocations: 1.3 MB / 0.9885 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/1.112, allocations: 231.4 kB / 0.9887 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/1.112, allocations: 8.375 kB / 0.9887 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006107/1.113, allocations: 173.5 kB / 0.9889 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=21): time 2.875e-06/1.113, allocations: 4 kB / 0.9889 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of matching and sorting (n=21): time 0.001323/1.114, allocations: 302.1 kB / 0.9891 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/1.114, allocations: 132.5 kB / 0.9893 GB, free: 13.53 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009858/1.115, allocations: 365.6 kB / 0.9896 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.714e-05/1.115, allocations: 33.7 kB / 0.9897 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003639/1.116, allocations: 259.4 kB / 0.9899 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/1.116, allocations: 75 kB / 0.99 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.165e-05/1.116, allocations: 4 kB / 0.99 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002403/1.116, allocations: 342.8 kB / 0.9903 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/1.117, allocations: 100.5 kB / 0.9904 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005519/1.117, allocations: 209.2 kB / 0.9906 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004869/1.118, allocations: 121.1 kB / 0.9907 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/1.118, allocations: 0 / 0.9907 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001247/1.119, allocations: 354.7 kB / 0.9911 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007579/1.12, allocations: 1.15 MB / 0.9922 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/1.12, allocations: 11.98 kB / 0.9922 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/1.12, allocations: 4 kB / 0.9922 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/1.12, allocations: 71.91 kB / 0.9923 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/1.12, allocations: 4 kB / 0.9923 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/1.121, allocations: 59.52 kB / 0.9923 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/1.121, allocations: 15.98 kB / 0.9923 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/1.121, allocations: 4 kB / 0.9923 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008984/1.122, allocations: 291.8 kB / 0.9926 GB, free: 9.926 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/1.122, allocations: 4 kB / 0.9926 GB, free: 9.922 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/1.122, allocations: 4 kB / 0.9926 GB, free: 9.918 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004741/1.122, allocations: 71.91 kB / 0.9927 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/1.122, allocations: 7.938 kB / 0.9927 GB, free: 9.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/1.123, allocations: 57.41 kB / 0.9928 GB, free: 9.785 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/1.123, allocations: 19.98 kB / 0.9928 GB, free: 9.766 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,mod.uTSup.cheYMinMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0003755/1.123, allocations: 237.1 kB / 0.993 GB, free: 9.523 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.922e-05/1.123, allocations: 31.62 kB / 0.993 GB, free: 9.492 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/1.124, allocations: 258.2 kB / 0.9933 GB, free: 9.234 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/1.124, allocations: 4 kB / 0.9933 GB, free: 9.23 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/1.124, allocations: 3.938 kB / 0.9933 GB, free: 9.227 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/1.124, allocations: 3.953 kB / 0.9933 GB, free: 9.223 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/1.127, allocations: 0.7342 MB / 0.994 GB, free: 8.434 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/1.127, allocations: 3.984 kB / 0.994 GB, free: 8.43 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/1.127, allocations: 47.91 kB / 0.9941 GB, free: 8.383 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/1.127, allocations: 4 kB / 0.9941 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/1.127, allocations: 0 / 0.9941 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/1.127, allocations: 3.953 kB / 0.9941 GB, free: 8.375 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/1.127, allocations: 4 kB / 0.9941 GB, free: 8.371 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/1.128, allocations: 445.1 kB / 0.9945 GB, free: 7.922 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/1.129, allocations: 116.6 kB / 0.9946 GB, free: 7.789 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.65e-05/1.129, allocations: 11.94 kB / 0.9946 GB, free: 7.777 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/1.129, allocations: 19.98 kB / 0.9946 GB, free: 7.758 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.794e-05/1.129, allocations: 19.92 kB / 0.9947 GB, free: 7.738 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/1.129, allocations: 12 kB / 0.9947 GB, free: 7.727 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004865/1.13, allocations: 247.2 kB / 0.9949 GB, free: 7.492 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.806e-06/1.13, allocations: 4.062 kB / 0.9949 GB, free: 7.488 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001087/1.131, allocations: 143.4 kB / 0.995 GB, free: 7.348 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mod.uTSup.I.y) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.001841/1.132, allocations: 0.9722 MB / 0.996 GB, free: 6.352 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001302/1.134, allocations: 391.5 kB / 0.9964 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.134, allocations: 1.438 kB / 0.9964 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000315/1.134, allocations: 103.9 kB / 0.9965 GB, free: 5.867 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/1.135, allocations: 65.41 kB / 0.9965 GB, free: 5.801 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006536/1.141, allocations: 3.801 MB / 1 GB, free: 1.898 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/1.142, allocations: 0.808 MB / 1.001 GB, free: 1.066 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0004971/1.142, allocations: 59.23 kB / 1.001 GB, free: 1.012 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/1.143, allocations: 139.4 kB / 1.001 GB, free: 0.875 MB / 0.7481 GB Notification: Performance of SimCode: time 8.81e-07/1.143, allocations: 0 / 1.001 GB, free: 0.875 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4391/1.582, allocations: 6.554 MB / 1.008 GB, free: 10.6 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003989/1.582, allocations: 254.7 kB / 1.008 GB, free: 10.26 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.038/4.621, allocations: 3.188 kB / 1.008 GB, free: 10.26 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Modulation_TSup_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_ASHRAE_G36_AHUs_SingleZone_VAV_Economizers_Subsequences_Validation_Modulation_TSup.fmu > Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.ASHRAE.G36.AHUs.SingleZone.VAV.Economizers.Subsequences.Validation.Modulation_TSup_res.mat does not exist to compare? outputFormat=mat