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 1.928/1.928, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.245e-05/3.256e-05, allocations: 7.984 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09592, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4295/0.5255, allocations: 86.93 MB / 386.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.5258, allocations: 80.72 kB / 386.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2829/0.8087, allocations: 71.62 MB / 458.6 MB, free: 7.66 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.8087, allocations: 4 kB / 458.6 MB, free: 7.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002543/0.809, allocations: 71.75 kB / 458.6 MB, free: 7.59 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.02219/0.8312, allocations: 3.782 MB / 462.4 MB, free: 3.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/0.8313, allocations: 8.031 kB / 462.4 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003342/0.8346, allocations: 0.6698 MB / 463.1 MB, free: 3.105 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01792/0.8526, allocations: 2.144 MB / 465.2 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01913/0.8717, allocations: 4.432 MB / 469.7 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004055/0.8722, allocations: 278.2 kB / 469.9 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00219/0.8744, allocations: 362.3 kB / 470.3 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02921/0.9036, allocations: 9.02 MB / 479.3 MB, free: 2.027 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002765/0.904, allocations: 51.56 kB / 479.4 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001608/0.9056, allocations: 175 kB / 479.5 MB, free: 1.828 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002214/0.9078, allocations: 0.8801 MB / 480.4 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02384/0.9317, allocations: 7.243 MB / 487.7 MB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3923/1.324, allocations: 43.17 MB / 0.5184 GB, free: 69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01378/1.338, allocations: 3.139 MB / 0.5215 GB, free: 68.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003211/1.341, allocations: 1.363 MB / 0.5228 GB, free: 68.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01575/1.357, allocations: 6.064 MB / 0.5287 GB, free: 66.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.556e-05/1.357, allocations: 49.28 kB / 0.5288 GB, free: 66.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 4.559e-06/1.357, allocations: 0 / 0.5288 GB, free: 66.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.03754/1.395, allocations: 8.944 MB / 0.5375 GB, free: 64.44 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001385/1.396, allocations: 1.611 MB / 0.5391 GB, free: 62.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007285/1.403, allocations: 3.109 MB / 0.5421 GB, free: 62.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003908/1.404, allocations: 46.62 kB / 0.5421 GB, free: 62.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002306/1.406, allocations: 2.73 MB / 0.5448 GB, free: 61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008988/1.407, allocations: 0.521 MB / 0.5453 GB, free: 60.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007387/1.408, allocations: 104.8 kB / 0.5454 GB, free: 60.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004392/1.408, allocations: 0.5391 MB / 0.5459 GB, free: 60.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004627/1.413, allocations: 1.825 MB / 0.5477 GB, free: 60.39 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00696/1.42, allocations: 5.227 MB / 0.5528 GB, free: 55.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006806/1.427, allocations: 3.071 MB / 0.5558 GB, free: 55.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000144/1.427, allocations: 32.88 kB / 0.5559 GB, free: 55.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.03071/1.458, allocations: 8.171 MB / 0.5638 GB, free: 55.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/1.458, allocations: 59.81 kB / 0.5639 GB, free: 55.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01665/1.475, allocations: 3.058 MB / 0.5669 GB, free: 55.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01691/1.491, allocations: 1.948 MB / 0.5688 GB, free: 55.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007215/1.499, allocations: 1.222 MB / 0.57 GB, free: 55.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/1.511, allocations: 5.717 MB / 0.5756 GB, free: 51.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00673/1.518, allocations: 377.6 kB / 0.5759 GB, free: 51.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001305/1.519, allocations: 333 kB / 0.5762 GB, free: 51.34 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.001616/1.521, allocations: 0.5216 MB / 0.5768 GB, free: 50.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007789/1.521, allocations: 294.1 kB / 0.577 GB, free: 50.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008647/1.53, allocations: 2.664 MB / 0.5796 GB, free: 49.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007673/1.538, allocations: 2.242 MB / 0.5818 GB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.659e-05/1.538, allocations: 12.53 kB / 0.5818 GB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.042e-05/1.538, allocations: 3.469 kB / 0.5818 GB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009072/1.547, allocations: 3.347 MB / 0.5851 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.707e-05/1.547, allocations: 0 / 0.5851 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002138/1.549, allocations: 207 kB / 0.5853 GB, free: 47.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00535/1.555, allocations: 1.038 MB / 0.5863 GB, free: 47.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003934/1.555, allocations: 37.2 kB / 0.5864 GB, free: 47.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008257/1.563, allocations: 4.997 MB / 0.5912 GB, free: 44.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001162/1.564, allocations: 1.466 MB / 0.5927 GB, free: 42.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01243/1.577, allocations: 4.853 MB / 0.5974 GB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.578, allocations: 366 kB / 0.5978 GB, free: 39.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0011/1.579, allocations: 24 kB / 0.5978 GB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/1.582, allocations: 122.6 kB / 0.5979 GB, free: 39.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005602/1.583, allocations: 72.8 kB / 0.598 GB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/1.583, allocations: 43.92 kB / 0.598 GB, free: 39.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00569/1.589, allocations: 2.146 MB / 0.6001 GB, free: 37.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.589, allocations: 0 / 0.6001 GB, free: 37.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006955/1.596, allocations: 0.9405 MB / 0.601 GB, free: 36.89 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.01344/1.609, allocations: 5.656 MB / 0.6065 GB, free: 31.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01378/1.623, allocations: 5.042 MB / 0.6115 GB, free: 27.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.623, allocations: 0 / 0.6115 GB, free: 27.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006748/1.63, allocations: 1.995 MB / 0.6134 GB, free: 25.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003233/1.633, allocations: 354.2 kB / 0.6138 GB, free: 25.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02673/1.66, allocations: 8.399 MB / 0.622 GB, free: 18.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005857/1.666, allocations: 2.938 MB / 0.6248 GB, free: 15.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003833/1.67, allocations: 1.6 MB / 0.6264 GB, free: 14.29 MB / 410.7 MB Notification: Performance of SimCode: time 2.124e-06/1.67, allocations: 0 / 0.6264 GB, free: 14.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.834/6.503, allocations: 130.8 MB / 0.7541 GB, free: 121.8 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