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_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.657e-05/4.658e-05, allocations: 4 kB / 308 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4267/0.4268, allocations: 54.85 MB / 362.9 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.0811/0.5079, allocations: 50.55 MB / 413.4 MB, free: 11.08 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03507/0.543, allocations: 11.3 MB / 424.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01404/0.5571, allocations: 263.4 kB / 425 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01132/0.5685, allocations: 2.699 MB / 427.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03058/0.5992, allocations: 7.425 MB / 435.1 MB, free: 5.336 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005338/0.6046, allocations: 0.8815 MB / 436 MB, free: 4.453 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03249/0.6371, allocations: 10.15 MB / 446.1 MB, free: 10.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009902/0.6471, allocations: 4.417 MB / 450.6 MB, free: 5.828 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003411/0.6505, allocations: 1.27 MB / 451.8 MB, free: 4.555 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004937/0.6555, allocations: 2.124 MB / 453.9 MB, free: 2.426 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003843/0.6594, allocations: 0.9949 MB / 454.9 MB, free: 1.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001659/0.6611, allocations: 204 kB / 455.1 MB, free: 1.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004379/0.6655, allocations: 2.33 MB / 457.5 MB, free: 14.89 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002184/0.6678, allocations: 396 kB / 457.9 MB, free: 14.51 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.6817, allocations: 7.844 MB / 465.7 MB, free: 6.648 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6818, allocations: 0 / 465.7 MB, free: 6.648 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.6818, allocations: 0 / 465.7 MB, free: 6.648 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003698/0.6822, allocations: 0 / 465.7 MB, free: 6.648 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.02443/0.7066, allocations: 6.324 MB / 472 MB, free: 252 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.7067, allocations: 12.02 kB / 472 MB, free: 240 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08228/0.789, allocations: 8.9 MB / 480.9 MB, free: 7.309 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01708/0.8061, allocations: 4.985 MB / 485.9 MB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008952/0.8071, allocations: 320.2 kB / 486.2 MB, free: 1.949 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003323/0.8104, allocations: 451.3 kB / 486.7 MB, free: 1.512 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05029/0.8608, allocations: 16.01 MB / 0.4909 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003376/0.8612, allocations: 59.48 kB / 0.491 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001801/0.863, allocations: 203.8 kB / 0.4912 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3332/1.196, allocations: 3.238 MB / 0.4943 GB, free: 118.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04682/1.243, allocations: 14.97 MB / 0.5089 GB, free: 111.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1132/1.356, allocations: 56.04 MB / 0.5637 GB, free: 54.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02881/1.385, allocations: 8.18 MB / 0.5717 GB, free: 46.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002598/1.388, allocations: 2.211 MB / 0.5738 GB, free: 43.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.896e-05/1.388, allocations: 69.08 kB / 0.5739 GB, free: 43.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 8.415e-06/1.388, allocations: 0 / 0.5739 GB, free: 43.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.2228/1.611, allocations: 40.79 MB / 0.6137 GB, free: 2.625 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/1.611, allocations: 120 kB / 0.6138 GB, free: 2.488 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009758/1.621, allocations: 4.321 MB / 0.618 GB, free: 14.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001237/1.622, allocations: 89.7 kB / 0.6181 GB, free: 14.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004416/1.626, allocations: 3.885 MB / 0.6219 GB, free: 10.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002992/1.629, allocations: 1.491 MB / 0.6234 GB, free: 8.691 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001057/1.631, allocations: 155.6 kB / 0.6235 GB, free: 8.543 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006708/1.631, allocations: 0.6404 MB / 0.6241 GB, free: 7.898 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0109/1.642, allocations: 3.919 MB / 0.628 GB, free: 3.973 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01426/1.656, allocations: 7.682 MB / 0.6355 GB, free: 10.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01445/1.671, allocations: 5.45 MB / 0.6408 GB, free: 5.012 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001396/1.671, allocations: 40 kB / 0.6408 GB, free: 4.973 MB / 458.7 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.04927/1.72, allocations: 14.15 MB / 0.6547 GB, free: 6.77 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/1.721, allocations: 63.95 kB / 0.6547 GB, free: 6.707 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002267/1.721, allocations: 128.8 kB / 0.6548 GB, free: 6.582 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01496/1.736, allocations: 2.705 MB / 0.6575 GB, free: 3.867 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01314/1.749, allocations: 1.778 MB / 0.6592 GB, free: 2.086 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03832/1.787, allocations: 14.55 MB / 0.6734 GB, free: 3.277 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009525/1.797, allocations: 0.4956 MB / 0.6739 GB, free: 2.781 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00204/1.799, allocations: 431.9 kB / 0.6743 GB, free: 2.359 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.342/2.141, allocations: 2.861 MB / 0.6771 GB, free: 161.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001756/2.143, allocations: 462.9 kB / 0.6776 GB, free: 161.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0363/2.179, allocations: 10.56 MB / 0.6879 GB, free: 159.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001495/2.179, allocations: 58.73 kB / 0.6879 GB, free: 159.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.252e-05/2.18, allocations: 11.84 kB / 0.6879 GB, free: 159.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001052/2.18, allocations: 17.06 kB / 0.688 GB, free: 159.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06444/2.244, allocations: 21.42 MB / 0.7089 GB, free: 152.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.478e-05/2.244, allocations: 8 kB / 0.7089 GB, free: 152.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006374/2.251, allocations: 0.6806 MB / 0.7095 GB, free: 151.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01305/2.264, allocations: 2.493 MB / 0.712 GB, free: 149.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001168/2.265, allocations: 84.81 kB / 0.7121 GB, free: 149 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02886/2.294, allocations: 13.32 MB / 0.7251 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/2.294, allocations: 15.94 kB / 0.7251 GB, free: 135.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0416/2.335, allocations: 16.44 MB / 0.7411 GB, free: 118.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004306/2.34, allocations: 1.19 MB / 0.7423 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0018/2.342, allocations: 80.69 kB / 0.7424 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005385/2.347, allocations: 308.8 kB / 0.7427 GB, free: 117.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001208/2.348, allocations: 268.9 kB / 0.7429 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004962/2.349, allocations: 113.2 kB / 0.743 GB, free: 116.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006192/2.355, allocations: 3.076 MB / 0.746 GB, free: 113.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.52e-07/2.355, allocations: 0 / 0.746 GB, free: 113.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01211/2.367, allocations: 1.675 MB / 0.7477 GB, free: 112.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.001882/2.369, allocations: 242.1 kB / 0.7479 GB, free: 111.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02317/2.392, allocations: 9.796 MB / 0.7575 GB, free: 102.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.881e-05/2.392, allocations: 3.938 kB / 0.7575 GB, free: 102.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01083/2.403, allocations: 4.289 MB / 0.7617 GB, free: 97.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005734/2.409, allocations: 0.6336 MB / 0.7623 GB, free: 97.13 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04155/2.451, allocations: 18.43 MB / 0.7803 GB, free: 78.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01269/2.463, allocations: 4.748 MB / 0.7849 GB, free: 73.81 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.03138/2.495, allocations: 2.74 MB / 0.7876 GB, free: 71.06 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004013/2.499, allocations: 359.3 kB / 0.7879 GB, free: 70.71 MB / 490.7 MB Notification: Performance of SimCode: time 1.282e-06/2.499, allocations: 4 kB / 0.7879 GB, free: 70.7 MB / 490.7 MB Notification: Performance of Templates: time 0.2472/2.746, allocations: 66.51 MB / 0.8529 GB, free: 4.281 MB / 490.7 MB