Model reduction of constrained mechanical systems in M-M.E.S.S.