Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.276e-05/3.284e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09387, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.5672, allocations: 86.94 MB / 386.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.5675, allocations: 86.28 kB / 387 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2896/0.8572, allocations: 71.62 MB / 458.6 MB, free: 7.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.8572, allocations: 0 / 458.6 MB, free: 7.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000248/0.8575, allocations: 71.67 kB / 458.7 MB, free: 7.465 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: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.02186/0.8794, allocations: 3.782 MB / 462.5 MB, free: 3.645 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.8795, allocations: 12.03 kB / 462.5 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003166/0.8826, allocations: 0.6704 MB / 463.1 MB, free: 2.977 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01762/0.9003, allocations: 2.148 MB / 465.3 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01862/0.919, allocations: 4.443 MB / 469.7 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003993/0.9194, allocations: 272.4 kB / 470 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002037/0.9215, allocations: 364.2 kB / 470.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02733/0.9488, allocations: 8.966 MB / 479.3 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002301/0.9491, allocations: 59.48 kB / 479.4 MB, free: 1.879 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00126/0.9504, allocations: 182.3 kB / 479.5 MB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00215/0.9526, allocations: 0.8759 MB / 480.4 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02384/0.9764, allocations: 7.079 MB / 487.5 MB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3694/1.346, allocations: 43.16 MB / 0.5182 GB, free: 69.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0134/1.359, allocations: 3.127 MB / 0.5213 GB, free: 69.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003209/1.363, allocations: 1.358 MB / 0.5226 GB, free: 69.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01517/1.378, allocations: 6.064 MB / 0.5285 GB, free: 67.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/1.378, allocations: 49.39 kB / 0.5286 GB, free: 67.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 4.579e-06/1.378, allocations: 1.344 kB / 0.5286 GB, free: 67.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.03561/1.414, allocations: 8.938 MB / 0.5373 GB, free: 65.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00132/1.415, allocations: 1.612 MB / 0.5389 GB, free: 63.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006814/1.422, allocations: 3.108 MB / 0.5419 GB, free: 63.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003717/1.422, allocations: 41.2 kB / 0.542 GB, free: 63.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002243/1.424, allocations: 2.729 MB / 0.5446 GB, free: 61.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008899/1.425, allocations: 0.5267 MB / 0.5451 GB, free: 61.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006243/1.426, allocations: 102.5 kB / 0.5452 GB, free: 61.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003258/1.426, allocations: 0.5379 MB / 0.5458 GB, free: 61.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004343/1.431, allocations: 1.827 MB / 0.5475 GB, free: 61.22 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006633/1.437, allocations: 5.195 MB / 0.5526 GB, free: 56.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00665/1.444, allocations: 3.07 MB / 0.5556 GB, free: 56.76 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.444, allocations: 35.16 kB / 0.5556 GB, free: 56.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.03025/1.475, allocations: 7.833 MB / 0.5633 GB, free: 56.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.475, allocations: 57.25 kB / 0.5634 GB, free: 56.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01999/1.495, allocations: 3.059 MB / 0.5663 GB, free: 56.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02394/1.519, allocations: 1.95 MB / 0.5682 GB, free: 56.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009638/1.528, allocations: 1.218 MB / 0.5694 GB, free: 56.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01926/1.548, allocations: 5.715 MB / 0.575 GB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01078/1.559, allocations: 379.6 kB / 0.5754 GB, free: 52.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001585/1.56, allocations: 342.6 kB / 0.5757 GB, free: 52.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (657): * Single equations (assignments): 648 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002186/1.562, allocations: 0.5138 MB / 0.5762 GB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008243/1.563, allocations: 293.9 kB / 0.5765 GB, free: 51.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009205/1.573, allocations: 2.654 MB / 0.5791 GB, free: 50.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007535/1.58, allocations: 2.241 MB / 0.5813 GB, free: 50.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/1.58, allocations: 9.375 kB / 0.5813 GB, free: 50.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-05/1.58, allocations: 7.734 kB / 0.5813 GB, free: 50.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009789/1.59, allocations: 3.35 MB / 0.5846 GB, free: 49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.618e-05/1.59, allocations: 0 / 0.5846 GB, free: 49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002096/1.592, allocations: 209.8 kB / 0.5848 GB, free: 48.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005444/1.598, allocations: 1.044 MB / 0.5858 GB, free: 48.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003893/1.598, allocations: 32.09 kB / 0.5858 GB, free: 48.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008272/1.606, allocations: 4.99 MB / 0.5907 GB, free: 45.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001178/1.608, allocations: 1.477 MB / 0.5921 GB, free: 43.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01243/1.62, allocations: 4.833 MB / 0.5968 GB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/1.621, allocations: 367.2 kB / 0.5972 GB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001121/1.623, allocations: 29.3 kB / 0.5972 GB, free: 41.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003059/1.626, allocations: 127.9 kB / 0.5973 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005287/1.626, allocations: 71.06 kB / 0.5974 GB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/1.626, allocations: 39.94 kB / 0.5974 GB, free: 40.92 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005506/1.632, allocations: 2.146 MB / 0.5995 GB, free: 39.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.632, allocations: 0 / 0.5995 GB, free: 39.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006929/1.639, allocations: 0.94 MB / 0.6005 GB, free: 38.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 86 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01343/1.652, allocations: 5.657 MB / 0.606 GB, free: 33.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01861/1.671, allocations: 4.859 MB / 0.6107 GB, free: 28.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.671, allocations: 0 / 0.6107 GB, free: 28.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009086/1.68, allocations: 1.974 MB / 0.6127 GB, free: 27.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004299/1.685, allocations: 359.7 kB / 0.613 GB, free: 26.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0518/1.736, allocations: 8.401 MB / 0.6212 GB, free: 19.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01449/1.751, allocations: 2.944 MB / 0.6241 GB, free: 17.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01107/1.762, allocations: 1.593 MB / 0.6256 GB, free: 15.72 MB / 410.7 MB Notification: Performance of SimCode: time 1.843e-06/1.762, allocations: 0 / 0.6256 GB, free: 15.72 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.753/6.515, allocations: 129.9 MB / 0.7525 GB, free: 124.9 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat