Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.997/1.997, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.741e-05/3.752e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.434/0.5367, allocations: 89.76 MB / 411.6 MB, free: 116 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.537, allocations: 78.83 kB / 411.7 MB, free: 40 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.083/1.62, allocations: 196.5 MB / 0.5939 GB, free: 64.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.954e-06/1.62, allocations: 0 / 0.5939 GB, free: 64.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004918/1.621, allocations: 156 kB / 0.5941 GB, free: 64.21 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: 3302 * Number of variables: 3302 Notification: Performance of Generate backend data structure: time 0.06422/1.685, allocations: 9.583 MB / 0.6034 GB, free: 54.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/1.685, allocations: 19.97 kB / 0.6035 GB, free: 54.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009083/1.694, allocations: 1.659 MB / 0.6051 GB, free: 52.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08884/1.783, allocations: 11.99 MB / 0.6168 GB, free: 40.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04316/1.826, allocations: 11.86 MB / 0.6284 GB, free: 28.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008774/1.827, allocations: 0.6294 MB / 0.629 GB, free: 28.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005959/1.833, allocations: 0.8393 MB / 0.6298 GB, free: 27.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06491/1.898, allocations: 21.55 MB / 0.6508 GB, free: 4.828 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005845/1.899, allocations: 83.2 kB / 0.6509 GB, free: 4.746 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005231/1.904, allocations: 379.7 kB / 0.6513 GB, free: 4.375 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005371/1.909, allocations: 2.462 MB / 0.6537 GB, free: 1.902 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7067/2.616, allocations: 20.88 MB / 0.6741 GB, free: 63.51 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1661/2.782, allocations: 80.95 MB / 0.7531 GB, free: 22.18 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03766/2.82, allocations: 9.675 MB / 0.7626 GB, free: 17.95 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02283/2.843, allocations: 6.358 MB / 0.7688 GB, free: 15.23 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02142/2.864, allocations: 76.3 kB / 0.7689 GB, free: 15.17 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/2.865, allocations: 96.17 kB / 0.769 GB, free: 15.07 MB / 426.8 MB Notification: Performance of pre-optimization done (n=583): time 1.668e-05/2.865, allocations: 0 / 0.769 GB, free: 15.07 MB / 426.8 MB Notification: Performance of matching and sorting (n=611): time 0.153/3.018, allocations: 35.23 MB / 0.8034 GB, free: 1.977 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008278/3.026, allocations: 6.141 MB / 0.8094 GB, free: 11.45 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01989/3.046, allocations: 5.653 MB / 0.8149 GB, free: 6.465 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001555/3.047, allocations: 110.9 kB / 0.815 GB, free: 6.355 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006735/3.054, allocations: 5.658 MB / 0.8205 GB, free: 1.254 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.3469/3.401, allocations: 2.241 MB / 0.8227 GB, free: 93.25 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00267/3.404, allocations: 240.5 kB / 0.8229 GB, free: 93.25 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001604/3.406, allocations: 0.8597 MB / 0.8238 GB, free: 92.91 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0173/3.423, allocations: 6.241 MB / 0.8299 GB, free: 92.88 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0235/3.446, allocations: 12.42 MB / 0.842 GB, free: 85.12 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02206/3.469, allocations: 8.891 MB / 0.8507 GB, free: 85.04 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004747/3.469, allocations: 64.84 kB / 0.8507 GB, free: 85.04 MB / 458.8 MB Notification: Performance of matching and sorting (n=1637) (initialization): time 0.06527/3.534, allocations: 20.96 MB / 0.8712 GB, free: 83.51 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002436/3.535, allocations: 98.97 kB / 0.8713 GB, free: 83.51 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04178/3.576, allocations: 12.89 MB / 0.8839 GB, free: 79.66 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02117/3.598, allocations: 3.232 MB / 0.887 GB, free: 79.16 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02117/3.619, allocations: 2.986 MB / 0.89 GB, free: 78.84 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/3.63, allocations: 10.49 MB / 0.9002 GB, free: 70.2 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01726/3.648, allocations: 1.109 MB / 0.9013 GB, free: 70 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003283/3.651, allocations: 0.6664 MB / 0.9019 GB, free: 69.91 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 972 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1501): * Single equations (assignments): 1467 * Array equations: 20 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00563/3.657, allocations: 0.9631 MB / 0.9029 GB, free: 69.26 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002221/3.659, allocations: 0.6532 MB / 0.9035 GB, free: 69.26 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04897/3.708, allocations: 14.56 MB / 0.9177 GB, free: 62.11 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04392/3.752, allocations: 13.02 MB / 0.9304 GB, free: 51.37 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.851e-05/3.752, allocations: 8 kB / 0.9305 GB, free: 51.36 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001372/3.752, allocations: 31.81 kB / 0.9305 GB, free: 51.35 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.101/3.853, allocations: 33.33 MB / 0.963 GB, free: 24.36 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-05/3.853, allocations: 8 kB / 0.963 GB, free: 24.35 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01128/3.865, allocations: 1.138 MB / 0.9642 GB, free: 23.49 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02372/3.888, allocations: 3.612 MB / 0.9677 GB, free: 20.97 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001773/3.89, allocations: 146.2 kB / 0.9678 GB, free: 20.83 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02079/3.911, allocations: 13.6 MB / 0.9811 GB, free: 6.539 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0045/3.916, allocations: 5.907 MB / 0.9869 GB, free: 124 kB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.412/4.328, allocations: 23.58 MB / 1.01 GB, free: 93.49 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007089/4.335, allocations: 1.727 MB / 1.012 GB, free: 93.4 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003367/4.338, allocations: 132.4 kB / 1.012 GB, free: 93.4 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009904/4.348, allocations: 0.5917 MB / 1.012 GB, free: 93.4 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002333/4.351, allocations: 383.7 kB / 1.013 GB, free: 93.4 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001469/4.352, allocations: 159.2 kB / 1.013 GB, free: 93.4 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01076/4.363, allocations: 3.916 MB / 1.017 GB, free: 93.15 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.01e-07/4.363, allocations: 0 / 1.017 GB, free: 93.15 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01632/4.379, allocations: 2.513 MB / 1.019 GB, free: 93.15 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 48 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],BodyBox1.v_0[1],BodyBox1.v_0[2],BodyBox1.v_0[3],BodyBox1.body.frame_a.r_0[1],BodyBox1.body.frame_a.r_0[2],BodyBox1.body.frame_a.r_0[3],BodyBox1.body.w_a[1],BodyBox1.body.w_a[2],BodyBox1.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (475): * Single equations (assignments): 449 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06771/4.447, allocations: 26.19 MB / 1.045 GB, free: 86.47 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0403/4.487, allocations: 16.19 MB / 1.06 GB, free: 81.16 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.06e-05/4.487, allocations: 4.203 kB / 1.06 GB, free: 81.16 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02173/4.509, allocations: 8.16 MB / 1.068 GB, free: 77.66 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008443/4.518, allocations: 0.8628 MB / 1.069 GB, free: 77.31 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08545/4.603, allocations: 27.61 MB / 1.096 GB, free: 58.02 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01757/4.621, allocations: 6.828 MB / 1.103 GB, free: 52.98 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01299/4.634, allocations: 4.446 MB / 1.107 GB, free: 48.87 MB / 474.8 MB Notification: Performance of SimCode: time 2.334e-06/4.634, allocations: 4 kB / 1.107 GB, free: 48.86 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.502/14.14, allocations: 0.713 GB / 1.82 GB, free: 72.08 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat does not exist to compare? outputFormat=mat