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 1.9/1.9, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.944e-05/3.98e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09232, allocations: 44.51 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4282/0.5206, allocations: 87.03 MB / 387 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.5209, allocations: 80.75 kB / 387 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.064/1.585, allocations: 184.6 MB / 0.5582 GB, free: 61.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.585, allocations: 0 / 0.5582 GB, free: 61.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005036/1.586, allocations: 163.5 kB / 0.5584 GB, free: 61.69 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.04104/1.627, allocations: 8.405 MB / 0.5666 GB, free: 58.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/1.627, allocations: 15.03 kB / 0.5666 GB, free: 58.55 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007676/1.634, allocations: 1.466 MB / 0.568 GB, free: 58.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04545/1.68, allocations: 4.719 MB / 0.5726 GB, free: 57.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04272/1.723, allocations: 13.28 MB / 0.5856 GB, free: 56.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009887/1.724, allocations: 0.6263 MB / 0.5862 GB, free: 56.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005655/1.729, allocations: 0.8601 MB / 0.587 GB, free: 56.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.128/1.857, allocations: 27.62 MB / 0.614 GB, free: 48.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001109/1.859, allocations: 133.8 kB / 0.6141 GB, free: 48.78 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005961/1.865, allocations: 402.4 kB / 0.6145 GB, free: 48.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008741/1.873, allocations: 2.137 MB / 0.6166 GB, free: 47.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.116/1.989, allocations: 29.2 MB / 0.6451 GB, free: 22.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5232/2.513, allocations: 111.9 MB / 0.7544 GB, free: 24.49 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1308/2.644, allocations: 19.3 MB / 0.7733 GB, free: 23.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01841/2.662, allocations: 9.322 MB / 0.7824 GB, free: 20.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/2.663, allocations: 396.6 kB / 0.7828 GB, free: 20.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.278e-05/2.663, allocations: 66.34 kB / 0.7828 GB, free: 20.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=314): time 7.204e-06/2.663, allocations: 0 / 0.7828 GB, free: 20.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=413): time 1.023/3.686, allocations: 115.2 MB / 0.8954 GB, free: 82.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00271/3.689, allocations: 3.115 MB / 0.8984 GB, free: 79.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01976/3.709, allocations: 6.517 MB / 0.9048 GB, free: 79.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002033/3.711, allocations: 84.84 kB / 0.9049 GB, free: 79.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005844/3.717, allocations: 5.627 MB / 0.9104 GB, free: 75.35 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00381/3.72, allocations: 1.573 MB / 0.9119 GB, free: 74.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003196/3.724, allocations: 220.1 kB / 0.9121 GB, free: 74.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.00151/3.725, allocations: 0.7722 MB / 0.9129 GB, free: 73.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01889/3.744, allocations: 7.595 MB / 0.9203 GB, free: 70.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0228/3.767, allocations: 13.72 MB / 0.9337 GB, free: 56.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02307/3.79, allocations: 9.895 MB / 0.9433 GB, free: 48.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002536/3.79, allocations: 67.95 kB / 0.9434 GB, free: 48.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=1429) (initialization): time 0.1471/3.938, allocations: 34.26 MB / 0.9769 GB, free: 22.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000159/3.938, allocations: 100 kB / 0.977 GB, free: 22.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4143/4.352, allocations: 14.95 MB / 0.9916 GB, free: 74.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09073/4.443, allocations: 13.92 MB / 1.005 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01807/4.461, allocations: 2.62 MB / 1.008 GB, free: 74.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1342/4.595, allocations: 53.05 MB / 1.06 GB, free: 61.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03198/4.627, allocations: 1.445 MB / 1.061 GB, free: 61.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004211/4.632, allocations: 0.6504 MB / 1.062 GB, free: 61.3 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.007115/4.639, allocations: 0.9401 MB / 1.062 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003583/4.642, allocations: 0.6879 MB / 1.063 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07096/4.713, allocations: 11.86 MB / 1.075 GB, free: 57.97 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1198/4.833, allocations: 25.08 MB / 1.099 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001503/4.833, allocations: 24 kB / 1.099 GB, free: 43.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001307/4.834, allocations: 24.09 kB / 1.099 GB, free: 43.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5328/5.366, allocations: 47.11 MB / 1.145 GB, free: 81.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.526e-05/5.367, allocations: 4.156 kB / 1.145 GB, free: 81.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008211/5.375, allocations: 0.724 MB / 1.146 GB, free: 81.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08921/5.464, allocations: 13.29 MB / 1.159 GB, free: 81.89 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001804/5.466, allocations: 120.3 kB / 1.159 GB, free: 81.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1176/5.583, allocations: 49.18 MB / 1.207 GB, free: 74.86 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002386/5.586, allocations: 2.949 MB / 1.21 GB, free: 72.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1416/5.727, allocations: 36.28 MB / 1.245 GB, free: 60.67 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002842/5.73, allocations: 0.73 MB / 1.246 GB, free: 60.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003998/5.734, allocations: 83.53 kB / 1.246 GB, free: 60.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01414/5.749, allocations: 0.8233 MB / 1.247 GB, free: 60.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003137/5.752, allocations: 321.2 kB / 1.247 GB, free: 60.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001249/5.753, allocations: 133.6 kB / 1.247 GB, free: 60.36 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01242/5.766, allocations: 4.57 MB / 1.252 GB, free: 58.74 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.81e-07/5.766, allocations: 0 / 1.252 GB, free: 58.74 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01821/5.784, allocations: 2.941 MB / 1.255 GB, free: 55.81 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.1435/5.927, allocations: 37.5 MB / 1.291 GB, free: 24.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.4189/6.346, allocations: 18.64 MB / 1.31 GB, free: 87.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.647e-05/6.346, allocations: 0.9688 kB / 1.31 GB, free: 87.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02295/6.369, allocations: 8.432 MB / 1.318 GB, free: 86.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008933/6.378, allocations: 0.8664 MB / 1.319 GB, free: 86.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1028/6.481, allocations: 26.77 MB / 1.345 GB, free: 82.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01605/6.497, allocations: 6.335 MB / 1.351 GB, free: 81.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01171/6.509, allocations: 4.249 MB / 1.355 GB, free: 81.66 MB / 458.7 MB Notification: Performance of SimCode: time 1.553e-06/6.509, allocations: 0 / 1.355 GB, free: 81.66 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.045/14.55, allocations: 418.9 MB / 1.764 GB, free: 73.3 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