Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.888/1.888, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.766e-05/3.776e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4477/0.5498, allocations: 94.08 MB / 415.9 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.5502, allocations: 83.02 kB / 416 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.103/1.653, allocations: 200.6 MB / 0.6022 GB, free: 52.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.653, allocations: 0 / 0.6022 GB, free: 52.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004895/1.653, allocations: 200 kB / 0.6024 GB, free: 52.65 MB / 426.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.03621/1.69, allocations: 9.42 MB / 0.6116 GB, free: 43.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/1.69, allocations: 8.031 kB / 0.6116 GB, free: 43.13 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008573/1.698, allocations: 1.824 MB / 0.6134 GB, free: 41.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03548/1.734, allocations: 4.031 MB / 0.6173 GB, free: 37.24 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03556/1.769, allocations: 10.56 MB / 0.6276 GB, free: 26.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001053/1.771, allocations: 0.7981 MB / 0.6284 GB, free: 25.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005981/1.777, allocations: 1.035 MB / 0.6294 GB, free: 24.76 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4037/2.18, allocations: 23.94 MB / 0.6528 GB, free: 48.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009364/2.181, allocations: 92.69 kB / 0.6529 GB, free: 48.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006075/2.187, allocations: 499.2 kB / 0.6534 GB, free: 48.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007164/2.195, allocations: 2.269 MB / 0.6556 GB, free: 48.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06736/2.262, allocations: 18.64 MB / 0.6738 GB, free: 48.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1758/2.438, allocations: 94.13 MB / 0.7657 GB, free: 8.824 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03819/2.476, allocations: 7.515 MB / 0.773 GB, free: 6.535 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01094/2.487, allocations: 3.032 MB / 0.776 GB, free: 5.379 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05651/2.544, allocations: 13.35 MB / 0.789 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001121/2.544, allocations: 77.5 kB / 0.7891 GB, free: 15.17 MB / 458.7 MB Notification: Performance of pre-optimization done (n=336): time 1.112e-05/2.544, allocations: 0 / 0.7891 GB, free: 15.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=360): time 0.09517/2.639, allocations: 18.76 MB / 0.8074 GB, free: 1.906 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/2.639, allocations: 169.6 kB / 0.8076 GB, free: 1.715 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03251/2.672, allocations: 7.231 MB / 0.8146 GB, free: 14.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001056/2.673, allocations: 77.7 kB / 0.8147 GB, free: 13.99 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007515/2.681, allocations: 6.551 MB / 0.8211 GB, free: 8.086 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002436/2.683, allocations: 1.355 MB / 0.8224 GB, free: 6.891 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001381/2.684, allocations: 216 kB / 0.8226 GB, free: 6.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009308/2.685, allocations: 0.7539 MB / 0.8234 GB, free: 6.047 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009171/2.695, allocations: 2.987 MB / 0.8263 GB, free: 3.355 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3431/3.038, allocations: 9.401 MB / 0.8355 GB, free: 92.25 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01462/3.052, allocations: 5.237 MB / 0.8406 GB, free: 92.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005013/3.053, allocations: 65.47 kB / 0.8407 GB, free: 92.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=1390) (initialization): time 0.03709/3.09, allocations: 11.28 MB / 0.8517 GB, free: 91.68 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003151/3.09, allocations: 103.3 kB / 0.8518 GB, free: 91.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004889/3.091, allocations: 229.9 kB / 0.852 GB, free: 91.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005165/3.091, allocations: 345.8 kB / 0.8523 GB, free: 91.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01758/3.109, allocations: 2.612 MB / 0.8549 GB, free: 91.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000482/3.11, allocations: 454.3 kB / 0.8553 GB, free: 91.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0144/3.124, allocations: 0.6888 MB / 0.856 GB, free: 91.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002725/3.127, allocations: 0.6378 MB / 0.8566 GB, free: 91.35 MB / 474.7 MB 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.004292/3.131, allocations: 0.941 MB / 0.8575 GB, free: 91.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001591/3.133, allocations: 0.6647 MB / 0.8582 GB, free: 91.02 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01167/3.144, allocations: 3.987 MB / 0.8621 GB, free: 90.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.618e-05/3.145, allocations: 38.03 kB / 0.8621 GB, free: 90.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/3.145, allocations: 0 / 0.8621 GB, free: 90.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.659e-05/3.145, allocations: 17.25 kB / 0.8621 GB, free: 90.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1036/3.248, allocations: 49.84 MB / 0.9108 GB, free: 79.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002033/3.249, allocations: 70.75 kB / 0.9108 GB, free: 79.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005684/3.254, allocations: 0.7441 MB / 0.9116 GB, free: 79.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001402/3.254, allocations: 106 kB / 0.9117 GB, free: 79.74 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007995/3.255, allocations: 165.8 kB / 0.9118 GB, free: 79.69 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001106/3.255, allocations: 144 kB / 0.912 GB, free: 79.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-05/3.255, allocations: 109.2 kB / 0.9121 GB, free: 79.63 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01593/3.271, allocations: 21.37 MB / 0.9329 GB, free: 58.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003137/3.275, allocations: 0.795 MB / 0.9337 GB, free: 57.89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00254/3.277, allocations: 173.4 kB / 0.9339 GB, free: 57.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007208/3.284, allocations: 276.7 kB / 0.9342 GB, free: 57.78 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001211/3.286, allocations: 486.6 kB / 0.9346 GB, free: 57.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004942/3.286, allocations: 209.7 kB / 0.9348 GB, free: 57.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01137/3.298, allocations: 4.46 MB / 0.9392 GB, free: 53.97 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.61e-07/3.298, allocations: 0.75 kB / 0.9392 GB, free: 53.97 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01479/3.312, allocations: 1.869 MB / 0.941 GB, free: 52.11 MB / 474.7 MB 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.01893/3.331, allocations: 34.37 MB / 0.9746 GB, free: 15.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01776/3.349, allocations: 6.9 MB / 0.9813 GB, free: 9.555 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.381e-05/3.349, allocations: 15.75 kB / 0.9813 GB, free: 9.543 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005029/3.354, allocations: 1.988 MB / 0.9833 GB, free: 7.797 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008765/3.363, allocations: 1.033 MB / 0.9843 GB, free: 6.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4376/3.801, allocations: 22.54 MB / 1.006 GB, free: 106.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0224/3.823, allocations: 7.128 MB / 1.013 GB, free: 105.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.012/3.835, allocations: 4.851 MB / 1.018 GB, free: 105.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.763e-06/3.835, allocations: 0 / 1.018 GB, free: 105.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.692/9.528, allocations: 171.9 MB / 1.186 GB, free: 63.71 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1_res.mat does not exist to compare? outputFormat=mat