Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.122/2.122, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.163e-05/4.197e-05, allocations: 4 kB / 269.4 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1395, allocations: 47.57 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4394/0.579, allocations: 74 MB / 391 MB, free: 14.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.5792, allocations: 62.72 kB / 391.1 MB, free: 13.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002738/0.582, allocations: 0.8217 MB / 391.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.582, allocations: 0 / 391.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.5821, allocations: 0 / 391.9 MB, free: 13.24 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.0003977/0.5825, allocations: 363.5 kB / 392.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.5825, allocations: 12.03 kB / 392.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.102e-05/0.5826, allocations: 45.58 kB / 392.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.5827, allocations: 0 / 392.3 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.5828, allocations: 163.1 kB / 392.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.5829, allocations: 0 / 392.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.5829, allocations: 11.89 kB / 392.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.5831, allocations: 87.14 kB / 392.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.5831, allocations: 3.938 kB / 392.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.5832, allocations: 4 kB / 392.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.5832, allocations: 0 / 392.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.5833, allocations: 43.09 kB / 392.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.5837, allocations: 248.5 kB / 392.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001755/0.5838, allocations: 81.03 kB / 392.9 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.584, allocations: 59.52 kB / 393 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.584, allocations: 8 kB / 393 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.236e-05/0.5841, allocations: 59.64 kB / 393.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.775e-06/0.5841, allocations: 2.297 kB / 393.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005722/0.5847, allocations: 214.6 kB / 393.3 MB, free: 11.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.5848, allocations: 77.11 kB / 393.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.5849, allocations: 108.7 kB / 393.4 MB, free: 11.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.5849, allocations: 29.7 kB / 393.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.585, allocations: 80.14 kB / 393.6 MB, free: 11.4 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.5851, allocations: 27.03 kB / 393.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.5851, allocations: 0 / 393.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.5853, allocations: 322.1 kB / 393.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.5854, allocations: 43.16 kB / 393.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.5855, allocations: 35.98 kB / 394 MB, free: 10.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.5857, allocations: 73.34 kB / 394 MB, free: 10.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5857, allocations: 0 / 394 MB, free: 10.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004686/0.5862, allocations: 217.8 kB / 394.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.207e-05/0.5862, allocations: 33.69 kB / 394.3 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.5862, allocations: 14.56 kB / 394.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.5863, allocations: 0 / 394.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.378e-05/0.5863, allocations: 0 / 394.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.5863, allocations: 0 / 394.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.969e-05/0.5864, allocations: 4 kB / 394.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.5864, allocations: 6.938 kB / 394.3 MB, free: 10.63 MB / 314.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.0001249/0.5866, allocations: 146 kB / 394.5 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.264e-05/0.5866, allocations: 7.953 kB / 394.5 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.5866, allocations: 4.625 kB / 394.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.5867, allocations: 0 / 394.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.5867, allocations: 4 kB / 394.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.5867, allocations: 4 kB / 394.5 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000749/0.5875, allocations: 471.2 kB / 394.9 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.5875, allocations: 0 / 394.9 MB, free: 9.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.286e-05/0.5875, allocations: 3.938 kB / 394.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.5875, allocations: 0 / 394.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.5875, allocations: 4 kB / 394.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5875, allocations: 0 / 394.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.5876, allocations: 3.938 kB / 394.9 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005583/0.5881, allocations: 327 kB / 395.3 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.863e-05/0.5882, allocations: 84.97 kB / 395.4 MB, free: 9.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.5882, allocations: 8.375 kB / 395.4 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.679e-05/0.5883, allocations: 0 / 395.4 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.146e-05/0.5884, allocations: 4 kB / 395.4 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.5884, allocations: 8 kB / 395.4 MB, free: 9.496 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.983e-05/0.5885, allocations: 91.58 kB / 395.5 MB, free: 9.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5885, allocations: 4 kB / 395.5 MB, free: 9.406 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003223/0.5888, allocations: 16 kB / 395.5 MB, free: 9.391 MB / 314.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.001066/0.5899, allocations: 0.916 MB / 396.4 MB, free: 8.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002631/0.5902, allocations: 133.6 kB / 396.5 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5902, allocations: 0 / 396.5 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.5903, allocations: 105.1 kB / 396.6 MB, free: 8.242 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.5905, allocations: 9.844 kB / 396.6 MB, free: 8.238 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005327/0.5911, allocations: 169.4 kB / 396.8 MB, free: 8.043 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.5914, allocations: 0.6848 MB / 397.5 MB, free: 7.332 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.093e-05/0.5914, allocations: 4 kB / 397.5 MB, free: 7.328 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.291e-05/0.5915, allocations: 19.05 kB / 397.5 MB, free: 7.316 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5915, allocations: 0 / 397.5 MB, free: 7.316 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.6123, allocations: 1.517 MB / 399 MB, free: 5.863 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003031/0.6127, allocations: 206.4 kB / 399.2 MB, free: 5.625 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/2.938, allocations: 0 / 399.2 MB, free: 5.625 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat