Towards co-simulation of embedded platforms and physics-based models