Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.433/2.433, allocations: 270 MB / 282.6 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.806e-05, allocations: 8 kB / 347.1 MB, free: 3.098 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4258/0.4258, allocations: 61.87 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2003/0.6262, allocations: 105.9 MB / 0.5027 GB, free: 0.7266 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.6265, allocations: 83.94 kB / 0.5028 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9249/1.551, allocations: 151.4 MB / 0.6507 GB, free: 4.156 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.552, allocations: 0 / 0.6507 GB, free: 4.156 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005025/1.552, allocations: 144 kB / 0.6508 GB, free: 4.016 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: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.03087/1.583, allocations: 7.357 MB / 0.658 GB, free: 12.58 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/1.583, allocations: 8.031 kB / 0.658 GB, free: 12.57 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006454/1.589, allocations: 1.301 MB / 0.6593 GB, free: 11.26 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0314/1.621, allocations: 3.528 MB / 0.6627 GB, free: 7.715 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09584/1.717, allocations: 8.763 MB / 0.6713 GB, free: 14.87 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001059/1.718, allocations: 0.5616 MB / 0.6718 GB, free: 14.31 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004375/1.722, allocations: 0.7457 MB / 0.6725 GB, free: 13.56 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07148/1.794, allocations: 17.41 MB / 0.6895 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005759/1.795, allocations: 95.2 kB / 0.6896 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00403/1.799, allocations: 359.8 kB / 0.69 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006298/1.805, allocations: 1.621 MB / 0.6916 GB, free: 8.625 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05355/1.859, allocations: 13.12 MB / 0.7044 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.498/2.357, allocations: 74.6 MB / 0.7772 GB, free: 42.97 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02492/2.382, allocations: 5.232 MB / 0.7823 GB, free: 42.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004926/2.386, allocations: 2.071 MB / 0.7843 GB, free: 42.26 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02736/2.414, allocations: 9.961 MB / 0.7941 GB, free: 39.06 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.91e-05/2.414, allocations: 55.56 kB / 0.7941 GB, free: 39.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=182): time 6.001e-06/2.414, allocations: 0 / 0.7941 GB, free: 39.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=206): time 0.06155/2.476, allocations: 13.12 MB / 0.8069 GB, free: 34.72 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/2.476, allocations: 145.3 kB / 0.8071 GB, free: 34.56 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01373/2.489, allocations: 5.506 MB / 0.8124 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004269/2.49, allocations: 54.27 kB / 0.8125 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004445/2.494, allocations: 5.083 MB / 0.8175 GB, free: 31.35 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001116/2.496, allocations: 0.8253 MB / 0.8183 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008388/2.496, allocations: 165.8 kB / 0.8184 GB, free: 30.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004704/2.497, allocations: 0.6538 MB / 0.8191 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00507/2.502, allocations: 2.084 MB / 0.8211 GB, free: 30.17 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008592/2.511, allocations: 7.359 MB / 0.8283 GB, free: 22.32 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008376/2.519, allocations: 3.882 MB / 0.8321 GB, free: 21.34 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002064/2.519, allocations: 54.19 kB / 0.8321 GB, free: 21.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.02244/2.542, allocations: 8.376 MB / 0.8403 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001619/2.542, allocations: 88.12 kB / 0.8404 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003084/2.542, allocations: 191 kB / 0.8406 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003216/2.543, allocations: 280.1 kB / 0.8408 GB, free: 19.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.012/2.555, allocations: 1.992 MB / 0.8428 GB, free: 19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003282/2.555, allocations: 372.5 kB / 0.8431 GB, free: 18.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/2.566, allocations: 0.5715 MB / 0.8437 GB, free: 18.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001667/2.567, allocations: 0.4986 MB / 0.8442 GB, free: 18.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * Number of states: 0 () * Number of discrete variables: 68 (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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1031): * Single equations (assignments): 1028 * 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.001724/2.569, allocations: 0.7656 MB / 0.8449 GB, free: 18.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001254/2.57, allocations: 0.544 MB / 0.8455 GB, free: 17.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/2.572, allocations: 0.6414 MB / 0.8461 GB, free: 17.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.154e-05/2.572, allocations: 27.69 kB / 0.8461 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-05/2.572, allocations: 2.656 kB / 0.8461 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/2.572, allocations: 6.984 kB / 0.8461 GB, free: 17.46 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03418/2.607, allocations: 14.97 MB / 0.8608 GB, free: 8.125 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-05/2.607, allocations: 44 kB / 0.8608 GB, free: 8.082 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002519/2.609, allocations: 431 kB / 0.8612 GB, free: 7.707 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.089e-05/2.609, allocations: 64 kB / 0.8613 GB, free: 7.645 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002195/2.61, allocations: 107 kB / 0.8614 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.812e-05/2.61, allocations: 86.02 kB / 0.8615 GB, free: 7.477 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.279e-05/2.61, allocations: 79.44 kB / 0.8615 GB, free: 7.402 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009502/2.619, allocations: 11.88 MB / 0.8731 GB, free: 9.746 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002264/2.622, allocations: 0.6407 MB / 0.8738 GB, free: 9.109 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001562/2.623, allocations: 102.4 kB / 0.8739 GB, free: 9.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004529/2.628, allocations: 172.8 kB / 0.874 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006455/2.628, allocations: 297.8 kB / 0.8743 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002527/2.629, allocations: 123.8 kB / 0.8744 GB, free: 8.527 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01067/2.639, allocations: 3.85 MB / 0.8782 GB, free: 5.141 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.11e-07/2.639, allocations: 0 / 0.8782 GB, free: 5.141 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01105/2.65, allocations: 1.366 MB / 0.8795 GB, free: 3.785 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 203 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (230): * Single equations (assignments): 227 * 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.0187/2.669, allocations: 21.32 MB / 0.9003 GB, free: 13.99 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0129/2.682, allocations: 4.732 MB / 0.905 GB, free: 9.699 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.106e-05/2.682, allocations: 4 kB / 0.905 GB, free: 9.695 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002853/2.685, allocations: 1.094 MB / 0.906 GB, free: 8.711 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007305/2.692, allocations: 0.8518 MB / 0.9069 GB, free: 8.012 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05818/2.751, allocations: 16.09 MB / 0.9226 GB, free: 10.15 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01405/2.765, allocations: 5.401 MB / 0.9278 GB, free: 6.207 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008449/2.773, allocations: 3.494 MB / 0.9313 GB, free: 2.953 MB / 0.573 GB Notification: Performance of SimCode: time 1.432e-06/2.773, allocations: 0 / 0.9313 GB, free: 2.953 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.299/8.072, allocations: 127.4 MB / 1.056 GB, free: 92.64 MB / 0.573 GB