The general layout of an equation model is:
constants
// enter your constants here, for a description see constants
parameters
// enter your parameters here, for a description see parameters
variables
// enter your variables here, for a description see variables
initialequations
// enter your initial equations here, for a description see initialequations
code
// enter your equations here, for a description see code
equations
// enter your equations here, for a description see equations
finalequations
// enter your final equations here, for a description see finalequations
At least one equations or one code section is required. The other sections are optional.