Reset the model before conversion and solve.
Output fixed var as "var xi = <value>;" rather than with lb and ub. Throw exception instead of crashing when trying to modify an immutable problem. Add WriteNL method.