Updated interface to ModelicaRes