Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.37/2.37, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.89e-05/3.906e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3927, allocations: 54.86 MB / 359.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1867/0.5794, allocations: 98.81 MB / 458.7 MB, free: 14.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.5798, allocations: 81.16 kB / 458.7 MB, free: 13.96 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.054/1.634, allocations: 166.2 MB / 0.6103 GB, free: 78.16 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.745e-06/1.634, allocations: 0 / 0.6103 GB, free: 78.16 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004811/1.635, allocations: 164 kB / 0.6105 GB, free: 78 MB / 458.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.03192/1.666, allocations: 7.975 MB / 0.6183 GB, free: 69.94 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/1.667, allocations: 8.031 kB / 0.6183 GB, free: 69.93 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007404/1.674, allocations: 1.458 MB / 0.6197 GB, free: 68.46 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03212/1.706, allocations: 3.674 MB / 0.6233 GB, free: 64.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03322/1.739, allocations: 9.691 MB / 0.6328 GB, free: 55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008746/1.74, allocations: 0.6219 MB / 0.6334 GB, free: 54.37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004769/1.745, allocations: 0.8243 MB / 0.6342 GB, free: 53.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06981/1.815, allocations: 19.28 MB / 0.653 GB, free: 32.74 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005343/1.816, allocations: 99.05 kB / 0.6531 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004127/1.82, allocations: 403.8 kB / 0.6535 GB, free: 32.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004712/1.824, allocations: 1.865 MB / 0.6553 GB, free: 30.38 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04703/1.872, allocations: 14.73 MB / 0.6697 GB, free: 15.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5444/2.416, allocations: 81.53 MB / 0.7493 GB, free: 34.97 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02825/2.444, allocations: 5.889 MB / 0.7551 GB, free: 34.29 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006603/2.451, allocations: 2.482 MB / 0.7575 GB, free: 34.26 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0342/2.485, allocations: 11.34 MB / 0.7686 GB, free: 31.04 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.96e-05/2.485, allocations: 64.62 kB / 0.7686 GB, free: 31 MB / 474.7 MB Notification: Performance of pre-optimization done (n=250): time 7.344e-06/2.485, allocations: 0 / 0.7686 GB, free: 31 MB / 474.7 MB Notification: Performance of matching and sorting (n=274): time 0.07044/2.556, allocations: 14.99 MB / 0.7832 GB, free: 26.27 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/2.556, allocations: 160.3 kB / 0.7834 GB, free: 26.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01502/2.571, allocations: 5.833 MB / 0.7891 GB, free: 25.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005984/2.572, allocations: 72.59 kB / 0.7892 GB, free: 25.53 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005/2.577, allocations: 5.564 MB / 0.7946 GB, free: 22.28 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001978/2.579, allocations: 1.055 MB / 0.7956 GB, free: 21.59 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/2.581, allocations: 185.3 kB / 0.7958 GB, free: 21.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001599/2.582, allocations: 0.6961 MB / 0.7965 GB, free: 20.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01025/2.593, allocations: 2.481 MB / 0.7989 GB, free: 20.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01482/2.608, allocations: 8.198 MB / 0.8069 GB, free: 11.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01448/2.622, allocations: 4.459 MB / 0.8113 GB, free: 10.35 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003202/2.622, allocations: 58.84 kB / 0.8113 GB, free: 10.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.0375/2.66, allocations: 9.617 MB / 0.8207 GB, free: 7.566 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001691/2.66, allocations: 93.38 kB / 0.8208 GB, free: 7.566 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003131/2.661, allocations: 207 kB / 0.821 GB, free: 7.566 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/2.661, allocations: 304.1 kB / 0.8213 GB, free: 7.566 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01439/2.675, allocations: 2.241 MB / 0.8235 GB, free: 7.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004157/2.676, allocations: 407.3 kB / 0.8239 GB, free: 7.207 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/2.688, allocations: 0.6172 MB / 0.8245 GB, free: 7.035 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002244/2.69, allocations: 0.5531 MB / 0.825 GB, free: 6.961 MB / 474.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.00329/2.694, allocations: 0.8385 MB / 0.8258 GB, free: 6.273 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/2.695, allocations: 0.5859 MB / 0.8264 GB, free: 5.949 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008647/2.704, allocations: 2.928 MB / 0.8293 GB, free: 4.816 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.905e-05/2.704, allocations: 27.47 kB / 0.8293 GB, free: 4.816 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/2.704, allocations: 3.969 kB / 0.8293 GB, free: 4.816 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.413e-05/2.704, allocations: 11.39 kB / 0.8293 GB, free: 4.816 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06106/2.765, allocations: 24.62 MB / 0.8533 GB, free: 1.863 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001715/2.765, allocations: 64 kB / 0.8534 GB, free: 1.801 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00429/2.77, allocations: 0.5951 MB / 0.854 GB, free: 1.277 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/2.77, allocations: 88 kB / 0.8541 GB, free: 1.191 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005746/2.77, allocations: 136.1 kB / 0.8542 GB, free: 1.062 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001231/2.771, allocations: 120.9 kB / 0.8543 GB, free: 0.957 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001038/2.771, allocations: 99.56 kB / 0.8544 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01706/2.788, allocations: 16.89 MB / 0.8709 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002638/2.791, allocations: 0.7217 MB / 0.8716 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002092/2.793, allocations: 146.9 kB / 0.8717 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005902/2.799, allocations: 211.6 kB / 0.8719 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/2.8, allocations: 407.5 kB / 0.8723 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004113/2.8, allocations: 168 kB / 0.8725 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01207/2.812, allocations: 4.092 MB / 0.8765 GB, free: 8.949 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.302e-06/2.812, allocations: 0 / 0.8765 GB, free: 8.949 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01379/2.826, allocations: 1.548 MB / 0.878 GB, free: 7.41 MB / 0.5105 GB 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.4252/3.251, allocations: 28.86 MB / 0.9062 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01595/3.267, allocations: 5.671 MB / 0.9117 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.492e-05/3.267, allocations: 9.344 kB / 0.9117 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004249/3.272, allocations: 1.503 MB / 0.9132 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00863/3.28, allocations: 0.9105 MB / 0.9141 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06396/3.344, allocations: 18.31 MB / 0.932 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01595/3.36, allocations: 5.956 MB / 0.9378 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00916/3.37, allocations: 3.926 MB / 0.9416 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.914e-06/3.37, allocations: 0 / 0.9416 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.342/8.712, allocations: 142.7 MB / 1.081 GB, free: 25.65 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat