Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.821e-05/2.826e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3258, allocations: 44.48 MB / 294.2 MB, free: 14.15 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.4602, allocations: 69.04 MB / 363.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.4605, allocations: 63.95 kB / 363.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003341/0.4639, allocations: 0.8109 MB / 364.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.464, allocations: 3.938 kB / 364.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.464, allocations: 0 / 364.1 MB, free: 11.98 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.0004665/0.4645, allocations: 345.3 kB / 364.4 MB, free: 11.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.4646, allocations: 8.031 kB / 364.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.26e-05/0.4646, allocations: 8 kB / 364.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.4648, allocations: 171 kB / 364.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.4648, allocations: 8 kB / 364.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.4649, allocations: 0 / 364.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001599/0.465, allocations: 35.97 kB / 364.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002605/0.4653, allocations: 101.1 kB / 364.8 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.4654, allocations: 0 / 364.8 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/0.4654, allocations: 3.984 kB / 364.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.4654, allocations: 0 / 364.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002639/0.4657, allocations: 164.9 kB / 364.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.4659, allocations: 102.4 kB / 365 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.4661, allocations: 67.47 kB / 365.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-06/0.4661, allocations: 0 / 365.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.711e-05/0.4662, allocations: 34.5 kB / 365.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.655e-06/0.4662, allocations: 0 / 365.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0006234/0.4669, allocations: 169.4 kB / 365.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.715e-05/0.467, allocations: 136.6 kB / 365.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.4671, allocations: 105 kB / 365.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.4672, allocations: 25.7 kB / 365.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.836e-05/0.4673, allocations: 150.6 kB / 365.7 MB, free: 10.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.4673, allocations: 11.91 kB / 365.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.4673, allocations: 0 / 365.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.4675, allocations: 314.8 kB / 366 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.4676, allocations: 35.98 kB / 366.1 MB, free: 9.762 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.4678, allocations: 59.41 kB / 366.1 MB, free: 9.691 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.468, allocations: 35.97 kB / 366.1 MB, free: 9.656 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.468, allocations: 4 kB / 366.2 MB, free: 9.652 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003913/0.4684, allocations: 121.7 kB / 366.3 MB, free: 9.527 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.4684, allocations: 7.953 kB / 366.3 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4685, allocations: 0 / 366.3 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4685, allocations: 4 kB / 366.3 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.199e-05/0.4686, allocations: 7.938 kB / 366.3 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.4686, allocations: 0 / 366.3 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.82e-05/0.4686, allocations: 0 / 366.3 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.741e-05/0.4687, allocations: 15.98 kB / 366.3 MB, free: 9.492 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.0001126/0.4688, allocations: 108.8 kB / 366.4 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005047/0.4694, allocations: 161.6 kB / 366.6 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.4694, allocations: 15.86 kB / 366.6 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.714e-05/0.4695, allocations: 12.62 kB / 366.6 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.4695, allocations: 0 / 366.6 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4695, allocations: 0 / 366.6 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.4695, allocations: 4 kB / 366.6 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.4697, allocations: 138.2 kB / 366.7 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.4697, allocations: 4.25 kB / 366.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.24e-06/0.4698, allocations: 4 kB / 366.7 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.4698, allocations: 4.078 kB / 366.7 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.4698, allocations: 8 kB / 366.8 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.4698, allocations: 0 / 366.8 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/0.4698, allocations: 4 kB / 366.8 MB, free: 8.992 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.4704, allocations: 240.7 kB / 367 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.86e-05/0.4705, allocations: 81.09 kB / 367.1 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.4706, allocations: 4.141 kB / 367.1 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.394e-05/0.4706, allocations: 3.938 kB / 367.1 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.799e-05/0.4707, allocations: 7.984 kB / 367.1 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.4707, allocations: 11.98 kB / 367.1 MB, free: 8.586 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.167e-05/0.4708, allocations: 87.28 kB / 367.2 MB, free: 8.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.4708, allocations: 4 kB / 367.2 MB, free: 8.496 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004969/0.4713, allocations: 15.94 kB / 367.2 MB, free: 8.48 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.0012/0.4726, allocations: 1.006 MB / 368.2 MB, free: 7.434 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.4728, allocations: 55.98 kB / 368.3 MB, free: 7.379 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.4728, allocations: 4.25 kB / 368.3 MB, free: 7.375 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.343e-05/0.4729, allocations: 31.92 kB / 368.3 MB, free: 7.344 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.4731, allocations: 8 kB / 368.3 MB, free: 7.336 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006346/0.4738, allocations: 179.4 kB / 368.5 MB, free: 7.109 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.4741, allocations: 0.6807 MB / 369.2 MB, free: 6.402 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.877e-05/0.4742, allocations: 15.42 kB / 369.2 MB, free: 6.391 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4742, allocations: 4.25 kB / 369.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.64/3.114, allocations: 0.9602 MB / 370.1 MB, free: 5.426 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat