Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.361/2.361, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.961e-05/3.973e-05, allocations: 0 / 292.7 MB, free: 8.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1327, allocations: 50.42 MB / 343.1 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5624/0.6951, allocations: 75.12 MB / 418.3 MB, free: 2.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.6955, allocations: 60.84 kB / 418.3 MB, free: 2.699 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003459/0.699, allocations: 0.8285 MB / 419.2 MB, free: 1.949 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.699, allocations: 0 / 419.2 MB, free: 1.949 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.6991, allocations: 0 / 419.2 MB, free: 1.949 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.0004749/0.6995, allocations: 355.9 kB / 419.5 MB, free: 1.555 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.822e-05/0.6996, allocations: 12.02 kB / 419.5 MB, free: 1.543 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.6997, allocations: 46.11 kB / 419.6 MB, free: 1.492 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/0.6998, allocations: 7.859 kB / 419.6 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.7001, allocations: 167 kB / 419.7 MB, free: 1.281 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.7001, allocations: 4 kB / 419.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.7001, allocations: 6.844 kB / 419.7 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003081/0.7005, allocations: 89.27 kB / 419.8 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.7005, allocations: 0 / 419.8 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.7005, allocations: 0 / 419.8 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.7005, allocations: 3.953 kB / 419.8 MB, free: 1.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.7007, allocations: 39.97 kB / 419.9 MB, free: 1.145 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004518/0.7012, allocations: 252.8 kB / 420.1 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.7014, allocations: 74.36 kB / 420.2 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.7016, allocations: 60.39 kB / 420.3 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.7017, allocations: 7.984 kB / 420.3 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.111e-05/0.7017, allocations: 60.25 kB / 420.3 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 2.785e-06/0.7018, allocations: 0 / 420.3 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007558/0.7025, allocations: 223.3 kB / 420.5 MB, free: 436 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/0.7026, allocations: 81.11 kB / 420.6 MB, free: 336 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.7028, allocations: 104.9 kB / 420.7 MB, free: 228 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.7029, allocations: 29.7 kB / 420.7 MB, free: 192 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.92e-05/0.7029, allocations: 84.02 kB / 420.8 MB, free: 108 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.754e-05/0.703, allocations: 19.7 kB / 420.8 MB, free: 88 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.343e-05/0.703, allocations: 0 / 420.8 MB, free: 88 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002308/0.7033, allocations: 318.5 kB / 421.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.7034, allocations: 43.72 kB / 421.2 MB, free: 15.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.7036, allocations: 39.97 kB / 421.2 MB, free: 15.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.7038, allocations: 81.48 kB / 421.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.7039, allocations: 0 / 421.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006599/0.7045, allocations: 209.7 kB / 421.5 MB, free: 15.4 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.858e-05/0.7046, allocations: 37.52 kB / 421.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.7046, allocations: 4 kB / 421.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.7047, allocations: 0 / 421.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.467e-05/0.7047, allocations: 7.891 kB / 421.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.7047, allocations: 0 / 421.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.762e-05/0.7048, allocations: 4 kB / 421.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/0.7049, allocations: 7.984 kB / 421.6 MB, free: 15.34 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.000164/0.7051, allocations: 142.6 kB / 421.7 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-05/0.7051, allocations: 7.906 kB / 421.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.7052, allocations: 8.609 kB / 421.7 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.7052, allocations: 0 / 421.7 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.7052, allocations: 3.953 kB / 421.7 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.7053, allocations: 4 kB / 421.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.7063, allocations: 467.3 kB / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.7064, allocations: 4 kB / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.264e-05/0.7064, allocations: 0 / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.7064, allocations: 0 / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.7064, allocations: 7.984 kB / 422.2 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.7065, allocations: 3.953 kB / 422.2 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7065, allocations: 0 / 422.2 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007308/0.7072, allocations: 320.4 kB / 422.5 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.203e-05/0.7073, allocations: 81.02 kB / 422.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/0.7074, allocations: 4.875 kB / 422.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.7075, allocations: 4 kB / 422.6 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.7076, allocations: 15.75 kB / 422.6 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.99e-05/0.7076, allocations: 11.94 kB / 422.6 MB, free: 14.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.21e-05/0.7077, allocations: 91.72 kB / 422.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7077, allocations: 0 / 422.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006013/0.7084, allocations: 12 kB / 422.7 MB, free: 14.1 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.001475/0.7098, allocations: 0.8956 MB / 423.6 MB, free: 13.21 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.7103, allocations: 140.1 kB / 423.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.7103, allocations: 6.562 kB / 423.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001749/0.7105, allocations: 99.27 kB / 423.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.7108, allocations: 15.77 kB / 423.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007868/0.7116, allocations: 161.1 kB / 424.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.7121, allocations: 0.6848 MB / 424.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.109e-05/0.7121, allocations: 8.438 kB / 424.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.057e-05/0.7122, allocations: 10.69 kB / 424.8 MB, free: 12.04 MB / 346.7 MB Notification: Performance of SimCode: time 1.844e-06/0.7122, allocations: 0 / 424.8 MB, free: 12.04 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.7368, allocations: 1.53 MB / 426.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003197/0.7372, allocations: 202.9 kB / 426.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.615/3.353, allocations: 0 / 426.5 MB, free: 10.36 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat