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.825/1.825, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.436e-05/3.448e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09285/0.09291, allocations: 44.51 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4619/0.5549, allocations: 94.64 MB / 394.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.5553, allocations: 87.73 kB / 394.7 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3976/0.9529, allocations: 97.18 MB / 491.9 MB, free: 8.613 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.015e-06/0.9529, allocations: 0 / 491.9 MB, free: 8.613 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003243/0.9533, allocations: 92.12 kB / 492 MB, free: 8.523 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.02005/0.9733, allocations: 4.665 MB / 496.6 MB, free: 3.797 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.9734, allocations: 12.03 kB / 496.6 MB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004058/0.9775, allocations: 0.8696 MB / 497.5 MB, free: 2.906 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03435/1.012, allocations: 4.494 MB / 0.4902 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02071/1.033, allocations: 5.052 MB / 0.4952 GB, free: 9.285 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005604/1.033, allocations: 361.5 kB / 0.4955 GB, free: 8.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002848/1.036, allocations: 483.8 kB / 0.496 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03996/1.076, allocations: 11.9 MB / 0.5076 GB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003647/1.077, allocations: 59.5 kB / 0.5076 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002647/1.079, allocations: 235.8 kB / 0.5079 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003304/1.083, allocations: 1.195 MB / 0.509 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03411/1.117, allocations: 9.627 MB / 0.5184 GB, free: 392 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.398/1.515, allocations: 52.87 MB / 0.5701 GB, free: 49.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02083/1.536, allocations: 5.153 MB / 0.5751 GB, free: 48.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005212/1.541, allocations: 2.62 MB / 0.5777 GB, free: 48.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01993/1.561, allocations: 8.034 MB / 0.5855 GB, free: 45.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/1.561, allocations: 53.53 kB / 0.5856 GB, free: 45.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=216): time 6.522e-06/1.561, allocations: 0 / 0.5856 GB, free: 45.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.07273/1.634, allocations: 16.68 MB / 0.6018 GB, free: 39.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.146e-05/1.634, allocations: 184.1 kB / 0.602 GB, free: 39.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01016/1.644, allocations: 4.158 MB / 0.6061 GB, free: 38.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006414/1.645, allocations: 63.22 kB / 0.6061 GB, free: 38.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002977/1.648, allocations: 3.285 MB / 0.6094 GB, free: 35.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00152/1.649, allocations: 0.89 MB / 0.6102 GB, free: 35.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009669/1.65, allocations: 132.5 kB / 0.6103 GB, free: 34.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005606/1.651, allocations: 0.5944 MB / 0.6109 GB, free: 34.51 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006268/1.657, allocations: 2.45 MB / 0.6133 GB, free: 33.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008968/1.666, allocations: 6.279 MB / 0.6195 GB, free: 27.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009034/1.675, allocations: 3.927 MB / 0.6233 GB, free: 26.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001645/1.675, allocations: 40.09 kB / 0.6233 GB, free: 26.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.03004/1.706, allocations: 8.815 MB / 0.6319 GB, free: 23.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/1.706, allocations: 65.81 kB / 0.632 GB, free: 23.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000216/1.706, allocations: 136.4 kB / 0.6321 GB, free: 23.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003807/1.71, allocations: 0.917 MB / 0.633 GB, free: 23.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01049/1.72, allocations: 1.599 MB / 0.6346 GB, free: 22.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/1.731, allocations: 5.772 MB / 0.6402 GB, free: 17.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007877/1.739, allocations: 375.8 kB / 0.6406 GB, free: 16.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001583/1.741, allocations: 399.3 kB / 0.641 GB, free: 16.39 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.001621/1.742, allocations: 0.6105 MB / 0.6416 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.743, allocations: 414.7 kB / 0.642 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/1.755, allocations: 4.243 MB / 0.6461 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.87e-05/1.755, allocations: 28.55 kB / 0.6461 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/1.755, allocations: 7.953 kB / 0.6461 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.453e-05/1.755, allocations: 10.64 kB / 0.6461 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02965/1.785, allocations: 10.34 MB / 0.6562 GB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-05/1.785, allocations: 4 kB / 0.6562 GB, free: 3.406 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004498/1.789, allocations: 472.2 kB / 0.6567 GB, free: 3.055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003214/1.793, allocations: 0.716 MB / 0.6574 GB, free: 2.547 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005514/1.793, allocations: 47.28 kB / 0.6574 GB, free: 2.504 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/1.805, allocations: 5.346 MB / 0.6627 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/1.805, allocations: 11.94 kB / 0.6627 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01975/1.825, allocations: 8.236 MB / 0.6707 GB, free: 6.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003326/1.828, allocations: 0.8165 MB / 0.6715 GB, free: 5.461 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001276/1.829, allocations: 44 kB / 0.6715 GB, free: 5.418 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003895/1.833, allocations: 137.3 kB / 0.6717 GB, free: 5.332 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000704/1.834, allocations: 151.3 kB / 0.6718 GB, free: 5.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002868/1.834, allocations: 67.23 kB / 0.6719 GB, free: 5.168 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00893/1.843, allocations: 2.972 MB / 0.6748 GB, free: 2.543 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.403e-06/1.843, allocations: 0 / 0.6748 GB, free: 2.543 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009443/1.853, allocations: 1.147 MB / 0.6759 GB, free: 1.406 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.3166/2.17, allocations: 10.05 MB / 0.6857 GB, free: 89.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01492/2.185, allocations: 5.831 MB / 0.6914 GB, free: 89.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/2.185, allocations: 3.969 kB / 0.6914 GB, free: 89.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006184/2.191, allocations: 2.207 MB / 0.6936 GB, free: 89.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004378/2.195, allocations: 474.9 kB / 0.694 GB, free: 89.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03869/2.234, allocations: 11.34 MB / 0.7051 GB, free: 87.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008852/2.243, allocations: 3.771 MB / 0.7088 GB, free: 86.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006031/2.249, allocations: 2.267 MB / 0.711 GB, free: 86.34 MB / 426.7 MB Notification: Performance of SimCode: time 2.044e-06/2.249, allocations: 3.562 kB / 0.711 GB, free: 86.34 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.703/6.952, allocations: 113.8 MB / 0.8222 GB, free: 13.01 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