Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.994e-05/4.002e-05, allocations: 4 kB / 292.8 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 50.41 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4798/0.5883, allocations: 94.04 MB / 437.2 MB, free: 12 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/0.5886, allocations: 87.2 kB / 437.3 MB, free: 15.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.186/1.774, allocations: 186 MB / 0.6087 GB, free: 80.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.904e-06/1.774, allocations: 0 / 0.6087 GB, free: 80.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005053/1.775, allocations: 159.2 kB / 0.6089 GB, free: 80.76 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2889 * Number of variables: 2889 Notification: Performance of Generate backend data structure: time 0.04161/1.816, allocations: 8.302 MB / 0.617 GB, free: 72.81 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/1.816, allocations: 12.03 kB / 0.617 GB, free: 72.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008837/1.825, allocations: 1.443 MB / 0.6184 GB, free: 71.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05979/1.885, allocations: 4.69 MB / 0.623 GB, free: 66.69 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03988/1.925, allocations: 12.29 MB / 0.635 GB, free: 54.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008403/1.926, allocations: 0.6172 MB / 0.6356 GB, free: 53.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005058/1.931, allocations: 0.8504 MB / 0.6364 GB, free: 53.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1096/2.041, allocations: 27.27 MB / 0.663 GB, free: 24.26 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007291/2.042, allocations: 134.8 kB / 0.6632 GB, free: 24.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004186/2.046, allocations: 395.8 kB / 0.6635 GB, free: 23.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006055/2.052, allocations: 2.098 MB / 0.6656 GB, free: 21.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4408/2.493, allocations: 28.63 MB / 0.6935 GB, free: 69.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1931/2.686, allocations: 111.1 MB / 0.802 GB, free: 4.449 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1316/2.818, allocations: 19.16 MB / 0.8207 GB, free: 488 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04489/2.862, allocations: 10.77 MB / 0.8312 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001089/2.864, allocations: 384 kB / 0.8316 GB, free: 11.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.878e-05/2.864, allocations: 68.81 kB / 0.8317 GB, free: 11.47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=305): time 7.745e-06/2.864, allocations: 1.594 kB / 0.8317 GB, free: 11.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=404): time 1.115/3.979, allocations: 114.5 MB / 0.9435 GB, free: 95.31 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002693/3.982, allocations: 3.111 MB / 0.9466 GB, free: 92.01 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01769/4, allocations: 6.405 MB / 0.9528 GB, free: 86.49 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001783/4.001, allocations: 83.66 kB / 0.9529 GB, free: 86.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005922/4.007, allocations: 5.814 MB / 0.9586 GB, free: 81.32 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003332/4.011, allocations: 1.545 MB / 0.9601 GB, free: 79.96 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002933/4.014, allocations: 220 kB / 0.9603 GB, free: 79.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001433/4.015, allocations: 0.7583 MB / 0.961 GB, free: 79.11 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01765/4.033, allocations: 7.556 MB / 0.9684 GB, free: 72.34 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02204/4.055, allocations: 13.55 MB / 0.9817 GB, free: 56.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.022/4.077, allocations: 9.832 MB / 0.9913 GB, free: 46.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003031/4.077, allocations: 60 kB / 0.9913 GB, free: 46.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=1410) (initialization): time 0.1482/4.226, allocations: 33.72 MB / 1.024 GB, free: 13.01 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001453/4.226, allocations: 96 kB / 1.024 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4151/4.641, allocations: 14.95 MB / 1.039 GB, free: 88.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0905/4.731, allocations: 13.84 MB / 1.052 GB, free: 88.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01727/4.749, allocations: 2.596 MB / 1.055 GB, free: 88.83 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1268/4.876, allocations: 52.63 MB / 1.106 GB, free: 72.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02251/4.898, allocations: 1.434 MB / 1.108 GB, free: 72.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003351/4.902, allocations: 0.6421 MB / 1.108 GB, free: 72.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 89 (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.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1243): * Single equations (assignments): 1229 * 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%) 2} * Non-linear torn systems: 1 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.005659/4.907, allocations: 0.9326 MB / 1.109 GB, free: 72.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002931/4.91, allocations: 0.6722 MB / 1.11 GB, free: 72.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005274/4.916, allocations: 1.313 MB / 1.111 GB, free: 71.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1187/5.034, allocations: 24.99 MB / 1.136 GB, free: 59.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.891e-05/5.034, allocations: 29.97 kB / 1.136 GB, free: 59.61 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000104/5.034, allocations: 17.16 kB / 1.136 GB, free: 59.61 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1762/5.211, allocations: 46.81 MB / 1.181 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.864e-05/5.211, allocations: 2.625 kB / 1.181 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007312/5.218, allocations: 0.7097 MB / 1.182 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08816/5.306, allocations: 13.28 MB / 1.195 GB, free: 492 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001851/5.308, allocations: 112.7 kB / 1.195 GB, free: 380 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5086/5.817, allocations: 49.19 MB / 1.243 GB, free: 99.99 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002297/5.819, allocations: 2.95 MB / 1.246 GB, free: 97.17 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1591/5.978, allocations: 36.14 MB / 1.281 GB, free: 85.87 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002535/5.981, allocations: 0.7115 MB / 1.282 GB, free: 85.72 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003577/5.985, allocations: 85.75 kB / 1.282 GB, free: 85.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01393/5.999, allocations: 0.8194 MB / 1.283 GB, free: 85.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002771/6.001, allocations: 305.7 kB / 1.283 GB, free: 85.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009139/6.002, allocations: 139.8 kB / 1.283 GB, free: 85.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01122/6.014, allocations: 4.488 MB / 1.288 GB, free: 84.02 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.483e-06/6.014, allocations: 0 / 1.288 GB, free: 84.02 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01699/6.031, allocations: 2.912 MB / 1.291 GB, free: 83.77 MB / 490.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 (256): * Single equations (assignments): 247 * 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.1399/6.171, allocations: 37.39 MB / 1.327 GB, free: 56.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03998/6.211, allocations: 18.12 MB / 1.345 GB, free: 39.09 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/6.211, allocations: 4 kB / 1.345 GB, free: 39.09 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01826/6.229, allocations: 8.294 MB / 1.353 GB, free: 30.72 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008336/6.237, allocations: 0.8713 MB / 1.354 GB, free: 29.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4803/6.718, allocations: 25.52 MB / 1.379 GB, free: 102.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02558/6.743, allocations: 6.241 MB / 1.385 GB, free: 101.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.02165/6.765, allocations: 3.404 MB / 1.388 GB, free: 101.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01066/6.776, allocations: 4.07 MB / 1.392 GB, free: 101.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.743e-06/6.776, allocations: 5.125 kB / 1.392 GB, free: 101.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.906/7.682, allocations: 226.8 MB / 1.614 GB, free: 92.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002605/7.682, allocations: 215.1 kB / 1.614 GB, free: 92.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.698/17.38, allocations: 2.656 kB / 1.614 GB, free: 92.2 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat