Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.444/2.444, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.78e-05/4.793e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4134/0.4135, allocations: 54.86 MB / 359.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.5647, allocations: 80.81 MB / 440.7 MB, free: 80 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.565, allocations: 67.95 kB / 440.7 MB, free: 12 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007673/0.5727, allocations: 1.646 MB / 442.4 MB, free: 14.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5728, allocations: 0 / 442.4 MB, free: 14.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.5728, allocations: 3.5 kB / 442.4 MB, free: 14.39 MB / 378.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.0006573/0.5735, allocations: 382.2 kB / 442.8 MB, free: 13.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.5736, allocations: 12.03 kB / 442.8 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.974e-05/0.5736, allocations: 34.56 kB / 442.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.263e-05/0.5737, allocations: 15.91 kB / 442.8 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.574, allocations: 208.6 kB / 443 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.5741, allocations: 4 kB / 443 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.5741, allocations: 8 kB / 443 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002463/0.5744, allocations: 77.66 kB / 443.1 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.5744, allocations: 4.812 kB / 443.1 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.5744, allocations: 7.953 kB / 443.1 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.5745, allocations: 3.938 kB / 443.1 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.5746, allocations: 39.98 kB / 443.2 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007662/0.5754, allocations: 372.5 kB / 443.5 MB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.5756, allocations: 62.56 kB / 443.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.003e-05/0.5757, allocations: 16.92 kB / 443.6 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.5757, allocations: 4 kB / 443.6 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.5759, allocations: 93.98 kB / 443.7 MB, free: 12.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.765e-06/0.576, allocations: 0 / 443.7 MB, free: 12.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003347/0.5763, allocations: 97.52 kB / 443.8 MB, free: 12.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.5764, allocations: 51.41 kB / 443.8 MB, free: 12.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.5765, allocations: 122 kB / 444 MB, free: 12.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.5766, allocations: 33.7 kB / 444 MB, free: 12.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.5767, allocations: 170.7 kB / 444.2 MB, free: 12.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.5e-05/0.5768, allocations: 30.92 kB / 444.2 MB, free: 12.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.5768, allocations: 4 kB / 444.2 MB, free: 12.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.577, allocations: 314.8 kB / 444.5 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.015e-05/0.5771, allocations: 20 kB / 444.5 MB, free: 12.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.5772, allocations: 80.52 kB / 444.6 MB, free: 11.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.5773, allocations: 31.94 kB / 444.6 MB, free: 11.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.5773, allocations: 4 kB / 444.6 MB, free: 11.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003149/0.5777, allocations: 126.3 kB / 444.8 MB, free: 11.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.5777, allocations: 5.719 kB / 444.8 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.5777, allocations: 4 kB / 444.8 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.5777, allocations: 4 kB / 444.8 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.578, allocations: 19.98 kB / 444.8 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.578, allocations: 7.938 kB / 444.8 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.5781, allocations: 16.12 kB / 444.8 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.5782, allocations: 5.031 kB / 444.8 MB, free: 11.7 MB / 378.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.0001152/0.5783, allocations: 124.9 kB / 444.9 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.763e-05/0.5783, allocations: 7.906 kB / 445 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.817e-05/0.5784, allocations: 12.62 kB / 445 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.5784, allocations: 3.375 kB / 445 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5784, allocations: 0 / 445 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.5785, allocations: 0 / 445 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.5787, allocations: 205.8 kB / 445.2 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5787, allocations: 3.953 kB / 445.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.5789, allocations: 19.92 kB / 445.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.5789, allocations: 0 / 445.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.579, allocations: 0.6562 kB / 445.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.579, allocations: 0 / 445.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.579, allocations: 0 / 445.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004044/0.5794, allocations: 161.9 kB / 445.4 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.5795, allocations: 89.03 kB / 445.4 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.5795, allocations: 4.031 kB / 445.4 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.5797, allocations: 4 kB / 445.4 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.5797, allocations: 7.984 kB / 445.5 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.5798, allocations: 4 kB / 445.5 MB, free: 10.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001105/0.5799, allocations: 105.6 kB / 445.6 MB, free: 10.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5799, allocations: 1.406 kB / 445.6 MB, free: 10.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.5802, allocations: 31.84 kB / 445.6 MB, free: 10.84 MB / 378.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.0007824/0.581, allocations: 0.6944 MB / 446.3 MB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.5813, allocations: 64.14 kB / 446.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5813, allocations: 0 / 446.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.5814, allocations: 35.92 kB / 446.4 MB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.5817, allocations: 9.375 kB / 446.4 MB, free: 10.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000752/0.5824, allocations: 234 kB / 446.6 MB, free: 9.746 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.5828, allocations: 0.7043 MB / 447.3 MB, free: 9.016 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.926e-05/0.5829, allocations: 27.42 kB / 447.4 MB, free: 8.988 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5829, allocations: 0 / 447.4 MB, free: 8.988 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.463/3.046, allocations: 1.773 MB / 449.1 MB, free: 7.23 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat