Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.197/2.197, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.966e-05/2.944e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3297, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.4802, allocations: 79.98 MB / 374.2 MB, free: 1.977 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/0.4806, allocations: 91.94 kB / 374.3 MB, free: 1.887 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4945/0.9751, allocations: 50 MB / 424.3 MB, free: 88.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.9752, allocations: 0.6562 kB / 424.3 MB, free: 88.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001823/0.9754, allocations: 53.12 kB / 424.3 MB, free: 88.7 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.009017/0.9844, allocations: 2.407 MB / 426.7 MB, free: 88.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.000114/0.9846, allocations: 12.12 kB / 426.8 MB, free: 88.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02668/1.011, allocations: 1.949 MB / 428.7 MB, free: 87.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008854/1.02, allocations: 1.395 MB / 430.1 MB, free: 87.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005062/1.021, allocations: 94.84 kB / 430.2 MB, free: 87.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003067/1.024, allocations: 177.7 kB / 430.4 MB, free: 87.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01337/1.037, allocations: 4.132 MB / 434.5 MB, free: 87.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01649/1.054, allocations: 6.828 MB / 441.3 MB, free: 85.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002207/1.054, allocations: 56.03 kB / 441.4 MB, free: 85.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001071/1.055, allocations: 26.28 kB / 441.4 MB, free: 85.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002131/1.057, allocations: 0.7926 MB / 442.2 MB, free: 85.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0459/1.103, allocations: 35.69 MB / 477.9 MB, free: 58.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003914/1.107, allocations: 1.913 MB / 479.8 MB, free: 56.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/1.109, allocations: 0.8669 MB / 480.7 MB, free: 56.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/1.109, allocations: 17.11 kB / 480.7 MB, free: 56.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/1.109, allocations: 56 kB / 480.7 MB, free: 56.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=112): time 6.742e-06/1.11, allocations: 3.891 kB / 480.7 MB, free: 56.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.03817/1.148, allocations: 5.229 MB / 486 MB, free: 55.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.467e-05/1.148, allocations: 221.6 kB / 486.2 MB, free: 55.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004677/1.152, allocations: 2.371 MB / 488.6 MB, free: 53.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/1.153, allocations: 29.7 kB / 488.6 MB, free: 53.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001964/1.155, allocations: 2.469 MB / 491.1 MB, free: 50.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007789/1.156, allocations: 0.4887 MB / 491.5 MB, free: 50.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004977/1.156, allocations: 0 / 491.5 MB, free: 50.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003389/1.156, allocations: 0.5433 MB / 492.1 MB, free: 50.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003139/1.16, allocations: 1.397 MB / 493.5 MB, free: 48.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005944/1.166, allocations: 5.014 MB / 498.5 MB, free: 42.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005747/1.171, allocations: 2.678 MB / 0.4894 GB, free: 39.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001197/1.172, allocations: 40 kB / 0.4895 GB, free: 39.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01559/1.187, allocations: 5.486 MB / 0.4948 GB, free: 34.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/1.187, allocations: 60 kB / 0.4949 GB, free: 34.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000171/1.188, allocations: 132.9 kB / 0.495 GB, free: 34.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/1.188, allocations: 188 kB / 0.4952 GB, free: 34.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01016/1.198, allocations: 1.56 MB / 0.4967 GB, free: 32.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002082/1.198, allocations: 255 kB / 0.497 GB, free: 32.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005705/1.204, allocations: 0.6368 MB / 0.4976 GB, free: 31.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.205, allocations: 352 kB / 0.4979 GB, free: 31.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (698): * Single equations (assignments): 695 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009029/1.206, allocations: 428.6 kB / 0.4983 GB, free: 30.81 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003048/1.209, allocations: 1.329 MB / 0.4996 GB, free: 29.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006125/1.21, allocations: 233 kB / 0.4998 GB, free: 29.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/1.212, allocations: 0.6747 MB / 0.5005 GB, free: 28.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.64e-05/1.212, allocations: 13.8 kB / 0.5005 GB, free: 28.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/1.212, allocations: 4 kB / 0.5005 GB, free: 28.54 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/1.212, allocations: 8.047 kB / 0.5005 GB, free: 28.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006766/1.219, allocations: 2.588 MB / 0.503 GB, free: 25.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/1.219, allocations: 0 / 0.503 GB, free: 25.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004966/1.224, allocations: 475.4 kB / 0.5035 GB, free: 25.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.309e-05/1.224, allocations: 8 kB / 0.5035 GB, free: 25.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002256/1.224, allocations: 27.91 kB / 0.5035 GB, free: 25.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.096e-05/1.224, allocations: 11.97 kB / 0.5035 GB, free: 25.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/1.224, allocations: 4 kB / 0.5036 GB, free: 25.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004173/1.228, allocations: 2.635 MB / 0.5061 GB, free: 22.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007613/1.229, allocations: 285.8 kB / 0.5064 GB, free: 22.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004992/1.229, allocations: 17.02 kB / 0.5064 GB, free: 22.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/1.231, allocations: 35.94 kB / 0.5064 GB, free: 22.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/1.231, allocations: 63.86 kB / 0.5065 GB, free: 22.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/1.232, allocations: 35.98 kB / 0.5065 GB, free: 22.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003048/1.235, allocations: 1.527 MB / 0.508 GB, free: 20.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.235, allocations: 0 / 0.508 GB, free: 20.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005973/1.241, allocations: 0.725 MB / 0.5087 GB, free: 20 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 85 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005027/1.246, allocations: 3.646 MB / 0.5123 GB, free: 16.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006984/1.253, allocations: 3.158 MB / 0.5154 GB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.253, allocations: 4 kB / 0.5154 GB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/1.254, allocations: 0.6206 MB / 0.516 GB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/1.256, allocations: 184.5 kB / 0.5162 GB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/1.278, allocations: 7.334 MB / 0.5233 GB, free: 5.113 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003733/1.282, allocations: 2.419 MB / 0.5257 GB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002817/1.284, allocations: 1.229 MB / 0.5269 GB, free: 1.441 MB / 362.7 MB Notification: Performance of SimCode: time 2.124e-06/1.284, allocations: 4 kB / 0.5269 GB, free: 1.438 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.081/5.365, allocations: 54.67 MB / 0.5803 GB, free: 90.68 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat