Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008709/0.0008709, allocations: 102.5 kB / 297.3 MB, free: 6.145 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000223/0.000223, allocations: 4 kB / 358 MB, free: 9.391 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1992, allocations: 51.49 MB / 409.5 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2894/0.4887, allocations: 107.4 MB / 0.5048 GB, free: 43.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.489, allocations: 97.98 kB / 0.5049 GB, free: 43.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09824/0.5872, allocations: 44.15 MB / 0.548 GB, free: 37.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5873, allocations: 0 / 0.548 GB, free: 37.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.5874, allocations: 47.17 kB / 0.5481 GB, free: 37.88 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 421 * Number of variables: 421 Notification: Performance of Generate backend data structure: time 0.003132/0.5905, allocations: 2.148 MB / 0.5502 GB, free: 36.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.5906, allocations: 7.812 kB / 0.5502 GB, free: 36.44 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002279/0.5908, allocations: 234.7 kB / 0.5504 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005415/0.5913, allocations: 277.5 kB / 0.5507 GB, free: 36.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/0.5931, allocations: 1.236 MB / 0.5519 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.805e-05/0.5931, allocations: 123.2 kB / 0.552 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.5933, allocations: 169.7 kB / 0.5522 GB, free: 35.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.5958, allocations: 1.786 MB / 0.5539 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.333e-05/0.5958, allocations: 7.891 kB / 0.5539 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.596, allocations: 72.3 kB / 0.554 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.596, allocations: 39.06 kB / 0.554 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002181/0.5982, allocations: 1.373 MB / 0.5554 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007278/0.6055, allocations: 7.112 MB / 0.5623 GB, free: 30.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/0.6072, allocations: 1.194 MB / 0.5635 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.787e-05/0.6073, allocations: 14 kB / 0.5635 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/0.6084, allocations: 0.7845 MB / 0.5642 GB, free: 30.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=124): time 3.587e-06/0.6085, allocations: 0 / 0.5642 GB, free: 30.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.007698/0.6162, allocations: 4.581 MB / 0.5687 GB, free: 27.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.6162, allocations: 200.6 kB / 0.5689 GB, free: 27.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.6176, allocations: 1.228 MB / 0.5701 GB, free: 26.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.857e-05/0.6177, allocations: 53.33 kB / 0.5702 GB, free: 26.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004909/0.6182, allocations: 0.8101 MB / 0.571 GB, free: 26.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.6184, allocations: 389.3 kB / 0.5713 GB, free: 25.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.085e-05/0.6185, allocations: 31.81 kB / 0.5714 GB, free: 25.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.368e-05/0.6186, allocations: 361.6 kB / 0.5717 GB, free: 25.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008087/0.6194, allocations: 0.4999 MB / 0.5722 GB, free: 25.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000958/0.6204, allocations: 0.911 MB / 0.5731 GB, free: 24.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009155/0.6213, allocations: 0.6517 MB / 0.5737 GB, free: 23.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.6213, allocations: 3.969 kB / 0.5737 GB, free: 23.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.002734/0.6241, allocations: 1.967 MB / 0.5756 GB, free: 22.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008144/0.6249, allocations: 4.983 MB / 0.5805 GB, free: 17.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.6249, allocations: 15.75 kB / 0.5805 GB, free: 17.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008284/0.6258, allocations: 343.5 kB / 0.5809 GB, free: 17.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007626/0.6265, allocations: 248.2 kB / 0.5811 GB, free: 17.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004794/0.6313, allocations: 6.187 MB / 0.5871 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.6326, allocations: 94.23 kB / 0.5872 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.6327, allocations: 66.53 kB / 0.5873 GB, free: 11.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.113e-06/0.6327, allocations: 3.625 kB / 0.5873 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002542/0.6353, allocations: 1.83 MB / 0.5891 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.6353, allocations: 12 kB / 0.5891 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007444/0.636, allocations: 343 kB / 0.5894 GB, free: 9.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007171/0.6368, allocations: 239.6 kB / 0.5896 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004639/0.6414, allocations: 6.179 MB / 0.5957 GB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.6427, allocations: 87.86 kB / 0.5958 GB, free: 2.801 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.6428, allocations: 71.97 kB / 0.5958 GB, free: 2.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$whenCondition1,hbridge.fire_p,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.fire_n,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.triangle.T_start,signalPWM.triangle.T_start,$PRE.signalPWM.triangle.count,signalPWM.triangle.count,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001108/0.6439, allocations: 0.564 MB / 0.5964 GB, free: 2.145 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/0.6442, allocations: 173.9 kB / 0.5965 GB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002701/0.6469, allocations: 1.689 MB / 0.5982 GB, free: 248 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.6469, allocations: 15.94 kB / 0.5982 GB, free: 232 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.6469, allocations: 0 / 0.5982 GB, free: 232 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.647, allocations: 3.984 kB / 0.5982 GB, free: 228 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005703/0.6527, allocations: 3.423 MB / 0.6016 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.6527, allocations: 4 kB / 0.6016 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006262/0.6533, allocations: 143.8 kB / 0.6017 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008724/0.6542, allocations: 318.6 kB / 0.602 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.805e-05/0.6543, allocations: 39.97 kB / 0.602 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006176/0.6605, allocations: 6.153 MB / 0.608 GB, free: 5.648 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.6605, allocations: 8.016 kB / 0.6081 GB, free: 5.641 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004325/0.6649, allocations: 2.618 MB / 0.6106 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007613/0.6657, allocations: 386.9 kB / 0.611 GB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.6659, allocations: 32 kB / 0.611 GB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007915/0.6667, allocations: 75.94 kB / 0.6111 GB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.6669, allocations: 124.8 kB / 0.6112 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.045e-05/0.667, allocations: 40.25 kB / 0.6112 GB, free: 2.242 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001299/0.6683, allocations: 0.9247 MB / 0.6121 GB, free: 1.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6683, allocations: 0 / 0.6121 GB, free: 1.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002369/0.6707, allocations: 0.7735 MB / 0.6129 GB, free: 0.5469 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,inductor.i) * Number of discrete variables: 39 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,hbridge.fire_p,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.fire_n,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.triangle.T_start,signalPWM.triangle.count,meanCurrent.y_last,meanVoltage.y_last,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.triangle.count,meanCurrent.x,meanVoltage.x,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.004541/0.6753, allocations: 3.813 MB / 0.6166 GB, free: 12.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004855/0.6801, allocations: 3.497 MB / 0.62 GB, free: 9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6801, allocations: 0 / 0.62 GB, free: 9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.6819, allocations: 1.356 MB / 0.6214 GB, free: 7.578 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.6833, allocations: 337.5 kB / 0.6217 GB, free: 7.246 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009454/0.6927, allocations: 13.57 MB / 0.6349 GB, free: 9.137 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009705/0.6937, allocations: 1.371 MB / 0.6363 GB, free: 7.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007466/0.6945, allocations: 188.7 kB / 0.6365 GB, free: 7.539 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007507/0.6952, allocations: 0.6672 MB / 0.6371 GB, free: 6.871 MB / 426.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6952, allocations: 4 kB / 0.6371 GB, free: 6.867 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2438/0.939, allocations: 42.28 MB / 0.6784 GB, free: 128.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/0.9392, allocations: 238.1 kB / 0.6786 GB, free: 128.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.434/4.374, allocations: 0 / 0.6786 GB, free: 128.1 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive_fmu --startTime=0 --stopTime=24 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_DC_Drive.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive_res.mat does not exist to compare? outputFormat=mat