From GridLAB-D Wiki
The modelname global variable is a string that represents the name of the current model.
GLM
#print ${modelname}
The modelname global variable is a string that represents the name of the current model.
#print ${modelname}