Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.009/2.009, allocations: 209.4 MB / 216.9 MB, free: 6.578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.017e-05/3.042e-05, allocations: 4 kB / 267.6 MB, free: 5.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 48.69 MB / 316.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4653/0.5707, allocations: 88.94 MB / 405.2 MB, free: 3.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.571, allocations: 73.84 kB / 405.3 MB, free: 3.445 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2253/0.7963, allocations: 55.58 MB / 460.9 MB, free: 15.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.7964, allocations: 0 / 460.9 MB, free: 15.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001523/0.7966, allocations: 55.94 kB / 460.9 MB, free: 15.46 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1092 * Number of variables: 1092 Notification: Performance of Generate backend data structure: time 0.01012/0.8067, allocations: 2.665 MB / 463.6 MB, free: 12.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.8068, allocations: 8.031 kB / 463.6 MB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01454/0.8213, allocations: 1.837 MB / 465.5 MB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006261/0.8276, allocations: 1.743 MB / 467.2 MB, free: 9.094 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.8279, allocations: 96 kB / 467.3 MB, free: 9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001653/0.8296, allocations: 172 kB / 467.5 MB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01209/0.8417, allocations: 4.477 MB / 471.9 MB, free: 4.348 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01986/0.8616, allocations: 6.219 MB / 478.2 MB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.8618, allocations: 19.81 kB / 478.2 MB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001463/0.8633, allocations: 12 kB / 478.2 MB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001774/0.8651, allocations: 0.7085 MB / 478.9 MB, free: 13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3212/1.186, allocations: 23.5 MB / 0.4906 GB, free: 92.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002927/1.189, allocations: 1.527 MB / 0.4921 GB, free: 92.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/1.191, allocations: 0.5826 MB / 0.4927 GB, free: 92.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/1.191, allocations: 23.14 kB / 0.4927 GB, free: 92.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/1.191, allocations: 41.03 kB / 0.4927 GB, free: 92.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 4.779e-06/1.191, allocations: 1.375 kB / 0.4927 GB, free: 92.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=108): time 0.007142/1.198, allocations: 1.492 MB / 0.4942 GB, free: 92.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/1.198, allocations: 60.78 kB / 0.4943 GB, free: 91.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00536/1.204, allocations: 1.634 MB / 0.4959 GB, free: 91.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002381/1.204, allocations: 28.89 kB / 0.4959 GB, free: 91.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00256/1.206, allocations: 2.061 MB / 0.4979 GB, free: 90.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009514/1.207, allocations: 412.2 kB / 0.4983 GB, free: 90.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003878/1.208, allocations: 0 / 0.4983 GB, free: 90.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004487/1.208, allocations: 470.4 kB / 0.4987 GB, free: 90.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00338/1.212, allocations: 0.9279 MB / 0.4996 GB, free: 90.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00548/1.217, allocations: 3.064 MB / 0.5026 GB, free: 87.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006074/1.223, allocations: 1.722 MB / 0.5043 GB, free: 87.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001622/1.224, allocations: 22.28 kB / 0.5043 GB, free: 87.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=456) (initialization): time 0.01439/1.238, allocations: 3.499 MB / 0.5078 GB, free: 87.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/1.238, allocations: 38.34 kB / 0.5078 GB, free: 87.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001961/1.238, allocations: 76.62 kB / 0.5079 GB, free: 87.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002945/1.239, allocations: 118.6 kB / 0.508 GB, free: 87.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006561/1.245, allocations: 0.7829 MB / 0.5087 GB, free: 87.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002383/1.246, allocations: 148.9 kB / 0.5089 GB, free: 87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005308/1.251, allocations: 391.2 kB / 0.5093 GB, free: 86.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/1.252, allocations: 221.8 kB / 0.5095 GB, free: 86.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 350 * Number of states: 0 () * Number of discrete variables: 21 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (432): * Single equations (assignments): 429 * 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.0009963/1.253, allocations: 303.8 kB / 0.5098 GB, free: 86.57 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003699/1.257, allocations: 1.196 MB / 0.5109 GB, free: 86.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004944/1.257, allocations: 171.6 kB / 0.5111 GB, free: 86.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004304/1.262, allocations: 1.346 MB / 0.5124 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-05/1.262, allocations: 12.56 kB / 0.5124 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.262, allocations: 6.938 kB / 0.5124 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/1.262, allocations: 10.89 kB / 0.5124 GB, free: 86.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/1.276, allocations: 4.737 MB / 0.5171 GB, free: 85.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/1.276, allocations: 10.94 kB / 0.5171 GB, free: 85.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/1.278, allocations: 153.3 kB / 0.5172 GB, free: 85.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-05/1.278, allocations: 18.5 kB / 0.5172 GB, free: 85.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/1.278, allocations: 17.95 kB / 0.5172 GB, free: 85.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.886e-05/1.278, allocations: 21.3 kB / 0.5173 GB, free: 85.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.407e-05/1.278, allocations: 14.25 kB / 0.5173 GB, free: 85.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004616/1.283, allocations: 2.352 MB / 0.5196 GB, free: 83.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009637/1.284, allocations: 253.5 kB / 0.5198 GB, free: 83.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009433/1.285, allocations: 17.56 kB / 0.5198 GB, free: 83.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/1.287, allocations: 28.08 kB / 0.5199 GB, free: 83.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005801/1.288, allocations: 87.17 kB / 0.5199 GB, free: 83.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002612/1.288, allocations: 39.58 kB / 0.52 GB, free: 83.51 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004172/1.292, allocations: 1.084 MB / 0.521 GB, free: 83.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.292, allocations: 0 / 0.521 GB, free: 83.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005803/1.298, allocations: 0.7141 MB / 0.5217 GB, free: 82.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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.004215/1.302, allocations: 5.8 MB / 0.5274 GB, free: 77.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004895/1.307, allocations: 2.216 MB / 0.5296 GB, free: 76.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.516e-05/1.307, allocations: 3.844 kB / 0.5296 GB, free: 76.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/1.309, allocations: 0.5991 MB / 0.5302 GB, free: 76.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/1.31, allocations: 179.4 kB / 0.5303 GB, free: 76.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/1.329, allocations: 5.982 MB / 0.5362 GB, free: 74.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004856/1.334, allocations: 2.516 MB / 0.5386 GB, free: 73.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002748/1.337, allocations: 1.221 MB / 0.5398 GB, free: 72.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/1.337, allocations: 0 / 0.5398 GB, free: 72.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.211/4.548, allocations: 48.08 MB / 0.5868 GB, free: 38.21 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat does not exist to compare? outputFormat=mat