Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.259/2.259, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.264e-05/3.276e-05, allocations: 0 / 292.2 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 50.41 MB / 342.6 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4593/0.5699, allocations: 75.1 MB / 417.7 MB, free: 3.055 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.5702, allocations: 63.31 kB / 417.8 MB, free: 3.023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002643/0.5729, allocations: 0.8265 MB / 418.6 MB, free: 2.273 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5729, allocations: 0 / 418.6 MB, free: 2.273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.5729, allocations: 3.625 kB / 418.6 MB, free: 2.273 MB / 330.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.0003509/0.5733, allocations: 360.1 kB / 419 MB, free: 1.871 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.5734, allocations: 8.031 kB / 419 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.354e-05/0.5734, allocations: 46.41 kB / 419 MB, free: 1.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.5735, allocations: 11.86 kB / 419 MB, free: 1.801 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.5737, allocations: 167 kB / 419.2 MB, free: 1.598 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.5737, allocations: 4.875 kB / 419.2 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.5737, allocations: 2.844 kB / 419.2 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.574, allocations: 88.7 kB / 419.3 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.574, allocations: 0 / 419.3 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.574, allocations: 0 / 419.3 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.574, allocations: 7.953 kB / 419.3 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.5741, allocations: 39.97 kB / 419.3 MB, free: 1.461 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003219/0.5745, allocations: 255.1 kB / 419.6 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.5747, allocations: 69.42 kB / 419.7 MB, free: 1.102 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.5748, allocations: 63.08 kB / 419.7 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.5749, allocations: 0 / 419.7 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.275e-05/0.5749, allocations: 66.94 kB / 419.8 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.733e-06/0.5749, allocations: 0 / 419.8 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005455/0.5755, allocations: 213.4 kB / 420 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.5756, allocations: 89.05 kB / 420.1 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.5757, allocations: 107.2 kB / 420.2 MB, free: 0.543 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.5757, allocations: 25.7 kB / 420.2 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.48e-05/0.5758, allocations: 80.14 kB / 420.3 MB, free: 440 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.558e-05/0.5758, allocations: 22.27 kB / 420.3 MB, free: 420 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.423e-05/0.5759, allocations: 6.938 kB / 420.3 MB, free: 416 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.576, allocations: 310.8 kB / 420.6 MB, free: 96 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.5761, allocations: 43.09 kB / 420.7 MB, free: 56 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.951e-05/0.5762, allocations: 47.09 kB / 420.7 MB, free: 12 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.5764, allocations: 73.11 kB / 420.8 MB, free: 15.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.5765, allocations: 4 kB / 420.8 MB, free: 15.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004706/0.5769, allocations: 197.7 kB / 421 MB, free: 15.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.208e-05/0.577, allocations: 40.94 kB / 421 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.577, allocations: 0 / 421 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.5771, allocations: 0 / 421 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.902e-05/0.5771, allocations: 3.953 kB / 421 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.5771, allocations: 0 / 421 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.441e-05/0.5772, allocations: 4 kB / 421 MB, free: 15.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.66e-05/0.5772, allocations: 19.88 kB / 421 MB, free: 15.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0001211/0.5773, allocations: 137.7 kB / 421.2 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.5774, allocations: 7.906 kB / 421.2 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.723e-05/0.5774, allocations: 11.69 kB / 421.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.5775, allocations: 0 / 421.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.5775, allocations: 3.953 kB / 421.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.5775, allocations: 0 / 421.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007574/0.5783, allocations: 466.5 kB / 421.7 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.5783, allocations: 4 kB / 421.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.181e-05/0.5783, allocations: 8.625 kB / 421.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.5783, allocations: 0 / 421.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.5783, allocations: 4 kB / 421.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.5784, allocations: 3.953 kB / 421.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5784, allocations: 0.5 kB / 421.7 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005749/0.5789, allocations: 324.8 kB / 422 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.11e-05/0.579, allocations: 85.02 kB / 422.1 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.5791, allocations: 4 kB / 422.1 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.108e-05/0.5792, allocations: 8.062 kB / 422.1 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.07e-05/0.5792, allocations: 7.938 kB / 422.1 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.5792, allocations: 19.23 kB / 422.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.388e-05/0.5793, allocations: 86.34 kB / 422.2 MB, free: 14.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5793, allocations: 0 / 422.2 MB, free: 14.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003165/0.5797, allocations: 12 kB / 422.2 MB, free: 14.42 MB / 346.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: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001068/0.5807, allocations: 0.8981 MB / 423.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002705/0.581, allocations: 136 kB / 423.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.581, allocations: 0 / 423.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.5812, allocations: 111.7 kB / 423.4 MB, free: 13.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.5814, allocations: 7.953 kB / 423.4 MB, free: 13.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005151/0.5819, allocations: 163.2 kB / 423.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.5823, allocations: 0.6848 MB / 424.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.204e-05/0.5823, allocations: 4.484 kB / 424.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.5824, allocations: 18.31 kB / 424.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of SimCode: time 8.32e-07/0.5824, allocations: 0 / 424.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.6069, allocations: 1.536 MB / 425.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003565/0.6074, allocations: 201.7 kB / 426 MB, free: 10.68 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/3.009, allocations: 0 / 426 MB, free: 10.68 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat