


{"id":436832,"date":"2025-07-15T08:32:23","date_gmt":"2025-07-15T08:32:23","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-returns-an-error-while-running-it-on-my-universitys-hpc\/"},"modified":"2025-07-15T08:32:23","modified_gmt":"2025-07-15T08:32:23","slug":"ansys-returns-an-error-while-running-it-on-my-universitys-hpc","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-returns-an-error-while-running-it-on-my-universitys-hpc\/","title":{"rendered":"Ansys returns an error while running it on my University&#8217;s HPC"},"content":{"rendered":"<p>&lt;p&gt;Hello everyone,&lt;\/p&gt;&lt;p&gt;I have been trying to run a .wbpj file on my University&#8217;s Linux-based HPC using Ansys 2024 R1, but unable to do so due to an error. Even when I submit an empty &#8220;minimal_test.wbpj&#8221; file, it returns the following error. The error is the same regardless of whether the .wbpj file is my actual simulation setup (on Ansys Polyflow) or just an empty file for testing purposes.&lt;br&gt;&lt;br&gt;I am attaching all relevant files for you to check. I use a SLURM script to run it on my University&#8217;s HPC cluster.&lt;\/p&gt;&lt;p&gt;Error file:&lt;\/p&gt;&lt;p&gt;_____&lt;\/p&gt;&lt;p&gt;_____&lt;\/p&gt;&lt;div&gt;Job started at: Fri 23 May 12:39:25 BST 2025&lt;\/div&gt;&lt;div&gt;SLURM_JOB_ID: 7752&lt;\/div&gt;&lt;div&gt;Attempting to run Workbench&#8230;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;Framework error caught :&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;Fatal error: An unexpected error has occurred: Unable to load project &#8216;\/home\/postgrads\/2913170B\/DieSwell_Simple\/minimal_test.wbpj&#8217;: Ansys.Core.Events.EventPublishFailedException: Failed to create object 6a7e2939-5ffe-47a0-bda7-fb034a0e3a0f, error code hres: 8000FFFF &#8212;&gt; Ansys.Core.Events.EventPublishFailedException: Failed to create object 6a7e2939-5ffe-47a0-bda7-fb034a0e3a0f, error code hres: 8000FFFF &#8212;&gt; Ansys.Core.Events.EventPublishFailedException: Failed to create object 6a7e2939-5ffe-47a0-bda7-fb034a0e3a0f, error code hres: 8000FFFF &#8212;&gt; Ansys.Core.Events.EventPublishFailedException: Failed to create object 6a7e2939-5ffe-47a0-bda7-fb034a0e3a0f, error code hres: 8000FFFF &#8212;&gt; System.Runtime.InteropServices.COMException: Failed to create object 6a7e2939-5ffe-47a0-bda7-fb034a0e3a0f, error code hres: 8000FFFF&lt;\/div&gt;&lt;div&gt;&nbsp; at Ans.ComponentSystem.Interop.MiniCom.AnsCoCreateInstance (System.Type classType, System.IntPtr aggr) [0x0007f] in &lt;44fa2ffd3745466592ae7a1a4b470645&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.ACT.Interop.DefinitionIdentifier.ClassFactoryCreateObjectDelegate (System.IntPtr aggr) [0x00000] in &lt;90c9343f97d04f79bbc2eb7d1584c740&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at System.__ComObject.CreateIUnknown (System.Type t) [0x00015] in &lt;e85874d36dd54c51a7dcd93d72f2c404&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Mono.Interop.ComInteropProxy.CreateProxy (System.Type t) [0x00000] in &lt;e85874d36dd54c51a7dcd93d72f2c404&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at System.Runtime.Remoting.RemotingServices.CreateClientProxyForComInterop (System.Type type) [0x00000] in &lt;e85874d36dd54c51a7dcd93d72f2c404&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at System.Runtime.Remoting.Activation.ActivationServices.CreateProxyForType (System.Type type) [0x0003b] in &lt;e85874d36dd54c51a7dcd93d72f2c404&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_object_new_specific(intptr)&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.ACT.WorkBench.EventObserver.Receive (Ansys.Core.Events.IEvent eventInfo) [0x0029d] in &lt;a550bec809dd4257963b4da898234bfe&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventObserverProxy.Receive (Ansys.Core.Events.IEvent eventInfo) [0x00000] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventInvoker.Invoke () [0x001a8] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp;&#8212; End of inner exception stack trace &#8212;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventInvoker.Invoke () [0x00213] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventPublishHelper+&lt;&gt;c.&lt;FireAsyncWait&gt;b__8_0 (System.Object obj) [0x00000] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.ThreadPoolWait.HandleWorkItem (System.Object state) [0x00007] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; &nbsp;&#8212; End of inner exception stack trace &#8212;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.ThreadPoolWait.RethrowExceptions () [0x00051] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.ThreadPoolWait.WaitOne (System.Int32 millisecondsTimeout, System.Boolean exitContext) [0x00076] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.ThreadPoolWait.WaitOne () [0x00000] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventPublishHelper.FireAsyncWait (System.Collections.Generic.List<code>1[T] events) [0x0006d] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&amp;nbsp;&lt;\/div&gt;&lt;div&gt;&amp;nbsp; at Ansys.Core.Events.EventManager.FireEvent (System.Collections.Generic.List<\/code>1[T] observers, Ansys.Core.Events.IEvent eventInfo, System.Boolean wait) [0x00064] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventManager.fireEventsByPriority (System.Collections.Generic.List<code>1[T] observers, Ansys.Core.Events.IEvent eventInfo, System.Boolean wait, Ansys.Core.Events.EventObserverPriority priority) [0x00065] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&amp;nbsp;&lt;\/div&gt;&lt;div&gt;&amp;nbsp; at Ansys.Core.Events.EventManager.PublishEvent (Ansys.Core.Events.IEvent eventInfo, System.Collections.Generic.List<\/code>1[T] matchingProxies, System.Boolean wait) [0x00053] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&lt;br&gt;&#8230;&lt;\/div&gt;&lt;div&gt;&lt;div&gt;at Ansys.Core.Events.EventManager.PublishEvent (Ansys.Core.Events.IEvent ev) [0x00008] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventManager.DoPublishAndWait (Ansys.Core.Events.IEvent eventInformation) [0x00098] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Events.EventManager.PublishAndWait (Ansys.Core.Events.IEvent eventInformation) [0x00078] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Persistence.Commands.OpenCommand.LoadProjectInternal (Ansys.Core.Commands.IFullContext context, System.String projectFilePath, System.Boolean mergedProject, System.Boolean importProject, Ansys.Core.DataModel.ProjectSystem.SharedAccess+AccessLock shareLock, System.Boolean skipStartingEvents, System.Collections.Generic.IReadOnlyDictionary`2[TKey,TValue] addinsToPostMigrate) [0x000d2] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;CommandName: Open(FilePath=&#8221;minimal_test.wbpj&#8221;)&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException (System.Exception e) [0x0000c] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Commands.CommandAsyncResult.Wait (System.Int32 milliSecondsTimeout, System.Boolean exitContext) [0x00095] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Commands.CommandAsyncResult.Wait () [0x00000] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ansys.Core.Persistence.Commands.OpenCommand.InvokeAndWait (Ansys.Core.Commands.IProtectedContext context, System.String FilePath) [0x00023] in &lt;2269a6352d194a2cb2dedbf711bef8d1&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ans.Program.Runtime.OpenFile () [0x00022] in &lt;d46e9bc8c675468390af9234763172b8&gt;:0&nbsp;&lt;\/div&gt;&lt;div&gt;&nbsp; at Ans.Program.Runtime.DoRun () [0x0014d] in &lt;d46e9bc8c675468390af9234763172b8&gt;:0&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;Ansys Workbench batch process (Update and Save) completed at: Fri 23 May 12:39:38 BST 2025&lt;\/div&gt;&lt;div&gt;_____&lt;\/div&gt;&lt;div&gt;_____&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;SLURM script: Modified using AI, since I am new to Linux and batch runs.&lt;\/div&gt;&lt;div&gt;_____&lt;\/div&gt;&lt;div&gt;_____&lt;\/div&gt;&lt;div&gt;&lt;div&gt;#!\/bin\/bash&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;#SBATCH &#8211;account=YOUR_ACTUAL_ACCOUNT # &lt;&#8211; VERIFY OR REMOVE&lt;\/div&gt;&lt;div&gt;#SBATCH &#8211;time=00-03:00&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Time (DD-HH:MM)&lt;\/div&gt;&lt;div&gt;#SBATCH &#8211;mem=16G&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Total Memory&lt;\/div&gt;&lt;div&gt;#SBATCH &#8211;ntasks=4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Number of cores&lt;\/div&gt;&lt;div&gt;#SBATCH &#8211;nodes=1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Do not change&lt;\/div&gt;&lt;div&gt;#SBATCH &#8211;partition=standard&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Use the correct partition&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;echo &#8220;Job started at: $(date)&#8221;&lt;\/div&gt;&lt;div&gt;echo &#8220;SLURM_JOB_ID: $SLURM_JOB_ID&#8221;&lt;\/div&gt;&lt;div&gt;# &#8230; (other echo statements for SLURM vars if you want)&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;module load ansys\/2024-R1&nbsp; &nbsp;# Corrected module name&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;# Remove lock file &#8211; this is good&lt;\/div&gt;&lt;div&gt;rm -fv *_files\/.lock&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;# The following lines for modifying global SolveHandlers.xml are DANGEROUS and will likely fail.&lt;\/div&gt;&lt;div&gt;# It&#8217;s better to configure parallelism within the Workbench project GUI.&lt;\/div&gt;&lt;div&gt;# MWFILE=\/software\/apps\/ansys_inc\/2024-R1\/v241\/aisol\/DesignSpace\/DSPages\/Language\/en-us\/xml\/SolveHandlers.xml&lt;\/div&gt;&lt;div&gt;# if [ &#8220;$SLURM_NNODES&#8221; == 1 ]; then&lt;\/div&gt;&lt;div&gt;#&nbsp; &nbsp;MEMPAR=0&lt;\/div&gt;&lt;div&gt;# else&lt;\/div&gt;&lt;div&gt;#&nbsp; &nbsp;MEMPAR=1&lt;\/div&gt;&lt;div&gt;# fi&lt;\/div&gt;&lt;div&gt;# sed -re &#8220;s\/(.AnsysSolution&gt;+)[a-zA-Z0-9]*(&lt;\\\/Distribute.)\/\\1$MEMPAR\\2\/&#8221; -i &#8220;$MWFILE&#8221;&lt;\/div&gt;&lt;div&gt;# sed -re &#8220;s\/(.Processors&gt;+)[a-zA-Z0-9]*(&lt;\\\/MaxNumber.)\/\\1$SLURM_NTASKS\\2\/&#8221; -i &#8220;$MWFILE&#8221;&lt;\/div&gt;&lt;div&gt;# sed -i &#8220;s!UserConfigured=\\&#8221;0\\&#8221;!UserConfigured=\\&#8221;1\\&#8221;!g&#8221; &#8220;$MWFILE&#8221;&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;export KMP_AFFINITY=disabled&lt;\/div&gt;&lt;div&gt;export I_MPI_HYDRA_BOOTSTRAP=ssh&lt;\/div&gt;&lt;div&gt;# export ENABLE_ANSYS_QA_SERVICES241=0 # Kept from our previous script, likely no harm&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;echo &#8220;Attempting to run Workbench&#8230;&#8221;&lt;\/div&gt;&lt;div&gt;\/software\/apps\/ansys_inc\/2024-R1\/v241\/Framework\/bin\/Linux64\/runwb2 -B -E &#8220;Update();Save(Overwrite=True)&#8221; -F minimal_test.wbpj&lt;\/div&gt;&lt;div&gt;&nbsp;&lt;\/div&gt;&lt;div&gt;echo &#8220;Ansys Workbench batch process (Update and Save) completed at: $(date)&#8221;&lt;\/div&gt;&lt;div&gt;_____&lt;\/div&gt;&lt;div&gt;_____&lt;\/div&gt;&lt;div&gt;The original SLURM script format (provided by the University) is as follows:&lt;\/div&gt;&lt;div&gt;&lt;p&gt;#!\/bin\/bash&lt;\/p&gt;&lt;p&gt;#SBATCH &#8211;account=def-account&lt;br&gt;#SBATCH &#8211;time=00-03:00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Time (DD-HH:MM)&lt;br&gt;#SBATCH &#8211;mem=16G &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Total Memory (set to 0 for all node memory)&lt;br&gt;#SBATCH &#8211;ntasks=4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Number of cores&lt;br&gt;#SBATCH &#8211;nodes=1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# Do not change (multi-node not supported)&lt;br&gt;##SBATCH &#8211;exclusive &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Uncomment for scaling testing&lt;br&gt;##SBATCH &#8211;constraint=broadwell &nbsp; &nbsp; &nbsp; &nbsp;# Applicable to graham or cedar&lt;\/p&gt;&lt;p&gt;module load ansys\/2024-R1 &nbsp; # OR newer Ansys modules&lt;\/p&gt;&lt;p&gt;if [ &#8220;$SLURM_NNODES&#8221; == 1 ]; then&lt;br&gt;&nbsp; MEMPAR=0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Set to 0 for SMP (shared memory parallel)&lt;br&gt;else&lt;br&gt;&nbsp; MEMPAR=1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Set to 1 for DMP (distributed memory parallel)&lt;br&gt;fi&lt;\/p&gt;&lt;p&gt;rm -fv *_files\/.lock&lt;br&gt;MWFILE=\/software\/apps\/ansys_inc\/2024-R1\/v241\/aisol\/DesignSpace\/DSPages\/Language\/en-us\/xml\/SolveHandlers.xml&lt;br&gt;sed -re &#8220;s\/(.AnsysSolution&gt;+)[a-zA-Z0-9]*(&lt;\\\/Distribute.)\/\\1$MEMPAR\\2\/&#8221; -i &#8220;$MWFILE&#8221;&lt;br&gt;sed -re &#8220;s\/(.Processors&gt;+)[a-zA-Z0-9]*(&lt;\\\/MaxNumber.)\/\\1$SLURM_NTASKS\\2\/&#8221; -i &#8220;$MWFILE&#8221;&lt;br&gt;sed -i &#8220;s!UserConfigured=\\&#8221;0\\&#8221;!UserConfigured=\\&#8221;1\\&#8221;!g&#8221; &#8220;$MWFILE&#8221;&lt;\/p&gt;&lt;p&gt;export KMP_AFFINITY=disabled&lt;br&gt;export I_MPI_HYDRA_BOOTSTRAP=ssh&lt;\/p&gt;&lt;p&gt;\/software\/apps\/ansys_inc\/2024-R1\/v241\/Framework\/bin\/Linux64\/runwb2 -B -E &#8220;Update();Save(Overwrite=True)&#8221; -F DieSwell_Simple_2025-05-19.wbpj&lt;\/p&gt;&lt;\/div&gt;_____&lt;\/div&gt;&lt;div&gt;_____&lt;br&gt;&lt;br&gt;Any suggestions on fixing this error are welcome. Please feel free to ask any follow-up questions; I will respond.&lt;\/div&gt;&lt;\/div&gt;<\/p>\n","protected":false},"template":"","class_list":["post-436832","topic","type-topic","status-publish","hentry","topic-tag-batch-hpc","topic-tag-hpc-cluster-1","topic-tag-polyflow","topic-tag-slurm","topic-tag-workbench"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27796"],"_bbp_topic_id":["436832"],"_bbp_subscription":["573502","199"],"_bbp_author_ip":["31.205.223.185"],"_bbp_last_reply_id":["437954"],"_bbp_last_active_id":["437954"],"_bbp_last_active_time":["2025-07-28 12:10:05"],"_bbp_reply_count":["12"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["573502","199"],"_btv_view_count":["1057"],"_bbp_topic_status":["unanswered"]},"test":"v-bhatnagar-1research-gla-ac-uk"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/436832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/436832\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=436832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}