Have an strange error creating optimization subproblems on Julia

Could you please provide a minimum working example that allows us to reproduce your problem?

Perhaps the way you are creating the subproblems is not as independent as you think.