246. THE @SOLVE FUNCTION IS ONLY VALID IN CALC SECTIONS.

A number of command functions are allowed only in calc sections, one of which is the @SOLVE function for solving a model.  You will need to either delete the function reference or move it to a calc section.