Nonconvex JuMP model to DictModel cannot see constraints

Found the bug. For some reason, Nonconvex only supports named JuMP constraints! This is not intentional and I will try to fix it. But a workaround is:

@constraint jump_model c1 sum(x) <= 1