Thanks Redbelly, you are right but after your comments and some more reading I found out a best answer:
energy on MD simulations, depends very much on which force field you use, and the particular form they use for the dihedral term; many use periodic terms, including several terms for one...