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_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 2.045/2.045, allocations: 209.3 MB / 223.8 MB, free: 452 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.059e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3518, allocations: 48.69 MB / 324.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.08162/0.4335, allocations: 50.51 MB / 375.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03662/0.4702, allocations: 11.27 MB / 386.7 MB, free: 1.574 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0141/0.4844, allocations: 267.4 kB / 386.9 MB, free: 1.312 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01113/0.4955, allocations: 2.695 MB / 389.6 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02886/0.5244, allocations: 7.433 MB / 397 MB, free: 7.152 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005266/0.5297, allocations: 0.8932 MB / 397.9 MB, free: 6.258 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03531/0.5651, allocations: 10.16 MB / 408.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01448/0.5796, allocations: 4.412 MB / 412.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004564/0.5843, allocations: 1.27 MB / 413.8 MB, free: 6.379 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007066/0.5914, allocations: 2.132 MB / 415.9 MB, free: 4.242 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005109/0.5966, allocations: 0.9871 MB / 416.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001823/0.5984, allocations: 196 kB / 417.1 MB, free: 3.062 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003999/0.6025, allocations: 2.334 MB / 419.4 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002078/0.6046, allocations: 396 kB / 419.8 MB, free: 344 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01549/0.6201, allocations: 7.848 MB / 427.7 MB, free: 8.469 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.6202, allocations: 3.938 kB / 427.7 MB, free: 8.465 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.6202, allocations: 0 / 427.7 MB, free: 8.465 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004068/0.6206, allocations: 4 kB / 427.7 MB, free: 8.461 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.02828/0.6489, allocations: 6.316 MB / 434 MB, free: 2.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.649, allocations: 8.031 kB / 434 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07988/0.7289, allocations: 8.907 MB / 442.9 MB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01464/0.7436, allocations: 4.992 MB / 447.9 MB, free: 4.078 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004031/0.744, allocations: 320.2 kB / 448.2 MB, free: 3.762 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002395/0.7464, allocations: 443.5 kB / 448.6 MB, free: 3.328 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04536/0.7918, allocations: 15.99 MB / 464.6 MB, free: 2.605 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002918/0.7922, allocations: 59.48 kB / 464.7 MB, free: 2.547 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001295/0.7935, allocations: 203.7 kB / 464.9 MB, free: 2.348 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009689/0.8032, allocations: 3.248 MB / 468.1 MB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04996/0.8532, allocations: 14.96 MB / 483.1 MB, free: 124 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4104/1.264, allocations: 56.02 MB / 0.5265 GB, free: 84.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02906/1.293, allocations: 8.176 MB / 0.5345 GB, free: 78.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002684/1.295, allocations: 2.217 MB / 0.5366 GB, free: 76.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.085e-05/1.296, allocations: 73.03 kB / 0.5367 GB, free: 76.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=367): time 9.277e-06/1.296, allocations: 7.781 kB / 0.5367 GB, free: 76.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=419): time 0.1795/1.475, allocations: 40.77 MB / 0.5765 GB, free: 35.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/1.475, allocations: 120 kB / 0.5766 GB, free: 35.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009382/1.485, allocations: 4.323 MB / 0.5809 GB, free: 30.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001105/1.486, allocations: 86.41 kB / 0.5809 GB, free: 30.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003138/1.489, allocations: 3.89 MB / 0.5847 GB, free: 26.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002437/1.491, allocations: 1.49 MB / 0.5862 GB, free: 25.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/1.493, allocations: 152 kB / 0.5863 GB, free: 25.08 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005842/1.493, allocations: 0.6326 MB / 0.587 GB, free: 24.44 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00961/1.503, allocations: 3.923 MB / 0.5908 GB, free: 20.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01197/1.515, allocations: 7.68 MB / 0.5983 GB, free: 11.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/1.527, allocations: 5.458 MB / 0.6036 GB, free: 5.551 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-05/1.527, allocations: 44 kB / 0.6037 GB, free: 5.508 MB / 410.7 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.04638/1.573, allocations: 14.16 MB / 0.6175 GB, free: 7.297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/1.574, allocations: 64.56 kB / 0.6175 GB, free: 7.238 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/1.574, allocations: 131.9 kB / 0.6177 GB, free: 7.109 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01455/1.588, allocations: 2.709 MB / 0.6203 GB, free: 4.387 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01275/1.601, allocations: 1.774 MB / 0.6221 GB, free: 2.609 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04256/1.644, allocations: 14.55 MB / 0.6363 GB, free: 3.789 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01285/1.657, allocations: 499.6 kB / 0.6367 GB, free: 3.301 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002284/1.659, allocations: 429.1 kB / 0.6371 GB, free: 2.883 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.01123/1.67, allocations: 2.864 MB / 0.6399 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2927/1.963, allocations: 472.5 kB / 0.6404 GB, free: 143.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0405/2.004, allocations: 10.54 MB / 0.6507 GB, free: 141.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001634/2.004, allocations: 66.59 kB / 0.6507 GB, free: 141.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.766e-05/2.004, allocations: 9.531 kB / 0.6508 GB, free: 141.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001061/2.004, allocations: 17.86 kB / 0.6508 GB, free: 141.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.066/2.07, allocations: 21.42 MB / 0.6717 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.511e-05/2.07, allocations: 16.42 kB / 0.6717 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006551/2.077, allocations: 0.6837 MB / 0.6724 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01296/2.09, allocations: 2.486 MB / 0.6748 GB, free: 133.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00114/2.091, allocations: 82 kB / 0.6749 GB, free: 133.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02754/2.118, allocations: 13.31 MB / 0.6879 GB, free: 120.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/2.119, allocations: 22.38 kB / 0.6879 GB, free: 120.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03996/2.159, allocations: 16.44 MB / 0.704 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00437/2.163, allocations: 1.196 MB / 0.7051 GB, free: 102.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00196/2.165, allocations: 76.94 kB / 0.7052 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005683/2.171, allocations: 309.4 kB / 0.7055 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001335/2.172, allocations: 269.5 kB / 0.7058 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000514/2.173, allocations: 108 kB / 0.7059 GB, free: 102 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006299/2.179, allocations: 3.082 MB / 0.7089 GB, free: 98.94 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.113e-06/2.179, allocations: 0 / 0.7089 GB, free: 98.94 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01004/2.189, allocations: 1.673 MB / 0.7105 GB, free: 97.27 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.001625/2.191, allocations: 252.9 kB / 0.7107 GB, free: 97.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02244/2.213, allocations: 9.784 MB / 0.7203 GB, free: 87.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/2.213, allocations: 4 kB / 0.7203 GB, free: 87.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01043/2.224, allocations: 4.299 MB / 0.7245 GB, free: 82.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005629/2.229, allocations: 0.6441 MB / 0.7251 GB, free: 82.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03985/2.269, allocations: 18.43 MB / 0.7431 GB, free: 63.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009811/2.279, allocations: 4.736 MB / 0.7477 GB, free: 59.04 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01176/2.291, allocations: 2.747 MB / 0.7504 GB, free: 56.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0032/2.294, allocations: 359.3 kB / 0.7508 GB, free: 55.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.323e-06/2.294, allocations: 0 / 0.7508 GB, free: 55.93 MB / 442.7 MB Notification: Performance of Templates: time 0.4696/2.764, allocations: 66.5 MB / 0.8157 GB, free: 125.6 MB / 442.7 MB