You cannot run graphical programs (IDE, qtenv) in a terminal. (unless you do some magic using SSH port forwarding and using your workstation as an X Server).
The usual workflow is to develop and debug your model on your local machine and once you are satisfied with the model transfer the source code to the remove machine and compile it with Cmdenv only, then run that on the cluster.
Running a simulation in a cluster/swarm is a bit demanding so I highly recommend to take a look at this tutorial: