Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.737/1.737, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.333e-05/2.338e-05, allocations: 0 / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2522, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1394/0.3916, allocations: 80.66 MB / 339 MB, free: 13.14 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.392, allocations: 87.94 kB / 339.1 MB, free: 13.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199/1.591, allocations: 180.4 MB / 0.5073 GB, free: 40.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.444e-06/1.591, allocations: 0 / 0.5073 GB, free: 40.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006685/1.592, allocations: 163.2 kB / 0.5075 GB, free: 40.8 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2934 * Number of variables: 2934 Notification: Performance of Generate backend data structure: time 0.05082/1.642, allocations: 8.396 MB / 0.5157 GB, free: 37.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/1.642, allocations: 7.344 kB / 0.5157 GB, free: 37.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0552/1.698, allocations: 4.704 MB / 0.5203 GB, free: 37.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04053/1.738, allocations: 13.25 MB / 0.5332 GB, free: 36.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000667/1.739, allocations: 274.1 kB / 0.5335 GB, free: 36.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005201/1.744, allocations: 0.5226 MB / 0.534 GB, free: 36.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03816/1.782, allocations: 17.93 MB / 0.5515 GB, free: 36.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05296/1.835, allocations: 23.43 MB / 0.5744 GB, free: 23.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007729/1.836, allocations: 131.2 kB / 0.5745 GB, free: 23.67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004362/1.841, allocations: 52 kB / 0.5745 GB, free: 23.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006111/1.847, allocations: 2.133 MB / 0.5766 GB, free: 21.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4615/2.308, allocations: 109.4 MB / 0.6835 GB, free: 32.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01944/2.328, allocations: 10.36 MB / 0.6936 GB, free: 31.65 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01578/2.344, allocations: 9.241 MB / 0.7026 GB, free: 31.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008698/2.345, allocations: 382.9 kB / 0.703 GB, free: 31.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/2.345, allocations: 66.38 kB / 0.7031 GB, free: 31.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=314): time 6.472e-06/2.345, allocations: 0 / 0.7031 GB, free: 31.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=411): time 0.7774/3.122, allocations: 107.4 MB / 0.8079 GB, free: 95.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/3.122, allocations: 197 kB / 0.8081 GB, free: 95.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01302/3.135, allocations: 5.547 MB / 0.8135 GB, free: 94.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001598/3.137, allocations: 25.7 kB / 0.8135 GB, free: 94.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004688/3.141, allocations: 5.729 MB / 0.8191 GB, free: 92.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003001/3.145, allocations: 1.523 MB / 0.8206 GB, free: 91.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002076/3.147, allocations: 0 / 0.8206 GB, free: 91.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007301/3.147, allocations: 0.7733 MB / 0.8214 GB, free: 91.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01531/3.163, allocations: 7.405 MB / 0.8286 GB, free: 91.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01946/3.182, allocations: 13.61 MB / 0.8419 GB, free: 83.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01993/3.202, allocations: 9.677 MB / 0.8513 GB, free: 81.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000242/3.202, allocations: 69.16 kB / 0.8514 GB, free: 81.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=1451) (initialization): time 0.1353/3.338, allocations: 32.77 MB / 0.8834 GB, free: 73.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001792/3.338, allocations: 98.25 kB / 0.8835 GB, free: 73.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05069/3.389, allocations: 14.73 MB / 0.8979 GB, free: 63.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08563/3.474, allocations: 13.63 MB / 0.9112 GB, free: 53.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01746/3.492, allocations: 2.675 MB / 0.9138 GB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3853/3.877, allocations: 48.96 MB / 0.9616 GB, free: 78.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02131/3.899, allocations: 1.234 MB / 0.9628 GB, free: 78.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003349/3.902, allocations: 0.6605 MB / 0.9635 GB, free: 78.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1009 * Number of states: 0 () * Number of discrete variables: 84 (referenceSystem.fixedTranslation5.color[3],referenceSystem.fixedTranslation5.color[2],referenceSystem.fixedTranslation5.color[1],referenceSystem.fixedTranslation4.color[3],referenceSystem.fixedTranslation4.color[2],referenceSystem.fixedTranslation4.color[1],referenceSystem.fixedTranslation3.color[3],referenceSystem.fixedTranslation3.color[2],referenceSystem.fixedTranslation3.color[1],referenceSystem.fixedTranslation2.color[3],referenceSystem.fixedTranslation2.color[2],referenceSystem.fixedTranslation2.color[1],referenceSystem.fixedTranslation1.color[3],referenceSystem.fixedTranslation1.color[2],referenceSystem.fixedTranslation1.color[1],referenceSystem.fixedTranslation.color[3],referenceSystem.fixedTranslation.color[2],referenceSystem.fixedTranslation.color[1],referenceSystem.pointMass6.sphereColor[3],referenceSystem.pointMass6.sphereColor[2],referenceSystem.pointMass6.sphereColor[1],referenceSystem.pointMass5.sphereColor[3],referenceSystem.pointMass5.sphereColor[2],referenceSystem.pointMass5.sphereColor[1],referenceSystem.pointMass4.sphereColor[3],referenceSystem.pointMass4.sphereColor[2],referenceSystem.pointMass4.sphereColor[1],referenceSystem.pointMass3.sphereColor[3],referenceSystem.pointMass3.sphereColor[2],referenceSystem.pointMass3.sphereColor[1],referenceSystem.pointMass2.sphereColor[3],referenceSystem.pointMass2.sphereColor[2],referenceSystem.pointMass2.sphereColor[1],referenceSystem.pointMass1.sphereColor[3],referenceSystem.pointMass1.sphereColor[2],referenceSystem.pointMass1.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],pointMass6.sphereColor[3],pointMass6.sphereColor[2],pointMass6.sphereColor[1],pointMass5.sphereColor[3],pointMass5.sphereColor[2],pointMass5.sphereColor[1],pointMass4.sphereColor[3],pointMass4.sphereColor[2],pointMass4.sphereColor[1],pointMass3.sphereColor[3],pointMass3.sphereColor[2],pointMass3.sphereColor[1],pointMass2.sphereColor[3],pointMass2.sphereColor[2],pointMass2.sphereColor[1],pointMass1.sphereColor[3],pointMass1.sphereColor[2],pointMass1.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1284): * Single equations (assignments): 1270 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,100.0%) 66,(6,100.0%) 36,(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.005056/3.907, allocations: 0.6812 MB / 0.9641 GB, free: 78.29 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1162/4.023, allocations: 25.81 MB / 0.9893 GB, free: 73.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003027/4.026, allocations: 0.6237 MB / 0.9899 GB, free: 73.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06655/4.093, allocations: 11.61 MB / 1.001 GB, free: 70.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1129/4.206, allocations: 24.79 MB / 1.025 GB, free: 61.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-05/4.206, allocations: 28 kB / 1.026 GB, free: 61.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001294/4.206, allocations: 18.38 kB / 1.026 GB, free: 61.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4367/4.643, allocations: 45.72 MB / 1.07 GB, free: 75.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.792e-05/4.643, allocations: 3.781 kB / 1.07 GB, free: 75.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007469/4.65, allocations: 0.7212 MB / 1.071 GB, free: 75.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08457/4.735, allocations: 13.13 MB / 1.084 GB, free: 75.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001547/4.737, allocations: 64.12 kB / 1.084 GB, free: 75.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.102/4.839, allocations: 45.98 MB / 1.129 GB, free: 67.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002024/4.841, allocations: 2.836 MB / 1.131 GB, free: 64.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.181/5.022, allocations: 35.75 MB / 1.166 GB, free: 53.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002249/5.024, allocations: 0.6478 MB / 1.167 GB, free: 53.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003808/5.028, allocations: 18.33 kB / 1.167 GB, free: 53.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01294/5.041, allocations: 0.7632 MB / 1.168 GB, free: 53.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002896/5.044, allocations: 316.9 kB / 1.168 GB, free: 53.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001227/5.045, allocations: 131.8 kB / 1.168 GB, free: 53.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009237/5.054, allocations: 3.734 MB / 1.172 GB, free: 51.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.82e-07/5.054, allocations: 0 / 1.172 GB, free: 51.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01742/5.072, allocations: 2.661 MB / 1.174 GB, free: 49.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.x[1],referenceSystem.pointMass1.frame_a.r_0[1],referenceSystem.pointMass1.frame_a.r_0[2],referenceSystem.pointMass1.frame_a.r_0[3],referenceSystem.pointMass1.v_0[1],referenceSystem.pointMass1.v_0[2],referenceSystem.pointMass1.v_0[3],referenceSystem.pointMass6.w_a[1],referenceSystem.pointMass6.w_a[2],referenceSystem.pointMass6.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (264): * Single equations (assignments): 255 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 36,(6,100.0%) 66} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1418/5.214, allocations: 36.97 MB / 1.211 GB, free: 17.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2947/5.508, allocations: 17.86 MB / 1.228 GB, free: 84.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/5.508, allocations: 3.938 kB / 1.228 GB, free: 84.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01698/5.525, allocations: 8.242 MB / 1.236 GB, free: 83.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006658/5.532, allocations: 0.6578 MB / 1.237 GB, free: 83.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09131/5.623, allocations: 26.2 MB / 1.262 GB, free: 78.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01474/5.638, allocations: 6.318 MB / 1.268 GB, free: 76.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01094/5.649, allocations: 4.156 MB / 1.272 GB, free: 73.35 MB / 410.7 MB Notification: Performance of SimCode: time 1.292e-06/5.649, allocations: 0 / 1.272 GB, free: 73.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.578/13.23, allocations: 412.4 MB / 1.675 GB, free: 84.47 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat