I have a simple code (given below) for the Espresso plugin based on the tutorial. It’s not really working. It’s possible that the command I use on the terminal is slightly different. I tried setting up code with different settings from prepend-text etc.
The command I usually run is on the lines of:
mpirun -np 2 --mca btl self,vader pw.x < pwscf.in > pwscf.out
So:
- Is there a way I can find the exact command that aiida executed so that I can compare?
- Is there a way to update an existing code without creating a new one?
code_pk = 323
code = aiida.orm.load_code(code_pk)
structure = aiida.orm.load_node(105)
pseudo_family = load_group('SSSP/1.3/PBE/efficiency')
pseudos = pseudo_family.get_pseudos(structure=structure)
parameters = {
'CONTROL': {'calculation': 'scf', },
'SYSTEM': {'ecutwfc': 30., # wave function cutoff in Ry
'ecutrho': 240., # density cutoff in Ry
},
}
KpointsData = DataFactory('core.array.kpoints')
kpoints = KpointsData()
kpoints.set_kpoints_mesh([4,4,4])
builder = code.get_builder()
builder.structure = structure
builder.pseudos = pseudos
builder.parameters = Dict(parameters)
builder.kpoints = kpoints
builder.metadata.options.resources = {'num_machines': 1}
from aiida.engine import submit
calcjob_node = submit(builder)
The process report is given below:
(aiidapy313) [misbah@hpc _prelim]$ verdi process report 356*** 356: None*** (empty scheduler output file)*** Scheduler errors:
As of version 3.0.0, the “sm” BTL is no longer available in Open MPI.
Efficient, high-speed same-node shared memory communication support inOpen MPI is available in the “vader” BTL. To use the vader BTL, youcan re-run your job with:
mpirun --mca btl vader,self,... your_mpi_application
A requested component was not found, or was unable to be opened. Thismeans that this component is either not installed or is unable to beused on your system (e.g., sometimes this means that shared librariesthat the component requires are unable to be found/loaded). Note thatOpen MPI stopped checking at the first component that it did not find.
Host: hpc.giki.edu.pkFramework: btlComponent: sm
It looks like MPI_INIT failed for some reason; your parallel process islikely to abort. There are many reasons that a parallel process canfail during MPI_INIT; some of which are due to configuration or environmentproblems. This failure appears to be an internal failure; here’s someadditional information (which may only be relevant to an Open MPIdeveloper):
mca_bml_base_open() failed → Returned “Not found” (-13) instead of “Success” (0)
[hpc:44175] *** An error occurred in MPI_Init[hpc:44175] *** reported by process [465764353,0][hpc:44175] *** on a NULL communicator[hpc:44175] *** Unknown error[hpc:44175] *** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,[hpc:44175] *** and potentially your MPI job)_aiidasubmit.sh: line 8: --mca: command not found
*** 5 LOG MESSAGES:
±> WARNING at 2025-09-22 06:53:03.494035+00:00| There was nonempty stderr in the whoami command: open terminal failed: not a terminal
±> WARNING at 2025-09-22 06:53:07.442177+00:00| key ‘symmetries’ is not present in raw output dictionary
±> ERROR at 2025-09-22 06:53:07.521282+00:00| ERROR_OUTPUT_STDOUT_INCOMPLETE
±> ERROR at 2025-09-22 06:53:07.527939+00:00| Both the stdout and XML output files could not be read or parsed.
±> WARNING at 2025-09-22 06:53:07.530391+00:00| output parser returned exit code<305>: Both the stdout and XML output files could not be read or parsed.
Thank you for your help.