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.385/2.385, allocations: 234.9 MB / 250.1 MB, free: 9.93 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.811e-05/2.807e-05, allocations: 0 / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.372, allocations: 54.86 MB / 362.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.06593/0.438, allocations: 42 MB / 404.9 MB, free: 3.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02803/0.4661, allocations: 9.669 MB / 414.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009859/0.476, allocations: 211.5 kB / 414.7 MB, free: 9.828 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007878/0.4839, allocations: 2.205 MB / 416.9 MB, free: 7.613 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0265/0.5105, allocations: 6.058 MB / 423 MB, free: 1.539 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003993/0.5145, allocations: 0.5655 MB / 423.6 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.02643/0.541, allocations: 8.877 MB / 432.4 MB, free: 8.09 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008412/0.5495, allocations: 3.895 MB / 436.3 MB, free: 4.152 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002175/0.5517, allocations: 0.7987 MB / 437.1 MB, free: 3.352 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003094/0.5549, allocations: 1.321 MB / 438.4 MB, free: 2.027 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003043/0.558, allocations: 0.9402 MB / 439.4 MB, free: 1.086 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001387/0.5594, allocations: 148 kB / 439.5 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002885/0.5623, allocations: 1.582 MB / 441.1 MB, free: 15.35 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.5639, allocations: 272 kB / 441.4 MB, free: 15.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.5745, allocations: 6.235 MB / 447.6 MB, free: 8.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.5746, allocations: 3.938 kB / 447.6 MB, free: 8.836 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.017e-06/0.5746, allocations: 0 / 447.6 MB, free: 8.836 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002719/0.5749, allocations: 0 / 447.6 MB, free: 8.836 MB / 378.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.01425/0.5892, allocations: 4.089 MB / 451.7 MB, free: 4.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.5893, allocations: 15.97 kB / 451.7 MB, free: 4.664 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1814/0.7707, allocations: 10.55 MB / 462.3 MB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00955/0.7803, allocations: 2.851 MB / 465.1 MB, free: 7.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003897/0.7807, allocations: 258.4 kB / 465.4 MB, free: 6.926 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.7826, allocations: 343.7 kB / 465.7 MB, free: 6.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0291/0.8117, allocations: 10.4 MB / 476.1 MB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000229/0.812, allocations: 47.58 kB / 476.2 MB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001517/0.8135, allocations: 163.8 kB / 476.3 MB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005718/0.8193, allocations: 2.03 MB / 478.3 MB, free: 9.273 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02811/0.8475, allocations: 8.635 MB / 487 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3992/1.247, allocations: 38.41 MB / 0.5131 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009614/1.256, allocations: 3.013 MB / 0.516 GB, free: 94.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006329/1.257, allocations: 343.7 kB / 0.5163 GB, free: 94.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/1.257, allocations: 55.11 kB / 0.5164 GB, free: 94.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=176): time 5.09e-06/1.257, allocations: 0 / 0.5164 GB, free: 94.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=194): time 0.05557/1.313, allocations: 14.45 MB / 0.5305 GB, free: 86.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.636e-05/1.313, allocations: 201 kB / 0.5307 GB, free: 86.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007557/1.32, allocations: 3.522 MB / 0.5341 GB, free: 82.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004628/1.321, allocations: 57.27 kB / 0.5342 GB, free: 82.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002437/1.323, allocations: 3.137 MB / 0.5373 GB, free: 79.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001166/1.325, allocations: 0.733 MB / 0.538 GB, free: 78.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000714/1.325, allocations: 116 kB / 0.5381 GB, free: 78.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004449/1.326, allocations: 0.5628 MB / 0.5386 GB, free: 77.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005955/1.332, allocations: 2.146 MB / 0.5407 GB, free: 75.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008235/1.34, allocations: 5.787 MB / 0.5464 GB, free: 68.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008644/1.349, allocations: 3.449 MB / 0.5497 GB, free: 64.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001281/1.349, allocations: 39.94 kB / 0.5498 GB, free: 64.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.02165/1.371, allocations: 7.857 MB / 0.5575 GB, free: 56.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.961e-05/1.371, allocations: 60 kB / 0.5575 GB, free: 56.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001771/1.371, allocations: 131.9 kB / 0.5576 GB, free: 56.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/1.373, allocations: 455 kB / 0.5581 GB, free: 56.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009021/1.382, allocations: 1.427 MB / 0.5595 GB, free: 54.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005743/1.388, allocations: 3.4 MB / 0.5628 GB, free: 51.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006545/1.394, allocations: 356.7 kB / 0.5631 GB, free: 50.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001173/1.395, allocations: 376 kB / 0.5635 GB, free: 50.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * 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 (742): * Single equations (assignments): 738 * 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.005292/1.401, allocations: 2.186 MB / 0.5656 GB, free: 48.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008727/1.402, allocations: 343.5 kB / 0.566 GB, free: 48.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008945/1.411, allocations: 2.925 MB / 0.5688 GB, free: 45.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.005e-05/1.411, allocations: 25.23 kB / 0.5688 GB, free: 45.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/1.411, allocations: 4 kB / 0.5688 GB, free: 45.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.125e-05/1.411, allocations: 7.969 kB / 0.5688 GB, free: 45.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02341/1.434, allocations: 7.825 MB / 0.5765 GB, free: 37.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.37e-05/1.434, allocations: 3.984 kB / 0.5765 GB, free: 37.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003384/1.438, allocations: 351.5 kB / 0.5768 GB, free: 36.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/1.439, allocations: 264.5 kB / 0.5771 GB, free: 36.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003895/1.439, allocations: 43.95 kB / 0.5771 GB, free: 36.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004824/1.444, allocations: 2.963 MB / 0.58 GB, free: 33.49 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.444, allocations: 8.016 kB / 0.58 GB, free: 33.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01423/1.458, allocations: 5.599 MB / 0.5855 GB, free: 27.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002239/1.461, allocations: 0.6487 MB / 0.5861 GB, free: 27.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001108/1.462, allocations: 28 kB / 0.5861 GB, free: 27.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003156/1.465, allocations: 123.9 kB / 0.5863 GB, free: 27.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006575/1.466, allocations: 129.1 kB / 0.5864 GB, free: 26.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/1.466, allocations: 51.98 kB / 0.5864 GB, free: 26.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005606/1.472, allocations: 2.47 MB / 0.5888 GB, free: 24.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.472, allocations: 0 / 0.5888 GB, free: 24.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006525/1.478, allocations: 1.005 MB / 0.5898 GB, free: 23.41 MB / 426.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.0008888/1.479, allocations: 184.1 kB / 0.59 GB, free: 23.22 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01261/1.492, allocations: 5.163 MB / 0.595 GB, free: 18.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/1.492, allocations: 3.938 kB / 0.5951 GB, free: 18.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004336/1.496, allocations: 1.665 MB / 0.5967 GB, free: 16.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003101/1.499, allocations: 395.7 kB / 0.5971 GB, free: 16.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02551/1.525, allocations: 11.71 MB / 0.6085 GB, free: 4.242 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006767/1.532, allocations: 3.54 MB / 0.6119 GB, free: 0.668 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/1.534, allocations: 307.4 kB / 0.6122 GB, free: 376 kB / 426.7 MB Notification: Performance of SimCode: time 1.432e-06/1.534, allocations: 0 / 0.6122 GB, free: 376 kB / 426.7 MB Notification: Performance of Templates: time 0.4938/2.028, allocations: 76.52 MB / 0.687 GB, free: 165.4 MB / 490.7 MB