Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified3,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified3,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.208/2.208, allocations: 387.1 MB / 399.7 MB, free: 9.496 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 183.5 kB / 492.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 221.3 MB / 0.7871 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009984/0.0009985, allocations: 106 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.756e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2701, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.196/1.466, allocations: 462.5 MB / 1.664 GB, free: 372 kB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/1.466, allocations: 97.38 kB / 1.664 GB, free: 324 kB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 38.22/39.69, allocations: 9.573 GB / 11.24 GB, free: 98.54 MB / 1.417 GB Notification: Performance of FrontEnd: time 3.376e-06/39.69, allocations: 6.156 kB / 11.24 GB, free: 98.54 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.003885/39.69, allocations: 434.3 kB / 11.24 GB, free: 98.45 MB / 1.417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2029 * Number of variables: 2029 Notification: Performance of Generate backend data structure: time 0.05743/39.75, allocations: 13.49 MB / 11.25 GB, free: 92.5 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/39.75, allocations: 9.688 kB / 11.25 GB, free: 92.5 MB / 1.417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006109/39.75, allocations: 1.029 MB / 11.25 GB, free: 92.41 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01848/39.77, allocations: 2.548 MB / 11.25 GB, free: 91.41 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07312/39.85, allocations: 21.67 MB / 11.28 GB, free: 88.65 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/39.85, allocations: 0.6794 MB / 11.28 GB, free: 88.63 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00583/39.85, allocations: 0.9534 MB / 11.28 GB, free: 88.62 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04321/39.9, allocations: 15.55 MB / 11.29 GB, free: 87.78 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006497/39.9, allocations: 14.94 kB / 11.29 GB, free: 87.77 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004575/39.9, allocations: 331.1 kB / 11.29 GB, free: 87.77 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004237/39.9, allocations: 372.7 kB / 11.29 GB, free: 87.75 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0409/39.94, allocations: 19.67 MB / 11.31 GB, free: 87.63 MB / 1.417 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.155/40.1, allocations: 80.08 MB / 11.39 GB, free: 43.47 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01907/40.12, allocations: 11.76 MB / 11.4 GB, free: 38 MB / 1.417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01448/40.13, allocations: 9.479 MB / 11.41 GB, free: 29.99 MB / 1.417 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 evalFunc (simulation): time 0.08453/40.22, allocations: 33.77 MB / 11.44 GB, free: 2.582 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02152/40.24, allocations: 9.424 MB / 11.45 GB, free: 12 MB / 1.432 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04812/40.29, allocations: 15.06 MB / 11.47 GB, free: 1.246 MB / 1.432 GB Notification: Performance of pre-optimization done (n=593): time 5.206e-05/40.29, allocations: 0 / 11.47 GB, free: 1.246 MB / 1.432 GB Notification: Performance of matching and sorting (n=866): time 2.13/42.42, allocations: 212.5 MB / 11.68 GB, free: 113.1 MB / 1.432 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08962/42.51, allocations: 41.34 MB / 11.72 GB, free: 104.1 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03907/42.54, allocations: 14.21 MB / 11.73 GB, free: 103.3 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.005322/42.55, allocations: 241 kB / 11.73 GB, free: 103.2 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.01109/42.56, allocations: 7.251 MB / 11.74 GB, free: 102 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.01024/42.57, allocations: 3.078 MB / 11.74 GB, free: 100.5 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00573/42.58, allocations: 204.2 kB / 11.74 GB, free: 100.5 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.001053/42.58, allocations: 0.7409 MB / 11.74 GB, free: 100.2 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02653/42.61, allocations: 16.7 MB / 11.76 GB, free: 100.2 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02905/42.63, allocations: 19.67 MB / 11.78 GB, free: 96.92 MB / 1.432 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02817/42.66, allocations: 18.04 MB / 11.79 GB, free: 96.58 MB / 1.432 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/42.66, allocations: 13.53 kB / 11.79 GB, free: 96.58 MB / 1.432 GB Notification: Performance of matching and sorting (n=1391) (initialization): time 0.6378/43.3, allocations: 142.6 MB / 11.93 GB, free: 38.46 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 0.009793/43.31, allocations: 36.95 MB / 11.97 GB, free: 15.55 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003729/43.31, allocations: 58.62 kB / 11.97 GB, free: 15.5 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108/45.42, allocations: 146 MB / 12.11 GB, free: 154.8 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02077/45.44, allocations: 3.636 MB / 12.12 GB, free: 154.8 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.14/45.58, allocations: 71.15 MB / 12.19 GB, free: 148.9 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09264/45.67, allocations: 6.212 MB / 12.19 GB, free: 148.9 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007047/45.68, allocations: 1.322 MB / 12.19 GB, free: 148.9 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/45.68, allocations: 3.906 kB / 12.19 GB, free: 148.9 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6006/46.28, allocations: 141.4 MB / 12.33 GB, free: 146.3 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003665/46.28, allocations: 52.91 kB / 12.33 GB, free: 146.3 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6284/46.91, allocations: 146.4 MB / 12.47 GB, free: 53.42 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01838/46.93, allocations: 3.628 MB / 12.48 GB, free: 49.98 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1411/47.07, allocations: 75.41 MB / 12.55 GB, free: 10.25 MB / 1.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09369/47.16, allocations: 6.178 MB / 12.56 GB, free: 4.301 MB / 1.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006958/47.17, allocations: 1.283 MB / 12.56 GB, free: 3.098 MB / 1.495 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1071): * Single equations (assignments): 1055 * Array equations: 6 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 2 {5 80,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.00969/47.18, allocations: 0.6622 MB / 12.56 GB, free: 2.867 MB / 1.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007642/47.19, allocations: 1.482 MB / 12.56 GB, free: 2.18 MB / 1.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.348/48.53, allocations: 58.28 MB / 12.62 GB, free: 186.5 MB / 1.51 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2146/48.75, allocations: 64.28 MB / 12.68 GB, free: 186 MB / 1.51 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001358/48.75, allocations: 28.03 kB / 12.68 GB, free: 186 MB / 1.51 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2105/48.96, allocations: 63.6 MB / 12.74 GB, free: 185.3 MB / 1.51 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3028/49.26, allocations: 127.1 MB / 12.87 GB, free: 180.1 MB / 1.51 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001086/49.26, allocations: 3.844 kB / 12.87 GB, free: 180.1 MB / 1.51 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01303/49.28, allocations: 2.059 MB / 12.87 GB, free: 180.1 MB / 1.51 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3278/49.6, allocations: 81.56 MB / 12.95 GB, free: 169.3 MB / 1.51 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004946/49.61, allocations: 0.5696 MB / 12.95 GB, free: 169.2 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1253/49.73, allocations: 63.87 MB / 13.01 GB, free: 132.5 MB / 1.51 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08322/49.82, allocations: 35.56 MB / 13.05 GB, free: 105.7 MB / 1.51 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.468/51.29, allocations: 91.38 MB / 13.14 GB, free: 165 MB / 1.51 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02655/51.31, allocations: 6.173 MB / 13.14 GB, free: 164.9 MB / 1.51 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009389/51.32, allocations: 218.5 kB / 13.14 GB, free: 164.9 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05784/51.38, allocations: 3.38 MB / 13.14 GB, free: 164.9 MB / 1.51 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006638/51.39, allocations: 0.8808 MB / 13.15 GB, free: 164.9 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005414/51.39, allocations: 0.6419 MB / 13.15 GB, free: 164.9 MB / 1.51 GB Notification: Performance of sorting global known variables: time 0.029/51.42, allocations: 10.87 MB / 13.16 GB, free: 164.4 MB / 1.51 GB Notification: Performance of sort global known variables: time 6.81e-07/51.42, allocations: 0 / 13.16 GB, free: 164.4 MB / 1.51 GB Notification: Performance of remove unused functions: time 0.1245/51.55, allocations: 38.66 MB / 13.19 GB, free: 164.4 MB / 1.51 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 ($STATESET1.x[31],$STATESET1.x[30],$STATESET1.x[29],$STATESET1.x[28],$STATESET1.x[27],$STATESET1.x[26],$STATESET1.x[25],$STATESET1.x[24],$STATESET1.x[23],$STATESET1.x[22],$STATESET1.x[21],$STATESET1.x[20],$STATESET1.x[19],$STATESET1.x[18],$STATESET1.x[17],$STATESET1.x[16],$STATESET1.x[15],$STATESET1.x[14],$STATESET1.x[13],$STATESET1.x[12],$STATESET1.x[11],$STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],pmpSouth.vol.dynBal.U,pmpSouth.filter.s[1],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],valSouth1[1].filter.s[1],valSouth1[2].filter.s[1],valSouth1[3].filter.s[1],valSouth1[4].filter.s[1],valSouth2[1].filter.s[1],valSouth2[2].filter.s[1],valSouth2[3].filter.s[1],valSouth2[4].filter.s[1],valSouth2[5].filter.s[1],valSouth2[6].filter.s[1],valSouth2[7].filter.s[1],valSouth2[8].filter.s[1],valNorth1[1].filter.s[1],valNorth1[2].filter.s[1],valNorth1[3].filter.s[1],valNorth1[4].filter.s[1],valNorth2[1].filter.s[1],valNorth2[2].filter.s[1],valNorth2[3].filter.s[1],valNorth2[4].filter.s[1],valNorth2[5].filter.s[1],valNorth2[6].filter.s[1],valNorth2[7].filter.s[1],valNorth2[8].filter.s[1],valSouth.vol.dynBal.U,valSouth.filter.s[1],valNorth.vol.dynBal.U,valNorth.filter.s[1],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],valHea.filter.s[1],valCoo.filter.s[1],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1],vol.p) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (658): * Single equations (assignments): 636 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 3 {5 79,1 3,34 189} Notification: Performance of Backend phase and start with SimCode phase: time 0.2644/51.81, allocations: 96.93 MB / 13.29 GB, free: 160.9 MB / 1.51 GB Notification: Performance of simCode: created initialization part: time 0.1279/51.94, allocations: 69.95 MB / 13.36 GB, free: 159.7 MB / 1.51 GB Notification: Performance of simCode: created event and clocks part: time 1.592e-05/51.94, allocations: 5.516 kB / 13.36 GB, free: 159.7 MB / 1.51 GB Notification: Performance of simCode: created simulation system equations: time 0.07826/52.02, allocations: 39.06 MB / 13.4 GB, free: 158.7 MB / 1.51 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04959/52.07, allocations: 7.239 MB / 13.4 GB, free: 158.3 MB / 1.51 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1318/52.2, allocations: 49.05 MB / 13.45 GB, free: 150.9 MB / 1.51 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0165/52.21, allocations: 10.11 MB / 13.46 GB, free: 149.5 MB / 1.51 GB Notification: Performance of simCode: alias equations: time 0.0504/52.26, allocations: 11.04 MB / 13.47 GB, free: 142.4 MB / 1.51 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02235/52.29, allocations: 9.345 MB / 13.48 GB, free: 141.7 MB / 1.51 GB Notification: Performance of SimCode: time 2.334e-06/52.29, allocations: 0 / 13.48 GB, free: 141.7 MB / 1.51 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.764/57.05, allocations: 0.7796 GB / 14.26 GB, free: 194.2 MB / 1.589 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/57.05, allocations: 222.9 kB / 14.26 GB, free: 194 MB / 1.589 GB Notification: Performance of buildModelFMU: Generate platform static: time 49.35/106.4, allocations: 0.7812 kB / 14.26 GB, free: 194 MB / 1.589 GB (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified3_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified3.fmu > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3_res.mat does not exist to compare? outputFormat=mat