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.977/1.977, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.583e-05/4.594e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.5302, allocations: 89.77 MB / 411.6 MB, free: 124 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.5306, allocations: 78.77 kB / 411.7 MB, free: 48 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.156/1.687, allocations: 196.5 MB / 0.594 GB, free: 64.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.474e-06/1.687, allocations: 192 / 0.594 GB, free: 64.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000483/1.688, allocations: 152 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.06613/1.754, allocations: 9.578 MB / 0.6035 GB, free: 54.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/1.754, allocations: 16.03 kB / 0.6035 GB, free: 54.53 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009827/1.764, allocations: 1.655 MB / 0.6051 GB, free: 52.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09038/1.854, allocations: 11.99 MB / 0.6168 GB, free: 40.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04293/1.897, allocations: 11.86 MB / 0.6284 GB, free: 28.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008529/1.898, allocations: 0.6255 MB / 0.629 GB, free: 28.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00586/1.904, allocations: 0.8393 MB / 0.6298 GB, free: 27.42 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06318/1.967, allocations: 21.45 MB / 0.6508 GB, free: 4.941 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005701/1.968, allocations: 79.22 kB / 0.6509 GB, free: 4.863 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005118/1.973, allocations: 379.7 kB / 0.6512 GB, free: 4.492 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005367/1.978, allocations: 2.466 MB / 0.6536 GB, free: 2.016 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6719/2.65, allocations: 20.63 MB / 0.6738 GB, free: 63.35 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1656/2.816, allocations: 80.95 MB / 0.7528 GB, free: 22.24 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02951/2.845, allocations: 9.636 MB / 0.7622 GB, free: 18.05 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01291/2.858, allocations: 6.364 MB / 0.7685 GB, free: 15.46 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000691/2.859, allocations: 73.2 kB / 0.7685 GB, free: 15.45 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.003e-05/2.859, allocations: 83.69 kB / 0.7686 GB, free: 15.38 MB / 426.8 MB Notification: Performance of pre-optimization done (n=583): time 1.22e-05/2.859, allocations: 2.812 kB / 0.7686 GB, free: 15.38 MB / 426.8 MB Notification: Performance of matching and sorting (n=611): time 0.1306/2.99, allocations: 35.09 MB / 0.8029 GB, free: 1.984 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006194/2.996, allocations: 6.126 MB / 0.8089 GB, free: 11.47 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01493/3.011, allocations: 5.656 MB / 0.8144 GB, free: 6.488 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001501/3.013, allocations: 109 kB / 0.8145 GB, free: 6.379 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006429/3.019, allocations: 5.669 MB / 0.82 GB, free: 1.27 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.3239/3.343, allocations: 2.239 MB / 0.8222 GB, free: 92.55 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002746/3.346, allocations: 239.2 kB / 0.8224 GB, free: 92.55 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.00153/3.347, allocations: 0.8598 MB / 0.8233 GB, free: 92.21 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01747/3.365, allocations: 6.236 MB / 0.8294 GB, free: 92.19 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02295/3.388, allocations: 12.35 MB / 0.8414 GB, free: 84.45 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02138/3.409, allocations: 8.894 MB / 0.8501 GB, free: 84.37 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004709/3.41, allocations: 61.22 kB / 0.8502 GB, free: 84.37 MB / 458.8 MB Notification: Performance of matching and sorting (n=1637) (initialization): time 0.0639/3.474, allocations: 20.36 MB / 0.8701 GB, free: 83.43 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002251/3.474, allocations: 94.31 kB / 0.8701 GB, free: 83.43 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04119/3.515, allocations: 12.89 MB / 0.8827 GB, free: 79.59 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02091/3.536, allocations: 3.229 MB / 0.8859 GB, free: 79.08 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02061/3.557, allocations: 2.982 MB / 0.8888 GB, free: 78.76 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/3.568, allocations: 10.48 MB / 0.899 GB, free: 70.12 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.017/3.585, allocations: 1.101 MB / 0.9001 GB, free: 69.93 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003262/3.588, allocations: 0.6708 MB / 0.9008 GB, free: 69.84 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.005568/3.594, allocations: 0.96 MB / 0.9017 GB, free: 69.19 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002327/3.596, allocations: 0.6599 MB / 0.9023 GB, free: 69.19 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04853/3.645, allocations: 14.56 MB / 0.9166 GB, free: 62.62 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04302/3.688, allocations: 13.01 MB / 0.9293 GB, free: 51.89 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.521e-05/3.688, allocations: 8 kB / 0.9293 GB, free: 51.88 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001346/3.688, allocations: 27.91 kB / 0.9293 GB, free: 51.88 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09828/3.787, allocations: 33.3 MB / 0.9618 GB, free: 24.9 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.722e-05/3.787, allocations: 12.3 kB / 0.9618 GB, free: 24.89 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01113/3.798, allocations: 1.136 MB / 0.963 GB, free: 24.04 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0233/3.821, allocations: 3.608 MB / 0.9665 GB, free: 21.69 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001696/3.823, allocations: 152.5 kB / 0.9666 GB, free: 21.54 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02748/3.851, allocations: 13.59 MB / 0.9799 GB, free: 7.273 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006134/3.857, allocations: 5.895 MB / 0.9856 GB, free: 0.8594 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4112/4.268, allocations: 23.57 MB / 1.009 GB, free: 92.58 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006742/4.275, allocations: 1.735 MB / 1.01 GB, free: 92.49 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003291/4.278, allocations: 127.7 kB / 1.01 GB, free: 92.49 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009715/4.288, allocations: 0.5981 MB / 1.011 GB, free: 92.49 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002259/4.29, allocations: 376.1 kB / 1.011 GB, free: 92.49 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001602/4.292, allocations: 156.8 kB / 1.012 GB, free: 92.49 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01064/4.303, allocations: 3.915 MB / 1.015 GB, free: 92.24 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.242e-06/4.303, allocations: 7.312 kB / 1.015 GB, free: 92.24 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01637/4.319, allocations: 2.516 MB / 1.018 GB, free: 92.24 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.06533/4.384, allocations: 26.18 MB / 1.043 GB, free: 85.95 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03958/4.424, allocations: 15.86 MB / 1.059 GB, free: 80.73 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.564e-05/4.424, allocations: 0 / 1.059 GB, free: 80.73 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02195/4.446, allocations: 8.094 MB / 1.067 GB, free: 77.29 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008217/4.454, allocations: 0.872 MB / 1.068 GB, free: 76.94 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08293/4.537, allocations: 27.55 MB / 1.095 GB, free: 58.9 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01712/4.554, allocations: 6.828 MB / 1.101 GB, free: 53.88 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01318/4.568, allocations: 4.45 MB / 1.106 GB, free: 49.75 MB / 474.8 MB Notification: Performance of SimCode: time 1.573e-06/4.568, allocations: 0 / 1.106 GB, free: 49.75 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.07/13.64, allocations: 0.7111 GB / 1.817 GB, free: 75.52 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