Your problem with the Potential model is that you are using l2 and l1 coming from the Potential but those are just the logps, not the values like you had before. You want to use l2 = S2 @ l3 in what you called l1 Potential
Your problem with the Potential model is that you are using l2 and l1 coming from the Potential but those are just the logps, not the values like you had before. You want to use l2 = S2 @ l3 in what you called l1 Potential