Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.158/2.158, allocations: 209.3 MB / 221.5 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.49e-05/3.512e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 48.69 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4608/0.5687, allocations: 73.88 MB / 395.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.569, allocations: 59.98 kB / 395.8 MB, free: 15.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004076/0.5731, allocations: 0.9404 MB / 396.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5731, allocations: 0 / 396.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.5732, allocations: 4 kB / 396.7 MB, free: 14.65 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.0004833/0.5737, allocations: 346.5 kB / 397.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.5737, allocations: 12.03 kB / 397.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.191e-05/0.5738, allocations: 30.56 kB / 397.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.5738, allocations: 9 kB / 397.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.5741, allocations: 182.9 kB / 397.3 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.5741, allocations: 4 kB / 397.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.5741, allocations: 0 / 397.3 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.5743, allocations: 45.69 kB / 397.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.5743, allocations: 0 / 397.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.5743, allocations: 4.484 kB / 397.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.5744, allocations: 4 kB / 397.4 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.52e-05/0.5744, allocations: 11.94 kB / 397.4 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.575, allocations: 280.9 kB / 397.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.272e-05/0.5751, allocations: 28.38 kB / 397.7 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.809e-05/0.5751, allocations: 16.86 kB / 397.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.5752, allocations: 0 / 397.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.5754, allocations: 64.27 kB / 397.8 MB, free: 13.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.405e-06/0.5754, allocations: 0 / 397.8 MB, free: 13.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002349/0.5756, allocations: 53.69 kB / 397.8 MB, free: 13.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.5757, allocations: 63.34 kB / 397.9 MB, free: 13.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.5758, allocations: 105.1 kB / 398 MB, free: 13.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.5759, allocations: 29.7 kB / 398 MB, free: 13.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.348e-05/0.5759, allocations: 84.14 kB / 398.1 MB, free: 13.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.485e-05/0.576, allocations: 19.8 kB / 398.1 MB, free: 13.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.64e-06/0.576, allocations: 0 / 398.1 MB, free: 13.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.5761, allocations: 314.8 kB / 398.4 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.984e-05/0.5762, allocations: 8 kB / 398.4 MB, free: 12.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.827e-05/0.5762, allocations: 44.3 kB / 398.5 MB, free: 12.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.744e-05/0.5763, allocations: 11.98 kB / 398.5 MB, free: 12.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5763, allocations: 3.938 kB / 398.5 MB, free: 12.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001876/0.5765, allocations: 77.56 kB / 398.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.5766, allocations: 4 kB / 398.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.5766, allocations: 0 / 398.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.5766, allocations: 4 kB / 398.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.5768, allocations: 11.98 kB / 398.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.5768, allocations: 4 kB / 398.6 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.5769, allocations: 12.59 kB / 398.6 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.5769, allocations: 3.953 kB / 398.6 MB, free: 12.55 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.474e-05/0.577, allocations: 117 kB / 398.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.577, allocations: 7.984 kB / 398.7 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.5771, allocations: 8.031 kB / 398.7 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.5771, allocations: 432 / 398.7 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.5771, allocations: 6.047 kB / 398.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.5771, allocations: 0 / 398.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.5773, allocations: 173.6 kB / 398.9 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.5773, allocations: 3.938 kB / 398.9 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.5775, allocations: 11.98 kB / 398.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.5775, allocations: 4 kB / 398.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.5775, allocations: 0 / 398.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.5775, allocations: 0 / 398.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5775, allocations: 0 / 398.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.5778, allocations: 101 kB / 399 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.852e-05/0.5779, allocations: 89.05 kB / 399.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.5779, allocations: 0 / 399.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.618e-05/0.578, allocations: 12.05 kB / 399.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.578, allocations: 3.938 kB / 399.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.5781, allocations: 4.875 kB / 399.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.778e-05/0.5781, allocations: 91.27 kB / 399.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5782, allocations: 0 / 399.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002854/0.5784, allocations: 8 kB / 399.2 MB, free: 11.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005518/0.579, allocations: 0.632 MB / 399.9 MB, free: 11.17 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.5792, allocations: 31.94 kB / 399.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5792, allocations: 0 / 399.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.871e-05/0.5793, allocations: 15.98 kB / 399.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.5794, allocations: 3.938 kB / 399.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005203/0.5799, allocations: 132.4 kB / 400 MB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.5802, allocations: 0.6891 MB / 400.7 MB, free: 10.24 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.87e-05/0.5803, allocations: 7.984 kB / 400.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.094e-05/0.5803, allocations: 11.44 kB / 400.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5804, allocations: 0 / 400.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.6089, allocations: 1.189 MB / 401.9 MB, free: 9.086 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003538/0.6093, allocations: 129.6 kB / 402.1 MB, free: 8.863 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.296/2.905, allocations: 4 kB / 402.1 MB, free: 8.859 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat