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.67/1.67, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.307e-05, allocations: 4 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2584, allocations: 38.76 MB / 263.8 MB, free: 9.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4039, allocations: 81.33 MB / 345.2 MB, free: 8.43 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.4043, allocations: 83.94 kB / 345.2 MB, free: 8.348 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.189/1.594, allocations: 184.4 MB / 0.5172 GB, free: 39.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.924e-06/1.594, allocations: 0 / 0.5172 GB, free: 39.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004906/1.594, allocations: 158.3 kB / 0.5174 GB, free: 39.64 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.03964/1.634, allocations: 8.402 MB / 0.5256 GB, free: 36.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/1.634, allocations: 14.25 kB / 0.5256 GB, free: 36.5 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006609/1.641, allocations: 1.464 MB / 0.527 GB, free: 36.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04421/1.685, allocations: 4.705 MB / 0.5316 GB, free: 35.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04068/1.726, allocations: 13.27 MB / 0.5446 GB, free: 34.78 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008743/1.726, allocations: 0.6253 MB / 0.5452 GB, free: 34.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005075/1.732, allocations: 0.8657 MB / 0.546 GB, free: 34.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1126/1.844, allocations: 27.62 MB / 0.573 GB, free: 25.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008013/1.845, allocations: 129.3 kB / 0.5731 GB, free: 25.65 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004587/1.85, allocations: 407.8 kB / 0.5735 GB, free: 25.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006315/1.856, allocations: 2.133 MB / 0.5756 GB, free: 23.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1652/2.021, allocations: 29.21 MB / 0.6041 GB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4807/2.502, allocations: 111.9 MB / 0.7134 GB, free: 29.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1295/2.632, allocations: 19.32 MB / 0.7323 GB, free: 28.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01771/2.649, allocations: 9.315 MB / 0.7414 GB, free: 26.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009082/2.65, allocations: 383.6 kB / 0.7418 GB, free: 26.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.634e-05/2.65, allocations: 68.81 kB / 0.7418 GB, free: 26.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 6.472e-06/2.65, allocations: 0 / 0.7418 GB, free: 26.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=413): time 0.976/3.626, allocations: 115 MB / 0.8541 GB, free: 88.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003363/3.63, allocations: 3.125 MB / 0.8572 GB, free: 85.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02237/3.652, allocations: 6.518 MB / 0.8635 GB, free: 83.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002042/3.654, allocations: 84.02 kB / 0.8636 GB, free: 83.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006816/3.661, allocations: 5.622 MB / 0.8691 GB, free: 79.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004025/3.665, allocations: 1.575 MB / 0.8706 GB, free: 78.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003036/3.668, allocations: 216.8 kB / 0.8709 GB, free: 78.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001419/3.67, allocations: 0.772 MB / 0.8716 GB, free: 77.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01911/3.689, allocations: 7.596 MB / 0.879 GB, free: 74.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02161/3.711, allocations: 13.72 MB / 0.8924 GB, free: 63.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02167/3.732, allocations: 9.888 MB / 0.9021 GB, free: 55.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000208/3.733, allocations: 60 kB / 0.9021 GB, free: 54.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=1429) (initialization): time 0.1434/3.876, allocations: 34.15 MB / 0.9355 GB, free: 29.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001595/3.876, allocations: 102.7 kB / 0.9356 GB, free: 29.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3682/4.244, allocations: 15.13 MB / 0.9504 GB, free: 82.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09924/4.344, allocations: 13.83 MB / 0.9639 GB, free: 82.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.018/4.362, allocations: 2.639 MB / 0.9664 GB, free: 82.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1503/4.512, allocations: 52.6 MB / 1.018 GB, free: 65.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02674/4.539, allocations: 1.44 MB / 1.019 GB, free: 65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004008/4.543, allocations: 0.6543 MB / 1.02 GB, free: 64.91 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 985 * 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 (1262): * Single equations (assignments): 1248 * 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.006819/4.55, allocations: 0.9417 MB / 1.021 GB, free: 64.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003941/4.554, allocations: 0.682 MB / 1.021 GB, free: 64.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08403/4.638, allocations: 11.86 MB / 1.033 GB, free: 57.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1247/4.763, allocations: 25.08 MB / 1.058 GB, free: 35.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.909e-05/4.763, allocations: 28 kB / 1.058 GB, free: 35.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001052/4.763, allocations: 27.17 kB / 1.058 GB, free: 35.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4676/5.231, allocations: 47.1 MB / 1.104 GB, free: 75.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.885e-05/5.231, allocations: 6.188 kB / 1.104 GB, free: 75.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007548/5.238, allocations: 0.7254 MB / 1.104 GB, free: 75.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0874/5.326, allocations: 13.29 MB / 1.117 GB, free: 75.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001825/5.328, allocations: 120.8 kB / 1.117 GB, free: 75.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1199/5.448, allocations: 49.19 MB / 1.165 GB, free: 61.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002397/5.45, allocations: 2.948 MB / 1.168 GB, free: 58.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1431/5.593, allocations: 36.26 MB / 1.204 GB, free: 29.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002795/5.596, allocations: 0.7292 MB / 1.204 GB, free: 29.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00378/5.6, allocations: 83.98 kB / 1.204 GB, free: 29.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01439/5.614, allocations: 0.824 MB / 1.205 GB, free: 28.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003004/5.617, allocations: 313.8 kB / 1.206 GB, free: 27.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001685/5.619, allocations: 127.9 kB / 1.206 GB, free: 27.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01274/5.632, allocations: 4.569 MB / 1.21 GB, free: 23.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.543e-06/5.632, allocations: 4 kB / 1.21 GB, free: 23.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01819/5.65, allocations: 2.936 MB / 1.213 GB, free: 20.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.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],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (266): * Single equations (assignments): 257 * 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.4453/6.095, allocations: 37.5 MB / 1.25 GB, free: 75.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0428/6.138, allocations: 18.52 MB / 1.268 GB, free: 74.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/6.138, allocations: 0 / 1.268 GB, free: 74.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02009/6.158, allocations: 8.439 MB / 1.276 GB, free: 71.63 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008766/6.167, allocations: 0.8711 MB / 1.277 GB, free: 71.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1004/6.268, allocations: 26.76 MB / 1.303 GB, free: 62.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01605/6.284, allocations: 6.331 MB / 1.309 GB, free: 59.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01148/6.295, allocations: 4.239 MB / 1.313 GB, free: 55.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.664e-06/6.295, allocations: 4 kB / 1.313 GB, free: 55.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.017/14.31, allocations: 418.7 MB / 1.722 GB, free: 94.48 MB / 442.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