Fixes to simulate and plot (OpenModelica/Linux)
- Uses buildModel API instead of simulate to build a model
- Reads the generated init.xml instead of simulating the model in order to determine which variables are states
- Fixes some issues regarding unicode vs. str