Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadModel(ModelicaTest): time 2.225/2.225, allocations: 235 MB / 247.6 MB, free: 14.29 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.113e-05/3.125e-05, allocations: 8 kB / 304.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.323, allocations: 54.85 MB / 359.8 MB, free: 2.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/0.4832, allocations: 103.8 MB / 463.6 MB, free: 9.137 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.4835, allocations: 73.16 kB / 463.6 MB, free: 9.066 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.608/1.091, allocations: 91.08 MB / 0.5417 GB, free: 103.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.53e-06/1.092, allocations: 0 / 0.5417 GB, free: 103.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000235/1.092, allocations: 85.27 kB / 0.5418 GB, free: 103.2 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: 1642 * Number of variables: 1642 Notification: Performance of Generate backend data structure: time 0.0131/1.105, allocations: 4.137 MB / 0.5458 GB, free: 101.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/1.105, allocations: 17.06 kB / 0.5459 GB, free: 101.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02362/1.129, allocations: 4.431 MB / 0.5502 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/1.143, allocations: 4.73 MB / 0.5548 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000374/1.143, allocations: 351 kB / 0.5551 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/1.145, allocations: 461.2 kB / 0.5556 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02405/1.169, allocations: 10.5 MB / 0.5658 GB, free: 97.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002322/1.17, allocations: 61.03 kB / 0.5659 GB, free: 97.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001474/1.171, allocations: 224.8 kB / 0.5661 GB, free: 97.16 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001713/1.173, allocations: 0.9902 MB / 0.5671 GB, free: 97 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01922/1.192, allocations: 8.263 MB / 0.5751 GB, free: 94.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05618/1.248, allocations: 46.88 MB / 0.6209 GB, free: 58.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006921/1.255, allocations: 2.912 MB / 0.6238 GB, free: 56.88 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002636/1.258, allocations: 1.576 MB / 0.6253 GB, free: 55.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004209/1.259, allocations: 337.5 kB / 0.6256 GB, free: 55.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/1.259, allocations: 59.5 kB / 0.6257 GB, free: 55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=176): time 6.939e-06/1.259, allocations: 0 / 0.6257 GB, free: 55 MB / 458.7 MB Notification: Performance of matching and sorting (n=194): time 0.02983/1.288, allocations: 11.27 MB / 0.6367 GB, free: 44.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/1.289, allocations: 208.8 kB / 0.6369 GB, free: 44.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006312/1.295, allocations: 3.337 MB / 0.6401 GB, free: 41.76 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003637/1.295, allocations: 61.55 kB / 0.6402 GB, free: 41.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002019/1.297, allocations: 3.151 MB / 0.6433 GB, free: 38.85 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008929/1.298, allocations: 0.7403 MB / 0.644 GB, free: 38.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005087/1.299, allocations: 120 kB / 0.6441 GB, free: 38.08 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003629/1.299, allocations: 0.5583 MB / 0.6447 GB, free: 37.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004092/1.303, allocations: 1.999 MB / 0.6466 GB, free: 35.79 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006323/1.31, allocations: 5.606 MB / 0.6521 GB, free: 28.67 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006133/1.316, allocations: 3.325 MB / 0.6553 GB, free: 25.35 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.25e-05/1.316, allocations: 36 kB / 0.6554 GB, free: 25.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01635/1.332, allocations: 7.148 MB / 0.6624 GB, free: 18.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.621e-05/1.332, allocations: 62.34 kB / 0.6624 GB, free: 18.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001342/1.333, allocations: 128 kB / 0.6625 GB, free: 17.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009916/1.334, allocations: 393.7 kB / 0.6629 GB, free: 17.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006461/1.34, allocations: 1.419 MB / 0.6643 GB, free: 16.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004095/1.344, allocations: 2.992 MB / 0.6672 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005912/1.35, allocations: 359.5 kB / 0.6676 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001153/1.351, allocations: 371.9 kB / 0.6679 GB, free: 12.34 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 590 * Number of states: 0 () * Number of discrete variables: 27 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (744): * Single equations (assignments): 740 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001043/1.352, allocations: 0.5611 MB / 0.6685 GB, free: 11.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007137/1.353, allocations: 343.6 kB / 0.6688 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005335/1.359, allocations: 2.613 MB / 0.6713 GB, free: 8.805 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.67e-05/1.359, allocations: 24 kB / 0.6714 GB, free: 8.781 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/1.359, allocations: 4 kB / 0.6714 GB, free: 8.777 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.909e-05/1.359, allocations: 11.97 kB / 0.6714 GB, free: 8.766 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01786/1.377, allocations: 7.452 MB / 0.6787 GB, free: 1.289 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/1.377, allocations: 0 / 0.6787 GB, free: 1.289 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00239/1.379, allocations: 347.5 kB / 0.679 GB, free: 0.9492 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000709/1.38, allocations: 184.7 kB / 0.6792 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003167/1.38, allocations: 31.98 kB / 0.6792 GB, free: 0.7344 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004148/1.384, allocations: 2.556 MB / 0.6817 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.391e-06/1.384, allocations: 0 / 0.6817 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/1.397, allocations: 5.154 MB / 0.6867 GB, free: 8.859 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/1.4, allocations: 0.6215 MB / 0.6873 GB, free: 8.215 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008141/1.401, allocations: 36.06 kB / 0.6874 GB, free: 8.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/1.403, allocations: 115.8 kB / 0.6875 GB, free: 8.066 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004969/1.403, allocations: 137 kB / 0.6876 GB, free: 7.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002272/1.404, allocations: 55.61 kB / 0.6877 GB, free: 7.879 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005926/1.41, allocations: 2.322 MB / 0.6899 GB, free: 5.574 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.127e-06/1.41, allocations: 0 / 0.6899 GB, free: 5.574 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00695/1.417, allocations: 0.9881 MB / 0.6909 GB, free: 4.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 160 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006182/1.417, allocations: 170.5 kB / 0.6911 GB, free: 4.418 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0106/1.428, allocations: 4.685 MB / 0.6956 GB, free: 15.76 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.955e-06/1.428, allocations: 0 / 0.6956 GB, free: 15.76 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003295/1.431, allocations: 1.517 MB / 0.6971 GB, free: 14.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00257/1.434, allocations: 387.6 kB / 0.6975 GB, free: 13.85 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02133/1.455, allocations: 8.162 MB / 0.7055 GB, free: 5.633 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007969/1.463, allocations: 3.541 MB / 0.7089 GB, free: 2.078 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/1.465, allocations: 307.4 kB / 0.7092 GB, free: 1.777 MB / 490.7 MB Notification: Performance of SimCode: time 1.771e-06/1.465, allocations: 0 / 0.7092 GB, free: 1.777 MB / 490.7 MB Notification: Performance of Templates: time 0.3849/1.85, allocations: 74.86 MB / 0.7823 GB, free: 101 MB / 490.7 MB