{"id":166312,"date":"2023-03-17T13:11:34","date_gmt":"2023-03-17T13:11:34","guid":{"rendered":"\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/"},"modified":"2023-07-31T12:34:56","modified_gmt":"2023-07-31T12:34:56","slug":"when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/","title":{"rendered":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished.  \u2022Below warning in RSM job report log:  Traceback (most recent call last):   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 1881, in <module>     exitCode = main(sys.argv[1:])   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 345, in main     deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory)   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 727, in deleteLocalScratchDirectoryOnThisNode     shutil.rmtree(_localScratchDirectory)   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 266, in rmtree     onerror(os.remove, fullname, sys.exc_info())   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 264, in rmtree     os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: &#8216;C:\/local\/kkyx4xml.xn5solve.out&#8217;"},"content":{"rendered":"<p>Please refer to the attached PDF resolution document.  <\/p>\n<p>Attachments:<br \/>\n1. <a href=https:\/\/ansys13.ansys.com\/KnowledgeArticles\/Phase-1\/2061195\/2061195-revised.pdf>2061195-revised.pdf<\/a><\/p>\n","protected":false},"template":"","class_list":["post-166312","topic","type-topic","status-publish","hentry","topic-tag-2019-r3","topic-tag-installation-licensing-systems","topic-tag-mechanical-sys","topic-tag-remote-solve","topic-tag-rsm","topic-tag-solve-out"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Knowledge | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished. \u2022Below warning in RSM job report log: Traceback (most recent call last): File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 1881, in exitCode = main(sys.argv[1:]) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 345, in main deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode shutil.rmtree(_localScratchDirectory) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 266, in rmtree onerror(os.remove, fullname, sys.exc_info()) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 264, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \u2018C:\/local\/kkyx4xml.xn5solve.out\u2019 | Ansys Knowledge\" \/>\n\t\t<meta property=\"og:description\" content=\"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-03-17T13:11:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-07-31T12:34:56+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished. \u2022Below warning in RSM job report log: Traceback (most recent call last): File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 1881, in exitCode = main(sys.argv[1:]) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 345, in main deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode shutil.rmtree(_localScratchDirectory) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 266, in rmtree onerror(os.remove, fullname, sys.exc_info()) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 264, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \u2018C:\/local\/kkyx4xml.xn5solve.out\u2019 | Ansys Knowledge\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/rsm\\\/#listItem\",\"name\":\"rsm\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/rsm\\\/#listItem\",\"position\":3,\"name\":\"rsm\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/rsm\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\\\/#listItem\",\"name\":\"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \\u2022Job State in HPC Job Manager shows \\u201cFailed\\u201d, rather than \\u201cFinished\\u201d \\u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished.  \\u2022Below warning in RSM job report log:  Traceback (most recent call last):   File &#8220;head-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py&#8221;, line 1881, in      exitCode = main(sys.argv[1:])   File &#8220;head-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py&#8221;, line 345, in main     deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory)   File &#8220;head-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py&#8221;, line 727, in deleteLocalScratchDirectoryOnThisNode     shutil.rmtree(_localScratchDirectory)   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 266, in rmtree     onerror(os.remove, fullname, sys.exc_info())   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 264, in rmtree     os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: &#8216;C:\\\/local\\\/kkyx4xml.xn5solve.out&#8217;\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\\\/#listItem\",\"position\":4,\"name\":\"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \\u2022Job State in HPC Job Manager shows \\u201cFailed\\u201d, rather than \\u201cFinished\\u201d \\u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished.  \\u2022Below warning in RSM job report log:  Traceback (most recent call last):   File &#8220;head-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py&#8221;, line 1881, in      exitCode = main(sys.argv[1:])   File &#8220;head-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py&#8221;, line 345, in main     deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory)   File &#8220;head-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py&#8221;, line 727, in deleteLocalScratchDirectoryOnThisNode     shutil.rmtree(_localScratchDirectory)   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 266, in rmtree     onerror(os.remove, fullname, sys.exc_info())   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 264, in rmtree     os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: &#8216;C:\\\/local\\\/kkyx4xml.xn5solve.out&#8217;\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/rsm\\\/#listItem\",\"name\":\"rsm\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#organization\",\"name\":\"Ansys Knowledge\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\\\/\",\"name\":\"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \\u2022Job State in HPC Job Manager shows \\u201cFailed\\u201d, rather than \\u201cFinished\\u201d \\u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished. \\u2022Below warning in RSM job report log: Traceback (most recent call last): File \\u201chead-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py\\u201d, line 1881, in exitCode = main(sys.argv[1:]) File \\u201chead-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py\\u201d, line 345, in main deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory) File \\u201chead-nodeANSYS Incv195\\\/RSM\\\/Config\\\/scripts\\\/ClusterJobs.py\\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode shutil.rmtree(_localScratchDirectory) File \\u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\\u201d, line 266, in rmtree onerror(os.remove, fullname, sys.exc_info()) File \\u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\\u201d, line 264, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \\u2018C:\\\/local\\\/kkyx4xml.xn5solve.out\\u2019 | Ansys Knowledge\",\"description\":\"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\\\/#breadcrumblist\"},\"datePublished\":\"2023-03-17T13:11:34+00:00\",\"dateModified\":\"2023-07-31T12:34:56+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/\",\"name\":\"Ansys Knowledge\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished. \u2022Below warning in RSM job report log: Traceback (most recent call last): File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 1881, in exitCode = main(sys.argv[1:]) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 345, in main deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode shutil.rmtree(_localScratchDirectory) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 266, in rmtree onerror(os.remove, fullname, sys.exc_info()) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 264, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \u2018C:\/local\/kkyx4xml.xn5solve.out\u2019 | Ansys Knowledge","description":"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf","canonical_url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/knowledge","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/rsm\/#listItem","name":"rsm"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/rsm\/#listItem","position":3,"name":"rsm","item":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/rsm\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/#listItem","name":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished.  \u2022Below warning in RSM job report log:  Traceback (most recent call last):   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 1881, in      exitCode = main(sys.argv[1:])   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 345, in main     deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory)   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 727, in deleteLocalScratchDirectoryOnThisNode     shutil.rmtree(_localScratchDirectory)   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 266, in rmtree     onerror(os.remove, fullname, sys.exc_info())   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 264, in rmtree     os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: &#8216;C:\/local\/kkyx4xml.xn5solve.out&#8217;"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/#listItem","position":4,"name":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished.  \u2022Below warning in RSM job report log:  Traceback (most recent call last):   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 1881, in      exitCode = main(sys.argv[1:])   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 345, in main     deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory)   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 727, in deleteLocalScratchDirectoryOnThisNode     shutil.rmtree(_localScratchDirectory)   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 266, in rmtree     onerror(os.remove, fullname, sys.exc_info())   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 264, in rmtree     os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: &#8216;C:\/local\/kkyx4xml.xn5solve.out&#8217;","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/rsm\/#listItem","name":"rsm"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#organization","name":"Ansys Knowledge","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/knowledge\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/#webpage","url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/","name":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished. \u2022Below warning in RSM job report log: Traceback (most recent call last): File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 1881, in exitCode = main(sys.argv[1:]) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 345, in main deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode shutil.rmtree(_localScratchDirectory) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 266, in rmtree onerror(os.remove, fullname, sys.exc_info()) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 264, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \u2018C:\/local\/kkyx4xml.xn5solve.out\u2019 | Ansys Knowledge","description":"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/#breadcrumblist"},"datePublished":"2023-03-17T13:11:34+00:00","dateModified":"2023-07-31T12:34:56+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#website","url":"https:\/\/innovationspace.ansys.com\/knowledge\/","name":"Ansys Knowledge","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Knowledge | Ansys Innovation Space","og:type":"article","og:title":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished. \u2022Below warning in RSM job report log: Traceback (most recent call last): File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 1881, in exitCode = main(sys.argv[1:]) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 345, in main deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode shutil.rmtree(_localScratchDirectory) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 266, in rmtree onerror(os.remove, fullname, sys.exc_info()) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 264, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \u2018C:\/local\/kkyx4xml.xn5solve.out\u2019 | Ansys Knowledge","og:description":"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf","og:url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/","article:published_time":"2023-03-17T13:11:34+00:00","article:modified_time":"2023-07-31T12:34:56+00:00","twitter:card":"summary_large_image","twitter:title":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished. \u2022Below warning in RSM job report log: Traceback (most recent call last): File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 1881, in exitCode = main(sys.argv[1:]) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 345, in main deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory) File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode shutil.rmtree(_localScratchDirectory) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 266, in rmtree onerror(os.remove, fullname, sys.exc_info()) File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 264, in rmtree os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \u2018C:\/local\/kkyx4xml.xn5solve.out\u2019 | Ansys Knowledge","twitter:description":"Please refer to the attached PDF resolution document. Attachments: 1. 2061195-revised.pdf"},"aioseo_meta_data":{"post_id":"166312","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2025-10-17 22:56:24","updated":"2026-07-30 13:50:56","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/knowledge\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/rsm\/\" title=\"rsm\">rsm<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWhen submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished.  \u2022Below warning in RSM job report log:  Traceback (most recent call last):   File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 1881, in      exitCode = main(sys.argv[1:])   File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 345, in main     deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory)   File \u201chead-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py\u201d, line 727, in deleteLocalScratchDirectoryOnThisNode     shutil.rmtree(_localScratchDirectory)   File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 266, in rmtree     onerror(os.remove, fullname, sys.exc_info())   File \u201chead-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py\u201d, line 264, in rmtree     os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: \u2018C:\/local\/kkyx4xml.xn5solve.out\u2019\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/knowledge"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/"},{"label":"rsm","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/rsm\/"},{"label":"When submitting 2019 R3 Mechanical job to Windows HPC cluster through RSM using local scratch as working directory, everything works except 3 issues: \u2022Job State in HPC Job Manager shows \u201cFailed\u201d, rather than \u201cFinished\u201d \u2022Temporarily local scratch folder and solve.out file generated by the job could not be automatically deleted after RSM job is finished.  \u2022Below warning in RSM job report log:  Traceback (most recent call last):   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 1881, in <module>     exitCode = main(sys.argv[1:])   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 345, in main     deleteLocalScratchDirectoryOnThisNode(nodeList, True, startingDirectory)   File &#8220;head-nodeANSYS Incv195\/RSM\/Config\/scripts\/ClusterJobs.py&#8221;, line 727, in deleteLocalScratchDirectoryOnThisNode     shutil.rmtree(_localScratchDirectory)   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 266, in rmtree     onerror(os.remove, fullname, sys.exc_info())   File &#8220;head-nodeANSYS Incv195commonfilesCPython2_7_15winx64Releasepythonlibshutil.py&#8221;, line 264, in rmtree     os.remove(fullname) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: &#8216;C:\/local\/kkyx4xml.xn5solve.out&#8217;","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/when-submitting-2019-r3-mechanical-job-to-windows-hpc-cluster-through-rsm-using-local-scratch-as-working-directory-everything-works-except-3-issues-job-state-in-hpc-job-manager-shows\/"}],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["3\/15\/2023 20:20"],"_bbp_forum_id":["153867"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["674"],"siebel_km_number":["2061195"],"product_version":["2019 R3"],"km_published_date":["2019-10-24T21:11:34.000Z"],"family":["Installation\/Licensing\/Systems"],"application_name":["Mechanical - SYS"]},"test":"solution"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/166312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/166312\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=166312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}