Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.BodyShape,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.322/2.322, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.497e-05/3.5e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3896, allocations: 54.86 MB / 359.9 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1828/0.5724, allocations: 99.46 MB / 459.3 MB, free: 13.38 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.5728, allocations: 71.97 kB / 459.4 MB, free: 13.31 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6584/1.231, allocations: 82.06 MB / 0.5288 GB, free: 101.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.231, allocations: 0 / 0.5288 GB, free: 101.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002984/1.232, allocations: 81.39 kB / 0.5288 GB, free: 101.5 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: 1491 * Number of variables: 1491 Notification: Performance of Generate backend data structure: time 0.01696/1.248, allocations: 3.925 MB / 0.5327 GB, free: 99.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/1.249, allocations: 11.27 kB / 0.5327 GB, free: 99.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003708/1.252, allocations: 0.7553 MB / 0.5334 GB, free: 99.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01997/1.272, allocations: 2.34 MB / 0.5357 GB, free: 99.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/1.292, allocations: 5.186 MB / 0.5408 GB, free: 98.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004964/1.293, allocations: 319.2 kB / 0.5411 GB, free: 98.86 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002631/1.296, allocations: 429.6 kB / 0.5415 GB, free: 98.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03219/1.328, allocations: 10.27 MB / 0.5515 GB, free: 96.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003433/1.328, allocations: 64.28 kB / 0.5516 GB, free: 96.06 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002333/1.331, allocations: 212.2 kB / 0.5518 GB, free: 96.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002313/1.333, allocations: 0.9871 MB / 0.5527 GB, free: 96.05 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02507/1.358, allocations: 8.141 MB / 0.5607 GB, free: 96 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06821/1.426, allocations: 48.29 MB / 0.6078 GB, free: 58.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01456/1.441, allocations: 3.55 MB / 0.6113 GB, free: 57.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003398/1.445, allocations: 1.519 MB / 0.6128 GB, free: 56.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01531/1.46, allocations: 6.987 MB / 0.6196 GB, free: 52.71 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/1.46, allocations: 47.05 kB / 0.6197 GB, free: 52.66 MB / 458.7 MB Notification: Performance of pre-optimization done (n=139): time 7.524e-06/1.46, allocations: 3.656 kB / 0.6197 GB, free: 52.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.05285/1.513, allocations: 11.88 MB / 0.6313 GB, free: 45.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001377/1.514, allocations: 1.581 MB / 0.6328 GB, free: 43.67 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00841/1.523, allocations: 3.447 MB / 0.6362 GB, free: 40.63 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004573/1.523, allocations: 49.53 kB / 0.6362 GB, free: 40.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002662/1.526, allocations: 3.07 MB / 0.6392 GB, free: 37.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001055/1.527, allocations: 0.6358 MB / 0.6398 GB, free: 37.24 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008162/1.528, allocations: 120 kB / 0.64 GB, free: 37.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005441/1.528, allocations: 0.5692 MB / 0.6405 GB, free: 36.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005168/1.534, allocations: 1.962 MB / 0.6424 GB, free: 34.85 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007528/1.541, allocations: 5.702 MB / 0.648 GB, free: 27.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007103/1.548, allocations: 3.328 MB / 0.6512 GB, free: 24.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/1.549, allocations: 36 kB / 0.6513 GB, free: 24.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.02263/1.571, allocations: 7.752 MB / 0.6588 GB, free: 18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.824e-05/1.571, allocations: 60 kB / 0.6589 GB, free: 17.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008218/1.58, allocations: 2.508 MB / 0.6614 GB, free: 15.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005963/1.586, allocations: 1.136 MB / 0.6625 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007978/1.594, allocations: 1.382 MB / 0.6638 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007126/1.601, allocations: 4.658 MB / 0.6684 GB, free: 9.426 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007222/1.608, allocations: 390.9 kB / 0.6687 GB, free: 9.105 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001456/1.61, allocations: 378.6 kB / 0.6691 GB, free: 8.742 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * Number of states: 0 () * Number of discrete variables: 36 (freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (747): * Single equations (assignments): 738 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002176/1.612, allocations: 0.5703 MB / 0.6697 GB, free: 8.176 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009862/1.613, allocations: 335.6 kB / 0.67 GB, free: 7.844 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01024/1.623, allocations: 2.915 MB / 0.6728 GB, free: 5.074 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008293/1.632, allocations: 2.449 MB / 0.6752 GB, free: 2.609 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.379e-05/1.632, allocations: 4 kB / 0.6752 GB, free: 2.605 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.671e-05/1.632, allocations: 7.969 kB / 0.6752 GB, free: 2.598 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02971/1.661, allocations: 9.175 MB / 0.6842 GB, free: 9.293 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.43e-05/1.661, allocations: 4.375 kB / 0.6842 GB, free: 9.289 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/1.664, allocations: 259.6 kB / 0.6844 GB, free: 9.035 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005795/1.67, allocations: 1.011 MB / 0.6854 GB, free: 8.012 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004509/1.67, allocations: 39.89 kB / 0.6855 GB, free: 7.977 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009412/1.68, allocations: 4.831 MB / 0.6902 GB, free: 2.887 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001498/1.681, allocations: 1.454 MB / 0.6916 GB, free: 1.293 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0151/1.696, allocations: 5.54 MB / 0.697 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/1.698, allocations: 400.5 kB / 0.6974 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001233/1.699, allocations: 35.98 kB / 0.6974 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003478/1.703, allocations: 127.8 kB / 0.6975 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006605/1.704, allocations: 104.5 kB / 0.6976 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002154/1.704, allocations: 51.73 kB / 0.6977 GB, free: 10.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007345/1.711, allocations: 2.369 MB / 0.7 GB, free: 8.555 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.711, allocations: 4 kB / 0.7 GB, free: 8.551 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007911/1.719, allocations: 1.012 MB / 0.701 GB, free: 7.539 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 117 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01615/1.735, allocations: 7.031 MB / 0.7079 GB, free: 372 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3297/2.065, allocations: 5.15 MB / 0.7129 GB, free: 120.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/2.065, allocations: 0.8125 kB / 0.7129 GB, free: 120.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007187/2.072, allocations: 2.069 MB / 0.7149 GB, free: 120 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003902/2.076, allocations: 417.3 kB / 0.7153 GB, free: 120 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0343/2.111, allocations: 9.604 MB / 0.7247 GB, free: 118.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00845/2.119, allocations: 3.297 MB / 0.7279 GB, free: 117.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00452/2.124, allocations: 1.894 MB / 0.7298 GB, free: 117.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.553e-06/2.124, allocations: 0 / 0.7298 GB, free: 117.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.141/7.265, allocations: 146.7 MB / 0.8731 GB, free: 13.68 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.BodyShape_res.mat does not exist to compare? outputFormat=mat