Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.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.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 196.1 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009276/0.0009276, allocations: 91.98 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.683e-05/2.692e-05, allocations: 224 / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3163/0.4331, allocations: 77.89 MB / 480 MB, free: 11.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.4334, allocations: 72.2 kB / 480.1 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003022/0.4364, allocations: 1.45 MB / 481.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4364, allocations: 2.969 kB / 481.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.4364, allocations: 0 / 481.5 MB, free: 10.2 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003126/0.4367, allocations: 356.9 kB / 481.9 MB, free: 9.824 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.4368, allocations: 8.031 kB / 481.9 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.85e-05/0.4368, allocations: 42.17 kB / 481.9 MB, free: 9.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.4369, allocations: 11.97 kB / 482 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.4371, allocations: 195.1 kB / 482.1 MB, free: 9.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.4371, allocations: 12.41 kB / 482.2 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.4371, allocations: 8.453 kB / 482.2 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.4374, allocations: 184.7 kB / 482.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.4374, allocations: 0 / 482.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.4374, allocations: 3.562 kB / 482.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.4374, allocations: 0 / 482.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.296e-05/0.4375, allocations: 34.69 kB / 482.4 MB, free: 9.348 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003215/0.4378, allocations: 375.6 kB / 482.7 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.438, allocations: 110.5 kB / 482.9 MB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.48e-05/0.438, allocations: 56.89 kB / 482.9 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.4381, allocations: 4 kB / 482.9 MB, free: 8.773 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.4381, allocations: 42.8 kB / 483 MB, free: 8.727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.4381, allocations: 0 / 483 MB, free: 8.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002065/0.4383, allocations: 96.91 kB / 483.1 MB, free: 8.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.4384, allocations: 115.7 kB / 483.2 MB, free: 8.508 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.322e-05/0.4385, allocations: 130.1 kB / 483.3 MB, free: 8.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.4385, allocations: 29.08 kB / 483.3 MB, free: 8.355 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.198e-05/0.4385, allocations: 84.05 kB / 483.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.787e-06/0.4385, allocations: 7.906 kB / 483.4 MB, free: 8.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/0.4385, allocations: 3.625 kB / 483.4 MB, free: 8.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.39e-05/0.4386, allocations: 322 kB / 483.7 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.019e-05/0.4386, allocations: 15.5 kB / 483.7 MB, free: 7.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.067e-05/0.4387, allocations: 79.77 kB / 483.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.475e-05/0.4387, allocations: 27.5 kB / 483.8 MB, free: 7.801 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4387, allocations: 0 / 483.8 MB, free: 7.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001191/0.4388, allocations: 114.3 kB / 484 MB, free: 7.695 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.4388, allocations: 9.688 kB / 484 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.4389, allocations: 0 / 484 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.4389, allocations: 4 kB / 484 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.889e-05/0.4389, allocations: 11.92 kB / 484 MB, free: 7.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.4389, allocations: 5.406 kB / 484 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.315e-05/0.439, allocations: 5.062 kB / 484 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.439, allocations: 7.812 kB / 484 MB, free: 7.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.u,hold1.y,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 5.325e-05/0.439, allocations: 125.5 kB / 484.1 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.4392, allocations: 82.41 kB / 484.2 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.638e-05/0.4392, allocations: 16.47 kB / 484.2 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.4392, allocations: 0 / 484.2 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.4392, allocations: 0 / 484.2 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4392, allocations: 9.953 kB / 484.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.4394, allocations: 176.1 kB / 484.4 MB, free: 7.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4394, allocations: 3.953 kB / 484.4 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.679e-05/0.4394, allocations: 12.61 kB / 484.4 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.4395, allocations: 4 kB / 484.4 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.4395, allocations: 3.094 kB / 484.4 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.4395, allocations: 4 kB / 484.4 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4395, allocations: 0 / 484.4 MB, free: 7.215 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7819:5-7819:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002508/0.4397, allocations: 361.7 kB / 484.8 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.4398, allocations: 96.62 kB / 484.9 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.4398, allocations: 1.938 kB / 484.9 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.984e-05/0.4399, allocations: 7.438 kB / 484.9 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.529e-05/0.4399, allocations: 3.984 kB / 484.9 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-06/0.4399, allocations: 4 kB / 484.9 MB, free: 6.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.194e-05/0.44, allocations: 108.7 kB / 485 MB, free: 6.633 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.44, allocations: 0 / 485 MB, free: 6.633 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.4402, allocations: 16.34 kB / 485 MB, free: 6.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7819:5-7819:89:writable] Error: Internal error Transformation module sort components failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1765:3-1765:84:writable] Error: Internal error function createFMIModelDerivatives failed Notification: Performance of Backend phase and start with SimCode phase: time 0.0003345/0.4406, allocations: 0.6578 MB / 485.7 MB, free: 5.953 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.4407, allocations: 61.19 kB / 485.7 MB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4407, allocations: 0 / 485.7 MB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.599e-05/0.4407, allocations: 14.25 kB / 485.7 MB, free: 5.895 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.441, allocations: 49.34 kB / 485.8 MB, free: 5.859 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003708/0.4414, allocations: 151.9 kB / 485.9 MB, free: 5.711 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001149/0.4415, allocations: 0.7108 MB / 486.7 MB, free: 4.977 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.561e-05/0.4416, allocations: 4.562 kB / 486.7 MB, free: 4.973 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.509e-05/0.4416, allocations: 28.17 kB / 486.7 MB, free: 4.953 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4416, allocations: 1.688 kB / 486.7 MB, free: 4.953 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01043/0.452, allocations: 1.683 MB / 488.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001138/0.4522, allocations: 175.5 kB / 488.5 MB, free: 3.266 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.552/2.004, allocations: 0 / 488.5 MB, free: 3.266 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat does not exist to compare? outputFormat=mat