Merge pull request #97 from lbl-srg/openmodelica

Small bugfixes that were detected when running models in OpenModelica.
Fix constraint on x[size(x,1)] => x[:]