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 1.836/1.836, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.626e-05/2.643e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.09109, allocations: 44.5 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4518/0.543, allocations: 94.64 MB / 394.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.5433, allocations: 89.27 kB / 394.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3858/0.9292, allocations: 97.18 MB / 491.8 MB, free: 8.734 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.9292, allocations: 4 kB / 491.8 MB, free: 8.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003276/0.9295, allocations: 88 kB / 491.9 MB, free: 8.645 MB / 378.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.02017/0.9497, allocations: 4.674 MB / 496.6 MB, free: 3.906 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.9498, allocations: 15.97 kB / 496.6 MB, free: 3.891 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004045/0.9539, allocations: 0.8657 MB / 497.5 MB, free: 3.016 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03494/0.9888, allocations: 4.498 MB / 0.4902 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02089/1.01, allocations: 5.048 MB / 0.4951 GB, free: 9.395 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005394/1.01, allocations: 361.5 kB / 0.4955 GB, free: 9.039 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002728/1.013, allocations: 471.9 kB / 0.4959 GB, free: 8.578 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03911/1.052, allocations: 11.95 MB / 0.5076 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002799/1.053, allocations: 75.33 kB / 0.5077 GB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001823/1.054, allocations: 223.9 kB / 0.5079 GB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002988/1.057, allocations: 1.195 MB / 0.5091 GB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03331/1.091, allocations: 9.823 MB / 0.5186 GB, free: 244 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3746/1.465, allocations: 52.86 MB / 0.5703 GB, free: 49.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02066/1.486, allocations: 5.194 MB / 0.5753 GB, free: 48.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005243/1.491, allocations: 2.613 MB / 0.5779 GB, free: 48.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01994/1.511, allocations: 8.038 MB / 0.5857 GB, free: 45.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/1.511, allocations: 58.41 kB / 0.5858 GB, free: 45.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=216): time 6.071e-06/1.512, allocations: 3.156 kB / 0.5858 GB, free: 45.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.07084/1.582, allocations: 16.68 MB / 0.6021 GB, free: 39.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/1.582, allocations: 180.3 kB / 0.6023 GB, free: 39.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009524/1.592, allocations: 4.158 MB / 0.6063 GB, free: 38.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006055/1.593, allocations: 64.42 kB / 0.6064 GB, free: 38.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002846/1.596, allocations: 3.286 MB / 0.6096 GB, free: 35.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001434/1.597, allocations: 0.8961 MB / 0.6105 GB, free: 34.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008071/1.598, allocations: 129.1 kB / 0.6106 GB, free: 34.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004348/1.598, allocations: 0.5902 MB / 0.6112 GB, free: 34.24 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006078/1.604, allocations: 2.448 MB / 0.6136 GB, free: 33.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008684/1.613, allocations: 6.321 MB / 0.6197 GB, free: 27.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008762/1.622, allocations: 3.92 MB / 0.6236 GB, free: 26.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001369/1.622, allocations: 42.38 kB / 0.6236 GB, free: 26.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02492/1.647, allocations: 9.201 MB / 0.6326 GB, free: 23.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/1.647, allocations: 61.53 kB / 0.6326 GB, free: 23.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001975/1.647, allocations: 140.2 kB / 0.6328 GB, free: 23.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003764/1.651, allocations: 0.9152 MB / 0.6337 GB, free: 23.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01019/1.661, allocations: 1.6 MB / 0.6352 GB, free: 21.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/1.672, allocations: 5.768 MB / 0.6409 GB, free: 16.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007521/1.679, allocations: 380.4 kB / 0.6412 GB, free: 16.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/1.681, allocations: 399.2 kB / 0.6416 GB, free: 15.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (816): * Single equations (assignments): 812 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001595/1.683, allocations: 0.6168 MB / 0.6422 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.684, allocations: 414.7 kB / 0.6426 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/1.695, allocations: 4.242 MB / 0.6467 GB, free: 11.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-05/1.695, allocations: 24 kB / 0.6468 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/1.695, allocations: 7.953 kB / 0.6468 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.204e-05/1.695, allocations: 10.31 kB / 0.6468 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02943/1.725, allocations: 10.35 MB / 0.6569 GB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.762e-05/1.725, allocations: 4 kB / 0.6569 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004497/1.729, allocations: 468.2 kB / 0.6573 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003352/1.733, allocations: 0.7184 MB / 0.658 GB, free: 1.898 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007671/1.734, allocations: 47.94 kB / 0.6581 GB, free: 1.855 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01623/1.75, allocations: 5.307 MB / 0.6633 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-05/1.75, allocations: 7.938 kB / 0.6633 GB, free: 13.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01972/1.77, allocations: 8.243 MB / 0.6713 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003103/1.773, allocations: 0.8126 MB / 0.6721 GB, free: 4.711 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009057/1.774, allocations: 43.84 kB / 0.6722 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003269/1.777, allocations: 146.4 kB / 0.6723 GB, free: 4.578 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005398/1.778, allocations: 149.5 kB / 0.6724 GB, free: 4.477 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/1.778, allocations: 63.56 kB / 0.6725 GB, free: 4.418 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007232/1.785, allocations: 2.962 MB / 0.6754 GB, free: 1.801 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.785, allocations: 4 kB / 0.6754 GB, free: 1.797 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007544/1.793, allocations: 1.153 MB / 0.6765 GB, free: 0.6523 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (198): * Single equations (assignments): 194 * 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.2976/2.09, allocations: 10.04 MB / 0.6863 GB, free: 89.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01503/2.105, allocations: 6.046 MB / 0.6922 GB, free: 88.85 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/2.106, allocations: 0 / 0.6922 GB, free: 88.85 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005911/2.111, allocations: 2.235 MB / 0.6944 GB, free: 88.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004122/2.116, allocations: 477.3 kB / 0.6949 GB, free: 88.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03402/2.15, allocations: 11.37 MB / 0.706 GB, free: 86.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007628/2.157, allocations: 3.766 MB / 0.7097 GB, free: 85.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005487/2.163, allocations: 2.272 MB / 0.7119 GB, free: 85.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.543e-06/2.163, allocations: 0 / 0.7119 GB, free: 85.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.593/6.756, allocations: 114.9 MB / 0.8241 GB, free: 11.34 MB / 426.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