Using the HPC feature with command line
Simple example: submitting a batch study
example of batch study
The following template manages the submission of a batch run study. The model comes from the Simcenter Amesim demo collection and already contains batch parameters, so no pre-processing is required. The study is ready for the HPC export. This demo is based on the self-executable template.
Run the demo:
Procedure
Create a local version of the generic script: demo_hpc_lsf_QuarterCar_batch.sh (available in $AME/scripting/python/hpc/demo)
Edit the file and configure the working directory in WDIR.Copy
# Define the working directory. WDIR="TO_BE_DEFINED"Define the virtual X server command in OTHERS_ARGS variable if needed. Go to the command description chapter for more information.
Change the executable authority of the script.Copy
chmod +x demo_hpc_lsf_QuarterCar_batch.shExecute the script.Copy
./demo_hpc_lsf_QuarterCar_batch.shAs a result, the job id and command to monitor the study will be displayed. Copy`user@head-node:~/test$ ./demo_hpc_lsf_QuarterCar_batch.sh Information: GNU GCC version is 4.8.3 Starting Python ... Information: GNU GCC version is 4.8.3
Monitoring command :
AMEHPCMonitor --dir /home/user/test/wdir1/
Batch job 101 has been submitted.`
Display the job status:Copy
user@hpc-headnode:~$ bjobs 101 JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME 101 user RUN normal head-node *ESIM_demo Apr 15 15:32Start the monitoring:Copy`user@hpc-headnode:~$ AMEHPCMonitor --dir /home/user/test/wdir1/ Information: GNU GCC version is 4.8.3 Starting Python ... Information: GNU GCC version is 4.8.3 Submitted Preparing Running Nb Batch Runs: n/a || {'unknown': 'n/a', 'finished': 'n/a', 'aborted': 'n/a'}
Running Nb Batch Runs: 7 || {'unknown': 0, 'finished': 7, 'aborted': 0} Completed`
The file QuarterCar.ame is finally saved in the working directory, it contains the batch run simulation results.
- Open the model in Simcenter Amesim and plot any variables to check the results of the batch study.
Results
A version of the script is also available for the Slurm job scheduler: demo_hpc_slurm_QuarterCar_batch.sh.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.HPC/xid1174701 · retrieved 2026-07-17