Handle infinite values in .sim file