The sharedMemoryWrite block writes to the memory
partition with memoryID = "sharedMemory". The
sharedMemoryRead block reads from that partition.
Note: There is no causality between the
sharedMemoryWrite block and the
sharedMemoryRead block. Therefore the execution order
of the blocks is not determined. This indeterminism may also show
up in the plots.