A simulation of the solar system from the Sun up to Mars