Error shown when invalid Queue name is entered in ResourceStatistics block

Error shown when invalid Queue name is entered in ResourceStatistics block

ResourceStatistics block requires an array of name of the Queues or Server blocks in the Smart_Res_Name_Array parameter. If this name isn't matched with the actual name of the block, following error will be generated.

VisualSim.kernel.util.IllegalActionException: 
Problem performing SEND RegEx, Script Line (12): SEND(output,getBlockStatus((Smart_Res_Name_Array(Res_Len_Mem-1)),"stats",(Smart_Res_Length(Res_Len_Mem-1)+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: Queue1_Block_Status
Description         :  Check RegEx statements.
  in .ResourceStatistics_Invaild_Queue_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: Check the values given to the parameter, Make sure the name of the blocks match with the name in the array.