Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.066/2.066, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.751e-05/3.751e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.101, allocations: 48.71 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3947/0.4957, allocations: 74.02 MB / 390.3 MB, free: 2.312 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.496, allocations: 67.78 kB / 390.4 MB, free: 2.277 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008743/0.5048, allocations: 1.642 MB / 392 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5048, allocations: 0 / 392 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.5048, allocations: 7.062 kB / 392 MB, free: 0.8789 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007399/0.5056, allocations: 380 kB / 392.4 MB, free: 480 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.5057, allocations: 8.031 kB / 392.4 MB, free: 472 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.227e-05/0.5057, allocations: 15.89 kB / 392.4 MB, free: 456 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.5061, allocations: 206 kB / 392.6 MB, free: 220 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.5062, allocations: 0.9844 kB / 392.6 MB, free: 220 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.5062, allocations: 8 kB / 392.6 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001858/0.5064, allocations: 34.48 kB / 392.7 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.5067, allocations: 77.72 kB / 392.7 MB, free: 120 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.5067, allocations: 4 kB / 392.8 MB, free: 116 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.417e-05/0.5068, allocations: 4 kB / 392.8 MB, free: 112 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.5068, allocations: 0 / 392.8 MB, free: 112 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008579/0.5077, allocations: 356.6 kB / 393.1 MB, free: 15.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.5079, allocations: 52.23 kB / 393.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.175e-05/0.508, allocations: 26.58 kB / 393.2 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.508, allocations: 0 / 393.2 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.5083, allocations: 96.02 kB / 393.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.555e-06/0.5083, allocations: 0 / 393.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003613/0.5087, allocations: 89.61 kB / 393.4 MB, free: 15.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.5088, allocations: 55.39 kB / 393.4 MB, free: 15.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.509, allocations: 127 kB / 393.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.509, allocations: 25.7 kB / 393.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.5091, allocations: 165.8 kB / 393.7 MB, free: 15.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.549e-05/0.5092, allocations: 30.77 kB / 393.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/0.5092, allocations: 4 kB / 393.8 MB, free: 15.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.5094, allocations: 310.8 kB / 394.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.446e-05/0.5095, allocations: 23.25 kB / 394.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.5097, allocations: 70.28 kB / 394.2 MB, free: 14.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.5098, allocations: 30.36 kB / 394.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.5098, allocations: 0 / 394.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000377/0.5102, allocations: 108.3 kB / 394.3 MB, free: 14.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.5103, allocations: 10.34 kB / 394.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5103, allocations: 3.953 kB / 394.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.5103, allocations: 7.984 kB / 394.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/0.5106, allocations: 28.16 kB / 394.3 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.5106, allocations: 7.984 kB / 394.3 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.5108, allocations: 11.84 kB / 394.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.5108, allocations: 7.312 kB / 394.4 MB, free: 14.5 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001216/0.511, allocations: 105 kB / 394.5 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002983/0.5113, allocations: 93.3 kB / 394.6 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.5114, allocations: 11.86 kB / 394.6 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.685e-05/0.5114, allocations: 14.31 kB / 394.6 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.5115, allocations: 7.984 kB / 394.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.5115, allocations: 0 / 394.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.5115, allocations: 4 kB / 394.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.5118, allocations: 171.3 kB / 394.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.5118, allocations: 0 / 394.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.512, allocations: 15.92 kB / 394.8 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.877e-05/0.5121, allocations: 4 kB / 394.8 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.436e-05/0.5121, allocations: 7.891 kB / 394.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.5121, allocations: 3.938 kB / 394.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.5121, allocations: 0 / 394.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.5126, allocations: 146.4 kB / 394.9 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.5128, allocations: 91.97 kB / 395 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.127e-05/0.5128, allocations: 4 kB / 395 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.513, allocations: 7.953 kB / 395 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.747e-05/0.5131, allocations: 7.422 kB / 395 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.5131, allocations: 4 kB / 395.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.5133, allocations: 104.9 kB / 395.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5133, allocations: 4 kB / 395.2 MB, free: 13.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005772/0.5139, allocations: 26.72 kB / 395.2 MB, free: 13.67 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009206/0.5148, allocations: 0.6786 MB / 395.9 MB, free: 12.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.5151, allocations: 62.83 kB / 395.9 MB, free: 12.94 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.5151, allocations: 8.125 kB / 395.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.5153, allocations: 22.56 kB / 396 MB, free: 12.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.5156, allocations: 15.2 kB / 396 MB, free: 12.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.5166, allocations: 231.7 kB / 396.2 MB, free: 12.65 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.5171, allocations: 0.7117 MB / 396.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.5172, allocations: 29.05 kB / 396.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5172, allocations: 4 kB / 396.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.529/3.046, allocations: 1.753 MB / 398.7 MB, free: 10.15 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat