Hi,
Could it be the same symptom as NLP: Attribute ScalarNonlinearFunction is not supported by the model, that is that MadNLP doesn’t support the new simplified syntax for nonlinear problem (that your are using) introduced in JuMP 1.15 (Sept 2023).
Have you tried with NLopbjective
instead?