Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.775/2.775, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.519e-05/4.518e-05, allocations: 5.109 kB / 249.8 MB, free: 5.254 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1383, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5311/0.6694, allocations: 86.37 MB / 380.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003251/0.6698, allocations: 81.55 kB / 380.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.36/2.03, allocations: 180.6 MB / 0.5482 GB, free: 64.08 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.294e-06/2.03, allocations: 0 / 0.5482 GB, free: 64.08 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006055/2.031, allocations: 163.4 kB / 0.5483 GB, free: 64.08 MB / 394.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.0491/2.08, allocations: 8.397 MB / 0.5565 GB, free: 60.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/2.08, allocations: 7.75 kB / 0.5565 GB, free: 60.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05511/2.135, allocations: 4.722 MB / 0.5612 GB, free: 60.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05141/2.187, allocations: 13.26 MB / 0.5741 GB, free: 58.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006466/2.187, allocations: 273.4 kB / 0.5744 GB, free: 58.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005496/2.193, allocations: 0.5211 MB / 0.5749 GB, free: 58.14 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04602/2.239, allocations: 17.93 MB / 0.5924 GB, free: 43.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06242/2.301, allocations: 23.42 MB / 0.6153 GB, free: 17.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007857/2.302, allocations: 126.9 kB / 0.6154 GB, free: 17.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00498/2.307, allocations: 52 kB / 0.6154 GB, free: 17.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007648/2.315, allocations: 2.133 MB / 0.6175 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6479/2.963, allocations: 109.4 MB / 0.7244 GB, free: 49.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02416/2.987, allocations: 10.35 MB / 0.7345 GB, free: 45.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01951/3.007, allocations: 9.228 MB / 0.7435 GB, free: 41.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001123/3.008, allocations: 383.7 kB / 0.7439 GB, free: 41.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.388e-05/3.008, allocations: 71.47 kB / 0.7439 GB, free: 41.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=314): time 9.317e-06/3.008, allocations: 0 / 0.7439 GB, free: 41.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=411): time 1.012/4.02, allocations: 106.9 MB / 0.8484 GB, free: 98.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/4.02, allocations: 197.8 kB / 0.8486 GB, free: 98.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01711/4.037, allocations: 5.541 MB / 0.854 GB, free: 97.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002003/4.039, allocations: 25.7 kB / 0.854 GB, free: 97.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006609/4.046, allocations: 5.924 MB / 0.8598 GB, free: 94.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004083/4.05, allocations: 1.522 MB / 0.8613 GB, free: 93.87 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003601/4.053, allocations: 0 / 0.8613 GB, free: 93.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001361/4.055, allocations: 0.7772 MB / 0.862 GB, free: 93.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01923/4.074, allocations: 7.402 MB / 0.8693 GB, free: 92.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0241/4.098, allocations: 13.61 MB / 0.8826 GB, free: 81.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02368/4.122, allocations: 9.683 MB / 0.892 GB, free: 77.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002764/4.122, allocations: 62.59 kB / 0.8921 GB, free: 77.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=1451) (initialization): time 0.1684/4.291, allocations: 33.09 MB / 0.9244 GB, free: 62.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000184/4.291, allocations: 100 kB / 0.9245 GB, free: 62.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06415/4.355, allocations: 14.81 MB / 0.9389 GB, free: 51.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1091/4.464, allocations: 13.71 MB / 0.9523 GB, free: 37.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02192/4.486, allocations: 2.671 MB / 0.9549 GB, free: 34.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5662/5.052, allocations: 49.39 MB / 1.003 GB, free: 83.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02784/5.08, allocations: 1.235 MB / 1.004 GB, free: 83.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004086/5.085, allocations: 0.6584 MB / 1.005 GB, free: 83.57 MB / 442.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 (1281): * Single equations (assignments): 1267 * 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.007204/5.092, allocations: 0.6765 MB / 1.006 GB, free: 83.39 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1505/5.242, allocations: 25.81 MB / 1.031 GB, free: 77.17 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003818/5.246, allocations: 0.6192 MB / 1.031 GB, free: 77.17 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08553/5.332, allocations: 11.61 MB / 1.043 GB, free: 74.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1401/5.472, allocations: 24.8 MB / 1.067 GB, free: 64.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001034/5.472, allocations: 29.53 kB / 1.067 GB, free: 64.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000154/5.472, allocations: 19.92 kB / 1.067 GB, free: 64.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.288/5.76, allocations: 45.71 MB / 1.112 GB, free: 19.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.119e-05/5.76, allocations: 6.188 kB / 1.112 GB, free: 19.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0128/5.773, allocations: 0.7205 MB / 1.112 GB, free: 18.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.6062/6.379, allocations: 13.12 MB / 1.125 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002022/6.382, allocations: 61.16 kB / 1.125 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1423/6.524, allocations: 45.99 MB / 1.17 GB, free: 76.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00274/6.527, allocations: 2.838 MB / 1.173 GB, free: 73.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1977/6.725, allocations: 35.75 MB / 1.208 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002705/6.727, allocations: 0.6474 MB / 1.209 GB, free: 62.54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004748/6.732, allocations: 18.88 kB / 1.209 GB, free: 62.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01671/6.749, allocations: 0.761 MB / 1.209 GB, free: 62.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003515/6.752, allocations: 324.8 kB / 1.21 GB, free: 62.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001783/6.754, allocations: 129.3 kB / 1.21 GB, free: 62.47 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01135/6.766, allocations: 3.731 MB / 1.213 GB, free: 61.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.613e-06/6.766, allocations: 2.188 kB / 1.213 GB, free: 61.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.02147/6.787, allocations: 2.676 MB / 1.216 GB, free: 61.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET7122661769.x[3],$STATESET7122661769.x[2],$STATESET7122661769.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],$STATESET7122661768.x[3],$STATESET7122661768.x[2],$STATESET7122661768.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.162/6.949, allocations: 36.96 MB / 1.252 GB, free: 34.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.04427/6.993, allocations: 17.97 MB / 1.27 GB, free: 18.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/6.994, allocations: 3.781 kB / 1.27 GB, free: 18.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02119/7.015, allocations: 8.245 MB / 1.278 GB, free: 9.734 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008861/7.024, allocations: 0.6643 MB / 1.278 GB, free: 9.098 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4875/7.511, allocations: 25.19 MB / 1.303 GB, free: 85.78 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0178/7.529, allocations: 6.327 MB / 1.309 GB, free: 84.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01954/7.549, allocations: 3.424 MB / 1.312 GB, free: 84.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01236/7.561, allocations: 4.07 MB / 1.316 GB, free: 84.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.723e-06/7.561, allocations: 0 / 1.316 GB, free: 84.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9412/8.502, allocations: 214.1 MB / 1.526 GB, free: 61.98 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003754/8.503, allocations: 176 kB / 1.526 GB, free: 61.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.83/19.33, allocations: 0 / 1.526 GB, free: 61.79 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat