Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.574e-05/2.589e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3036, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.153/0.4567, allocations: 86.26 MB / 380.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.4571, allocations: 83.95 kB / 380.5 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5598/1.017, allocations: 70.04 MB / 450.6 MB, free: 88.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.906e-06/1.017, allocations: 0 / 450.6 MB, free: 88.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002229/1.017, allocations: 65.53 kB / 450.7 MB, free: 88.28 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.02118/1.038, allocations: 3.785 MB / 454.4 MB, free: 86.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.038, allocations: 10.34 kB / 454.4 MB, free: 86.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01682/1.055, allocations: 2.142 MB / 456.6 MB, free: 86.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01684/1.072, allocations: 4.439 MB / 461 MB, free: 84.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002239/1.072, allocations: 117.7 kB / 461.1 MB, free: 84.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001863/1.074, allocations: 216.3 kB / 461.4 MB, free: 84.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01271/1.087, allocations: 5.186 MB / 466.5 MB, free: 80.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02346/1.111, allocations: 8.104 MB / 474.6 MB, free: 71.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002402/1.111, allocations: 51.55 kB / 474.7 MB, free: 71.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001095/1.112, allocations: 28 kB / 474.7 MB, free: 71.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002509/1.115, allocations: 0.8724 MB / 475.6 MB, free: 70.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07067/1.185, allocations: 42.18 MB / 0.5056 GB, free: 27.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004096/1.189, allocations: 2.296 MB / 0.5079 GB, free: 24.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003707/1.193, allocations: 1.282 MB / 0.5091 GB, free: 23.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002427/1.193, allocations: 17.47 kB / 0.5092 GB, free: 23.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/1.194, allocations: 51.06 kB / 0.5092 GB, free: 23.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=124): time 9.949e-06/1.194, allocations: 0 / 0.5092 GB, free: 23.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=131): time 0.032/1.226, allocations: 8.522 MB / 0.5175 GB, free: 14.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/1.226, allocations: 145.2 kB / 0.5177 GB, free: 14.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005984/1.232, allocations: 2.766 MB / 0.5204 GB, free: 11.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004285/1.232, allocations: 29.7 kB / 0.5204 GB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002338/1.235, allocations: 2.789 MB / 0.5231 GB, free: 8.898 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009509/1.236, allocations: 0.5363 MB / 0.5236 GB, free: 8.355 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000668/1.236, allocations: 0 / 0.5236 GB, free: 8.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004087/1.237, allocations: 0.5423 MB / 0.5242 GB, free: 7.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00413/1.241, allocations: 1.791 MB / 0.5259 GB, free: 6.008 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006749/1.248, allocations: 5.301 MB / 0.5311 GB, free: 14.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007735/1.255, allocations: 3.054 MB / 0.5341 GB, free: 11.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001344/1.256, allocations: 40 kB / 0.5341 GB, free: 11.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03333/1.289, allocations: 7.644 MB / 0.5416 GB, free: 4.148 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/1.289, allocations: 60 kB / 0.5416 GB, free: 4.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.018/1.307, allocations: 3.025 MB / 0.5446 GB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0182/1.325, allocations: 1.934 MB / 0.5465 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008008/1.333, allocations: 1.279 MB / 0.5477 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/1.347, allocations: 5.554 MB / 0.5532 GB, free: 8.031 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006676/1.354, allocations: 275.3 kB / 0.5534 GB, free: 7.762 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/1.356, allocations: 355.7 kB / 0.5538 GB, free: 7.418 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (687): * Single equations (assignments): 678 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001574/1.357, allocations: 433 kB / 0.5542 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01047/1.368, allocations: 2.968 MB / 0.5571 GB, free: 4.004 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/1.369, allocations: 280.3 kB / 0.5573 GB, free: 3.727 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009605/1.378, allocations: 2.578 MB / 0.5598 GB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2857/1.664, allocations: 2.202 MB / 0.562 GB, free: 104.4 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.077e-05/1.664, allocations: 6.938 kB / 0.562 GB, free: 104.4 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.066e-05/1.664, allocations: 4.859 kB / 0.562 GB, free: 104.4 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/1.68, allocations: 5.048 MB / 0.5669 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.337e-05/1.68, allocations: 1.969 kB / 0.5669 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002163/1.683, allocations: 211 kB / 0.5671 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005595/1.688, allocations: 1.026 MB / 0.5681 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003835/1.689, allocations: 16.06 kB / 0.5682 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008832/1.698, allocations: 4.901 MB / 0.5729 GB, free: 101.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001125/1.699, allocations: 1.415 MB / 0.5743 GB, free: 100.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/1.711, allocations: 4.842 MB / 0.5791 GB, free: 99.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/1.713, allocations: 339.7 kB / 0.5794 GB, free: 99.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001158/1.714, allocations: 10.77 kB / 0.5794 GB, free: 99.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003073/1.717, allocations: 114.9 kB / 0.5795 GB, free: 99.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006051/1.718, allocations: 82.77 kB / 0.5796 GB, free: 99.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/1.718, allocations: 44.03 kB / 0.5796 GB, free: 99.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004791/1.722, allocations: 1.821 MB / 0.5814 GB, free: 98.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.723, allocations: 1.594 kB / 0.5814 GB, free: 98.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007549/1.73, allocations: 0.8578 MB / 0.5822 GB, free: 98.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET6494617992.x[3],$STATESET6494617992.x[2],$STATESET6494617992.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0132/1.743, allocations: 5.645 MB / 0.5878 GB, free: 96.37 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01363/1.757, allocations: 4.887 MB / 0.5925 GB, free: 94.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.577e-06/1.757, allocations: 1.781 kB / 0.5925 GB, free: 94.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006548/1.764, allocations: 1.978 MB / 0.5945 GB, free: 93.86 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003134/1.767, allocations: 303.1 kB / 0.5947 GB, free: 93.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02734/1.794, allocations: 8.264 MB / 0.6028 GB, free: 90.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006544/1.801, allocations: 2.94 MB / 0.6057 GB, free: 89.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003698/1.805, allocations: 1.596 MB / 0.6072 GB, free: 88.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.793e-06/1.805, allocations: 0 / 0.6072 GB, free: 88.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.035/6.839, allocations: 129.2 MB / 0.7335 GB, free: 117.2 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat