Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001211/0.001211, allocations: 99.55 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001793/0.001793, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002265/0.0002267, allocations: 7.984 kB / 306.8 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1063, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2771/0.3835, allocations: 59.2 MB / 417.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02698/0.4105, allocations: 21.01 MB / 438.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002255/0.4128, allocations: 39.69 kB / 438.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001903/0.4147, allocations: 0.5746 MB / 439.1 MB, free: 11.17 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01388/0.4286, allocations: 4.631 MB / 443.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00877/0.4374, allocations: 2.776 MB / 446.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0209/0.4583, allocations: 14.04 MB / 460.6 MB, free: 5.715 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.4598, allocations: 0.572 MB / 461.1 MB, free: 5.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002076/0.4619, allocations: 0.9416 MB / 462.1 MB, free: 4.188 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.4629, allocations: 0.8014 MB / 462.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.463, allocations: 48 kB / 462.9 MB, free: 3.336 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01522/0.4783, allocations: 7.21 MB / 470.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004688/0.4788, allocations: 235 kB / 470.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007001/0.4795, allocations: 297 kB / 470.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008561/0.4881, allocations: 3.929 MB / 474.6 MB, free: 7.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.4881, allocations: 0 / 474.6 MB, free: 7.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.729e-06/0.4881, allocations: 3.984 kB / 474.6 MB, free: 7.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.4881, allocations: 0 / 474.6 MB, free: 7.652 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006792/0.4949, allocations: 2.202 MB / 476.8 MB, free: 5.395 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.148e-05/0.495, allocations: 12.03 kB / 476.8 MB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002537/0.4953, allocations: 152.4 kB / 476.9 MB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004573/0.4999, allocations: 0.6617 MB / 477.6 MB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.5019, allocations: 0.9611 MB / 478.6 MB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.242e-05/0.502, allocations: 74.02 kB / 478.6 MB, free: 3.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.5021, allocations: 96 kB / 478.7 MB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003795/0.5059, allocations: 1.667 MB / 480.4 MB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.506, allocations: 7.938 kB / 480.4 MB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.5061, allocations: 44 kB / 480.5 MB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-05/0.5061, allocations: 28 kB / 480.5 MB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003262/0.5094, allocations: 1.455 MB / 481.9 MB, free: 40 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00971/0.5191, allocations: 8.42 MB / 490.4 MB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003006/0.5222, allocations: 1.69 MB / 492 MB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005818/0.5228, allocations: 397.1 kB / 492.4 MB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3502/0.873, allocations: 70.96 MB / 0.5502 GB, free: 136.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.999e-05/0.8731, allocations: 46.31 kB / 0.5502 GB, free: 136.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.625e-06/0.8731, allocations: 0 / 0.5502 GB, free: 136.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.006141/0.8793, allocations: 2.031 MB / 0.5522 GB, free: 136.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.8794, allocations: 190.7 kB / 0.5524 GB, free: 136.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.8806, allocations: 0.9578 MB / 0.5533 GB, free: 136 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.073e-05/0.8807, allocations: 40.42 kB / 0.5534 GB, free: 136 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004261/0.8811, allocations: 0.5687 MB / 0.5539 GB, free: 135.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.8814, allocations: 277.4 kB / 0.5542 GB, free: 135.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.804e-05/0.8814, allocations: 24.97 kB / 0.5542 GB, free: 135.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.8815, allocations: 343.1 kB / 0.5545 GB, free: 135 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005436/0.8821, allocations: 300.8 kB / 0.5548 GB, free: 134.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000784/0.8829, allocations: 0.7377 MB / 0.5555 GB, free: 134.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/0.8837, allocations: 419.6 kB / 0.5559 GB, free: 134 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/0.8837, allocations: 3.969 kB / 0.556 GB, free: 134 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001863/0.8856, allocations: 1.24 MB / 0.5572 GB, free: 133.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.8856, allocations: 11.81 kB / 0.5572 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.8856, allocations: 15.69 kB / 0.5572 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002628/0.8883, allocations: 0.5223 MB / 0.5577 GB, free: 133.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008749/0.8891, allocations: 282.5 kB / 0.558 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007052/0.8899, allocations: 1.37 MB / 0.5593 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007624/0.8906, allocations: 156.8 kB / 0.5595 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.495e-05/0.8907, allocations: 73.34 kB / 0.5595 GB, free: 131.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003998/0.8911, allocations: 294.7 kB / 0.5598 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.8913, allocations: 129.4 kB / 0.5599 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00372/0.895, allocations: 4.493 MB / 0.5643 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-05/0.8951, allocations: 47.39 kB / 0.5644 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.8951, allocations: 4 kB / 0.5644 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.8951, allocations: 9.969 kB / 0.5644 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/0.8991, allocations: 4.935 MB / 0.5692 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.8992, allocations: 0 / 0.5692 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006675/0.8998, allocations: 167.7 kB / 0.5694 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003073/0.9029, allocations: 1.594 MB / 0.5709 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-05/0.903, allocations: 24.8 kB / 0.5709 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009227/0.9039, allocations: 1.747 MB / 0.5726 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.9039, allocations: 0 / 0.5726 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.9058, allocations: 2.018 MB / 0.5746 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003485/0.9061, allocations: 357.8 kB / 0.575 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.9063, allocations: 16 kB / 0.575 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005332/0.9068, allocations: 64.73 kB / 0.575 GB, free: 118.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.049e-05/0.9069, allocations: 56.44 kB / 0.5751 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.9069, allocations: 31.98 kB / 0.5751 GB, free: 118.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008768/0.9078, allocations: 0.8264 MB / 0.5759 GB, free: 117.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.9078, allocations: 0 / 0.5759 GB, free: 117.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003505/0.9113, allocations: 1.286 MB / 0.5772 GB, free: 116.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.006487/0.9178, allocations: 3.74 MB / 0.5808 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.9201, allocations: 1.235 MB / 0.582 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.9201, allocations: 7.844 kB / 0.582 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.9213, allocations: 0.907 MB / 0.5829 GB, free: 110.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/0.9243, allocations: 0.7042 MB / 0.5836 GB, free: 109.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.9355, allocations: 8.602 MB / 0.592 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005586/0.9361, allocations: 1.321 MB / 0.5933 GB, free: 99.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001241/0.9373, allocations: 0.6426 MB / 0.5939 GB, free: 98.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006049/0.938, allocations: 0.6593 MB / 0.5946 GB, free: 98.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.938, allocations: 0 / 0.5946 GB, free: 98.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09447/1.032, allocations: 71.4 MB / 0.6643 GB, free: 27.17 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/1.033, allocations: 259.9 kB / 0.6646 GB, free: 26.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.118/6.15, allocations: 3.094 kB / 0.6646 GB, free: 26.82 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat