You need to specify all variables in the second argument. Also check documentation for how to properly express the domain constraint to NMaximize (as opposed to Maximize).
NMaximize
Maximize