"ValueError: Mass matrix contains zeros on the diagonal" error, how to debug?

You can find some pointer here: Frequently Asked Questions