more explicit warning when dividing by zero in conversion to static model and when reading model #730