Reformulated glass calculation for OpenModelica.