Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.937/1.937, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.563e-05/4.574e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 48.71 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3891/0.4912, allocations: 73.85 MB / 395.7 MB, free: 15.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.4915, allocations: 67.95 kB / 395.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004032/0.4956, allocations: 0.9428 MB / 396.7 MB, free: 14.99 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4956, allocations: 0 / 396.7 MB, free: 14.99 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.4956, allocations: 4 kB / 396.7 MB, free: 14.98 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.0004698/0.4961, allocations: 342.5 kB / 397 MB, free: 14.61 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.4962, allocations: 12.03 kB / 397 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.54e-05/0.4962, allocations: 30.56 kB / 397.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.645e-05/0.4963, allocations: 9 kB / 397.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.4965, allocations: 178.9 kB / 397.2 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.4965, allocations: 11.94 kB / 397.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.4966, allocations: 3.938 kB / 397.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.4967, allocations: 45.69 kB / 397.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.4968, allocations: 0 / 397.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.4968, allocations: 0 / 397.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.4968, allocations: 4 kB / 397.3 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.497e-05/0.4969, allocations: 8 kB / 397.3 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005362/0.4974, allocations: 276.9 kB / 397.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.857e-05/0.4975, allocations: 36.38 kB / 397.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.039e-05/0.4976, allocations: 12.86 kB / 397.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.4976, allocations: 0 / 397.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.4978, allocations: 67.38 kB / 397.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.883e-06/0.4978, allocations: 0 / 397.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002084/0.498, allocations: 61.72 kB / 397.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.4981, allocations: 59.34 kB / 397.8 MB, free: 13.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.4982, allocations: 109.1 kB / 397.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.4982, allocations: 29.7 kB / 398 MB, free: 13.51 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.288e-05/0.4983, allocations: 150.6 kB / 398.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.27e-05/0.4983, allocations: 19.8 kB / 398.1 MB, free: 13.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-06/0.4984, allocations: 0 / 398.1 MB, free: 13.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4985, allocations: 310.8 kB / 398.4 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.174e-05/0.4985, allocations: 12 kB / 398.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.562e-05/0.4986, allocations: 44.28 kB / 398.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.318e-05/0.4987, allocations: 12 kB / 398.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.4987, allocations: 3.938 kB / 398.5 MB, free: 12.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001775/0.4989, allocations: 73.56 kB / 398.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.4989, allocations: 8 kB / 398.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4989, allocations: 0.5 kB / 398.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.499, allocations: 4 kB / 398.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.4991, allocations: 11.98 kB / 398.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.4991, allocations: 8.312 kB / 398.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.638e-05/0.4992, allocations: 8 kB / 398.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.4992, allocations: 8.109 kB / 398.6 MB, free: 12.82 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 8.681e-05/0.4993, allocations: 116.9 kB / 398.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.052e-05/0.4994, allocations: 11.84 kB / 398.7 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.4994, allocations: 8.031 kB / 398.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.4994, allocations: 0 / 398.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.4994, allocations: 0 / 398.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4995, allocations: 0 / 398.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.4996, allocations: 165.6 kB / 398.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4996, allocations: 0 / 398.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.4998, allocations: 15.98 kB / 398.9 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.4998, allocations: 4 kB / 398.9 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.4998, allocations: 0 / 398.9 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4998, allocations: 0 / 398.9 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4998, allocations: 0 / 398.9 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.5001, allocations: 104.9 kB / 399 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.765e-05/0.5001, allocations: 81.14 kB / 399.1 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.5002, allocations: 7.984 kB / 399.1 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.079e-05/0.5003, allocations: 8.062 kB / 399.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.5003, allocations: 0 / 399.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.5003, allocations: 4 kB / 399.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.274e-05/0.5004, allocations: 91.27 kB / 399.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5004, allocations: 0 / 399.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002516/0.5007, allocations: 8 kB / 399.2 MB, free: 12.11 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.0005703/0.5013, allocations: 0.6397 MB / 399.9 MB, free: 11.44 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001382/0.5014, allocations: 31.94 kB / 399.9 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5014, allocations: 0 / 399.9 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.127e-05/0.5015, allocations: 15.98 kB / 399.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.5016, allocations: 3.938 kB / 399.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004962/0.5021, allocations: 158.2 kB / 400.1 MB, free: 11.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.5024, allocations: 0.6891 MB / 400.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.643e-05/0.5025, allocations: 15.72 kB / 400.8 MB, free: 10.46 MB / 330.7 MB Notification: Performance of SimCode: time 7.12e-07/0.5025, allocations: 0 / 400.8 MB, free: 10.46 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.358/2.861, allocations: 1.011 MB / 401.8 MB, free: 9.449 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat