Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.416/2.416, allocations: 270 MB / 282.6 MB, free: 1.938 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.114e-05/4.132e-05, allocations: 4 kB / 347.1 MB, free: 3.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4197, allocations: 61.86 MB / 408.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1898/0.6096, allocations: 104.6 MB / 0.5015 GB, free: 1.938 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.61, allocations: 71.97 kB / 0.5016 GB, free: 1.867 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.125/1.735, allocations: 199.8 MB / 0.6967 GB, free: 3.828 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.434e-06/1.735, allocations: 0 / 0.6967 GB, free: 3.828 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006141/1.736, allocations: 159.9 kB / 0.6969 GB, free: 3.672 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3305 * Number of variables: 3305 Notification: Performance of Generate backend data structure: time 0.06871/1.805, allocations: 9.563 MB / 0.7062 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/1.805, allocations: 8.031 kB / 0.7062 GB, free: 10.01 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009259/1.814, allocations: 1.663 MB / 0.7078 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4802/2.294, allocations: 12.04 MB / 0.7196 GB, free: 84.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04213/2.337, allocations: 11.28 MB / 0.7306 GB, free: 84.26 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008974/2.337, allocations: 0.6194 MB / 0.7312 GB, free: 84.24 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005656/2.343, allocations: 0.8459 MB / 0.732 GB, free: 84.23 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1068/2.45, allocations: 21.45 MB / 0.753 GB, free: 81.38 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007467/2.451, allocations: 78.33 kB / 0.7531 GB, free: 81.38 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005331/2.456, allocations: 383.7 kB / 0.7534 GB, free: 81.38 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005467/2.462, allocations: 2.467 MB / 0.7558 GB, free: 81.35 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05724/2.519, allocations: 20.64 MB / 0.776 GB, free: 80.32 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1662/2.685, allocations: 80.99 MB / 0.8551 GB, free: 22.83 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02918/2.714, allocations: 9.637 MB / 0.8645 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01255/2.727, allocations: 6.362 MB / 0.8707 GB, free: 8.137 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000703/2.728, allocations: 71.7 kB / 0.8708 GB, free: 8.082 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.682e-05/2.728, allocations: 90.38 kB / 0.8709 GB, free: 7.988 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=583): time 9.669e-06/2.728, allocations: 0 / 0.8709 GB, free: 7.988 MB / 0.5105 GB Notification: Performance of matching and sorting (n=611): time 0.1264/2.854, allocations: 34.68 MB / 0.9047 GB, free: 9.707 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006048/2.86, allocations: 6.128 MB / 0.9107 GB, free: 3.195 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4058/3.266, allocations: 5.632 MB / 0.9162 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.00145/3.268, allocations: 109 kB / 0.9163 GB, free: 106 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00524/3.273, allocations: 5.678 MB / 0.9218 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003645/3.277, allocations: 2.245 MB / 0.924 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002429/3.279, allocations: 237.2 kB / 0.9243 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001245/3.28, allocations: 0.849 MB / 0.9251 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01527/3.296, allocations: 6.262 MB / 0.9312 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02047/3.316, allocations: 12.39 MB / 0.9433 GB, free: 94.92 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02699/3.343, allocations: 8.925 MB / 0.952 GB, free: 94.84 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003444/3.344, allocations: 61.34 kB / 0.9521 GB, free: 94.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1640) (initialization): time 0.08054/3.424, allocations: 20.78 MB / 0.9724 GB, free: 93.87 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001865/3.424, allocations: 93.91 kB / 0.9725 GB, free: 93.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04434/3.469, allocations: 13.23 MB / 0.9854 GB, free: 91.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0244/3.493, allocations: 3.569 MB / 0.9889 GB, free: 90.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01941/3.513, allocations: 2.927 MB / 0.9917 GB, free: 90.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01649/3.529, allocations: 12.16 MB / 1.004 GB, free: 81.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01718/3.547, allocations: 1.099 MB / 1.005 GB, free: 81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00319/3.55, allocations: 0.6793 MB / 1.005 GB, free: 80.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 48 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1492): * Single equations (assignments): 1458 * 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 {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 prepare postOptimizeDAE: time 0.00548/3.555, allocations: 0.955 MB / 1.006 GB, free: 80.13 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002697/3.558, allocations: 0.6582 MB / 1.007 GB, free: 79.76 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04928/3.607, allocations: 14.56 MB / 1.021 GB, free: 75.18 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04344/3.651, allocations: 13.02 MB / 1.034 GB, free: 67.38 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-05/3.651, allocations: 8 kB / 1.034 GB, free: 67.37 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001388/3.651, allocations: 23.48 kB / 1.034 GB, free: 67.37 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09844/3.75, allocations: 33.3 MB / 1.066 GB, free: 40.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.86e-05/3.75, allocations: 8 kB / 1.066 GB, free: 40.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01102/3.761, allocations: 1.137 MB / 1.068 GB, free: 39.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02333/3.784, allocations: 3.607 MB / 1.071 GB, free: 37.21 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001666/3.786, allocations: 150.8 kB / 1.071 GB, free: 37.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02/3.806, allocations: 13.6 MB / 1.084 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004324/3.81, allocations: 5.886 MB / 1.09 GB, free: 18.12 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0649/3.875, allocations: 23.57 MB / 1.113 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002855/3.878, allocations: 0.6879 MB / 1.114 GB, free: 11.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003526/3.882, allocations: 131 kB / 1.114 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01035/3.892, allocations: 0.5993 MB / 1.115 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.4081/4.3, allocations: 369.5 kB / 1.115 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001795/4.302, allocations: 157.9 kB / 1.115 GB, free: 107.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01274/4.315, allocations: 3.9 MB / 1.119 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.82e-07/4.315, allocations: 0 / 1.119 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01665/4.332, allocations: 2.535 MB / 1.121 GB, free: 107.6 MB / 0.5573 GB 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.06461/4.396, allocations: 26.19 MB / 1.147 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0378/4.434, allocations: 16.36 MB / 1.163 GB, free: 100.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/4.434, allocations: 3.562 kB / 1.163 GB, free: 100.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02125/4.455, allocations: 8.088 MB / 1.171 GB, free: 99.35 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008566/4.464, allocations: 0.8697 MB / 1.172 GB, free: 99.31 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08174/4.546, allocations: 27.54 MB / 1.199 GB, free: 91.31 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0172/4.563, allocations: 6.823 MB / 1.205 GB, free: 89.28 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0133/4.576, allocations: 4.445 MB / 1.21 GB, free: 85.69 MB / 0.5573 GB Notification: Performance of SimCode: time 1.923e-06/4.577, allocations: 0 / 1.21 GB, free: 85.69 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.942/13.52, allocations: 0.7115 GB / 1.921 GB, free: 71.8 MB / 0.6198 GB