Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.048e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3063, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1818/0.4882, allocations: 93.98 MB / 388.2 MB, free: 3.867 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003395/0.4886, allocations: 87.94 kB / 388.3 MB, free: 3.781 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6505/1.139, allocations: 95.01 MB / 483.3 MB, free: 66.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.536e-06/1.139, allocations: 4 kB / 483.3 MB, free: 66.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002752/1.139, allocations: 91.94 kB / 483.4 MB, free: 65.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1734 * Number of variables: 1734 Notification: Performance of Generate backend data structure: time 0.01787/1.157, allocations: 4.663 MB / 488 MB, free: 61.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/1.157, allocations: 8.031 kB / 488 MB, free: 61.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0324/1.19, allocations: 4.498 MB / 492.5 MB, free: 56.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01829/1.208, allocations: 5.041 MB / 497.6 MB, free: 51.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000288/1.209, allocations: 152 kB / 497.7 MB, free: 51.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002423/1.211, allocations: 279.9 kB / 498 MB, free: 51.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0168/1.228, allocations: 6.981 MB / 0.4931 GB, free: 44.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02563/1.254, allocations: 10.58 MB / 0.5035 GB, free: 32.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002517/1.254, allocations: 63.39 kB / 0.5035 GB, free: 32.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001638/1.255, allocations: 35.95 kB / 0.5036 GB, free: 32.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002539/1.258, allocations: 1.198 MB / 0.5047 GB, free: 31.37 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08641/1.344, allocations: 50.51 MB / 0.5541 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/1.355, allocations: 4.043 MB / 0.558 GB, free: 7.406 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007058/1.362, allocations: 2.395 MB / 0.5603 GB, free: 5.008 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002353/1.365, allocations: 0.6923 MB / 0.561 GB, free: 4.215 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/1.365, allocations: 59.8 kB / 0.5611 GB, free: 4.148 MB / 394.7 MB Notification: Performance of pre-optimization done (n=207): time 1.283e-05/1.365, allocations: 7.984 kB / 0.5611 GB, free: 4.141 MB / 394.7 MB Notification: Performance of matching and sorting (n=229): time 0.3417/1.707, allocations: 17.08 MB / 0.5778 GB, free: 92.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.602e-05/1.707, allocations: 177.6 kB / 0.5779 GB, free: 92.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007679/1.714, allocations: 3.364 MB / 0.5812 GB, free: 92.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000643/1.715, allocations: 25.7 kB / 0.5812 GB, free: 92.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00305/1.718, allocations: 3.478 MB / 0.5846 GB, free: 90.05 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001506/1.72, allocations: 0.8496 MB / 0.5855 GB, free: 89.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008343/1.721, allocations: 3.344 kB / 0.5855 GB, free: 89.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005309/1.721, allocations: 0.5997 MB / 0.5861 GB, free: 89.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005715/1.727, allocations: 2.396 MB / 0.5884 GB, free: 89.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008781/1.736, allocations: 6.417 MB / 0.5947 GB, free: 84.01 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008721/1.744, allocations: 3.898 MB / 0.5985 GB, free: 83.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000199/1.745, allocations: 41.56 kB / 0.5985 GB, free: 83.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=901) (initialization): time 0.02479/1.77, allocations: 8.583 MB / 0.6069 GB, free: 81.58 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/1.77, allocations: 68.28 kB / 0.607 GB, free: 81.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000242/1.77, allocations: 143.6 kB / 0.6071 GB, free: 81.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003741/1.774, allocations: 0.9336 MB / 0.608 GB, free: 81.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01075/1.785, allocations: 1.66 MB / 0.6096 GB, free: 81.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/1.795, allocations: 5.489 MB / 0.615 GB, free: 78.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008008/1.804, allocations: 260.1 kB / 0.6152 GB, free: 78.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001906/1.806, allocations: 422.1 kB / 0.6156 GB, free: 78.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (853): * Single equations (assignments): 849 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002959/1.809, allocations: 472.5 kB / 0.6161 GB, free: 77.88 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01175/1.82, allocations: 4.172 MB / 0.6202 GB, free: 76.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001407/1.822, allocations: 368.6 kB / 0.6205 GB, free: 76.22 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/1.833, allocations: 3.946 MB / 0.6244 GB, free: 74.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.066e-05/1.833, allocations: 28 kB / 0.6244 GB, free: 74.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/1.833, allocations: 4 kB / 0.6244 GB, free: 74.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.918e-05/1.833, allocations: 12.58 kB / 0.6244 GB, free: 74.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02537/1.859, allocations: 9.067 MB / 0.6333 GB, free: 66.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.468e-05/1.859, allocations: 0 / 0.6333 GB, free: 66.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004212/1.863, allocations: 446.7 kB / 0.6337 GB, free: 66.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00319/1.866, allocations: 0.711 MB / 0.6344 GB, free: 66.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005901/1.867, allocations: 11.23 kB / 0.6344 GB, free: 66.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009812/1.877, allocations: 4.99 MB / 0.6393 GB, free: 61.62 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/1.877, allocations: 0 / 0.6393 GB, free: 61.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02569/1.903, allocations: 7.325 MB / 0.6464 GB, free: 55.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003728/1.906, allocations: 0.7291 MB / 0.6471 GB, free: 54.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00979/1.916, allocations: 10.72 kB / 0.6471 GB, free: 54.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008967/1.925, allocations: 110.1 kB / 0.6473 GB, free: 54.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001025/1.926, allocations: 135.4 kB / 0.6474 GB, free: 54.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000355/1.927, allocations: 59.94 kB / 0.6474 GB, free: 54.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01558/1.942, allocations: 2.247 MB / 0.6496 GB, free: 52.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.212e-06/1.942, allocations: 0 / 0.6496 GB, free: 52.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01906/1.961, allocations: 0.9883 MB / 0.6506 GB, free: 51.25 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 186 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01798/1.979, allocations: 8.461 MB / 0.6589 GB, free: 43.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01364/1.993, allocations: 5.906 MB / 0.6646 GB, free: 38.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.993, allocations: 0 / 0.6646 GB, free: 38.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005246/1.998, allocations: 2.15 MB / 0.6667 GB, free: 36.37 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003542/2.002, allocations: 343.3 kB / 0.6671 GB, free: 36.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03599/2.038, allocations: 10.92 MB / 0.6777 GB, free: 26.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0084/2.046, allocations: 3.759 MB / 0.6814 GB, free: 23.64 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006065/2.053, allocations: 2.272 MB / 0.6836 GB, free: 21.37 MB / 394.7 MB Notification: Performance of SimCode: time 1.513e-06/2.053, allocations: 0 / 0.6836 GB, free: 21.37 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.983/7.036, allocations: 110.8 MB / 0.7919 GB, free: 54.11 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat