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 2.037/2.037, allocations: 209.4 MB / 216.9 MB, free: 6.734 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.297e-05/2.305e-05, allocations: 4 kB / 267.6 MB, free: 5.391 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 48.69 MB / 316.3 MB, free: 4.598 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.483/0.5897, allocations: 91.67 MB / 408 MB, free: 0.8594 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.59, allocations: 81.94 kB / 408 MB, free: 0.8164 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.071/1.661, allocations: 162.4 MB / 0.5571 GB, free: 72.31 MB / 410.8 MB Notification: Performance of FrontEnd: time 5.25e-06/1.661, allocations: 0 / 0.5571 GB, free: 72.31 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0005936/1.662, allocations: 166.3 kB / 0.5572 GB, free: 72.3 MB / 410.8 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.0327/1.694, allocations: 7.97 MB / 0.565 GB, free: 65.08 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/1.695, allocations: 8.031 kB / 0.565 GB, free: 65.07 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03145/1.726, allocations: 3.674 MB / 0.5686 GB, free: 61.38 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03055/1.757, allocations: 9.674 MB / 0.578 GB, free: 51.73 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005403/1.757, allocations: 272 kB / 0.5783 GB, free: 51.46 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004318/1.762, allocations: 497.3 kB / 0.5788 GB, free: 50.98 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02868/1.79, allocations: 11.6 MB / 0.5901 GB, free: 39.37 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04397/1.834, allocations: 16.96 MB / 0.6067 GB, free: 20.89 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004433/1.835, allocations: 87.47 kB / 0.6068 GB, free: 20.81 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003521/1.838, allocations: 51.95 kB / 0.6068 GB, free: 20.76 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004612/1.843, allocations: 1.872 MB / 0.6086 GB, free: 18.88 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4742/2.317, allocations: 82.11 MB / 0.6888 GB, free: 35.32 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/2.327, allocations: 3.064 MB / 0.6918 GB, free: 34.66 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005362/2.333, allocations: 1.496 MB / 0.6933 GB, free: 34.62 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003296/2.333, allocations: 46.39 kB / 0.6933 GB, free: 34.62 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.347e-05/2.333, allocations: 59.22 kB / 0.6934 GB, free: 34.58 MB / 426.8 MB Notification: Performance of pre-optimization done (n=244): time 8.546e-06/2.333, allocations: 0 / 0.6934 GB, free: 34.58 MB / 426.8 MB Notification: Performance of matching and sorting (n=256): time 0.05544/2.389, allocations: 11.79 MB / 0.7049 GB, free: 29.91 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.044e-05/2.389, allocations: 156.5 kB / 0.705 GB, free: 29.75 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01372/2.403, allocations: 5.168 MB / 0.7101 GB, free: 29.25 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006086/2.403, allocations: 27.77 kB / 0.7101 GB, free: 29.22 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004997/2.408, allocations: 5.741 MB / 0.7157 GB, free: 25.86 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00148/2.41, allocations: 0.9665 MB / 0.7167 GB, free: 25.31 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/2.411, allocations: 0 / 0.7167 GB, free: 25.31 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0007359/2.412, allocations: 0.7106 MB / 0.7173 GB, free: 24.98 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006457/2.418, allocations: 2.369 MB / 0.7197 GB, free: 24.95 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01079/2.429, allocations: 8.37 MB / 0.7278 GB, free: 16.59 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009948/2.439, allocations: 4.385 MB / 0.7321 GB, free: 15.32 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002583/2.439, allocations: 61.91 kB / 0.7322 GB, free: 15.32 MB / 426.8 MB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.02602/2.465, allocations: 9.213 MB / 0.7412 GB, free: 12.37 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001711/2.466, allocations: 98.47 kB / 0.7413 GB, free: 12.37 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003544/2.466, allocations: 217.8 kB / 0.7415 GB, free: 12.37 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003762/2.466, allocations: 317 kB / 0.7418 GB, free: 12.37 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01456/2.481, allocations: 2.323 MB / 0.744 GB, free: 12.09 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004053/2.481, allocations: 423 kB / 0.7444 GB, free: 12 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01206/2.493, allocations: 464.6 kB / 0.7449 GB, free: 11.96 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002282/2.496, allocations: 0.5771 MB / 0.7455 GB, free: 11.89 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 988 * 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 (1210): * Single equations (assignments): 1207 * 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.00345/2.499, allocations: 0.6323 MB / 0.7461 GB, free: 11.36 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008302/2.508, allocations: 2.865 MB / 0.7489 GB, free: 10.27 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001742/2.509, allocations: 0.5422 MB / 0.7494 GB, free: 9.965 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00704/2.516, allocations: 2.585 MB / 0.7519 GB, free: 8.984 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.195e-05/2.517, allocations: 25.84 kB / 0.7519 GB, free: 8.984 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/2.517, allocations: 3.875 kB / 0.752 GB, free: 8.984 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/2.517, allocations: 13.22 kB / 0.752 GB, free: 8.984 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05012/2.567, allocations: 21.22 MB / 0.7727 GB, free: 10.98 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001423/2.567, allocations: 56 kB / 0.7727 GB, free: 10.93 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004054/2.571, allocations: 0.5641 MB / 0.7733 GB, free: 10.43 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001253/2.571, allocations: 80 kB / 0.7734 GB, free: 10.36 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004986/2.572, allocations: 80.22 kB / 0.7734 GB, free: 10.28 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001038/2.572, allocations: 114.4 kB / 0.7736 GB, free: 10.18 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.394e-05/2.572, allocations: 87.62 kB / 0.7736 GB, free: 10.09 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01461/2.587, allocations: 14.79 MB / 0.7881 GB, free: 8.809 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/2.589, allocations: 0.65 MB / 0.7887 GB, free: 8.156 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002396/2.592, allocations: 95.42 kB / 0.7888 GB, free: 8.078 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00577/2.598, allocations: 151.5 kB / 0.789 GB, free: 7.969 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001084/2.599, allocations: 375.4 kB / 0.7893 GB, free: 7.668 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000439/2.599, allocations: 158.9 kB / 0.7895 GB, free: 7.516 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01018/2.609, allocations: 3.471 MB / 0.7928 GB, free: 4.52 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.042e-06/2.61, allocations: 0 / 0.7928 GB, free: 4.52 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01321/2.623, allocations: 1.322 MB / 0.7941 GB, free: 3.203 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 256 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (300): * Single equations (assignments): 297 * 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.3546/2.977, allocations: 26.41 MB / 0.8199 GB, free: 108.3 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01496/2.992, allocations: 5.565 MB / 0.8254 GB, free: 108.3 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 5.213e-05/2.992, allocations: 8.281 kB / 0.8254 GB, free: 108.3 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003826/2.996, allocations: 1.406 MB / 0.8267 GB, free: 108.3 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007378/3.004, allocations: 0.7301 MB / 0.8275 GB, free: 108.3 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06114/3.065, allocations: 17.7 MB / 0.8447 GB, free: 103.3 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01558/3.081, allocations: 5.924 MB / 0.8505 GB, free: 102.4 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008964/3.09, allocations: 3.859 MB / 0.8543 GB, free: 102.4 MB / 474.8 MB Notification: Performance of SimCode: time 1.513e-06/3.09, allocations: 0 / 0.8543 GB, free: 102.4 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.338/8.428, allocations: 139.6 MB / 0.9907 GB, free: 92.5 MB / 474.8 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