It seems that in your GAMS code you did not define an actual model. This is required since model2tex is meant to create documentation for a specific model in your GAMS code.
Clemens