Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.292/2.292, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.144e-05/3.153e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09357/0.09363, allocations: 44.51 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.429/0.5227, allocations: 87.03 MB / 387 MB, free: 12.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.523, allocations: 83.84 kB / 387.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.008/1.531, allocations: 184.6 MB / 0.5582 GB, free: 61.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.934e-06/1.531, allocations: 3.781 kB / 0.5582 GB, free: 61.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005021/1.532, allocations: 158.5 kB / 0.5584 GB, free: 61.86 MB / 410.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.0413/1.573, allocations: 8.396 MB / 0.5666 GB, free: 58.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/1.573, allocations: 13.09 kB / 0.5666 GB, free: 58.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007542/1.581, allocations: 1.468 MB / 0.568 GB, free: 58.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04561/1.627, allocations: 4.722 MB / 0.5726 GB, free: 58.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04138/1.668, allocations: 13.28 MB / 0.5856 GB, free: 56.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009238/1.669, allocations: 0.626 MB / 0.5862 GB, free: 56.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005303/1.674, allocations: 0.8592 MB / 0.5871 GB, free: 56.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1216/1.796, allocations: 27.53 MB / 0.6139 GB, free: 48.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000661/1.797, allocations: 129.3 kB / 0.6141 GB, free: 48.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004128/1.801, allocations: 400.7 kB / 0.6145 GB, free: 48.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006301/1.807, allocations: 2.131 MB / 0.6165 GB, free: 47.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1092/1.916, allocations: 28.88 MB / 0.6447 GB, free: 23.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5457/2.462, allocations: 111.9 MB / 0.7541 GB, free: 25.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1299/2.592, allocations: 19.27 MB / 0.7729 GB, free: 24.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01762/2.61, allocations: 9.322 MB / 0.782 GB, free: 21.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008514/2.611, allocations: 390 kB / 0.7824 GB, free: 20.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/2.611, allocations: 67.75 kB / 0.7824 GB, free: 20.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=314): time 6.913e-06/2.611, allocations: 0 / 0.7824 GB, free: 20.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=413): time 1.034/3.644, allocations: 115.4 MB / 0.8951 GB, free: 83.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002443/3.647, allocations: 3.109 MB / 0.8981 GB, free: 80.15 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0151/3.662, allocations: 6.516 MB / 0.9045 GB, free: 79.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001756/3.664, allocations: 87.7 kB / 0.9046 GB, free: 79.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004952/3.669, allocations: 5.618 MB / 0.91 GB, free: 75.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00323/3.672, allocations: 1.579 MB / 0.9116 GB, free: 74.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002185/3.674, allocations: 218.1 kB / 0.9118 GB, free: 74.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000758/3.675, allocations: 0.7694 MB / 0.9125 GB, free: 73.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.017/3.692, allocations: 7.596 MB / 0.92 GB, free: 70.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02164/3.714, allocations: 13.66 MB / 0.9333 GB, free: 57.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02149/3.735, allocations: 9.895 MB / 0.943 GB, free: 49.75 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001972/3.736, allocations: 63.17 kB / 0.943 GB, free: 49.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=1429) (initialization): time 0.1427/3.878, allocations: 33.66 MB / 0.9759 GB, free: 24.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001675/3.879, allocations: 100 kB / 0.976 GB, free: 24.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4006/4.279, allocations: 14.96 MB / 0.9906 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09292/4.372, allocations: 13.91 MB / 1.004 GB, free: 74.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01845/4.391, allocations: 2.622 MB / 1.007 GB, free: 74.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1701/4.561, allocations: 53.07 MB / 1.059 GB, free: 62.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03198/4.593, allocations: 1.446 MB / 1.06 GB, free: 62.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004681/4.598, allocations: 0.6509 MB / 1.061 GB, free: 61.93 MB / 442.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 (1259): * Single equations (assignments): 1245 * 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 {4} * 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.008435/4.606, allocations: 0.9378 MB / 1.062 GB, free: 61.53 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005193/4.611, allocations: 0.6837 MB / 1.062 GB, free: 61.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07111/4.683, allocations: 11.86 MB / 1.074 GB, free: 58.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1197/4.802, allocations: 25.08 MB / 1.098 GB, free: 46.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.74e-05/4.803, allocations: 28 kB / 1.098 GB, free: 46.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001144/4.803, allocations: 19.92 kB / 1.098 GB, free: 46.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2574/5.06, allocations: 47.1 MB / 1.144 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.803e-05/5.06, allocations: 7.984 kB / 1.144 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3318/5.392, allocations: 0.7217 MB / 1.145 GB, free: 85.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.09099/5.483, allocations: 13.29 MB / 1.158 GB, free: 85.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001803/5.485, allocations: 113.1 kB / 1.158 GB, free: 85.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1538/5.639, allocations: 49.2 MB / 1.206 GB, free: 78.36 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003007/5.642, allocations: 2.947 MB / 1.209 GB, free: 75.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1459/5.788, allocations: 36.26 MB / 1.244 GB, free: 64.18 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002757/5.791, allocations: 0.7235 MB / 1.245 GB, free: 64.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003836/5.795, allocations: 94.23 kB / 1.245 GB, free: 63.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01457/5.809, allocations: 0.8225 MB / 1.246 GB, free: 63.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002912/5.812, allocations: 313.5 kB / 1.246 GB, free: 63.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001786/5.814, allocations: 134.7 kB / 1.246 GB, free: 63.87 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01261/5.827, allocations: 4.569 MB / 1.251 GB, free: 59.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.503e-06/5.827, allocations: 3.219 kB / 1.251 GB, free: 59.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01938/5.846, allocations: 2.936 MB / 1.254 GB, free: 57.02 MB / 458.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.1442/5.99, allocations: 37.51 MB / 1.29 GB, free: 27.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3537/6.344, allocations: 18.26 MB / 1.308 GB, free: 87.31 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/6.344, allocations: 0.7812 kB / 1.308 GB, free: 87.31 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02251/6.367, allocations: 8.339 MB / 1.316 GB, free: 86.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009113/6.376, allocations: 0.8735 MB / 1.317 GB, free: 86.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1092/6.485, allocations: 26.73 MB / 1.343 GB, free: 82.86 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01971/6.505, allocations: 6.33 MB / 1.35 GB, free: 81.93 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01636/6.521, allocations: 4.244 MB / 1.354 GB, free: 81.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.923e-06/6.521, allocations: 3.75 kB / 1.354 GB, free: 81.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.055/14.58, allocations: 417.2 MB / 1.761 GB, free: 77.71 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat