ModelingToolKit: Cannot `convert` an object of type SymbolicUtils.BasicSymbolic{Float64}

As written the model starts as index 2 IIRC, so you do need to differentiate it in order to get an index 1 in order to run the standard processes. That’s a limitation of Pantelides.

But the error (which we should improve BTW, I wouldn’t say it’s a good error message) is then saying the derivative is not defined on the registered function.

1 Like