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.087/2.087, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.887e-05/2.938e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3121, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1749/0.487, allocations: 86.37 MB / 380.6 MB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.4874, allocations: 79.95 kB / 380.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9919/1.479, allocations: 180.6 MB / 0.5481 GB, free: 3.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.479, allocations: 4 kB / 0.5481 GB, free: 3.176 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000741/1.48, allocations: 156 kB / 0.5482 GB, free: 3.023 MB / 378.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.05331/1.533, allocations: 8.394 MB / 0.5564 GB, free: 10.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.321e-05/1.534, allocations: 12.03 kB / 0.5564 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06261/1.596, allocations: 4.727 MB / 0.5611 GB, free: 5.785 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6938/2.29, allocations: 13.25 MB / 0.574 GB, free: 52.11 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007671/2.291, allocations: 274.8 kB / 0.5743 GB, free: 52.11 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005118/2.296, allocations: 0.5155 MB / 0.5748 GB, free: 52.11 MB / 394.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04102/2.337, allocations: 17.93 MB / 0.5923 GB, free: 52.07 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05504/2.392, allocations: 23.43 MB / 0.6152 GB, free: 46.05 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008244/2.393, allocations: 130.2 kB / 0.6153 GB, free: 46.05 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004723/2.398, allocations: 55.91 kB / 0.6153 GB, free: 46.05 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006406/2.404, allocations: 2.131 MB / 0.6174 GB, free: 45.71 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1972/2.602, allocations: 109.4 MB / 0.7243 GB, free: 7.855 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3397/2.941, allocations: 10.88 MB / 0.7349 GB, free: 95.77 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01886/2.96, allocations: 9.235 MB / 0.7439 GB, free: 95.73 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009876/2.961, allocations: 387.9 kB / 0.7443 GB, free: 95.45 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.816e-05/2.961, allocations: 65.05 kB / 0.7444 GB, free: 95.41 MB / 442.8 MB Notification: Performance of pre-optimization done (n=314): time 7.424e-06/2.961, allocations: 2.5 kB / 0.7444 GB, free: 95.41 MB / 442.8 MB Notification: Performance of matching and sorting (n=411): time 0.4534/3.415, allocations: 105.7 MB / 0.8476 GB, free: 56.03 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.199e-05/3.415, allocations: 197.5 kB / 0.8478 GB, free: 55.8 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01368/3.429, allocations: 5.547 MB / 0.8532 GB, free: 51.08 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001789/3.43, allocations: 25.7 kB / 0.8532 GB, free: 51.05 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004895/3.435, allocations: 5.731 MB / 0.8588 GB, free: 46.16 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003261/3.439, allocations: 1.532 MB / 0.8603 GB, free: 44.78 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002771/3.441, allocations: 0 / 0.8603 GB, free: 44.78 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.001181/3.443, allocations: 0.7793 MB / 0.8611 GB, free: 44.12 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01568/3.458, allocations: 7.399 MB / 0.8683 GB, free: 37.55 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02051/3.479, allocations: 13.61 MB / 0.8816 GB, free: 22.16 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4608/3.94, allocations: 10.02 MB / 0.8914 GB, free: 80.22 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000299/3.94, allocations: 65.91 kB / 0.8915 GB, free: 80.22 MB / 442.8 MB Notification: Performance of matching and sorting (n=1451) (initialization): time 0.1433/4.083, allocations: 32.86 MB / 0.9235 GB, free: 79.38 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001601/4.084, allocations: 100.6 kB / 0.9236 GB, free: 79.38 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05471/4.138, allocations: 14.81 MB / 0.9381 GB, free: 79.16 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08843/4.227, allocations: 13.72 MB / 0.9515 GB, free: 78.59 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01781/4.245, allocations: 2.66 MB / 0.9541 GB, free: 78.29 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1159/4.361, allocations: 49.41 MB / 1.002 GB, free: 49.7 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02218/4.383, allocations: 1.228 MB / 1.004 GB, free: 48.95 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003634/4.387, allocations: 0.6618 MB / 1.004 GB, free: 48.32 MB / 442.8 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.005858/4.393, allocations: 0.6877 MB / 1.005 GB, free: 47.78 MB / 442.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1194/4.512, allocations: 25.8 MB / 1.03 GB, free: 22.62 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003338/4.515, allocations: 0.6199 MB / 1.031 GB, free: 22.33 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06764/4.583, allocations: 11.61 MB / 1.042 GB, free: 10.71 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4944/5.078, allocations: 24.8 MB / 1.066 GB, free: 73.43 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001001/5.078, allocations: 25.91 kB / 1.066 GB, free: 73.43 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000134/5.078, allocations: 20.34 kB / 1.066 GB, free: 73.43 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.196/5.274, allocations: 45.71 MB / 1.111 GB, free: 69.52 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-05/5.274, allocations: 3.594 kB / 1.111 GB, free: 69.52 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007361/5.281, allocations: 0.7201 MB / 1.112 GB, free: 69.51 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.09438/5.376, allocations: 13.13 MB / 1.124 GB, free: 67.62 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001642/5.377, allocations: 60.45 kB / 1.124 GB, free: 67.62 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1397/5.517, allocations: 45.99 MB / 1.169 GB, free: 38.3 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003019/5.52, allocations: 2.838 MB / 1.172 GB, free: 35.27 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4662/5.986, allocations: 35.76 MB / 1.207 GB, free: 67.61 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002581/5.989, allocations: 0.6436 MB / 1.208 GB, free: 67.51 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004145/5.993, allocations: 18.95 kB / 1.208 GB, free: 67.51 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0139/6.007, allocations: 0.7626 MB / 1.208 GB, free: 67.51 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003177/6.011, allocations: 316.8 kB / 1.209 GB, free: 67.51 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0017/6.012, allocations: 132.6 kB / 1.209 GB, free: 67.51 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.011/6.023, allocations: 3.737 MB / 1.213 GB, free: 67.3 MB / 442.8 MB Notification: Performance of sort global known variables: time 5.71e-07/6.023, allocations: 3.375 kB / 1.213 GB, free: 67.3 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.0188/6.042, allocations: 2.672 MB / 1.215 GB, free: 67.3 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET140335686447497.x[3],$STATESET140335686447497.x[2],$STATESET140335686447497.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],$STATESET140335686447496.x[3],$STATESET140335686447496.x[2],$STATESET140335686447496.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.1389/6.181, allocations: 36.96 MB / 1.251 GB, free: 64.89 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.03981/6.221, allocations: 17.97 MB / 1.269 GB, free: 61.52 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/6.221, allocations: 2.688 kB / 1.269 GB, free: 61.52 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01908/6.24, allocations: 8.243 MB / 1.277 GB, free: 57.77 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008082/6.248, allocations: 0.6639 MB / 1.278 GB, free: 57.5 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1021/6.35, allocations: 26.2 MB / 1.303 GB, free: 48.91 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01806/6.369, allocations: 6.328 MB / 1.309 GB, free: 45.75 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01213/6.381, allocations: 4.148 MB / 1.313 GB, free: 41.91 MB / 442.8 MB Notification: Performance of SimCode: time 1.653e-06/6.381, allocations: 1.312 kB / 1.313 GB, free: 41.91 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.751/14.13, allocations: 412.6 MB / 1.716 GB, free: 100.9 MB / 490.8 MB 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