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.055/2.055, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.617e-05/4.642e-05, allocations: 4 kB / 255.4 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1339, allocations: 44.52 MB / 299.9 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.2722, allocations: 69.71 MB / 369.7 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.2725, allocations: 55.97 kB / 369.7 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2392/0.5118, allocations: 0.8195 MB / 370.5 MB, free: 71.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5118, allocations: 0 / 370.5 MB, free: 71.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.5118, allocations: 0 / 370.5 MB, free: 71.18 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.0002885/0.5121, allocations: 334.6 kB / 370.9 MB, free: 70.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.5122, allocations: 14.33 kB / 370.9 MB, free: 70.84 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.442e-05/0.5123, allocations: 42.28 kB / 370.9 MB, free: 70.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.636e-05/0.5123, allocations: 6.719 kB / 370.9 MB, free: 70.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.431e-05/0.5124, allocations: 169 kB / 371.1 MB, free: 70.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.5124, allocations: 2.969 kB / 371.1 MB, free: 70.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.5125, allocations: 5.594 kB / 371.1 MB, free: 70.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.5127, allocations: 115 kB / 371.2 MB, free: 70.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.5127, allocations: 0 / 371.2 MB, free: 70.53 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.5128, allocations: 2.344 kB / 371.2 MB, free: 70.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.5128, allocations: 2.094 kB / 371.2 MB, free: 70.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.5129, allocations: 49.48 kB / 371.3 MB, free: 70.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003249/0.5133, allocations: 0.4905 MB / 371.7 MB, free: 70.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.5135, allocations: 129.7 kB / 371.9 MB, free: 69.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.5137, allocations: 79.67 kB / 372 MB, free: 69.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.5137, allocations: 5.031 kB / 372 MB, free: 69.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.5137, allocations: 37.48 kB / 372 MB, free: 69.83 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.054e-06/0.5137, allocations: 0 / 372 MB, free: 69.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006684/0.5144, allocations: 189.4 kB / 372.2 MB, free: 69.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.5145, allocations: 136.2 kB / 372.3 MB, free: 69.63 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.5146, allocations: 101.6 kB / 372.4 MB, free: 69.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.5146, allocations: 27.55 kB / 372.4 MB, free: 69.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.51e-05/0.5147, allocations: 84.86 kB / 372.5 MB, free: 69.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.953e-05/0.5148, allocations: 23.55 kB / 372.5 MB, free: 69.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.5148, allocations: 3.188 kB / 372.5 MB, free: 69.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.708e-05/0.5149, allocations: 323.7 kB / 372.9 MB, free: 69.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.515, allocations: 38.92 kB / 372.9 MB, free: 69.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.5152, allocations: 69.25 kB / 373 MB, free: 69.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.5153, allocations: 49.23 kB / 373 MB, free: 69.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5154, allocations: 4.438 kB / 373 MB, free: 69.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004051/0.5158, allocations: 138.4 kB / 373.2 MB, free: 69.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.5158, allocations: 10.34 kB / 373.2 MB, free: 69.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.5158, allocations: 1.25 kB / 373.2 MB, free: 69.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.5159, allocations: 2.422 kB / 373.2 MB, free: 69.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.267e-05/0.5159, allocations: 4.531 kB / 373.2 MB, free: 69.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.5159, allocations: 1.516 kB / 373.2 MB, free: 69.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.823e-05/0.516, allocations: 5.344 kB / 373.2 MB, free: 69.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.301e-05/0.516, allocations: 8.422 kB / 373.2 MB, free: 69.02 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 7.478e-05/0.5161, allocations: 119.8 kB / 373.3 MB, free: 68.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.5162, allocations: 7.594 kB / 373.3 MB, free: 68.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.5163, allocations: 17.53 kB / 373.3 MB, free: 68.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.5163, allocations: 2.719 kB / 373.3 MB, free: 68.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5163, allocations: 1.469 kB / 373.3 MB, free: 68.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.5163, allocations: 1.594 kB / 373.3 MB, free: 68.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008482/0.5172, allocations: 0.6453 MB / 374 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.5172, allocations: 5.188 kB / 374 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.429e-05/0.5172, allocations: 2.719 kB / 374 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.5173, allocations: 1.375 kB / 374 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.5173, allocations: 4.984 kB / 374 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.5173, allocations: 1.188 kB / 374 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5173, allocations: 2.062 kB / 374 MB, free: 68.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005398/0.5179, allocations: 0.5335 MB / 374.5 MB, free: 67.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.095e-05/0.5179, allocations: 88.62 kB / 374.6 MB, free: 67.85 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.518, allocations: 6.062 kB / 374.6 MB, free: 67.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.5181, allocations: 6.469 kB / 374.6 MB, free: 67.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.5182, allocations: 5.094 kB / 374.6 MB, free: 67.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.5182, allocations: 12.81 kB / 374.6 MB, free: 67.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.374e-05/0.5183, allocations: 93.27 kB / 374.7 MB, free: 67.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5183, allocations: 0 / 374.7 MB, free: 67.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004484/0.5188, allocations: 16.78 kB / 374.8 MB, free: 67.76 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.0009305/0.5197, allocations: 1.307 MB / 376.1 MB, free: 66.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.52, allocations: 85.03 kB / 376.1 MB, free: 66.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.52, allocations: 0 / 376.1 MB, free: 66.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.019e-05/0.5201, allocations: 45.23 kB / 376.2 MB, free: 66.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.5204, allocations: 6.781 kB / 376.2 MB, free: 66.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006472/0.521, allocations: 182.1 kB / 376.4 MB, free: 66.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.5212, allocations: 0.6913 MB / 377.1 MB, free: 65.76 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.255e-05/0.5213, allocations: 4.516 kB / 377.1 MB, free: 65.76 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.271e-05/0.5213, allocations: 19.3 kB / 377.1 MB, free: 65.75 MB / 314.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5214, allocations: 0 / 377.1 MB, free: 65.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.5458, allocations: 1.476 MB / 378.6 MB, free: 65.51 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002448/0.5461, allocations: 192.9 kB / 378.8 MB, free: 65.28 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.35/2.896, allocations: 0 / 378.8 MB, free: 65.28 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