Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_2_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.146/2.146, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.601e-05/3.606e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3657, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.4916, allocations: 69.04 MB / 363.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.4919, allocations: 55.97 kB / 363.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002747/0.4947, allocations: 0.8231 MB / 364.1 MB, free: 11.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4947, allocations: 0 / 364.1 MB, free: 11.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.4947, allocations: 4 kB / 364.1 MB, free: 11.93 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004026/0.4952, allocations: 342.4 kB / 364.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.4952, allocations: 8.031 kB / 364.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.76e-05/0.4953, allocations: 0 / 364.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.4954, allocations: 167 kB / 364.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.4954, allocations: 0 / 364.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.4955, allocations: 8 kB / 364.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001343/0.4956, allocations: 43.91 kB / 364.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.4958, allocations: 93.08 kB / 364.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.4959, allocations: 0 / 364.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.4959, allocations: 7.984 kB / 364.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4959, allocations: 0 / 364.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002162/0.4961, allocations: 156.9 kB / 364.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.4963, allocations: 106.4 kB / 365 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.4964, allocations: 63.41 kB / 365.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.4965, allocations: 4 kB / 365.1 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.4965, allocations: 38.5 kB / 365.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 1.944e-06/0.4965, allocations: 0 / 365.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004625/0.497, allocations: 165.4 kB / 365.3 MB, free: 10.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.667e-05/0.4971, allocations: 140.6 kB / 365.4 MB, free: 10.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.968e-05/0.4972, allocations: 101 kB / 365.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.4972, allocations: 25.7 kB / 365.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.271e-05/0.4973, allocations: 88.14 kB / 365.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.4973, allocations: 3.906 kB / 365.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.108e-05/0.4974, allocations: 4 kB / 365.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4975, allocations: 318.8 kB / 366 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.572e-05/0.4976, allocations: 35.97 kB / 366 MB, free: 9.785 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.4977, allocations: 63.39 kB / 366.1 MB, free: 9.711 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.633e-05/0.4978, allocations: 35.97 kB / 366.1 MB, free: 9.676 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4978, allocations: 4 kB / 366.1 MB, free: 9.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002779/0.4981, allocations: 117.6 kB / 366.2 MB, free: 9.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.4982, allocations: 12.08 kB / 366.2 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.4982, allocations: 4 kB / 366.2 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.4982, allocations: 0 / 366.2 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.622e-05/0.4983, allocations: 11.92 kB / 366.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.4983, allocations: 0 / 366.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.884e-05/0.4983, allocations: 0 / 366.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.4984, allocations: 8 kB / 366.3 MB, free: 9.516 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001219/0.4985, allocations: 108.8 kB / 366.4 MB, free: 9.402 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003682/0.4989, allocations: 173.5 kB / 366.5 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.4989, allocations: 8.141 kB / 366.5 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.284e-05/0.499, allocations: 8.688 kB / 366.6 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.499, allocations: 0 / 366.6 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.499, allocations: 8 kB / 366.6 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.499, allocations: 3.984 kB / 366.6 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.4992, allocations: 138.2 kB / 366.7 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.4992, allocations: 4 kB / 366.7 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-06/0.4992, allocations: 3.938 kB / 366.7 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.4992, allocations: 3.953 kB / 366.7 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.4992, allocations: 8.094 kB / 366.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.298e-06/0.4992, allocations: 7.984 kB / 366.7 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4993, allocations: 3.938 kB / 366.7 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.4997, allocations: 236.1 kB / 367 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.883e-05/0.4997, allocations: 89.02 kB / 367.1 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.4998, allocations: 0 / 367.1 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.199e-05/0.4998, allocations: 4 kB / 367.1 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.4999, allocations: 7.922 kB / 367.1 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.4999, allocations: 8 kB / 367.1 MB, free: 8.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.282e-05/0.5, allocations: 87.28 kB / 367.2 MB, free: 8.516 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5, allocations: 0 / 367.2 MB, free: 8.516 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003238/0.5003, allocations: 15.94 kB / 367.2 MB, free: 8.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009739/0.5013, allocations: 1.001 MB / 368.2 MB, free: 7.457 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000175/0.5015, allocations: 63.95 kB / 368.2 MB, free: 7.395 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5015, allocations: 0 / 368.2 MB, free: 7.395 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.865e-05/0.5016, allocations: 36.17 kB / 368.3 MB, free: 7.359 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001447/0.5017, allocations: 7.938 kB / 368.3 MB, free: 7.352 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004576/0.5022, allocations: 145.7 kB / 368.4 MB, free: 7.164 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.5026, allocations: 0.6808 MB / 369.1 MB, free: 6.457 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.096e-05/0.5026, allocations: 8 kB / 369.1 MB, free: 6.449 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.569e-05/0.5027, allocations: 19.42 kB / 369.1 MB, free: 6.434 MB / 314.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5027, allocations: 4.25 kB / 369.1 MB, free: 6.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.5369, allocations: 1.018 MB / 370.2 MB, free: 5.418 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003094/0.5373, allocations: 170.9 kB / 370.3 MB, free: 5.223 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/2.877, allocations: 0 / 370.3 MB, free: 5.223 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat