Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.484/2.484, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.761e-05, allocations: 1.062 kB / 249.8 MB, free: 5.281 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5193/0.6281, allocations: 69.04 MB / 363.3 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000381/0.6285, allocations: 57.19 kB / 363.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005233/0.6338, allocations: 0.8221 MB / 364.2 MB, free: 22.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.6339, allocations: 1.562 kB / 364.2 MB, free: 22.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.6339, allocations: 1.312 kB / 364.2 MB, free: 22.88 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.0004609/0.6344, allocations: 332.7 kB / 364.5 MB, free: 22.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.813e-05/0.6345, allocations: 15.3 kB / 364.5 MB, free: 22.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/0.6346, allocations: 2.969 kB / 364.5 MB, free: 22.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.6347, allocations: 165.7 kB / 364.7 MB, free: 22.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.6348, allocations: 0 / 364.7 MB, free: 22.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.6348, allocations: 2.25 kB / 364.7 MB, free: 22.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002176/0.6351, allocations: 43.67 kB / 364.7 MB, free: 22.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.6354, allocations: 99.66 kB / 364.8 MB, free: 22.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.6355, allocations: 4 kB / 364.8 MB, free: 22.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.567e-05/0.6355, allocations: 3.594 kB / 364.9 MB, free: 22.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.6356, allocations: 4.672 kB / 364.9 MB, free: 22.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002594/0.6358, allocations: 153.1 kB / 365 MB, free: 22.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.6361, allocations: 112.7 kB / 365.1 MB, free: 21.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.6364, allocations: 63.86 kB / 365.2 MB, free: 21.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.005e-05/0.6365, allocations: 0 / 365.2 MB, free: 21.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/0.6365, allocations: 35.09 kB / 365.2 MB, free: 21.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 3.686e-06/0.6365, allocations: 4 kB / 365.2 MB, free: 21.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0008323/0.6374, allocations: 166.1 kB / 365.4 MB, free: 21.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.6375, allocations: 130.9 kB / 365.5 MB, free: 21.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.6377, allocations: 107.4 kB / 365.6 MB, free: 21.6 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.6377, allocations: 31.11 kB / 365.6 MB, free: 21.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.679e-05/0.6378, allocations: 81.36 kB / 365.7 MB, free: 21.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.87e-05/0.6379, allocations: 10.5 kB / 365.7 MB, free: 21.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.749e-05/0.6379, allocations: 4.125 kB / 365.7 MB, free: 21.47 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.38e-05/0.638, allocations: 313.9 kB / 366 MB, free: 21.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.6382, allocations: 34.69 kB / 366.1 MB, free: 21.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.6384, allocations: 60.98 kB / 366.1 MB, free: 21.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.6387, allocations: 36.16 kB / 366.2 MB, free: 21.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.6387, allocations: 4 kB / 366.2 MB, free: 21.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000528/0.6392, allocations: 121 kB / 366.3 MB, free: 21.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.6393, allocations: 9.234 kB / 366.3 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.6393, allocations: 3.906 kB / 366.3 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.6394, allocations: 0 / 366.3 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.17e-05/0.6394, allocations: 5.594 kB / 366.3 MB, free: 21.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.6395, allocations: 3.938 kB / 366.3 MB, free: 21.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.283e-05/0.6396, allocations: 3.875 kB / 366.3 MB, free: 21.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.044e-05/0.6397, allocations: 9.734 kB / 366.3 MB, free: 21.08 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.0001492/0.6398, allocations: 108.6 kB / 366.4 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006882/0.6405, allocations: 167.4 kB / 366.6 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.972e-05/0.6406, allocations: 7.859 kB / 366.6 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.299e-05/0.6407, allocations: 5.141 kB / 366.6 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.639e-06/0.6407, allocations: 5.422 kB / 366.6 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.6407, allocations: 3.172 kB / 366.6 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.6408, allocations: 3.875 kB / 366.6 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.641, allocations: 138.7 kB / 366.8 MB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.371e-06/0.641, allocations: 0.875 kB / 366.8 MB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.582e-06/0.6411, allocations: 5.156 kB / 366.8 MB, free: 20.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.057e-05/0.6411, allocations: 3.953 kB / 366.8 MB, free: 20.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/0.6411, allocations: 13.12 kB / 366.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.6412, allocations: 0 / 366.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.6412, allocations: 4.438 kB / 366.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006739/0.6419, allocations: 244.8 kB / 367 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.765e-05/0.642, allocations: 81.02 kB / 367.1 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.6421, allocations: 5.812 kB / 367.1 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.176e-05/0.6422, allocations: 0 / 367.1 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.811e-05/0.6422, allocations: 13.81 kB / 367.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.189e-05/0.6423, allocations: 11.78 kB / 367.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.6424, allocations: 89.59 kB / 367.2 MB, free: 20.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.6424, allocations: 0 / 367.2 MB, free: 20.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006316/0.6431, allocations: 11.7 kB / 367.2 MB, free: 20.42 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.001629/0.6447, allocations: 1.013 MB / 368.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002563/0.645, allocations: 65 kB / 368.3 MB, free: 19.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.6451, allocations: 0 / 368.3 MB, free: 19.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.6452, allocations: 30.08 kB / 368.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.6455, allocations: 6.734 kB / 368.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.6465, allocations: 160.1 kB / 368.5 MB, free: 19.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005644/0.6471, allocations: 0.6828 MB / 369.2 MB, free: 18.69 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.187e-05/0.6472, allocations: 0 / 369.2 MB, free: 18.69 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.41e-05/0.6473, allocations: 17.67 kB / 369.2 MB, free: 18.69 MB / 314.7 MB Notification: Performance of SimCode: time 1.502e-06/0.6473, allocations: 0 / 369.2 MB, free: 18.69 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04981/0.6971, allocations: 1.026 MB / 370.2 MB, free: 18.6 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003404/0.6975, allocations: 180.9 kB / 370.4 MB, free: 18.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 2.92/3.618, allocations: 0 / 370.4 MB, free: 18.41 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat