NLP: Attribute ScalarNonlinearFunction is not supported by the model

It seems that SCIP cannot handle either nonlinear objectives or nonlinear constraints. Maybe try replacing it with a different solver (some suggestions given here)?