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.2_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 2.488/2.488, allocations: 234.9 MB / 250.1 MB, free: 9.945 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.444e-05/3.45e-05, allocations: 7.984 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3973, allocations: 54.86 MB / 362.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.1442/0.5416, allocations: 50.55 MB / 413.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03311/0.5747, allocations: 11.29 MB / 424.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01214/0.5869, allocations: 263.4 kB / 424.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01123/0.5982, allocations: 2.703 MB / 427.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02801/0.6263, allocations: 7.437 MB / 435.1 MB, free: 5.441 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004999/0.6313, allocations: 0.8738 MB / 436 MB, free: 4.566 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03007/0.6615, allocations: 10.16 MB / 446.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00965/0.6712, allocations: 4.417 MB / 450.5 MB, free: 5.934 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00335/0.6746, allocations: 1.266 MB / 451.8 MB, free: 4.664 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005676/0.6803, allocations: 2.128 MB / 453.9 MB, free: 2.531 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004423/0.6848, allocations: 0.9949 MB / 454.9 MB, free: 1.535 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002015/0.6869, allocations: 200 kB / 455.1 MB, free: 1.34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005052/0.692, allocations: 2.334 MB / 457.5 MB, free: 15 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002912/0.6949, allocations: 396 kB / 457.8 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01723/0.7122, allocations: 7.842 MB / 465.7 MB, free: 6.754 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.7123, allocations: 0 / 465.7 MB, free: 6.754 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.7123, allocations: 0 / 465.7 MB, free: 6.754 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000382/0.7127, allocations: 0 / 465.7 MB, free: 6.754 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.02786/0.7406, allocations: 6.324 MB / 472 MB, free: 360 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.7406, allocations: 12.02 kB / 472 MB, free: 348 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07992/0.8206, allocations: 8.9 MB / 480.9 MB, free: 7.414 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01515/0.8358, allocations: 4.992 MB / 485.9 MB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004871/0.8363, allocations: 328.1 kB / 486.2 MB, free: 2.039 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002525/0.8389, allocations: 443.4 kB / 486.7 MB, free: 1.609 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04626/0.8851, allocations: 16 MB / 0.4909 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003191/0.8855, allocations: 59.48 kB / 0.4909 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002064/0.8876, allocations: 199.8 kB / 0.4911 GB, free: 0.625 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3207/1.208, allocations: 3.241 MB / 0.4943 GB, free: 119.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04597/1.254, allocations: 14.97 MB / 0.5089 GB, free: 112.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1081/1.362, allocations: 56.03 MB / 0.5636 GB, free: 56.37 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02887/1.391, allocations: 8.183 MB / 0.5716 GB, free: 47.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002636/1.394, allocations: 2.21 MB / 0.5738 GB, free: 45.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.269e-05/1.394, allocations: 61.08 kB / 0.5738 GB, free: 45.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 8.826e-06/1.394, allocations: 4 kB / 0.5739 GB, free: 45.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1821/1.576, allocations: 40.78 MB / 0.6137 GB, free: 4.367 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.686e-05/1.576, allocations: 112 kB / 0.6138 GB, free: 4.238 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008894/1.585, allocations: 4.331 MB / 0.618 GB, free: 15.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001198/1.587, allocations: 85.7 kB / 0.6181 GB, free: 15.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004191/1.591, allocations: 3.755 MB / 0.6218 GB, free: 12.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003065/1.594, allocations: 1.495 MB / 0.6232 GB, free: 10.56 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/1.595, allocations: 148 kB / 0.6234 GB, free: 10.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007853/1.596, allocations: 0.6471 MB / 0.624 GB, free: 9.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0114/1.607, allocations: 3.919 MB / 0.6278 GB, free: 5.848 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01604/1.623, allocations: 7.684 MB / 0.6353 GB, free: 12.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01552/1.639, allocations: 5.45 MB / 0.6406 GB, free: 6.879 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001354/1.639, allocations: 36 kB / 0.6407 GB, free: 6.844 MB / 458.7 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.05013/1.689, allocations: 14 MB / 0.6544 GB, free: 8.801 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/1.69, allocations: 65.36 kB / 0.6544 GB, free: 8.738 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002504/1.69, allocations: 128 kB / 0.6545 GB, free: 8.613 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01487/1.705, allocations: 2.705 MB / 0.6572 GB, free: 5.898 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01305/1.718, allocations: 1.778 MB / 0.6589 GB, free: 4.117 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03776/1.756, allocations: 14.56 MB / 0.6731 GB, free: 5.297 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009445/1.765, allocations: 0.4918 MB / 0.6736 GB, free: 4.805 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002187/1.767, allocations: 423.9 kB / 0.674 GB, free: 4.391 MB / 490.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.009654/1.777, allocations: 2.872 MB / 0.6768 GB, free: 1.504 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001975/1.779, allocations: 466.4 kB / 0.6773 GB, free: 1.043 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3663/2.145, allocations: 10.54 MB / 0.6876 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000166/2.146, allocations: 64.16 kB / 0.6876 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.99e-05/2.146, allocations: 15.08 kB / 0.6876 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/2.146, allocations: 18.8 kB / 0.6877 GB, free: 163 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08919/2.235, allocations: 21.41 MB / 0.7086 GB, free: 155.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.747e-05/2.235, allocations: 11.59 kB / 0.7086 GB, free: 155.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02047/2.256, allocations: 0.6817 MB / 0.7092 GB, free: 155.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01765/2.273, allocations: 2.494 MB / 0.7117 GB, free: 153 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001355/2.275, allocations: 72 kB / 0.7117 GB, free: 152.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02825/2.303, allocations: 13.32 MB / 0.7248 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.491e-05/2.303, allocations: 23.89 kB / 0.7248 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03967/2.343, allocations: 16.45 MB / 0.7408 GB, free: 122.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004325/2.347, allocations: 1.187 MB / 0.742 GB, free: 121.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00213/2.349, allocations: 73.25 kB / 0.7421 GB, free: 121.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005675/2.355, allocations: 315.2 kB / 0.7424 GB, free: 121.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001446/2.357, allocations: 266.6 kB / 0.7426 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007462/2.357, allocations: 111.8 kB / 0.7427 GB, free: 120.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006477/2.364, allocations: 3.082 MB / 0.7457 GB, free: 117.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.51e-07/2.364, allocations: 2.516 kB / 0.7457 GB, free: 117.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009364/2.373, allocations: 1.667 MB / 0.7474 GB, free: 116.1 MB / 490.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.001605/2.375, allocations: 250.8 kB / 0.7476 GB, free: 115.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02239/2.397, allocations: 9.795 MB / 0.7572 GB, free: 106.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/2.397, allocations: 0 / 0.7572 GB, free: 106.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01061/2.408, allocations: 4.294 MB / 0.7614 GB, free: 101.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005716/2.414, allocations: 0.6392 MB / 0.762 GB, free: 101.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04124/2.455, allocations: 19.09 MB / 0.7806 GB, free: 82.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/2.465, allocations: 4.751 MB / 0.7853 GB, free: 77.26 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003666/2.469, allocations: 411.3 kB / 0.7857 GB, free: 76.86 MB / 490.7 MB Notification: Performance of SimCode: time 1.713e-06/2.469, allocations: 0 / 0.7857 GB, free: 76.86 MB / 490.7 MB Notification: Performance of Templates: time 0.7309/3.2, allocations: 137.4 MB / 0.9198 GB, free: 110.9 MB / 490.7 MB