Here is my attempt at achieving this. This model looks the same as the sketch in the main question, but the spring does not seem to be implemented correctly. I get an error saying:
An error occurred while running the simulation and the simulation was terminated
Caused by:
- ['CouplingAttempt/Solver Configuration']: Initial conditions solve failed to converge.
- Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
- The model may not give enough information to make it possible to solve for values of some of its variables. Specific advice is given below. all components and nodal across variables involvedTie variable 'Rotational_Spring.R.w' (Rotational velocity) to a definite value, for example by connecting an appropriate domain reference block. Dependency found among topology equations. Check for missing reference node.
Note, that I have set initial angle of all revolute joints to 0 degrees. The revolute joints connecting to the solid bricks have motion limits [-90,0] degrees.



