Secular evolution of the solar system over 10 million years