Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.991/1.991, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.525e-05/2.52e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4916/0.6028, allocations: 96.75 MB / 413.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.6031, allocations: 76.47 kB / 413.1 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9047/1.508, allocations: 144.9 MB / 0.545 GB, free: 79.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.508, allocations: 2.562 kB / 0.545 GB, free: 79.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004627/1.508, allocations: 151.8 kB / 0.5451 GB, free: 79.32 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.03079/1.539, allocations: 7.383 MB / 0.5523 GB, free: 74.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/1.539, allocations: 9.875 kB / 0.5523 GB, free: 74.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05409/1.593, allocations: 7.316 MB / 0.5595 GB, free: 70.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02758/1.621, allocations: 7.871 MB / 0.5672 GB, free: 62.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000503/1.622, allocations: 252 kB / 0.5674 GB, free: 62.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004098/1.626, allocations: 459.9 kB / 0.5679 GB, free: 62.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02684/1.653, allocations: 10.97 MB / 0.5786 GB, free: 51.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04303/1.696, allocations: 16.43 MB / 0.5946 GB, free: 33.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004655/1.696, allocations: 95.22 kB / 0.5947 GB, free: 33.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00359/1.7, allocations: 47.98 kB / 0.5947 GB, free: 33.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004086/1.704, allocations: 1.825 MB / 0.5965 GB, free: 31.35 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5044/2.208, allocations: 77.63 MB / 0.6723 GB, free: 43.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/2.222, allocations: 6.734 MB / 0.6789 GB, free: 42.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00865/2.23, allocations: 4.353 MB / 0.6832 GB, free: 42.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001592/2.232, allocations: 0.7274 MB / 0.6839 GB, free: 41.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.523e-05/2.232, allocations: 69.91 kB / 0.6839 GB, free: 41.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 9.358e-06/2.232, allocations: 0 / 0.6839 GB, free: 41.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=384): time 0.145/2.377, allocations: 32.2 MB / 0.7154 GB, free: 32.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/2.377, allocations: 249.6 kB / 0.7156 GB, free: 32.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01368/2.391, allocations: 5.006 MB / 0.7205 GB, free: 30.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001125/2.392, allocations: 25.7 kB / 0.7205 GB, free: 30.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004489/2.397, allocations: 5.276 MB / 0.7257 GB, free: 26.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002438/2.399, allocations: 1.38 MB / 0.727 GB, free: 25.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001834/2.401, allocations: 3.625 kB / 0.727 GB, free: 25.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001006/2.402, allocations: 0.7479 MB / 0.7278 GB, free: 25.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01044/2.413, allocations: 3.912 MB / 0.7316 GB, free: 23.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01504/2.428, allocations: 9.682 MB / 0.7411 GB, free: 14.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01438/2.442, allocations: 6.105 MB / 0.747 GB, free: 11.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002897/2.442, allocations: 60 kB / 0.7471 GB, free: 10.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=1347) (initialization): time 0.04061/2.483, allocations: 13.76 MB / 0.7605 GB, free: 15.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000213/2.483, allocations: 92 kB / 0.7606 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004264/2.484, allocations: 204 kB / 0.7608 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00795/2.492, allocations: 1.746 MB / 0.7625 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0183/2.51, allocations: 2.514 MB / 0.7649 GB, free: 11.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02518/2.535, allocations: 10.82 MB / 0.7755 GB, free: 2.184 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01297/2.548, allocations: 392.1 kB / 0.7759 GB, free: 1.891 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003207/2.552, allocations: 0.601 MB / 0.7765 GB, free: 1.309 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1275): * Single equations (assignments): 1270 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004539/2.556, allocations: 0.6369 MB / 0.7771 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02832/2.585, allocations: 7.637 MB / 0.7846 GB, free: 10.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002656/2.587, allocations: 0.5512 MB / 0.7851 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02576/2.613, allocations: 7.493 MB / 0.7924 GB, free: 4.328 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/2.613, allocations: 40 kB / 0.7924 GB, free: 4.289 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-05/2.613, allocations: 11.05 kB / 0.7925 GB, free: 4.281 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000109/2.613, allocations: 23.59 kB / 0.7925 GB, free: 4.273 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06269/2.676, allocations: 16.74 MB / 0.8088 GB, free: 6.246 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.073e-05/2.676, allocations: 4 kB / 0.8088 GB, free: 6.242 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008112/2.684, allocations: 0.7449 MB / 0.8096 GB, free: 5.496 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007143/2.692, allocations: 1.407 MB / 0.8109 GB, free: 4.082 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001158/2.693, allocations: 23.98 kB / 0.8109 GB, free: 4.059 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3487/3.042, allocations: 9.899 MB / 0.8206 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.647e-05/3.042, allocations: 12.52 kB / 0.8206 GB, free: 118.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03556/3.077, allocations: 13.3 MB / 0.8336 GB, free: 116.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00493/3.082, allocations: 1.174 MB / 0.8348 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002694/3.085, allocations: 17.73 kB / 0.8348 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006859/3.092, allocations: 198.3 kB / 0.835 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001668/3.094, allocations: 233.9 kB / 0.8352 GB, free: 116.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006381/3.094, allocations: 105.2 kB / 0.8353 GB, free: 116.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009411/3.104, allocations: 3.353 MB / 0.8386 GB, free: 116.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.393e-06/3.104, allocations: 3.938 kB / 0.8386 GB, free: 116.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01389/3.118, allocations: 1.605 MB / 0.8401 GB, free: 116.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (330): * Single equations (assignments): 325 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03355/3.151, allocations: 14.95 MB / 0.8547 GB, free: 112.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02468/3.176, allocations: 9.794 MB / 0.8643 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/3.176, allocations: 0 / 0.8643 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01048/3.187, allocations: 3.833 MB / 0.868 GB, free: 107.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006232/3.193, allocations: 0.5533 MB / 0.8686 GB, free: 107.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06203/3.255, allocations: 17.94 MB / 0.8861 GB, free: 101 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01552/3.27, allocations: 5.646 MB / 0.8916 GB, free: 98.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0107/3.281, allocations: 3.705 MB / 0.8952 GB, free: 95.23 MB / 474.7 MB Notification: Performance of SimCode: time 2.204e-06/3.281, allocations: 0 / 0.8952 GB, free: 95.23 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.684/8.965, allocations: 207 MB / 1.097 GB, free: 41.02 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat