Opti x model

This should fix the segfault you are seeing.  I have not integrated this code into ElVis2 to test, but I was able to reproduce in this repository, so I imagine it should work.