This is a variation of SHEV_OO, which does not make usage of maps from file. It is less realistic, but it esasier to simulate, since needs much less parameters.
The first proposed test is to compare the result of these two models, starting with gsPower.
The second proposed test is to repeat the simuation which changes in genset power "maxGenPow", while checking in the same plot genPow and drivePow. In particular if this power is progressively reduced, the ON times will grow; with values below around 6 kW, the genset will stay ON all the time, and SOC cannot be sustained: the genset behaviour becomes nearer and nearer to that of a BEV.