KjException when serializing

I just realized it is probably because it’s an OPF model?

@Sergey exactly what object is sp in your code? How do you create it?