Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.175/2.175, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.84e-05/3.85e-05, allocations: 0 / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1001, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4356/0.5358, allocations: 94.08 MB / 415.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/0.5362, allocations: 79.95 kB / 416 MB, free: 11.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.193/1.729, allocations: 199.4 MB / 0.601 GB, free: 55.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.796e-06/1.729, allocations: 0 / 0.601 GB, free: 55.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005363/1.73, allocations: 199.9 kB / 0.6012 GB, free: 55.14 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: 3662 * Number of variables: 3662 Notification: Performance of Generate backend data structure: time 0.03797/1.768, allocations: 9.424 MB / 0.6104 GB, free: 45.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/1.768, allocations: 12.03 kB / 0.6104 GB, free: 45.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009556/1.777, allocations: 1.817 MB / 0.6122 GB, free: 43.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04316/1.821, allocations: 4.038 MB / 0.6161 GB, free: 39.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04576/1.866, allocations: 10.56 MB / 0.6264 GB, free: 29.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00109/1.868, allocations: 0.7903 MB / 0.6272 GB, free: 28.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00599/1.874, allocations: 1.039 MB / 0.6282 GB, free: 27.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07906/1.953, allocations: 24.07 MB / 0.6517 GB, free: 1.559 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000666/1.953, allocations: 99.06 kB / 0.6518 GB, free: 1.461 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005661/1.959, allocations: 495.7 kB / 0.6523 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3347/2.294, allocations: 2.264 MB / 0.6545 GB, free: 56.76 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07292/2.367, allocations: 18.98 MB / 0.673 GB, free: 56.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1733/2.54, allocations: 94.14 MB / 0.765 GB, free: 1.258 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03789/2.578, allocations: 7.713 MB / 0.7725 GB, free: 15.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008558/2.587, allocations: 3.037 MB / 0.7755 GB, free: 14.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04483/2.632, allocations: 13.29 MB / 0.7884 GB, free: 5.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.547e-05/2.632, allocations: 80.11 kB / 0.7885 GB, free: 4.988 MB / 442.7 MB Notification: Performance of pre-optimization done (n=336): time 7.484e-06/2.632, allocations: 0 / 0.7885 GB, free: 4.988 MB / 442.7 MB Notification: Performance of matching and sorting (n=360): time 0.0957/2.727, allocations: 18.82 MB / 0.8069 GB, free: 5.074 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/2.728, allocations: 170.9 kB / 0.8071 GB, free: 4.875 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01973/2.747, allocations: 6.405 MB / 0.8133 GB, free: 15.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008496/2.748, allocations: 81.7 kB / 0.8134 GB, free: 15.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007714/2.756, allocations: 6.55 MB / 0.8198 GB, free: 9.277 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002491/2.759, allocations: 1.35 MB / 0.8211 GB, free: 8.082 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001524/2.76, allocations: 211.3 kB / 0.8213 GB, free: 7.879 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001366/2.762, allocations: 0.7656 MB / 0.8221 GB, free: 7.234 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01035/2.772, allocations: 2.987 MB / 0.825 GB, free: 4.543 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3587/3.131, allocations: 9.463 MB / 0.8342 GB, free: 94.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01415/3.145, allocations: 5.235 MB / 0.8393 GB, free: 94.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003971/3.145, allocations: 65.91 kB / 0.8394 GB, free: 94.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=1390) (initialization): time 0.03623/3.182, allocations: 11.93 MB / 0.851 GB, free: 93.76 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002439/3.182, allocations: 105.7 kB / 0.8511 GB, free: 93.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004199/3.182, allocations: 230.8 kB / 0.8514 GB, free: 93.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004694/3.183, allocations: 341.1 kB / 0.8517 GB, free: 93.76 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01688/3.2, allocations: 2.608 MB / 0.8542 GB, free: 93.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003912/3.2, allocations: 458.7 kB / 0.8547 GB, free: 93.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01295/3.213, allocations: 0.6793 MB / 0.8553 GB, free: 93.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002123/3.215, allocations: 0.6371 MB / 0.8559 GB, free: 93.44 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1052 * Number of states: 0 () * Number of discrete variables: 69 (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],cutForce2b.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[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],cutForce1b.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[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],cutForce2a.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.torqueColor[3],cutForce1a.torqueColor[2],cutForce1a.torqueColor[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 (1366): * Single equations (assignments): 1363 * 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.00221/3.218, allocations: 0.9492 MB / 0.8569 GB, free: 93.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001464/3.219, allocations: 0.6658 MB / 0.8575 GB, free: 93.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/3.229, allocations: 3.988 MB / 0.8614 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.23e-05/3.229, allocations: 39.12 kB / 0.8615 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/3.229, allocations: 1.312 kB / 0.8615 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.475e-05/3.229, allocations: 19.28 kB / 0.8615 GB, free: 92.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08988/3.319, allocations: 41.62 MB / 0.9021 GB, free: 84.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001431/3.319, allocations: 88.81 kB / 0.9022 GB, free: 84.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005439/3.325, allocations: 0.836 MB / 0.903 GB, free: 84.28 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/3.325, allocations: 128.4 kB / 0.9031 GB, free: 84.28 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005236/3.326, allocations: 197.1 kB / 0.9033 GB, free: 84.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001282/3.326, allocations: 176.7 kB / 0.9035 GB, free: 84.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.321e-05/3.326, allocations: 133.4 kB / 0.9036 GB, free: 84.15 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01512/3.341, allocations: 25.1 MB / 0.9281 GB, free: 58.45 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00234/3.343, allocations: 0.8364 MB / 0.929 GB, free: 57.97 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001443/3.345, allocations: 205 kB / 0.9292 GB, free: 57.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006757/3.352, allocations: 266.2 kB / 0.9294 GB, free: 57.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001373/3.353, allocations: 0.5711 MB / 0.93 GB, free: 57.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006434/3.354, allocations: 245.2 kB / 0.9302 GB, free: 57.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01221/3.366, allocations: 4.454 MB / 0.9345 GB, free: 54.78 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.573e-06/3.366, allocations: 0 / 0.9345 GB, free: 54.78 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01436/3.38, allocations: 1.87 MB / 0.9364 GB, free: 52.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 402 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (444): * Single equations (assignments): 441 * 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.02003/3.4, allocations: 40.8 MB / 0.9762 GB, free: 9.645 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01755/3.418, allocations: 7.276 MB / 0.9833 GB, free: 2.992 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.205e-05/3.418, allocations: 16 kB / 0.9833 GB, free: 2.977 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005016/3.423, allocations: 2.112 MB / 0.9854 GB, free: 1.074 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009976/3.433, allocations: 1.081 MB / 0.9865 GB, free: 164 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4577/3.891, allocations: 22.9 MB / 1.009 GB, free: 106.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02008/3.911, allocations: 7.159 MB / 1.016 GB, free: 105.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0115/3.923, allocations: 4.843 MB / 1.021 GB, free: 105.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.933e-06/3.923, allocations: 1.281 kB / 1.021 GB, free: 105.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.954/9.877, allocations: 172.8 MB / 1.189 GB, free: 71.23 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat does not exist to compare? outputFormat=mat