Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.57/2.57, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.239e-05/5.246e-05, allocations: 7.984 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5289/0.529, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1885/0.7175, allocations: 100.8 MB / 460.7 MB, free: 12.03 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.7178, allocations: 75.95 kB / 460.8 MB, free: 11.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.137/1.854, allocations: 200.6 MB / 0.6459 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.225e-06/1.854, allocations: 0 / 0.6459 GB, free: 40.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005365/1.855, allocations: 199.9 kB / 0.6461 GB, free: 40.56 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: 3662 * Number of variables: 3662 Notification: Performance of Generate backend data structure: time 0.03646/1.891, allocations: 9.416 MB / 0.6553 GB, free: 31.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/1.892, allocations: 8.031 kB / 0.6553 GB, free: 31.04 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007962/1.899, allocations: 1.821 MB / 0.6571 GB, free: 29.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03439/1.934, allocations: 4.027 MB / 0.661 GB, free: 25.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03332/1.967, allocations: 10.56 MB / 0.6713 GB, free: 14.51 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000942/1.968, allocations: 0.7942 MB / 0.6721 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005632/1.974, allocations: 1.051 MB / 0.6731 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0804/2.054, allocations: 23.95 MB / 0.6965 GB, free: 3.098 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005618/2.055, allocations: 95.16 kB / 0.6966 GB, free: 3.004 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004882/2.06, allocations: 491.8 kB / 0.6971 GB, free: 2.523 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006367/2.066, allocations: 2.267 MB / 0.6993 GB, free: 256 kB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.453/2.519, allocations: 18.63 MB / 0.7175 GB, free: 66.7 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1753/2.695, allocations: 94.15 MB / 0.8094 GB, free: 13.06 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03467/2.729, allocations: 7.512 MB / 0.8168 GB, free: 10.77 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007607/2.737, allocations: 3.03 MB / 0.8197 GB, free: 9.621 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03939/2.776, allocations: 13.3 MB / 0.8327 GB, free: 3.305 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.186e-05/2.777, allocations: 67.62 kB / 0.8328 GB, free: 3.242 MB / 474.7 MB Notification: Performance of pre-optimization done (n=336): time 7.304e-06/2.777, allocations: 0 / 0.8328 GB, free: 3.242 MB / 474.7 MB Notification: Performance of matching and sorting (n=360): time 0.1068/2.883, allocations: 18.95 MB / 0.8513 GB, free: 5.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/2.884, allocations: 165.2 kB / 0.8514 GB, free: 4.969 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0239/2.908, allocations: 6.399 MB / 0.8577 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009411/2.908, allocations: 81.7 kB / 0.8577 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.009732/2.918, allocations: 6.548 MB / 0.8641 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003742/2.922, allocations: 1.357 MB / 0.8655 GB, free: 8.156 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002552/2.925, allocations: 217.7 kB / 0.8657 GB, free: 7.949 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001923/2.927, allocations: 0.757 MB / 0.8664 GB, free: 7.312 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01035/2.937, allocations: 2.987 MB / 0.8693 GB, free: 4.621 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01611/2.953, allocations: 9.402 MB / 0.8785 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01383/2.967, allocations: 5.235 MB / 0.8836 GB, free: 4.254 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002889/2.967, allocations: 64 kB / 0.8837 GB, free: 4.191 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1390) (initialization): time 0.4178/3.385, allocations: 11.28 MB / 0.8947 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002448/3.386, allocations: 103.5 kB / 0.8948 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005866/3.386, allocations: 232.2 kB / 0.895 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006915/3.387, allocations: 339.1 kB / 0.8953 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0193/3.406, allocations: 2.616 MB / 0.8979 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007712/3.407, allocations: 458.4 kB / 0.8983 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01403/3.421, allocations: 0.6783 MB / 0.899 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002659/3.424, allocations: 0.6375 MB / 0.8996 GB, free: 102.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1052 * Number of states: 0 () * Number of discrete variables: 69 (body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce2b.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],cutForce2a.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],cutForce1b.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],cutForce1a.torqueColor[3],cutForce1a.torqueColor[2],cutForce1a.torqueColor[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 (1366): * Single equations (assignments): 1363 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003377/3.427, allocations: 0.9438 MB / 0.9005 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001717/3.429, allocations: 0.6695 MB / 0.9012 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01287/3.442, allocations: 3.982 MB / 0.9051 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.249e-05/3.442, allocations: 38.28 kB / 0.9051 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/3.442, allocations: 7.781 kB / 0.9051 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.288e-05/3.442, allocations: 16.31 kB / 0.9051 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1085/3.551, allocations: 49.84 MB / 0.9538 GB, free: 96.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002528/3.551, allocations: 72.44 kB / 0.9539 GB, free: 96.56 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005995/3.557, allocations: 0.7419 MB / 0.9546 GB, free: 96.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001525/3.557, allocations: 104.3 kB / 0.9547 GB, free: 96.54 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001081/3.558, allocations: 169.8 kB / 0.9549 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001552/3.558, allocations: 141 kB / 0.955 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.409e-05/3.558, allocations: 113.3 kB / 0.9551 GB, free: 96.49 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01746/3.576, allocations: 21.37 MB / 0.976 GB, free: 75.49 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00288/3.579, allocations: 0.8021 MB / 0.9768 GB, free: 75.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002618/3.581, allocations: 169.8 kB / 0.9769 GB, free: 75.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007488/3.589, allocations: 272.5 kB / 0.9772 GB, free: 75.01 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/3.59, allocations: 489.9 kB / 0.9776 GB, free: 74.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006711/3.591, allocations: 206.4 kB / 0.9778 GB, free: 74.86 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01201/3.603, allocations: 4.46 MB / 0.9822 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.11e-07/3.603, allocations: 0 / 0.9822 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01526/3.618, allocations: 1.873 MB / 0.984 GB, free: 73.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 330 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (376): * Single equations (assignments): 373 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0201/3.639, allocations: 34.37 MB / 1.018 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01753/3.656, allocations: 6.906 MB / 1.024 GB, free: 33.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.129e-05/3.656, allocations: 8.625 kB / 1.024 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005049/3.661, allocations: 1.989 MB / 1.026 GB, free: 31.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01066/3.672, allocations: 1.03 MB / 1.027 GB, free: 30.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07227/3.744, allocations: 22.29 MB / 1.049 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01856/3.763, allocations: 7.128 MB / 1.056 GB, free: 5.168 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01133/3.774, allocations: 4.851 MB / 1.061 GB, free: 0.6641 MB / 0.5105 GB Notification: Performance of SimCode: time 2.033e-06/3.774, allocations: 0 / 1.061 GB, free: 0.6641 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.5/10.27, allocations: 171.9 MB / 1.229 GB, free: 35.06 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1_res.mat does not exist to compare? outputFormat=mat