Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 2.188/2.188, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.196e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4114/0.4115, allocations: 48.7 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.08344/0.495, allocations: 50.51 MB / 375.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03548/0.5305, allocations: 11.27 MB / 386.6 MB, free: 1.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01314/0.5437, allocations: 267.4 kB / 386.9 MB, free: 1.398 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01121/0.555, allocations: 2.695 MB / 389.6 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02961/0.5847, allocations: 7.441 MB / 397 MB, free: 7.23 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005512/0.5902, allocations: 0.8854 MB / 397.9 MB, free: 6.344 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0312/0.6215, allocations: 10.16 MB / 408.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01205/0.6336, allocations: 4.416 MB / 412.5 MB, free: 7.734 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005337/0.639, allocations: 1.262 MB / 413.7 MB, free: 6.469 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00726/0.6464, allocations: 2.135 MB / 415.9 MB, free: 4.328 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005775/0.6522, allocations: 0.9871 MB / 416.9 MB, free: 3.34 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002647/0.6549, allocations: 196 kB / 417.1 MB, free: 3.148 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006038/0.661, allocations: 2.334 MB / 419.4 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003837/0.6649, allocations: 396 kB / 419.8 MB, free: 432 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01881/0.6838, allocations: 7.858 MB / 427.6 MB, free: 8.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.6839, allocations: 0 / 427.6 MB, free: 8.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.467e-06/0.6839, allocations: 0 / 427.6 MB, free: 8.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003684/0.6843, allocations: 0 / 427.6 MB, free: 8.547 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.03785/0.7222, allocations: 6.312 MB / 433.9 MB, free: 2.156 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.7223, allocations: 12.03 kB / 434 MB, free: 2.145 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08536/0.8076, allocations: 8.911 MB / 442.9 MB, free: 9.211 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.021/0.8287, allocations: 4.988 MB / 447.9 MB, free: 4.164 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006474/0.8294, allocations: 320.2 kB / 448.2 MB, free: 3.848 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003274/0.8327, allocations: 443.5 kB / 448.6 MB, free: 3.414 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05897/0.8917, allocations: 15.99 MB / 464.6 MB, free: 2.691 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003349/0.8921, allocations: 59.48 kB / 464.7 MB, free: 2.633 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002227/0.8944, allocations: 207.7 kB / 464.9 MB, free: 2.43 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01188/0.9063, allocations: 3.236 MB / 468.1 MB, free: 15.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06462/0.971, allocations: 14.98 MB / 483.1 MB, free: 204 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.425/1.396, allocations: 56.01 MB / 0.5264 GB, free: 84.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03015/1.426, allocations: 8.182 MB / 0.5344 GB, free: 78.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003738/1.43, allocations: 2.21 MB / 0.5366 GB, free: 76.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.74e-05/1.43, allocations: 73.03 kB / 0.5367 GB, free: 76.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=367): time 1.642e-05/1.43, allocations: 0 / 0.5367 GB, free: 76.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=419): time 0.2053/1.636, allocations: 40.78 MB / 0.5765 GB, free: 35.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.569e-05/1.636, allocations: 120 kB / 0.5766 GB, free: 35.15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008284/1.644, allocations: 4.319 MB / 0.5808 GB, free: 30.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001225/1.645, allocations: 86.64 kB / 0.5809 GB, free: 30.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002909/1.648, allocations: 3.76 MB / 0.5846 GB, free: 26.97 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002565/1.651, allocations: 1.49 MB / 0.586 GB, free: 25.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008702/1.652, allocations: 156 kB / 0.5862 GB, free: 25.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000481/1.652, allocations: 0.6374 MB / 0.5868 GB, free: 24.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009293/1.662, allocations: 3.927 MB / 0.5906 GB, free: 20.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01207/1.674, allocations: 7.672 MB / 0.5981 GB, free: 11.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01248/1.686, allocations: 5.458 MB / 0.6035 GB, free: 5.809 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001079/1.686, allocations: 40 kB / 0.6035 GB, free: 5.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.04521/1.732, allocations: 14 MB / 0.6172 GB, free: 7.723 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/1.732, allocations: 60 kB / 0.6172 GB, free: 7.664 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002231/1.732, allocations: 132 kB / 0.6174 GB, free: 7.535 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01443/1.746, allocations: 2.708 MB / 0.62 GB, free: 4.816 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0129/1.759, allocations: 1.777 MB / 0.6217 GB, free: 3.039 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0369/1.796, allocations: 14.53 MB / 0.6359 GB, free: 4.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00926/1.806, allocations: 0.5003 MB / 0.6364 GB, free: 3.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002131/1.808, allocations: 428.5 kB / 0.6368 GB, free: 3.312 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 589 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (917): * Single equations (assignments): 909 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008969/1.817, allocations: 2.863 MB / 0.6396 GB, free: 448 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3025/2.119, allocations: 470.2 kB / 0.6401 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04251/2.162, allocations: 10.54 MB / 0.6504 GB, free: 141.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001859/2.162, allocations: 65.75 kB / 0.6504 GB, free: 141.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.148e-05/2.162, allocations: 8.875 kB / 0.6504 GB, free: 141.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001143/2.162, allocations: 20.2 kB / 0.6505 GB, free: 141.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06995/2.232, allocations: 21.42 MB / 0.6714 GB, free: 134.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.495e-05/2.233, allocations: 10.91 kB / 0.6714 GB, free: 134.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006498/2.239, allocations: 0.6787 MB / 0.6721 GB, free: 134.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01307/2.252, allocations: 2.497 MB / 0.6745 GB, free: 133.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00125/2.253, allocations: 73.08 kB / 0.6746 GB, free: 133.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02931/2.283, allocations: 13.32 MB / 0.6876 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.518e-05/2.283, allocations: 19.88 kB / 0.6876 GB, free: 120.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04147/2.324, allocations: 16.45 MB / 0.7037 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004877/2.329, allocations: 1.189 MB / 0.7048 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002548/2.332, allocations: 73.33 kB / 0.7049 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006143/2.338, allocations: 308.9 kB / 0.7052 GB, free: 102.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001696/2.34, allocations: 269.4 kB / 0.7054 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007697/2.341, allocations: 116.4 kB / 0.7055 GB, free: 102.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007559/2.348, allocations: 3.078 MB / 0.7085 GB, free: 99.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.348, allocations: 0 / 0.7085 GB, free: 99.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01046/2.359, allocations: 1.671 MB / 0.7102 GB, free: 97.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001833/2.361, allocations: 251.8 kB / 0.7104 GB, free: 97.42 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02363/2.384, allocations: 9.79 MB / 0.72 GB, free: 87.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-05/2.384, allocations: 4 kB / 0.72 GB, free: 87.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.011/2.395, allocations: 4.297 MB / 0.7242 GB, free: 83.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006091/2.402, allocations: 0.6376 MB / 0.7248 GB, free: 82.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04511/2.447, allocations: 19.11 MB / 0.7435 GB, free: 63.56 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01076/2.458, allocations: 4.744 MB / 0.7481 GB, free: 58.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00373/2.461, allocations: 411.3 kB / 0.7485 GB, free: 58.37 MB / 442.7 MB Notification: Performance of SimCode: time 2.064e-06/2.461, allocations: 0 / 0.7485 GB, free: 58.37 MB / 442.7 MB Notification: Performance of Templates: time 0.5895/3.051, allocations: 137.3 MB / 0.8826 GB, free: 68.41 MB / 442.7 MB