{"id":2002,"date":"2019-01-21T11:53:24","date_gmt":"2019-01-21T11:53:24","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=2002"},"modified":"2025-07-09T08:40:57","modified_gmt":"2025-07-09T07:40:57","slug":"openmolcas","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/openmolcas\/","title":{"rendered":"OpenMolcas"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"https:\/\/gitlab.com\/Molcas\/OpenMolcas\">OpenMolcas<\/a> is an open source version of MOLCAS.<\/p>\n<p>Version v18.09,v19.11,v21.02, v22.06, and v25.02 are installed on the CSF.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>OpenMolcas is open source software released under the Lesser General Public License (LGPL).\u00a0 It is free to use by all members of the University.<\/p>\n<h2>Set up procedure<\/h2>\n<p>To access the software you must first load one of the modulefiles<\/p>\n<pre>module load apps\/gcc\/openmolcas\/18.09\r\nmodule load apps\/gcc\/openmolcas\/19.11\r\nmodule load apps\/gcc\/openmolcas\/21.02\r\nmodule load apps\/gcc\/openmolcas\/22.06\r\nmodule load apps\/gcc\/openmolcas\/25.02\r\n<\/pre>\n<p>Of these, only v25.02 works correctly.  Attempts to load other modulefiles will result in an error.<\/p>\n<p>We now recommend that for batch jobs you load the modulefile in the jobscript rather than loading it on the command line prior to submission. See below for examples.<\/p>\n<h2>Running the application<\/h2>\n<p>Please do not run OpenMolcas on the login node. Jobs should be submitted to the compute nodes via batch. NOTE we now recommend loading modules within your batch scripts.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Create a batch submission script, for example:<\/p>\n<pre>#!\/bin\/bash --login\r\n#SBATCH -p serial          # (or --partiion=) Run on nodes dedicated to 1-core jobs\r\n#SBATCH -t 2-0             # Wallclock time limit (2-0 is 2 days, max permitted is 7-0)\r\n\r\nmodule purge\r\nmodule load apps\/gcc\/openmolcas\/25.02\r\npymolcas mymol.input\r\n  # \r\n  # Use: pymolcas -clean mymol.input\r\n  # to have the temporary <em>scratch<\/em> directory \r\n  # deleted at the end of the job (see below)\r\n<\/pre>\n<p>Submit the jobscript using:<br \/>\n<code>sbatch <em>scriptname<\/em><\/code><br \/>\nwhere <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h3>Parallel batch job submission<\/h3>\n<p>Parallel jobs on a single node using OpenMP are currently possible. Multi-node calculations using MPI are not currently supported.<\/p>\n<p>Create a batch submission script, for example:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore       # (or --partiion=) Run on the 168-core AMD Genoa nodes\r\n#SBATCH -c 8               # (or --cpus-per-task=) Number of OpenMP cores\r\n#SBATCH -t 2-0             # Wallclock time limit (2-0 is 2 days, max permitted is 7-0)\r\n\r\nmodule purge\r\nmodule load apps\/gcc\/openmolcas\/25.02\r\nexport OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK\r\npymolcas mymol.input \r\n  # \r\n  # Use: pymolcas -clean mymol.input\r\n  # to have the temporary <em>scratch<\/em> directory \r\n  # deleted at the end of the job (see below)\r\n<\/pre>\n<p>Submit the jobscript using:<br \/>\n<code>sbatch <em>scriptname<\/em><\/code><br \/>\nwhere <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h3>OpenMolcas Scratch (temp) files<\/h3>\n<p>It is possible to modify how OpenMolcas uses your scratch directory for temporary files. Please read the following section so that you are aware of what OpenMolcas is doing with your scratch directory (you may create a lot of temporary junk files you do not need to keep).<\/p>\n<p>The modulefiles above set the following environment variable:<\/p>\n<pre>MOLCAS_WORKDIR=\/scratch\/<em>username<\/em>\r\n<\/pre>\n<p>where <code><em>username<\/em><\/code> is your CSF username. This instructs OpenMolcas to create a directory in your <em>scratch<\/em> area named after your input file. For example if your input file is called <code>test000.input<\/code> then OpenMolcas will create a directory named<\/p>\n<pre>\/scratch\/<em>username<\/em>\/test000\r\n<\/pre>\n<p>in which to store temporary files used during the computation. This directory will <strong>not<\/strong> be deleted at the end of the job. Hence you may end up with a lot of these temporary directories if you run many jobs!<\/p>\n<p>To instruct OpenMolcas to delete this directory at the end of the job add the flag <code>-clean<\/code> to the <code>pymolcas<\/code> command in your jobscript. For example:<\/p>\n<pre># Automatically delete the temporary scratch directory at the end of the job (RECOMMENDED)\r\npymolcas -clean test000.input\r\n<\/pre>\n<p>If you wish to keep temporary directories and use a different temporary directory name each time you run (and rerun) the same input file (e.g., if you run the <code>test000.input<\/code> input with a different number of CPU cores to do some timing tests) you should instruct OpenMolcas to add a random number to the directory name by adding the following to your jobscript:<\/p>\n<pre># OpenMolcas will add a random number to the temporary directory name\r\nexport MOLCAS_PROJECT=NAMEPID\r\n<\/pre>\n<p>Removing the <code>-clean<\/code> flag from the <code>pymolcas<\/code> command in your jobscript will prevent OpenMolcas from deleting it.<\/p>\n<h3>Using a Job Array<\/h3>\n<p>If running OpenMolcas in a <a href=\"\/csf3\/batch\/job-arrays\/\">job array<\/a> you may need to create a directory per task otherwise the temporary directories and files created by OpenMolcas will overwrite each other when a job array task runs. Remember that OpenMolcas will use the name of your input file when creating its temporary directory. If each task in the job array uses the same OpenMolcas input filename then this will cause a problem when several job array tasks run at the same time. To fix this, please add the following to your jobscript before the lines that runs OpenMolcas:<\/p>\n<pre>\r\nexport MOLCAS_WORKDIR=\/scratch\/$USER\/molcas_${SLURM_ARRAY_JOB_ID}_${SLURM_ARRAY_TASK_ID}\r\nmkdir -p $MOLCAS_WORKDIR\r\n<\/pre>\n<p>Each task in the job array will have its own directory. Within there will be a directory named after the input file (see above).<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"https:\/\/gitlab.com\/Molcas\/OpenMolcas\/wikis\/home\">OpenMolcas website<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview OpenMolcas is an open source version of MOLCAS. Version v18.09,v19.11,v21.02, v22.06, and v25.02 are installed on the CSF. Restrictions on use OpenMolcas is open source software released under the Lesser General Public License (LGPL).\u00a0 It is free to use by all members of the University. Set up procedure To access the software you must first load one of the modulefiles module load apps\/gcc\/openmolcas\/18.09 module load apps\/gcc\/openmolcas\/19.11 module load apps\/gcc\/openmolcas\/21.02 module load apps\/gcc\/openmolcas\/22.06 module load.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/openmolcas\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2002","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=2002"}],"version-history":[{"count":14,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2002\/revisions"}],"predecessor-version":[{"id":10656,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2002\/revisions\/10656"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=2002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}