Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomNumbers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomNumbers",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.001712/0.001712, allocations: 183.2 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.86/1.86, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.000906/0.0009061, allocations: 90.67 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.533/0.533, allocations: 43.47 MB / 358.6 MB, free: 52.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.889e-05/3.891e-05, allocations: 4 kB / 425.4 MB, free: 8.805 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1548, allocations: 58.86 MB / 484.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5918, allocations: 85.26 MB / 0.5562 GB, free: 3.688 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001661/0.5921, allocations: 63.25 kB / 0.5562 GB, free: 3.629 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01051/0.6026, allocations: 5 MB / 0.5611 GB, free: 14.65 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6026, allocations: 0 / 0.5611 GB, free: 14.65 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.6027, allocations: 4 kB / 0.5611 GB, free: 14.65 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0005249/0.6032, allocations: 478.8 kB / 0.5616 GB, free: 14.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.6032, allocations: 12.03 kB / 0.5616 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001584/0.6034, allocations: 145.9 kB / 0.5617 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.262e-05/0.6035, allocations: 42.97 kB / 0.5618 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.6036, allocations: 190.7 kB / 0.5619 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.6037, allocations: 31.69 kB / 0.562 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.725e-05/0.6037, allocations: 36 kB / 0.562 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003962/0.6041, allocations: 294.6 kB / 0.5623 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.6042, allocations: 0 / 0.5623 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.6042, allocations: 9.375 kB / 0.5623 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.6042, allocations: 4 kB / 0.5623 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.6045, allocations: 210.2 kB / 0.5625 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.6055, allocations: 0.6397 MB / 0.5631 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/0.6057, allocations: 199 kB / 0.5633 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.6059, allocations: 178 kB / 0.5635 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.6059, allocations: 3.984 kB / 0.5635 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002051/0.6061, allocations: 175.3 kB / 0.5637 GB, free: 11.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=60): time 1.412e-06/0.6061, allocations: 0 / 0.5637 GB, free: 11.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=60): time 0.0009637/0.6071, allocations: 0.6362 MB / 0.5643 GB, free: 11.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.2e-05/0.6072, allocations: 115.9 kB / 0.5644 GB, free: 11.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.165e-05/0.6073, allocations: 112.8 kB / 0.5645 GB, free: 11 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.831e-05/0.6073, allocations: 73.67 kB / 0.5646 GB, free: 10.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.347e-05/0.6074, allocations: 153.4 kB / 0.5647 GB, free: 10.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001551/0.6076, allocations: 205.3 kB / 0.5649 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.573e-05/0.6077, allocations: 28 kB / 0.5649 GB, free: 10.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.6078, allocations: 342.8 kB / 0.5653 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004007/0.6082, allocations: 294.2 kB / 0.5655 GB, free: 9.914 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006708/0.6089, allocations: 0.6437 MB / 0.5662 GB, free: 9.109 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/0.6125, allocations: 5.739 MB / 0.5718 GB, free: 2.223 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.849e-06/0.6125, allocations: 5.969 kB / 0.5718 GB, free: 2.219 MB / 394.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001145/0.6137, allocations: 0.7468 MB / 0.5725 GB, free: 1.465 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.6137, allocations: 12 kB / 0.5725 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.6137, allocations: 12 kB / 0.5725 GB, free: 1.441 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.796e-05/0.6138, allocations: 20 kB / 0.5726 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.6141, allocations: 119.7 kB / 0.5727 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.61e-05/0.6142, allocations: 24.48 kB / 0.5727 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.6144, allocations: 75.28 kB / 0.5728 GB, free: 1.207 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.726e-05/0.6145, allocations: 47.95 kB / 0.5728 GB, free: 1.16 MB / 394.7 MB Warning: The initial conditions are over specified. The following 47 initial equations are redundant, so they are removed from the initialization sytem: $PRE.state33[33] = state33[33] $PRE.state33[32] = state33[32] $PRE.state33[31] = state33[31] $PRE.state33[30] = state33[30] $PRE.state33[29] = state33[29] $PRE.state33[28] = state33[28] $PRE.state33[27] = state33[27] $PRE.state33[26] = state33[26] $PRE.state33[25] = state33[25] $PRE.state33[24] = state33[24] $PRE.state33[23] = state33[23] $PRE.state33[22] = state33[22] $PRE.state33[21] = state33[21] $PRE.state33[20] = state33[20] $PRE.state33[19] = state33[19] $PRE.state33[18] = state33[18] $PRE.state33[17] = state33[17] $PRE.state33[16] = state33[16] $PRE.state33[15] = state33[15] $PRE.state33[14] = state33[14] $PRE.state33[13] = state33[13] $PRE.state33[12] = state33[12] $PRE.state33[11] = state33[11] $PRE.state33[10] = state33[10] $PRE.state33[9] = state33[9] $PRE.state33[8] = state33[8] $PRE.state33[7] = state33[7] $PRE.state33[6] = state33[6] $PRE.state33[5] = state33[5] $PRE.state33[4] = state33[4] $PRE.state33[3] = state33[3] $PRE.state33[2] = state33[2] $PRE.state33[1] = state33[1] $PRE.state4c[4] = state4c[4] $PRE.state4c[3] = state4c[3] $PRE.state4c[2] = state4c[2] $PRE.state4c[1] = state4c[1] $PRE.state4b[4] = state4b[4] $PRE.state4b[3] = state4b[3] $PRE.state4b[2] = state4b[2] $PRE.state4b[1] = state4b[1] $PRE.state4a[4] = state4a[4] $PRE.state4a[3] = state4a[3] $PRE.state4a[2] = state4a[2] $PRE.state4a[1] = state4a[1] $PRE.state2[2] = state2[2] $PRE.state2[1] = state2[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 108 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$whenCondition1,result,$PRE.$outputAlias_result,$outputAlias_result,$PRE.$outputAlias_r2,$outputAlias_r2,$PRE.$outputAlias_r4a,$outputAlias_r4a,$PRE.$outputAlias_r4b,$outputAlias_r4b,$PRE.$outputAlias_r4c,$outputAlias_r4c,$PRE.$outputAlias_r33,$outputAlias_r33) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0004926/0.615, allocations: 439 kB / 0.5732 GB, free: 0.7266 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.615, allocations: 11.81 kB / 0.5732 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.809e-05/0.6151, allocations: 9.875 kB / 0.5733 GB, free: 0.707 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.6151, allocations: 0 / 0.5733 GB, free: 0.707 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.6151, allocations: 4 kB / 0.5733 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.6151, allocations: 0 / 0.5733 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.6165, allocations: 0.9928 MB / 0.5742 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.6165, allocations: 3.984 kB / 0.5742 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.468e-05/0.6166, allocations: 11.94 kB / 0.5742 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.6166, allocations: 0 / 0.5742 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.6166, allocations: 4.562 kB / 0.5742 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.6166, allocations: 5.625 kB / 0.5742 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6166, allocations: 4 kB / 0.5743 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.6177, allocations: 0.7431 MB / 0.575 GB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.032e-05/0.6177, allocations: 104.5 kB / 0.5751 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.6178, allocations: 3.984 kB / 0.5751 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.236e-05/0.6178, allocations: 4 kB / 0.5751 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.6178, allocations: 4 kB / 0.5751 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.6179, allocations: 0 / 0.5751 GB, free: 14.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.474e-05/0.6179, allocations: 79.28 kB / 0.5752 GB, free: 14.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6179, allocations: 0 / 0.5752 GB, free: 14.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007119/0.6186, allocations: 171.6 kB / 0.5753 GB, free: 14.49 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 55 ($whenCondition1,result,$outputAlias_result,$outputAlias_r2,$outputAlias_r4a,$outputAlias_r4b,$outputAlias_r4c,$outputAlias_r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001927/0.6206, allocations: 1.634 MB / 0.5769 GB, free: 12.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.6217, allocations: 0.5598 MB / 0.5775 GB, free: 12.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.6218, allocations: 0 / 0.5775 GB, free: 12.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.6219, allocations: 168.5 kB / 0.5776 GB, free: 12.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.6221, allocations: 10.06 kB / 0.5776 GB, free: 12.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.6232, allocations: 0.7188 MB / 0.5783 GB, free: 11.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.6236, allocations: 0.7893 MB / 0.5791 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.6237, allocations: 52.27 kB / 0.5792 GB, free: 10.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.6238, allocations: 95.41 kB / 0.5793 GB, free: 10.43 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.6239, allocations: 0 / 0.5793 GB, free: 10.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01887/0.6427, allocations: 6.378 MB / 0.5855 GB, free: 4.094 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.643, allocations: 191.4 kB / 0.5857 GB, free: 3.863 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.474, allocations: 0 / 0.5857 GB, free: 3.863 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomNumbers_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomNumbers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomNumbers_res.mat does not exist to compare? outputFormat=mat