Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.089/2.089, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.567e-05, allocations: 3.25 kB / 292.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 50.4 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.495/0.6131, allocations: 95.71 MB / 438.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/0.6135, allocations: 85.77 kB / 438.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.352/0.9655, allocations: 74.51 MB / 0.5009 GB, free: 7.871 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.726e-06/0.9656, allocations: 0 / 0.5009 GB, free: 7.871 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002969/0.9659, allocations: 79.92 kB / 0.501 GB, free: 7.793 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.02297/0.9889, allocations: 3.858 MB / 0.5048 GB, free: 3.875 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.989, allocations: 12.03 kB / 0.5048 GB, free: 3.863 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003412/0.9924, allocations: 0.6875 MB / 0.5055 GB, free: 3.164 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01817/1.011, allocations: 2.148 MB / 0.5076 GB, free: 1.008 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01985/1.031, allocations: 4.33 MB / 0.5118 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004809/1.031, allocations: 291.4 kB / 0.5121 GB, free: 12.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002281/1.033, allocations: 371.8 kB / 0.5124 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03193/1.065, allocations: 9.215 MB / 0.5214 GB, free: 1.789 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002935/1.066, allocations: 63.47 kB / 0.5215 GB, free: 1.727 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001891/1.068, allocations: 183.9 kB / 0.5217 GB, free: 1.547 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002476/1.07, allocations: 0.8999 MB / 0.5225 GB, free: 0.6484 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3491/1.419, allocations: 7.29 MB / 0.5296 GB, free: 103.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09705/1.516, allocations: 43.89 MB / 0.5725 GB, free: 76.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02182/1.538, allocations: 3.404 MB / 0.5758 GB, free: 75.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00465/1.543, allocations: 1.413 MB / 0.5772 GB, free: 74.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0233/1.566, allocations: 6.856 MB / 0.5839 GB, free: 70.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.603e-05/1.566, allocations: 46.72 kB / 0.584 GB, free: 70.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 9.508e-06/1.567, allocations: 3.891 kB / 0.584 GB, free: 70.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.0563/1.623, allocations: 9.286 MB / 0.593 GB, free: 67.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001313/1.624, allocations: 1.612 MB / 0.5946 GB, free: 65.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006351/1.631, allocations: 3.118 MB / 0.5976 GB, free: 64.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003903/1.631, allocations: 46.73 kB / 0.5977 GB, free: 64.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002118/1.633, allocations: 2.805 MB / 0.6004 GB, free: 62.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008293/1.634, allocations: 0.5692 MB / 0.601 GB, free: 61.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004615/1.634, allocations: 106.9 kB / 0.6011 GB, free: 61.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003185/1.635, allocations: 0.5435 MB / 0.6016 GB, free: 61.28 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005564/1.64, allocations: 1.851 MB / 0.6034 GB, free: 60.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008546/1.649, allocations: 5.251 MB / 0.6086 GB, free: 55.36 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00647/1.656, allocations: 3.091 MB / 0.6116 GB, free: 54.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/1.656, allocations: 37.12 kB / 0.6116 GB, free: 54.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.03057/1.686, allocations: 8.035 MB / 0.6195 GB, free: 51.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.686, allocations: 58.22 kB / 0.6195 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01698/1.703, allocations: 3.124 MB / 0.6226 GB, free: 50.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.017/1.721, allocations: 1.943 MB / 0.6245 GB, free: 49.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007205/1.728, allocations: 1.256 MB / 0.6257 GB, free: 48.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/1.739, allocations: 5.677 MB / 0.6312 GB, free: 43.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006614/1.746, allocations: 374.5 kB / 0.6316 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/1.747, allocations: 340.3 kB / 0.6319 GB, free: 42.55 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * Number of states: 0 () * Number of discrete variables: 36 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (674): * Single equations (assignments): 665 * 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.001089/1.748, allocations: 0.5249 MB / 0.6324 GB, free: 42.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007594/1.749, allocations: 300.1 kB / 0.6327 GB, free: 41.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008329/1.757, allocations: 2.737 MB / 0.6354 GB, free: 39.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007323/1.765, allocations: 2.315 MB / 0.6376 GB, free: 37.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/1.765, allocations: 3.875 kB / 0.6376 GB, free: 37.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.999e-05/1.765, allocations: 11.31 kB / 0.6377 GB, free: 37.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02095/1.786, allocations: 7.822 MB / 0.6453 GB, free: 31.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/1.786, allocations: 0 / 0.6453 GB, free: 31.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/1.788, allocations: 222.4 kB / 0.6455 GB, free: 31.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005208/1.793, allocations: 1.045 MB / 0.6465 GB, free: 30.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002511/1.794, allocations: 39.36 kB / 0.6466 GB, free: 30.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00759/1.801, allocations: 4.952 MB / 0.6514 GB, free: 25.92 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001068/1.802, allocations: 1.473 MB / 0.6528 GB, free: 24.36 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/1.816, allocations: 5.049 MB / 0.6578 GB, free: 19.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/1.817, allocations: 365 kB / 0.6581 GB, free: 19.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006224/1.818, allocations: 31.98 kB / 0.6581 GB, free: 19.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002512/1.82, allocations: 119.8 kB / 0.6583 GB, free: 19.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/1.821, allocations: 89.11 kB / 0.6583 GB, free: 19.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.821, allocations: 41.39 kB / 0.6584 GB, free: 19.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004275/1.825, allocations: 2.147 MB / 0.6605 GB, free: 17.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.825, allocations: 4 kB / 0.6605 GB, free: 17.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006312/1.831, allocations: 0.9672 MB / 0.6614 GB, free: 16.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (105): * Single equations (assignments): 98 * 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.01237/1.844, allocations: 6.042 MB / 0.6673 GB, free: 9.969 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01261/1.857, allocations: 4.904 MB / 0.6721 GB, free: 5.027 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.857, allocations: 0 / 0.6721 GB, free: 5.027 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006055/1.863, allocations: 1.971 MB / 0.674 GB, free: 2.992 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00318/1.866, allocations: 366.9 kB / 0.6744 GB, free: 2.641 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02682/1.893, allocations: 8.182 MB / 0.6824 GB, free: 10.44 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006488/1.899, allocations: 2.984 MB / 0.6853 GB, free: 7.441 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007974/1.907, allocations: 1.693 MB / 0.687 GB, free: 5.754 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004157/1.912, allocations: 1.608 MB / 0.6885 GB, free: 4.145 MB / 458.7 MB Notification: Performance of SimCode: time 1.383e-06/1.912, allocations: 4 kB / 0.6885 GB, free: 4.141 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.497/2.409, allocations: 69.39 MB / 0.7563 GB, free: 96.27 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/2.409, allocations: 189.7 kB / 0.7565 GB, free: 96.05 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.893/7.302, allocations: 0 / 0.7565 GB, free: 96.05 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat