Astronauts will have spent 378 days living as though they were on Mars when they leave their artificial home designed to help plan a mission to the Red Planet.