Beam Hinges and Work Laws

Hello,
I need to model a beam that will be released (on both ends) from Mz and My simultaneously and also to avoid big rotations. I tried to define Work Law (see pictures) and also I’ve checked Mz and My in the “Beam Hinge” tab. Still after running analysis, the beam cumulates Mz and My moments at the ends.

Has anyone dealt with similar problem?