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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadModel(ModelicaTest): time 2.39/2.39, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.257e-05/6.299e-05, allocations: 7.984 kB / 348.4 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1393, allocations: 61.89 MB / 410.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5765, allocations: 106.8 MB / 0.505 GB, free: 13.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.5768, allocations: 76.61 kB / 0.505 GB, free: 13.27 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.866/1.443, allocations: 128.6 MB / 0.6306 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.019e-06/1.443, allocations: 3.031 kB / 0.6306 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003648/1.443, allocations: 115 kB / 0.6307 GB, free: 114.2 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02139/1.465, allocations: 6.156 MB / 0.6367 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/1.465, allocations: 9.438 kB / 0.6367 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04001/1.505, allocations: 6.441 MB / 0.643 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02236/1.527, allocations: 7.949 MB / 0.6508 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004812/1.528, allocations: 431.9 kB / 0.6512 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002866/1.531, allocations: 0.569 MB / 0.6517 GB, free: 110.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03898/1.57, allocations: 15.06 MB / 0.6664 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003409/1.57, allocations: 55.47 kB / 0.6665 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002479/1.572, allocations: 261.2 kB / 0.6667 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003131/1.576, allocations: 1.658 MB / 0.6684 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03693/1.613, allocations: 14.38 MB / 0.6824 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09122/1.704, allocations: 55.45 MB / 0.7366 GB, free: 61.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/1.726, allocations: 7.926 MB / 0.7443 GB, free: 53.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007453/1.734, allocations: 4.691 MB / 0.7489 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002083/1.736, allocations: 2.209 MB / 0.751 GB, free: 46.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.461e-05/1.736, allocations: 65.08 kB / 0.7511 GB, free: 46.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 9.747e-06/1.736, allocations: 0 / 0.7511 GB, free: 46.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.1217/1.858, allocations: 33.18 MB / 0.7835 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/1.858, allocations: 120 kB / 0.7836 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007653/1.865, allocations: 3.753 MB / 0.7873 GB, free: 9.465 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008854/1.866, allocations: 89.61 kB / 0.7874 GB, free: 9.375 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002778/1.869, allocations: 3.831 MB / 0.7911 GB, free: 5.535 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002006/1.871, allocations: 1.482 MB / 0.7926 GB, free: 4.066 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007994/1.872, allocations: 156 kB / 0.7927 GB, free: 3.914 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005203/1.873, allocations: 0.6326 MB / 0.7933 GB, free: 3.277 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007934/1.881, allocations: 3.818 MB / 0.7971 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01338/1.894, allocations: 7.528 MB / 0.8044 GB, free: 6.121 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01217/1.906, allocations: 5.391 MB / 0.8097 GB, free: 0.7148 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/1.906, allocations: 40 kB / 0.8097 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.3584/2.265, allocations: 13.53 MB / 0.8229 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/2.265, allocations: 62.53 kB / 0.823 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002333/2.265, allocations: 130 kB / 0.8231 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01065/2.276, allocations: 2.621 MB / 0.8257 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/2.286, allocations: 1.93 MB / 0.8276 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02444/2.311, allocations: 13.61 MB / 0.8408 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008054/2.319, allocations: 483.5 kB / 0.8413 GB, free: 112 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001766/2.321, allocations: 430.7 kB / 0.8417 GB, free: 112 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (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.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (914): * Single equations (assignments): 906 * 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.002405/2.323, allocations: 0.6492 MB / 0.8423 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/2.324, allocations: 465.2 kB / 0.8428 GB, free: 111.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02614/2.35, allocations: 10.35 MB / 0.8529 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/2.351, allocations: 65.03 kB / 0.853 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-05/2.351, allocations: 9.844 kB / 0.853 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.896e-05/2.351, allocations: 18.47 kB / 0.853 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0504/2.401, allocations: 20.87 MB / 0.8734 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.235e-05/2.401, allocations: 10.94 kB / 0.8734 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004914/2.406, allocations: 0.7849 MB / 0.8741 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009615/2.416, allocations: 2.402 MB / 0.8765 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008825/2.417, allocations: 83.34 kB / 0.8766 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02208/2.439, allocations: 12.37 MB / 0.8887 GB, free: 97.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/2.439, allocations: 15.19 kB / 0.8887 GB, free: 97.57 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03703/2.476, allocations: 16.12 MB / 0.9044 GB, free: 88.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/2.477, allocations: 497.2 kB / 0.9049 GB, free: 88.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002018/2.48, allocations: 76.22 kB / 0.905 GB, free: 88.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004528/2.484, allocations: 298.5 kB / 0.9052 GB, free: 88.12 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/2.485, allocations: 256.5 kB / 0.9055 GB, free: 87.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005702/2.486, allocations: 116.3 kB / 0.9056 GB, free: 87.85 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005701/2.492, allocations: 2.624 MB / 0.9082 GB, free: 85.54 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.045e-06/2.492, allocations: 3.938 kB / 0.9082 GB, free: 85.53 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009093/2.501, allocations: 1.636 MB / 0.9098 GB, free: 83.91 MB / 0.5261 GB 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.001081/2.502, allocations: 244.2 kB / 0.91 GB, free: 83.69 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01737/2.519, allocations: 9.343 MB / 0.9191 GB, free: 75.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/2.519, allocations: 4 kB / 0.9191 GB, free: 75.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007782/2.527, allocations: 4.144 MB / 0.9232 GB, free: 71.57 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004407/2.532, allocations: 0.6416 MB / 0.9238 GB, free: 71.04 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02889/2.561, allocations: 13.15 MB / 0.9366 GB, free: 59.45 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01022/2.571, allocations: 4.673 MB / 0.9412 GB, free: 55.96 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009315/2.58, allocations: 2.732 MB / 0.9439 GB, free: 54.21 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002295/2.583, allocations: 345.7 kB / 0.9442 GB, free: 53.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.765e-06/2.583, allocations: 0 / 0.9442 GB, free: 53.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.1563/2.739, allocations: 64.17 MB / 1.007 GB, free: 7.168 MB / 0.5417 GB