Hi Soumya,
The compilation itself is succeeding, and the error is occuring when the resulting shot file is sent to BLACS to be run on the hardware. This error indicates that there is a mismatch between your lab connection table (the file BLACS uses to know what hardware is available), and the connection table part of the labscript file you are compiling (in this case, the labscript file only contains a connection table and nothing more).
To ensure they match, follow the instructions for compiling a connection table similar to what you said you've done already, but include in the connection table the same lines as in the labscript file you are trying to compile. In this case since the labscript file you are trying to compile is actually just a connection table and nothing more, you should use it verbatim as your lab connection table.
When later you want to compile labscript shots that use different hardware, you will need to keep your lab connection table up to date with whatever hardware you want to use, such that it always contains all hardware that is used by any labscript shots you want to run.
Regards,
Chris