Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.309/2.309, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.813e-05/3.826e-05, allocations: 0 / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3929/0.393, allocations: 54.86 MB / 359.9 MB, free: 2.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2049/0.5979, allocations: 100.8 MB / 460.7 MB, free: 12.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003519/0.5983, allocations: 79.95 kB / 460.8 MB, free: 11.96 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.14/1.739, allocations: 199.4 MB / 0.6447 GB, free: 42.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.739, allocations: 0 / 0.6447 GB, free: 42.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005565/1.739, allocations: 192 kB / 0.6449 GB, free: 42.62 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: 3662 * Number of variables: 3662 Notification: Performance of Generate backend data structure: time 0.03878/1.778, allocations: 9.428 MB / 0.6541 GB, free: 33.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.273e-05/1.778, allocations: 8.031 kB / 0.6541 GB, free: 33.09 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009977/1.788, allocations: 1.817 MB / 0.6559 GB, free: 31.26 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03616/1.824, allocations: 4.023 MB / 0.6598 GB, free: 27.21 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03807/1.862, allocations: 10.58 MB / 0.6701 GB, free: 16.55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001107/1.864, allocations: 0.7903 MB / 0.6709 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006365/1.87, allocations: 1.039 MB / 0.6719 GB, free: 14.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08254/1.953, allocations: 23.95 MB / 0.6953 GB, free: 5.156 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007435/1.953, allocations: 103 kB / 0.6954 GB, free: 5.055 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005963/1.959, allocations: 491.8 kB / 0.6959 GB, free: 4.574 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006811/1.966, allocations: 2.279 MB / 0.6981 GB, free: 2.289 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7781/2.744, allocations: 18.62 MB / 0.7163 GB, free: 63.73 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2355/2.98, allocations: 94.15 MB / 0.8082 GB, free: 10.83 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0526/3.033, allocations: 7.58 MB / 0.8156 GB, free: 8.516 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01062/3.043, allocations: 3.043 MB / 0.8186 GB, free: 7.359 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05753/3.101, allocations: 13.29 MB / 0.8316 GB, free: 1.035 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.702e-05/3.101, allocations: 67.2 kB / 0.8317 GB, free: 0.9727 MB / 474.8 MB Notification: Performance of pre-optimization done (n=336): time 1.26e-05/3.101, allocations: 0 / 0.8317 GB, free: 0.9727 MB / 474.8 MB Notification: Performance of matching and sorting (n=360): time 0.1464/3.247, allocations: 19.29 MB / 0.8505 GB, free: 5.168 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001821/3.248, allocations: 166.1 kB / 0.8507 GB, free: 4.977 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02767/3.275, allocations: 6.397 MB / 0.8569 GB, free: 15.34 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/3.277, allocations: 81.08 kB / 0.857 GB, free: 15.26 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.01002/3.287, allocations: 6.547 MB / 0.8634 GB, free: 9.363 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003179/3.29, allocations: 1.358 MB / 0.8647 GB, free: 8.164 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002313/3.292, allocations: 219.9 kB / 0.8649 GB, free: 7.949 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.002152/3.294, allocations: 0.7549 MB / 0.8657 GB, free: 7.316 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01485/3.309, allocations: 2.986 MB / 0.8686 GB, free: 4.625 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02315/3.333, allocations: 9.406 MB / 0.8778 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01968/3.352, allocations: 5.237 MB / 0.8829 GB, free: 4.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000356/3.353, allocations: 64 kB / 0.8829 GB, free: 4.188 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1390) (initialization): time 0.05087/3.404, allocations: 11.29 MB / 0.8939 GB, free: 10.21 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003823/3.404, allocations: 104 kB / 0.894 GB, free: 10.11 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007477/3.405, allocations: 235.8 kB / 0.8943 GB, free: 9.887 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008634/3.406, allocations: 336 kB / 0.8946 GB, free: 9.559 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02471/3.431, allocations: 2.618 MB / 0.8972 GB, free: 7.281 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008474/3.431, allocations: 455.3 kB / 0.8976 GB, free: 6.883 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02107/3.453, allocations: 0.681 MB / 0.8982 GB, free: 6.305 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003803/3.456, allocations: 0.6354 MB / 0.8989 GB, free: 5.68 MB / 0.5262 GB 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.00588/3.462, allocations: 0.9426 MB / 0.8998 GB, free: 4.738 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003128/3.466, allocations: 0.6672 MB / 0.9004 GB, free: 4.062 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02035/3.486, allocations: 3.984 MB / 0.9043 GB, free: 0.6641 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001347/3.486, allocations: 40 kB / 0.9044 GB, free: 0.625 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.339e-05/3.486, allocations: 0 / 0.9044 GB, free: 0.625 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001176/3.486, allocations: 15.98 kB / 0.9044 GB, free: 0.625 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5167/4.003, allocations: 41.39 MB / 0.9448 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003186/4.003, allocations: 88.56 kB / 0.9449 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005824/4.009, allocations: 0.8404 MB / 0.9457 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001762/4.01, allocations: 125.9 kB / 0.9458 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009714/4.011, allocations: 193.1 kB / 0.946 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001472/4.011, allocations: 171.4 kB / 0.9462 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.138e-05/4.011, allocations: 142.1 kB / 0.9463 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01678/4.028, allocations: 25.08 MB / 0.9708 GB, free: 91.66 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002853/4.03, allocations: 0.8403 MB / 0.9716 GB, free: 91.57 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002467/4.033, allocations: 210.2 kB / 0.9718 GB, free: 91.57 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007319/4.04, allocations: 265.1 kB / 0.9721 GB, free: 91.57 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001366/4.042, allocations: 0.5691 MB / 0.9726 GB, free: 91.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005382/4.042, allocations: 238.1 kB / 0.9729 GB, free: 91.5 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01223/4.055, allocations: 4.462 MB / 0.9772 GB, free: 91.25 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.903e-06/4.055, allocations: 0 / 0.9772 GB, free: 91.25 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01578/4.07, allocations: 1.874 MB / 0.9791 GB, free: 91.25 MB / 0.5262 GB 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.02257/4.093, allocations: 40.81 MB / 1.019 GB, free: 51.71 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01776/4.111, allocations: 6.86 MB / 1.026 GB, free: 49.67 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 9.509e-05/4.111, allocations: 14.22 kB / 1.026 GB, free: 49.67 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.005247/4.116, allocations: 2.004 MB / 1.028 GB, free: 49 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009924/4.126, allocations: 1.082 MB / 1.029 GB, free: 48.62 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08755/4.214, allocations: 22.78 MB / 1.051 GB, free: 34.35 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01961/4.234, allocations: 7.161 MB / 1.058 GB, free: 29.14 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01109/4.245, allocations: 4.845 MB / 1.063 GB, free: 24.64 MB / 0.5262 GB Notification: Performance of SimCode: time 2.114e-06/4.245, allocations: 0 / 1.063 GB, free: 24.64 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.942/10.19, allocations: 171.1 MB / 1.23 GB, free: 46.2 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat does not exist to compare? outputFormat=mat