I have been developing a simulation in Scilab/Xcos 5.5.2. The simulation basically consists of two main superblocks: