Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.411/2.411, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.743e-05/3.752e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4155/0.4156, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.179/0.5947, allocations: 96.47 MB / 456.3 MB, free: 384 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.595, allocations: 71.97 kB / 456.4 MB, free: 312 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.128/1.723, allocations: 196.7 MB / 0.6378 GB, free: 51 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.723, allocations: 4 kB / 0.6378 GB, free: 51 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004789/1.723, allocations: 159.9 kB / 0.6379 GB, free: 50.84 MB / 458.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.06494/1.788, allocations: 9.571 MB / 0.6473 GB, free: 41.19 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/1.789, allocations: 12.03 kB / 0.6473 GB, free: 41.18 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00906/1.798, allocations: 1.663 MB / 0.6489 GB, free: 39.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09014/1.888, allocations: 12.05 MB / 0.6607 GB, free: 27.42 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05527/1.943, allocations: 11.89 MB / 0.6723 GB, free: 15.44 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001118/1.944, allocations: 0.6216 MB / 0.6729 GB, free: 14.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006993/1.951, allocations: 0.8393 MB / 0.6737 GB, free: 13.97 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09608/2.047, allocations: 21.44 MB / 0.6947 GB, free: 7.504 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009186/2.048, allocations: 75.28 kB / 0.6947 GB, free: 7.43 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006886/2.055, allocations: 379.7 kB / 0.6951 GB, free: 7.059 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00878/2.064, allocations: 2.474 MB / 0.6975 GB, free: 4.574 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4478/2.512, allocations: 20.62 MB / 0.7177 GB, free: 76.23 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1719/2.684, allocations: 80.97 MB / 0.7967 GB, free: 36.83 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0301/2.714, allocations: 9.647 MB / 0.8061 GB, free: 32.61 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01284/2.727, allocations: 6.358 MB / 0.8124 GB, free: 30.03 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007245/2.728, allocations: 79.86 kB / 0.8124 GB, free: 30.02 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.053e-05/2.728, allocations: 86.66 kB / 0.8125 GB, free: 29.95 MB / 474.7 MB Notification: Performance of pre-optimization done (n=583): time 1.141e-05/2.728, allocations: 0 / 0.8125 GB, free: 29.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=611): time 0.123/2.851, allocations: 34.86 MB / 0.8466 GB, free: 4.715 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005078/2.856, allocations: 6.117 MB / 0.8525 GB, free: 14.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01673/2.873, allocations: 5.658 MB / 0.8581 GB, free: 9.359 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001555/2.875, allocations: 108 kB / 0.8582 GB, free: 9.254 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006965/2.882, allocations: 5.659 MB / 0.8637 GB, free: 4.164 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0046/2.886, allocations: 2.255 MB / 0.8659 GB, free: 2.168 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002635/2.889, allocations: 235.4 kB / 0.8661 GB, free: 1.941 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001571/2.891, allocations: 0.8535 MB / 0.8669 GB, free: 1.227 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0471/2.938, allocations: 8.046 MB / 0.8748 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02531/2.963, allocations: 12.38 MB / 0.8869 GB, free: 1.645 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4352/3.398, allocations: 8.903 MB / 0.8956 GB, free: 94.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002602/3.399, allocations: 59.91 kB / 0.8956 GB, free: 94.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1637) (initialization): time 0.07255/3.471, allocations: 20.78 MB / 0.9159 GB, free: 94.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001786/3.471, allocations: 99 kB / 0.916 GB, free: 94.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04476/3.516, allocations: 13.22 MB / 0.9289 GB, free: 93.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02495/3.541, allocations: 3.563 MB / 0.9324 GB, free: 93.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0209/3.562, allocations: 2.922 MB / 0.9353 GB, free: 93.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01682/3.579, allocations: 12.15 MB / 0.9471 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0173/3.596, allocations: 1.108 MB / 0.9482 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003721/3.6, allocations: 0.6675 MB / 0.9489 GB, free: 85.45 MB / 0.4948 GB 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 (1489): * Single equations (assignments): 1455 * 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.005916/3.606, allocations: 0.962 MB / 0.9498 GB, free: 85.11 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002653/3.609, allocations: 0.6497 MB / 0.9504 GB, free: 85.11 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05054/3.659, allocations: 14.56 MB / 0.9647 GB, free: 80.78 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04427/3.704, allocations: 13.02 MB / 0.9774 GB, free: 76.98 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.399e-05/3.704, allocations: 7.188 kB / 0.9774 GB, free: 76.98 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001395/3.704, allocations: 23.53 kB / 0.9774 GB, free: 76.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1004/3.805, allocations: 33.31 MB / 1.01 GB, free: 53.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.616e-05/3.805, allocations: 15.94 kB / 1.01 GB, free: 53.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01131/3.816, allocations: 1.135 MB / 1.011 GB, free: 53.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0236/3.84, allocations: 3.606 MB / 1.015 GB, free: 50.68 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001816/3.842, allocations: 150 kB / 1.015 GB, free: 50.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02067/3.862, allocations: 13.6 MB / 1.028 GB, free: 37.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004574/3.867, allocations: 5.882 MB / 1.034 GB, free: 31.66 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06404/3.931, allocations: 23.58 MB / 1.057 GB, free: 8.703 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002537/3.934, allocations: 0.6918 MB / 1.057 GB, free: 7.984 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00351/3.937, allocations: 125.5 kB / 1.058 GB, free: 7.863 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01009/3.947, allocations: 0.5996 MB / 1.058 GB, free: 7.266 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002389/3.95, allocations: 380 kB / 1.059 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001667/3.951, allocations: 156.5 kB / 1.059 GB, free: 6.746 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01146/3.963, allocations: 3.914 MB / 1.062 GB, free: 2.84 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.202e-06/3.963, allocations: 4 kB / 1.062 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01766/3.981, allocations: 2.541 MB / 1.065 GB, free: 316 kB / 0.4948 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.4607/4.441, allocations: 26.16 MB / 1.091 GB, free: 107 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05508/4.497, allocations: 16.34 MB / 1.106 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.919e-05/4.497, allocations: 3.875 kB / 1.106 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02188/4.519, allocations: 8.092 MB / 1.114 GB, free: 104 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008244/4.527, allocations: 0.8695 MB / 1.115 GB, free: 104 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08294/4.61, allocations: 27.56 MB / 1.142 GB, free: 96.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01763/4.628, allocations: 6.836 MB / 1.149 GB, free: 94.17 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0129/4.64, allocations: 4.448 MB / 1.153 GB, free: 90.57 MB / 0.5105 GB Notification: Performance of SimCode: time 2.315e-06/4.641, allocations: 2.078 kB / 1.153 GB, free: 90.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.625/14.27, allocations: 0.712 GB / 1.865 GB, free: 130.8 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat does not exist to compare? outputFormat=mat