Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.911/1.911, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.743e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4232/0.5244, allocations: 92.07 MB / 413.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.5248, allocations: 74.59 kB / 414 MB, free: 13.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9508/1.476, allocations: 166.2 MB / 0.5666 GB, free: 84.66 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.476, allocations: 0 / 0.5666 GB, free: 84.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004597/1.476, allocations: 160.7 kB / 0.5668 GB, free: 84.66 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: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.03151/1.508, allocations: 7.975 MB / 0.5746 GB, free: 79.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/1.508, allocations: 13.23 kB / 0.5746 GB, free: 79.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00717/1.515, allocations: 1.456 MB / 0.576 GB, free: 78.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03195/1.547, allocations: 3.675 MB / 0.5796 GB, free: 76.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03405/1.581, allocations: 9.681 MB / 0.5891 GB, free: 67.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008283/1.582, allocations: 0.6278 MB / 0.5897 GB, free: 66.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004741/1.587, allocations: 0.8206 MB / 0.5905 GB, free: 66.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06045/1.647, allocations: 19.28 MB / 0.6093 GB, free: 45.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005404/1.648, allocations: 99.05 kB / 0.6094 GB, free: 45.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004466/1.652, allocations: 399 kB / 0.6098 GB, free: 44.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004777/1.657, allocations: 1.864 MB / 0.6116 GB, free: 43.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04787/1.705, allocations: 14.75 MB / 0.626 GB, free: 28.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4794/2.185, allocations: 81.52 MB / 0.7056 GB, free: 38.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02764/2.212, allocations: 5.891 MB / 0.7114 GB, free: 37.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006037/2.218, allocations: 2.479 MB / 0.7138 GB, free: 37.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03268/2.251, allocations: 11.33 MB / 0.7248 GB, free: 34.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/2.251, allocations: 58.47 kB / 0.7249 GB, free: 34.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=250): time 6.663e-06/2.251, allocations: 0 / 0.7249 GB, free: 34.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=274): time 0.06713/2.318, allocations: 14.99 MB / 0.7395 GB, free: 29.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.381e-05/2.318, allocations: 163.3 kB / 0.7397 GB, free: 29.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0139/2.332, allocations: 5.841 MB / 0.7454 GB, free: 28.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000599/2.333, allocations: 69.45 kB / 0.7455 GB, free: 28.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004757/2.338, allocations: 5.563 MB / 0.7509 GB, free: 24.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001524/2.339, allocations: 1.053 MB / 0.7519 GB, free: 23.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001082/2.341, allocations: 184.8 kB / 0.7521 GB, free: 23.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006686/2.341, allocations: 0.6954 MB / 0.7528 GB, free: 22.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006672/2.348, allocations: 2.481 MB / 0.7552 GB, free: 21.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01396/2.362, allocations: 8.191 MB / 0.7632 GB, free: 13.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/2.377, allocations: 4.466 MB / 0.7676 GB, free: 12.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002958/2.377, allocations: 58.91 kB / 0.7676 GB, free: 12.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.03756/2.415, allocations: 9.615 MB / 0.777 GB, free: 9.125 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002388/2.415, allocations: 97.83 kB / 0.7771 GB, free: 9.117 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004188/2.415, allocations: 211.2 kB / 0.7773 GB, free: 9.113 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005197/2.416, allocations: 301.7 kB / 0.7776 GB, free: 9.113 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01908/2.435, allocations: 2.242 MB / 0.7798 GB, free: 8.844 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004632/2.436, allocations: 404.6 kB / 0.7802 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01229/2.448, allocations: 0.6174 MB / 0.7808 GB, free: 8.586 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002205/2.45, allocations: 0.5551 MB / 0.7813 GB, free: 8.512 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 940 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1168): * Single equations (assignments): 1165 * 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.003595/2.454, allocations: 0.8239 MB / 0.7821 GB, free: 7.836 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/2.455, allocations: 0.5925 MB / 0.7827 GB, free: 7.512 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009211/2.465, allocations: 2.936 MB / 0.7856 GB, free: 6.371 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.037e-05/2.465, allocations: 31.11 kB / 0.7856 GB, free: 6.371 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/2.465, allocations: 0 / 0.7856 GB, free: 6.371 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-05/2.465, allocations: 11.2 kB / 0.7856 GB, free: 6.371 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06332/2.528, allocations: 24.63 MB / 0.8096 GB, free: 2.375 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000187/2.529, allocations: 64 kB / 0.8097 GB, free: 2.312 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00439/2.533, allocations: 0.5951 MB / 0.8103 GB, free: 1.789 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001502/2.533, allocations: 88 kB / 0.8104 GB, free: 1.703 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006496/2.534, allocations: 135.9 kB / 0.8105 GB, free: 1.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001253/2.534, allocations: 122.4 kB / 0.8106 GB, free: 1.465 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.336e-05/2.534, allocations: 99.56 kB / 0.8107 GB, free: 1.367 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.344/2.878, allocations: 16.84 MB / 0.8272 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002974/2.881, allocations: 0.7147 MB / 0.8279 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002908/2.884, allocations: 143.4 kB / 0.828 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006723/2.891, allocations: 209.4 kB / 0.8282 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001202/2.892, allocations: 411.8 kB / 0.8286 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005226/2.893, allocations: 170.3 kB / 0.8288 GB, free: 111.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01357/2.906, allocations: 4.088 MB / 0.8327 GB, free: 111.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.332e-06/2.906, allocations: 3.906 kB / 0.8328 GB, free: 111.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01397/2.92, allocations: 1.547 MB / 0.8343 GB, free: 111.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 315 * 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.01695/2.937, allocations: 28.86 MB / 0.8624 GB, free: 84.82 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01522/2.952, allocations: 5.669 MB / 0.868 GB, free: 84.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.788e-05/2.953, allocations: 14.78 kB / 0.868 GB, free: 84.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003762/2.956, allocations: 1.504 MB / 0.8695 GB, free: 84.69 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008598/2.965, allocations: 0.9167 MB / 0.8704 GB, free: 84.65 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0591/3.024, allocations: 18.31 MB / 0.8882 GB, free: 79.43 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01543/3.04, allocations: 5.961 MB / 0.8941 GB, free: 78.53 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008915/3.049, allocations: 3.924 MB / 0.8979 GB, free: 75.92 MB / 474.7 MB Notification: Performance of SimCode: time 1.893e-06/3.049, allocations: 0 / 0.8979 GB, free: 75.92 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.262/8.311, allocations: 142.7 MB / 1.037 GB, free: 111.1 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat