Model optimisation with a potfile ---------------------------------