endCosim static method
Passes an "END" message to Cosim as if it had been sent by the other simulator. This is helpful in cases where the simulator dies unexpectedly without gracefully notifying Cosim.
Implementation
static void endCosim() {
_receivedStreamController.add(_CosimMessage.end());
}