Press machine with non-cylindrical gears