Error generated when invalid SystemResource name is provided in the ResourceStatistics block.

Error generated when invalid SystemResource name is provided in the ResourceStatistics block.

While capturing the statistics for the systemResource block, the name of the SystemResource block must be entered in the Scheduler_Name_Array parameter.

VisualSim.kernel.util.IllegalActionException: 
Problem performing SEND RegEx, Script Line (16): SEND(output,getBlockStatus((Scheduler_Name_Array(Sched_Len_Mem-1)),"stats",1))
Error_Number        :  VM_045
Possible_Solution   :  Exception Reported: VisualSim.kernel.util.IllegalActionException: Error invoking function public static VisualSim.data.Token VisualSim.data.expr.UtilityFunctions.getBlockStatus(java.lang.String,java.lang.String,int) throws VisualSim.kernel.util.IllegalActionException

Because:
RegEx peekObjectMemory could not locate Memory Reference: Proc1_Block_Status
Description         :  Check RegEx statements.
  in .ResourceStatistics_Invaild_SystemResource_Name.ResourceStatistics.Resource_Statistics_Report
at VisualSim.actor.lib.Virtual_Machine.execSEND_PLOT(Unknown Source)
at VisualSim.actor.lib.Virtual_Machine.fire(Unknown Source)
at VisualSim.simulators.de.kernel.DEDirector.fireVisualSim(Unknown Source)
at VisualSim.simulators.de.kernel.DEDirector.fire(Unknown Source)
at VisualSim.actor.CompositeActor.fire(Unknown Source)
at VisualSim.simulators.de.kernel.DEDirector.fireVisualSim(Unknown Source)
at VisualSim.simulators.de.kernel.DEDirector.fire(Unknown Source)
at VisualSim.actor.CompositeActor.fire(Unknown Source)
at VisualSim.actor.Manager.iterate(Unknown Source)
at VisualSim.actor.Manager.execute(Unknown Source)
at VisualSim.actor.Manager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
at VisualSim.kernel.util.VisualSimThread.run(Unknown Source)

Solution: Make sure to update the name of the SystemResource in the ResourceStatistics block.