Error generated when the SystemResource_Done block is connected invalid output of SystemResource_Extend block

Error generated when the SystemResource_Done block is connected invalid output of SystemResource_Extend block

Systemresource_Done needs to be connected to the  Task_output port, if SystemResource_Done block is connected to Task_Plot, then the following error will be generated.

"VisualSim.kernel.util.IllegalActionException: Input Token is not RecordToken or StringToken.
Token In: 0.1
  in .SystemResourceExtend_Invalid_Done_Block_Connection.SystemResource_Done
at VisualSim.actor.lib.Task_Complete.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 connect the Done block to Task_Output port.