Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.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) 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(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R",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.002466/0.002471, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.164/2.164, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 90.86 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003785, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.111, allocations: 47.58 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R): time 0.009518/0.1206, allocations: 2.983 MB / 377.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005302/0.126, allocations: 1.1 MB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006738/0.1267, allocations: 7.938 kB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006815/0.1274, allocations: 67.53 kB / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.1286, allocations: 155.5 kB / 379 MB, free: 10.99 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.1305, allocations: 171.7 kB / 379.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001366/0.1319, allocations: 355.7 kB / 379.5 MB, free: 10.47 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007339/0.1327, allocations: 217.9 kB / 379.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008117/0.1335, allocations: 159.3 kB / 379.8 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009155/0.1345, allocations: 163.2 kB / 380 MB, free: 9.934 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.1346, allocations: 20 kB / 380 MB, free: 9.914 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.1347, allocations: 16 kB / 380 MB, free: 9.898 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.1349, allocations: 79.67 kB / 380.1 MB, free: 9.82 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002242/0.1352, allocations: 105.5 kB / 380.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.1362, allocations: 470.9 kB / 380.7 MB, free: 9.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1362, allocations: 0 / 380.7 MB, free: 9.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1363, allocations: 0 / 380.7 MB, free: 9.25 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.441e-05/0.1363, allocations: 0 / 380.7 MB, free: 9.25 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.003237/0.1396, allocations: 0.71 MB / 381.4 MB, free: 8.488 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.983e-05/0.1396, allocations: 8.031 kB / 381.4 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002371/0.1399, allocations: 82.45 kB / 381.5 MB, free: 8.391 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/0.1401, allocations: 55.34 kB / 381.5 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.1415, allocations: 371.2 kB / 381.9 MB, free: 7.938 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.085e-05/0.1417, allocations: 36.98 kB / 381.9 MB, free: 7.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.1418, allocations: 43.91 kB / 382 MB, free: 7.859 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00206/0.1439, allocations: 446.9 kB / 382.4 MB, free: 7.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.097e-05/0.144, allocations: 4 kB / 382.4 MB, free: 7.402 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.1442, allocations: 19.98 kB / 382.4 MB, free: 7.383 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.887e-05/0.1442, allocations: 8 kB / 382.4 MB, free: 7.375 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001792/0.146, allocations: 319.8 kB / 382.8 MB, free: 7.066 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006068/0.1521, allocations: 1.591 MB / 384.3 MB, free: 5.375 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.1539, allocations: 266.8 kB / 384.6 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.861e-05/0.154, allocations: 11.97 kB / 384.6 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.1553, allocations: 248.9 kB / 384.9 MB, free: 4.832 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 4.017e-06/0.1553, allocations: 0 / 384.9 MB, free: 4.832 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.002693/0.158, allocations: 0.5418 MB / 385.4 MB, free: 4.262 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.376e-05/0.1581, allocations: 114.8 kB / 385.5 MB, free: 4.125 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005538/0.1587, allocations: 320.5 kB / 385.8 MB, free: 3.809 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.198e-05/0.1588, allocations: 45.62 kB / 385.9 MB, free: 3.758 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.159, allocations: 274.6 kB / 386.1 MB, free: 3.484 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.1592, allocations: 94.73 kB / 386.2 MB, free: 3.391 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/0.1592, allocations: 8 kB / 386.2 MB, free: 3.383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1594, allocations: 326.8 kB / 386.6 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004197/0.1598, allocations: 124.8 kB / 386.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.1604, allocations: 259.1 kB / 386.9 MB, free: 2.613 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006248/0.161, allocations: 141.1 kB / 387.1 MB, free: 2.477 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1611, allocations: 0 / 387.1 MB, free: 2.477 MB / 282.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001228/0.1623, allocations: 415.3 kB / 387.5 MB, free: 2.062 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008323/0.1632, allocations: 1.663 MB / 389.1 MB, free: 276 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.1632, allocations: 4 kB / 389.1 MB, free: 272 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003313/0.1635, allocations: 44.83 kB / 389.2 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004487/0.164, allocations: 67.84 kB / 389.3 MB, free: 156 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2605/0.4245, allocations: 1.496 MB / 390.8 MB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007492/0.4253, allocations: 60.88 kB / 390.8 MB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.637e-05/0.4254, allocations: 17.34 kB / 390.8 MB, free: 19.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.4255, allocations: 3.125 kB / 390.8 MB, free: 19.02 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001503/0.427, allocations: 364.8 kB / 391.2 MB, free: 19 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.427, allocations: 3.594 kB / 391.2 MB, free: 19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002985/0.4273, allocations: 47.47 kB / 391.2 MB, free: 19 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005192/0.4279, allocations: 66.61 kB / 391.3 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.4301, allocations: 1.502 MB / 392.8 MB, free: 17.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005476/0.4307, allocations: 45.64 kB / 392.9 MB, free: 17.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.629e-05/0.4307, allocations: 15.88 kB / 392.9 MB, free: 17.66 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.fire_n[1],pulse2.fire_p,$PRE.idealthyristor.off,idealthyristor.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005849/0.4313, allocations: 282 kB / 393.1 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.4315, allocations: 35.86 kB / 393.2 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.4316, allocations: 40.5 kB / 393.2 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4317, allocations: 3.266 kB / 393.2 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4317, allocations: 0 / 393.2 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.4317, allocations: 3.297 kB / 393.2 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.4346, allocations: 0.9057 MB / 394.1 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.4346, allocations: 3.953 kB / 394.1 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/0.435, allocations: 27.22 kB / 394.2 MB, free: 17.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002967/0.4354, allocations: 42 kB / 394.2 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.208e-05/0.4354, allocations: 8.375 kB / 394.2 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001969/0.4374, allocations: 1.428 MB / 395.6 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.4375, allocations: 0 / 395.6 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/0.4396, allocations: 0.6047 MB / 396.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003108/0.44, allocations: 140.7 kB / 396.4 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.4401, allocations: 8 kB / 396.4 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005715/0.4407, allocations: 28.48 kB / 396.4 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.4409, allocations: 42.22 kB / 396.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.408e-05/0.441, allocations: 13.19 kB / 396.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004978/0.4415, allocations: 220.2 kB / 396.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.4415, allocations: 0 / 396.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001753/0.4433, allocations: 193.6 kB / 396.9 MB, free: 15.03 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.fire_n[1],pulse2.fire_p,idealthyristor.off) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002574/0.4459, allocations: 1.298 MB / 398.2 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002439/0.4484, allocations: 0.7272 MB / 398.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.4484, allocations: 3.938 kB / 398.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008889/0.4493, allocations: 289.5 kB / 399.2 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.4501, allocations: 57.75 kB / 399.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00464/0.4548, allocations: 4.136 MB / 403.4 MB, free: 9.668 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005964/0.4555, allocations: 0.839 MB / 404.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004377/0.4559, allocations: 138 kB / 404.4 MB, free: 8.859 MB / 282.7 MB Notification: Performance of SimCode: time 2.595e-06/0.4559, allocations: 0.9688 kB / 404.4 MB, free: 8.859 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.925/3.381, allocations: 8.262 MB / 412.6 MB, free: 6.117 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_Rectifier1Pulse_Thyristor1Pulse_R.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R_res.mat does not exist to compare? outputFormat=mat