'mercury' handles simulations with Mercury package 'amuse_code' handles simulations with AMUSE package
With all of its questionable errors, the Mercury package does not seem well-suited for this problem. The AMUSE package may or may not be optimized for this problem, but it seems more promising.