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 1.952/1.952, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.406e-05/2.414e-05, allocations: 0 / 267.6 MB, free: 5.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 48.7 MB / 316.3 MB, free: 4.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4365/0.5401, allocations: 93.67 MB / 410 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.5404, allocations: 77.2 kB / 410 MB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.106/1.646, allocations: 194.6 MB / 0.5905 GB, free: 39.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.646, allocations: 0 / 0.5905 GB, free: 39.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005043/1.647, allocations: 192 kB / 0.5907 GB, free: 39.24 MB / 410.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.0377/1.684, allocations: 9.42 MB / 0.5999 GB, free: 29.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.685, allocations: 12.03 kB / 0.5999 GB, free: 29.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03455/1.719, allocations: 4.031 MB / 0.6039 GB, free: 25.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03499/1.754, allocations: 10.55 MB / 0.6142 GB, free: 15.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007688/1.755, allocations: 344 kB / 0.6145 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005676/1.761, allocations: 0.6131 MB / 0.6151 GB, free: 14.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03707/1.798, allocations: 14.54 MB / 0.6293 GB, free: 15.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.427/2.225, allocations: 20.72 MB / 0.6495 GB, free: 50.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007264/2.226, allocations: 94.94 kB / 0.6496 GB, free: 50.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005333/2.231, allocations: 49.81 kB / 0.6497 GB, free: 50.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006687/2.238, allocations: 2.271 MB / 0.6519 GB, free: 50.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1643/2.402, allocations: 93.8 MB / 0.7435 GB, free: 15.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009082/2.411, allocations: 4.135 MB / 0.7475 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004093/2.415, allocations: 1.94 MB / 0.7494 GB, free: 12.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002881/2.416, allocations: 60.59 kB / 0.7495 GB, free: 12.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.132e-05/2.416, allocations: 71.83 kB / 0.7495 GB, free: 12.51 MB / 442.7 MB Notification: Performance of pre-optimization done (n=330): time 6.973e-06/2.416, allocations: 0 / 0.7495 GB, free: 12.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=342): time 0.04771/2.463, allocations: 14.89 MB / 0.7641 GB, free: 5.191 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.776e-05/2.463, allocations: 164.7 kB / 0.7642 GB, free: 5.027 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01218/2.476, allocations: 5.654 MB / 0.7698 GB, free: 2.875 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007876/2.477, allocations: 25.7 kB / 0.7698 GB, free: 2.844 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0071/2.484, allocations: 6.784 MB / 0.7764 GB, free: 13.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00222/2.486, allocations: 1.265 MB / 0.7776 GB, free: 12.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001427/2.487, allocations: 0 / 0.7776 GB, free: 12.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001139/2.489, allocations: 0.7753 MB / 0.7784 GB, free: 12.06 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01008/2.499, allocations: 2.861 MB / 0.7812 GB, free: 11.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04635/2.545, allocations: 9.638 MB / 0.7906 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01739/2.563, allocations: 5.161 MB / 0.7956 GB, free: 14.65 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003616/2.563, allocations: 72.16 kB / 0.7957 GB, free: 14.65 MB / 474.7 MB Notification: Performance of matching and sorting (n=1444) (initialization): time 0.03428/2.597, allocations: 10.85 MB / 0.8063 GB, free: 10.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001748/2.597, allocations: 109.7 kB / 0.8064 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003659/2.598, allocations: 246.4 kB / 0.8066 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000429/2.598, allocations: 354.3 kB / 0.807 GB, free: 10.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01758/2.616, allocations: 2.713 MB / 0.8096 GB, free: 10.53 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000613/2.617, allocations: 481.3 kB / 0.8101 GB, free: 10.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01369/2.63, allocations: 499.9 kB / 0.8106 GB, free: 9.723 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002915/2.633, allocations: 0.665 MB / 0.8112 GB, free: 9.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1112 * 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 (1420): * Single equations (assignments): 1417 * 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.004118/2.637, allocations: 0.7146 MB / 0.8119 GB, free: 8.355 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01153/2.649, allocations: 3.705 MB / 0.8155 GB, free: 5.012 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002339/2.651, allocations: 0.617 MB / 0.8161 GB, free: 4.387 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/2.664, allocations: 3.561 MB / 0.8196 GB, free: 1.375 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.441e-05/2.664, allocations: 39.14 kB / 0.8197 GB, free: 1.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/2.664, allocations: 0 / 0.8197 GB, free: 1.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.976e-05/2.664, allocations: 14.53 kB / 0.8197 GB, free: 1.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4401/3.104, allocations: 36.92 MB / 0.8557 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003455/3.104, allocations: 80.91 kB / 0.8558 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005792/3.11, allocations: 0.8125 MB / 0.8566 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/3.11, allocations: 118.8 kB / 0.8567 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008278/3.111, allocations: 125.2 kB / 0.8568 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001168/3.111, allocations: 158.5 kB / 0.857 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.878e-05/3.111, allocations: 135.2 kB / 0.8571 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01651/3.128, allocations: 22.45 MB / 0.879 GB, free: 72.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002643/3.131, allocations: 0.7617 MB / 0.8798 GB, free: 72.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002551/3.133, allocations: 130.3 kB / 0.8799 GB, free: 72.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006913/3.14, allocations: 189.4 kB / 0.8801 GB, free: 72.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001417/3.142, allocations: 0.5416 MB / 0.8806 GB, free: 72.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006612/3.142, allocations: 228.8 kB / 0.8808 GB, free: 72.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01031/3.153, allocations: 3.779 MB / 0.8845 GB, free: 72.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.61e-07/3.153, allocations: 0 / 0.8845 GB, free: 72.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01533/3.168, allocations: 1.594 MB / 0.8861 GB, free: 72.27 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 378 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (426): * Single equations (assignments): 423 * 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.01942/3.188, allocations: 38.24 MB / 0.9234 GB, free: 36.11 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01664/3.204, allocations: 6.737 MB / 0.93 GB, free: 34.41 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.899e-05/3.204, allocations: 12.56 kB / 0.93 GB, free: 34.41 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004608/3.209, allocations: 1.898 MB / 0.9319 GB, free: 33.76 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008837/3.218, allocations: 0.8514 MB / 0.9327 GB, free: 33.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07304/3.291, allocations: 22.08 MB / 0.9542 GB, free: 21.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01896/3.31, allocations: 7.129 MB / 0.9612 GB, free: 16.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01125/3.321, allocations: 4.813 MB / 0.9659 GB, free: 11.68 MB / 474.7 MB Notification: Performance of SimCode: time 1.423e-06/3.321, allocations: 0 / 0.9659 GB, free: 11.68 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.811/9.132, allocations: 168.1 MB / 1.13 GB, free: 41.59 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