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.231/2.231, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.699e-05, allocations: 4 kB / 255.5 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 44.5 MB / 300 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1367/0.2434, allocations: 69.71 MB / 369.7 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.2438, allocations: 63.97 kB / 369.7 MB, free: 212 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2595/0.5033, allocations: 0.8124 MB / 370.6 MB, free: 70.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.5033, allocations: 0 / 370.6 MB, free: 70.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.5034, allocations: 1.312 kB / 370.6 MB, free: 70.29 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.0002996/0.5037, allocations: 339 kB / 370.9 MB, free: 69.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.5037, allocations: 8.656 kB / 370.9 MB, free: 69.95 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.577e-05/0.5038, allocations: 38.86 kB / 370.9 MB, free: 69.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.606e-05/0.5039, allocations: 7 kB / 370.9 MB, free: 69.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.454e-05/0.504, allocations: 177.5 kB / 371.1 MB, free: 69.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.504, allocations: 3.156 kB / 371.1 MB, free: 69.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.5041, allocations: 2.594 kB / 371.1 MB, free: 69.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.5043, allocations: 114.9 kB / 371.2 MB, free: 69.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.5043, allocations: 2.094 kB / 371.2 MB, free: 69.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.5043, allocations: 1.844 kB / 371.2 MB, free: 69.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.5044, allocations: 1.219 kB / 371.2 MB, free: 69.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.5045, allocations: 51.59 kB / 371.3 MB, free: 69.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000343/0.5049, allocations: 0.4927 MB / 371.8 MB, free: 69.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.5051, allocations: 122.6 kB / 371.9 MB, free: 69.02 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.5052, allocations: 84.02 kB / 372 MB, free: 68.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.5053, allocations: 2.188 kB / 372 MB, free: 68.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.5053, allocations: 35.58 kB / 372 MB, free: 68.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.465e-06/0.5053, allocations: 0.5625 kB / 372 MB, free: 68.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006636/0.506, allocations: 186.9 kB / 372.2 MB, free: 68.9 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.5061, allocations: 136 kB / 372.3 MB, free: 68.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.923e-05/0.5062, allocations: 104.6 kB / 372.4 MB, free: 68.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.5062, allocations: 27.95 kB / 372.5 MB, free: 68.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.211e-05/0.5063, allocations: 84.78 kB / 372.5 MB, free: 68.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.5063, allocations: 20.77 kB / 372.6 MB, free: 68.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.244e-05/0.5063, allocations: 6.781 kB / 372.6 MB, free: 68.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.376e-05/0.5064, allocations: 319.8 kB / 372.9 MB, free: 68.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.5065, allocations: 44.33 kB / 372.9 MB, free: 68.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.5067, allocations: 64.72 kB / 373 MB, free: 68.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.5069, allocations: 48.08 kB / 373 MB, free: 68.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.5069, allocations: 0.7188 kB / 373 MB, free: 68.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003788/0.5073, allocations: 142.3 kB / 373.2 MB, free: 68.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.5073, allocations: 5.625 kB / 373.2 MB, free: 68.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.5073, allocations: 1.094 kB / 373.2 MB, free: 68.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.5073, allocations: 2.594 kB / 373.2 MB, free: 68.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.98e-05/0.5074, allocations: 4.609 kB / 373.2 MB, free: 68.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.5074, allocations: 1.219 kB / 373.2 MB, free: 68.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.481e-05/0.5075, allocations: 4.016 kB / 373.2 MB, free: 68.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.203e-05/0.5075, allocations: 14.41 kB / 373.2 MB, free: 68.12 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: 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 (8): * Single equations (assignments): 8 * 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 6.81e-05/0.5076, allocations: 115.2 kB / 373.3 MB, free: 68.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.667e-05/0.5077, allocations: 8.188 kB / 373.3 MB, free: 68.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.577e-05/0.5078, allocations: 9.234 kB / 373.3 MB, free: 68.01 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.205e-05/0.5078, allocations: 3.906 kB / 373.3 MB, free: 68.01 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.5078, allocations: 1.219 kB / 373.3 MB, free: 68.01 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.5078, allocations: 2.281 kB / 373.3 MB, free: 68.01 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008564/0.5087, allocations: 0.6464 MB / 374 MB, free: 67.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.5087, allocations: 1.859 kB / 374 MB, free: 67.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.168e-05/0.5087, allocations: 2.578 kB / 374 MB, free: 67.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.5088, allocations: 2.094 kB / 374 MB, free: 67.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.5088, allocations: 8.422 kB / 374 MB, free: 67.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.5088, allocations: 6.797 kB / 374 MB, free: 67.47 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.5088, allocations: 1.188 kB / 374 MB, free: 67.47 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004857/0.5093, allocations: 0.5258 MB / 374.5 MB, free: 67.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.954e-05/0.5093, allocations: 85.09 kB / 374.6 MB, free: 66.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.5094, allocations: 15.55 kB / 374.6 MB, free: 66.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.5096, allocations: 3.156 kB / 374.6 MB, free: 66.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.162e-05/0.5096, allocations: 10.2 kB / 374.7 MB, free: 66.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.5097, allocations: 14.72 kB / 374.7 MB, free: 66.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.287e-05/0.5097, allocations: 94.11 kB / 374.8 MB, free: 66.87 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5097, allocations: 0 / 374.8 MB, free: 66.87 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004962/0.5102, allocations: 14.42 kB / 374.8 MB, free: 66.86 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: 8 (success4,$outputAlias_success4,success3,$outputAlias_success3,success2,$outputAlias_success2,success1,$outputAlias_success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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.0009281/0.5112, allocations: 1.316 MB / 376.1 MB, free: 65.72 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.5114, allocations: 75.05 kB / 376.2 MB, free: 65.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5114, allocations: 1.344 kB / 376.2 MB, free: 65.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.271e-05/0.5115, allocations: 42.28 kB / 376.2 MB, free: 65.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.5119, allocations: 4.453 kB / 376.2 MB, free: 65.71 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006624/0.5126, allocations: 181.3 kB / 376.4 MB, free: 65.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.5128, allocations: 0.6876 MB / 377.1 MB, free: 64.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.107e-05/0.5128, allocations: 5.156 kB / 377.1 MB, free: 64.87 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.568e-05/0.5129, allocations: 20.08 kB / 377.1 MB, free: 64.87 MB / 314.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5129, allocations: 0 / 377.1 MB, free: 64.87 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0896/0.6025, allocations: 1.481 MB / 378.6 MB, free: 64.62 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.6027, allocations: 199.6 kB / 378.8 MB, free: 64.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.388/2.99, allocations: 0 / 378.8 MB, free: 64.38 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