Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.605/1.605, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.855e-05/2.853e-05, allocations: 0 / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2777, allocations: 38.78 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1441/0.4219, allocations: 81.34 MB / 345.2 MB, free: 8.293 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.4222, allocations: 83.95 kB / 345.3 MB, free: 8.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.167/1.589, allocations: 184.4 MB / 0.5172 GB, free: 39.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.589, allocations: 0 / 0.5172 GB, free: 39.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005231/1.59, allocations: 164.2 kB / 0.5174 GB, free: 39.46 MB / 346.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.03988/1.63, allocations: 8.399 MB / 0.5256 GB, free: 36.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/1.63, allocations: 15.38 kB / 0.5256 GB, free: 36.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007101/1.637, allocations: 1.466 MB / 0.527 GB, free: 36.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04423/1.681, allocations: 4.701 MB / 0.5316 GB, free: 35.63 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0412/1.722, allocations: 13.27 MB / 0.5446 GB, free: 34.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009043/1.723, allocations: 0.6267 MB / 0.5452 GB, free: 34.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005136/1.728, allocations: 0.8632 MB / 0.5461 GB, free: 34.55 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1104/1.839, allocations: 27.53 MB / 0.5729 GB, free: 25.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007254/1.84, allocations: 126 kB / 0.5731 GB, free: 25.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00438/1.844, allocations: 402.5 kB / 0.5734 GB, free: 25.26 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006215/1.85, allocations: 2.13 MB / 0.5755 GB, free: 23.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1095/1.96, allocations: 28.88 MB / 0.6037 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4747/2.435, allocations: 111.9 MB / 0.713 GB, free: 29.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1282/2.563, allocations: 19.29 MB / 0.7319 GB, free: 29.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01731/2.58, allocations: 9.318 MB / 0.741 GB, free: 27.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008506/2.581, allocations: 388.8 kB / 0.7414 GB, free: 27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.01e-05/2.581, allocations: 67.34 kB / 0.7414 GB, free: 26.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=314): time 6.713e-06/2.581, allocations: 2.531 kB / 0.7414 GB, free: 26.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=413): time 1.024/3.605, allocations: 115 MB / 0.8537 GB, free: 88.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002497/3.608, allocations: 3.117 MB / 0.8567 GB, free: 85.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01709/3.625, allocations: 6.515 MB / 0.8631 GB, free: 83.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001696/3.627, allocations: 92.58 kB / 0.8632 GB, free: 83.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005177/3.632, allocations: 5.626 MB / 0.8687 GB, free: 79.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003241/3.635, allocations: 1.575 MB / 0.8702 GB, free: 78.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002587/3.638, allocations: 216.4 kB / 0.8704 GB, free: 78.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001022/3.639, allocations: 0.775 MB / 0.8712 GB, free: 77.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01733/3.656, allocations: 7.586 MB / 0.8786 GB, free: 75.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02125/3.678, allocations: 13.66 MB / 0.8919 GB, free: 63.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0212/3.699, allocations: 9.886 MB / 0.9016 GB, free: 55.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002104/3.699, allocations: 64 kB / 0.9016 GB, free: 55.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=1429) (initialization): time 0.1417/3.841, allocations: 33.56 MB / 0.9344 GB, free: 30.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/3.841, allocations: 100 kB / 0.9345 GB, free: 30.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3562/4.197, allocations: 15.12 MB / 0.9493 GB, free: 82.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08773/4.285, allocations: 13.83 MB / 0.9628 GB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01748/4.303, allocations: 2.633 MB / 0.9654 GB, free: 82.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1203/4.423, allocations: 52.63 MB / 1.017 GB, free: 65.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02257/4.446, allocations: 1.441 MB / 1.018 GB, free: 65.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003173/4.449, allocations: 0.6465 MB / 1.019 GB, free: 65.51 MB / 410.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 (1262): * Single equations (assignments): 1248 * 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 {1} * 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.004166/4.453, allocations: 0.944 MB / 1.02 GB, free: 65.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002533/4.456, allocations: 0.6804 MB / 1.02 GB, free: 65.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06876/4.524, allocations: 11.87 MB / 1.032 GB, free: 58.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1496/4.674, allocations: 25.09 MB / 1.056 GB, free: 36.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001468/4.674, allocations: 24 kB / 1.056 GB, free: 36.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001306/4.674, allocations: 27.45 kB / 1.057 GB, free: 36.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4581/5.132, allocations: 47.09 MB / 1.102 GB, free: 76.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-05/5.133, allocations: 3.406 kB / 1.102 GB, free: 76.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007457/5.14, allocations: 0.7296 MB / 1.103 GB, free: 76.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08689/5.227, allocations: 13.3 MB / 1.116 GB, free: 76.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001718/5.229, allocations: 113.9 kB / 1.116 GB, free: 76.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1146/5.343, allocations: 49.19 MB / 1.164 GB, free: 62.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002221/5.346, allocations: 2.946 MB / 1.167 GB, free: 59.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1379/5.484, allocations: 36.26 MB / 1.203 GB, free: 30.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002641/5.486, allocations: 0.7243 MB / 1.203 GB, free: 30.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00362/5.49, allocations: 86.78 kB / 1.203 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01393/5.504, allocations: 0.8164 MB / 1.204 GB, free: 29.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002577/5.506, allocations: 327.2 kB / 1.205 GB, free: 29.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008803/5.507, allocations: 127.9 kB / 1.205 GB, free: 29.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01048/5.518, allocations: 4.569 MB / 1.209 GB, free: 24.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.486e-06/5.518, allocations: 0 / 1.209 GB, free: 24.76 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01657/5.534, allocations: 2.936 MB / 1.212 GB, free: 21.84 MB / 410.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.4361/5.971, allocations: 37.5 MB / 1.249 GB, free: 75.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.04025/6.011, allocations: 18.14 MB / 1.266 GB, free: 74.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/6.011, allocations: 6.625 kB / 1.266 GB, free: 74.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01872/6.03, allocations: 8.337 MB / 1.274 GB, free: 72.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008285/6.038, allocations: 0.8676 MB / 1.275 GB, free: 71.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09561/6.134, allocations: 26.74 MB / 1.301 GB, free: 62.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01414/6.148, allocations: 6.329 MB / 1.308 GB, free: 60.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01056/6.158, allocations: 4.247 MB / 1.312 GB, free: 57.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.834e-06/6.158, allocations: 0 / 1.312 GB, free: 57.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.021/14.18, allocations: 417 MB / 1.719 GB, free: 95.28 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat