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 2.168/2.168, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.061e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 48.7 MB / 316.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.5568, allocations: 89.35 MB / 405.6 MB, free: 3.242 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.5572, allocations: 78.45 kB / 405.7 MB, free: 3.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.082/1.639, allocations: 193.2 MB / 0.5849 GB, free: 46.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.639, allocations: 3.938 kB / 0.5849 GB, free: 46.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000516/1.64, allocations: 159.9 kB / 0.585 GB, free: 46.62 MB / 410.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.06614/1.706, allocations: 9.563 MB / 0.5944 GB, free: 36.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/1.706, allocations: 12.03 kB / 0.5944 GB, free: 36.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1082/1.814, allocations: 11.99 MB / 0.6061 GB, free: 24.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06333/1.878, allocations: 11.84 MB / 0.6176 GB, free: 13.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008673/1.879, allocations: 268 kB / 0.6179 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007437/1.886, allocations: 0.5036 MB / 0.6184 GB, free: 12.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04454/1.931, allocations: 15.15 MB / 0.6332 GB, free: 13.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6837/2.614, allocations: 20.05 MB / 0.6528 GB, free: 61.71 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006648/2.615, allocations: 73.31 kB / 0.6528 GB, free: 61.71 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005246/2.62, allocations: 31.56 kB / 0.6529 GB, free: 61.71 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006169/2.627, allocations: 2.463 MB / 0.6553 GB, free: 61.68 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1622/2.789, allocations: 76.62 MB / 0.7301 GB, free: 28.25 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02278/2.812, allocations: 10.07 MB / 0.7399 GB, free: 22.71 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01612/2.828, allocations: 6.259 MB / 0.7461 GB, free: 20.18 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008846/2.829, allocations: 78.64 kB / 0.7461 GB, free: 20.17 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.858e-05/2.829, allocations: 89.36 kB / 0.7462 GB, free: 20.09 MB / 426.8 MB Notification: Performance of pre-optimization done (n=587): time 1.505e-05/2.829, allocations: 0 / 0.7462 GB, free: 20.09 MB / 426.8 MB Notification: Performance of matching and sorting (n=615): time 0.1161/2.945, allocations: 35.16 MB / 0.7805 GB, free: 4.418 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/2.945, allocations: 262.9 kB / 0.7808 GB, free: 4.113 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01258/2.958, allocations: 5.375 MB / 0.786 GB, free: 15.43 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001486/2.959, allocations: 29.7 kB / 0.7861 GB, free: 15.4 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006528/2.966, allocations: 5.848 MB / 0.7918 GB, free: 10.05 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00434/2.97, allocations: 2.208 MB / 0.7939 GB, free: 8.059 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002299/2.973, allocations: 0 / 0.7939 GB, free: 8.059 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.001462/2.974, allocations: 0.8843 MB / 0.7948 GB, free: 7.324 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01616/2.99, allocations: 6.132 MB / 0.8008 GB, free: 1.836 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3667/3.357, allocations: 14.22 MB / 0.8147 GB, free: 73.24 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0239/3.381, allocations: 8.929 MB / 0.8234 GB, free: 73.18 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004715/3.381, allocations: 66.34 kB / 0.8235 GB, free: 73.18 MB / 442.8 MB Notification: Performance of matching and sorting (n=1725) (initialization): time 0.06652/3.448, allocations: 20.06 MB / 0.8431 GB, free: 72.3 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002818/3.448, allocations: 104 kB / 0.8432 GB, free: 72.3 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0408/3.489, allocations: 12.61 MB / 0.8555 GB, free: 71.98 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02029/3.509, allocations: 3.197 MB / 0.8586 GB, free: 71.89 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02145/3.531, allocations: 3.147 MB / 0.8617 GB, free: 71.65 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/3.542, allocations: 10.14 MB / 0.8716 GB, free: 64.14 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01793/3.56, allocations: 0.8799 MB / 0.8724 GB, free: 64.13 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004456/3.565, allocations: 0.7135 MB / 0.8731 GB, free: 64.13 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1056 * 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 (1589): * Single equations (assignments): 1555 * 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.008312/3.573, allocations: 0.6996 MB / 0.8738 GB, free: 63.77 MB / 442.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06326/3.636, allocations: 13.08 MB / 0.8866 GB, free: 60.34 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003841/3.64, allocations: 0.6433 MB / 0.8872 GB, free: 60.34 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0677/3.708, allocations: 14.19 MB / 0.9011 GB, free: 54.69 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05961/3.768, allocations: 12.71 MB / 0.9135 GB, free: 44.26 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001025/3.768, allocations: 8 kB / 0.9135 GB, free: 44.25 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000226/3.768, allocations: 25.88 kB / 0.9135 GB, free: 44.25 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1307/3.899, allocations: 31.76 MB / 0.9445 GB, free: 18.59 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001147/3.899, allocations: 8 kB / 0.9445 GB, free: 18.58 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01538/3.914, allocations: 1.148 MB / 0.9457 GB, free: 17.71 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03007/3.944, allocations: 3.553 MB / 0.9491 GB, free: 14.66 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002114/3.947, allocations: 83.86 kB / 0.9492 GB, free: 14.57 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02881/3.975, allocations: 13.36 MB / 0.9623 GB, free: 0.6523 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007452/3.983, allocations: 5.649 MB / 0.9678 GB, free: 10.54 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4509/4.434, allocations: 23.35 MB / 0.9906 GB, free: 82.06 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006803/4.441, allocations: 1.722 MB / 0.9923 GB, free: 81.97 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003068/4.444, allocations: 46.69 kB / 0.9923 GB, free: 81.97 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009113/4.453, allocations: 0.5226 MB / 0.9928 GB, free: 81.97 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002242/4.455, allocations: 381 kB / 0.9932 GB, free: 81.97 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008018/4.456, allocations: 161.5 kB / 0.9933 GB, free: 81.97 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.009352/4.465, allocations: 3.584 MB / 0.9968 GB, free: 81.75 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.313e-06/4.465, allocations: 0 / 0.9968 GB, free: 81.75 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01735/4.483, allocations: 2.292 MB / 0.9991 GB, free: 81.75 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (479): * Single equations (assignments): 453 * 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.06213/4.545, allocations: 26.06 MB / 1.025 GB, free: 75.42 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.03789/4.583, allocations: 15.82 MB / 1.04 GB, free: 70.16 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/4.583, allocations: 0 / 1.04 GB, free: 70.16 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02083/4.604, allocations: 7.998 MB / 1.048 GB, free: 66.73 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007544/4.611, allocations: 0.6469 MB / 1.048 GB, free: 66.47 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08317/4.695, allocations: 27.11 MB / 1.075 GB, free: 48.42 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01754/4.712, allocations: 6.83 MB / 1.082 GB, free: 43.39 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01338/4.726, allocations: 4.515 MB / 1.086 GB, free: 39.21 MB / 458.8 MB Notification: Performance of SimCode: time 1.633e-06/4.726, allocations: 0 / 1.086 GB, free: 39.21 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.151/13.88, allocations: 0.71 GB / 1.796 GB, free: 55.38 MB / 0.4949 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