That will be much more easier to understand if local axis of the section are coincident with those of the elements by default. See verif/test/elements/zero_length/test_signo_deformaciones* and verif/test/elements/beam_column/test_signo_deformaciones01