pymapdl
pymapdl copied to clipboard
MPI routine (PMPI_Comm_size)
I caught an error related to MPI:
https://github.com/ansys/pymapdl/actions/runs/14317250236/job/40126290763?pr=3820#step:13:2863
Attempting to use an MPI routine (PMPI_Comm_size) before initializing or after finalizing MPICH
Details:
Details
===============================================================================
NEW SESSION - 04/07/2025, 19:03:50
===============================================================================
LEVEL - INSTANCE NAME - MODULE - FUNCTION - MESSAGE
DEBUG - pymapdl_global - launcher - get_start_instance - 'PYMAPDL_START_INSTANCE' is unset, and there is no supplied value. Using default, which is 'True'.
DEBUG - pymapdl_global - helpers - is_installed - The module 'pytest.pyvista' is not installed.
DEBUG - pymapdl_global - launcher - get_start_instance - 'PYMAPDL_START_INSTANCE' is unset, and there is no supplied value. Using default, which is 'True'.
DEBUG - pymapdl_global - launcher - get_start_instance_arg - Using 'start_instance' equal to True
DEBUG - pymapdl_global - launcher - get_ip - No IP address was supplied. Using the default IP address: 127.0.0.1
DEBUG - pymapdl_global - launcher - get_port - Using default port: 50052
DEBUG - pymapdl_global - launcher - get_port - Using default port 50052
DEBUG - pymapdl_global - launcher - get_exec_file - Using default executable.
DEBUG - pymapdl_global - launcher - get_run_location - Using run location at /tmp/pytest-of-root/pytest-0/ansys0
DEBUG - pymapdl_global - launcher - check_lock_file - Checking for lock file
DEBUG - pymapdl_global - launcher - check_mode - Using mode grpc
DEBUG - pymapdl_global - launcher - configure_ubuntu - Ubuntu system detected. Adding 'I_MPI_SHM_LMT' env var.
DEBUG - pymapdl_global - launcher - launch_mapdl - Using additional switches .
DEBUG - pymapdl_global - launcher - generate_start_parameters - Using start parameters {'additional_switches': '', 'exec_file': '/ansys_inc/v242/ansys/bin/ansys242', 'ip': '127.0.0.1', 'jobname': 'file', 'launch_on_hpc': False, 'nproc': 2, 'override': True, 'port': 50052, 'print_com': False, 'ram': None, 'run_location': '/tmp/pytest-of-root/pytest-0/ansys0', 'start_instance': True, 'start_timeout': 50, 'timeout': 50, 'launched': True}
DEBUG - pymapdl_global - launcher - launch_mapdl - Starting MAPDL
DEBUG - pymapdl_global - launcher - generate_mapdl_launch_command - Generated command: /ansys_inc/v242/ansys/bin/ansys242 -j file -np 2 -port 50052 -grpc
INFO - pymapdl_global - launcher - launch_grpc -
============
============
Running an MAPDL instance
Location:
/tmp/pytest-of-root/pytest-0/ansys0
Command:
/ansys_inc/v242/ansys/bin/ansys242 -j file -np 2 -port 50052 -grpc
Beta activation of the GRPC server.
Ansys Mechanical Enterprise
*------------------------------------------------------------------*
| |
| W E L C O M E T O T H E A N S Y S (R) P R O G R A M |
| |
*------------------------------------------------------------------*
***************************************************************
* ANSYS MAPDL LEGAL NOTICES *
***************************************************************
* *
* Copyright 1971-2024 Ansys, Inc. All rights reserved. *
* Unauthorized use, distribution or duplication is *
* prohibited. *
* *
* Ansys is a registered trademark of Ansys, Inc. or its *
* subsidiaries in the United States or other countries. *
* See the Ansys, Inc. online documentation or the Ansys, Inc. *
* documentation CD or online help for the complete Legal *
* Notice. *
* *
***************************************************************
* *
* THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION *
* INCLUDE TRADE SECRETS AND CONFIDENTIAL AND PROPRIETARY *
* PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. *
* The software products and documentation are furnished by *
* Ansys, Inc. or its subsidiaries under a software license *
* agreement that contains provisions concerning *
* non-disclosure, copying, length and nature of use, *
* compliance with exporting laws, warranties, disclaimers, *
* limitations of liability, and remedies, and other *
* provisions. The software products and documentation may be *
* used, disclosed, transferred, or copied only in accordance *
* with the terms and conditions of that software license *
* agreement. *
* *
* Ansys, Inc. is a UL registered *
* ISO 9001:2015 company. *
* *
***************************************************************
* *
* This product is subject to U.S. laws governing export and *
* re-export. *
* *
* For U.S. Government users, except as specifically granted *
* by the Ansys, Inc. software license agreement, the use, *
* duplication, or disclosure by the United States Government *
* is subject to restrictions stated in the Ansys, Inc. *
* software license agreement and FAR 12.212 (for non-DOD *
* licenses). *
* *
***************************************************************
*** WARNING *** CP = 0.240 TIME= 19:06:22
MISSING DOCUMENTATION FILE
DOCU LIST FILE = /ansys_inc/v242/ansys/gui/en-us/
MISSING FILE NAME = /__w/mapdl-docker-image-builder/.
***** MAPDL COMMAND LINE ARGUMENTS *****
INITIAL JOBNAME = file
2 PARALLEL PROCESSES REQUESTED WITH SINGLE THREAD PER PROCESS
TOTAL OF 2 CORES REQUESTED
PARAMETER STATUS- ( 1 PARAMETERS DEFINED)
NAME VALUE TYPE
PORT 50052.0000 SCALAR
RELEASE= BUILD= 24.2 UP20240603 VERSION=LINUX x64
CURRENT JOBNAME=file0 19:06:22 APR 07, 2025 CP= 0.241
RUN SETUP PROCEDURE FROM FILE= /ansys_inc/v242/ansys/apdl/start.ans
Start GRPC Server
##############################
### START GRPC SERVER ###
##############################
Server Executable : MapdlGrpc.Server
Server listening on : 0.0.0.0:50052
/OUTPUT FILE= anstmp
/OUTPUT FILE= anstmp
/OUTPUT FILE=
*****MAPDL VERIFICATION RUN ONLY*****
DO NOT USE RESULTS FOR PRODUCTION
***** TIME-HISTORY POSTPROCESSOR (POST26) *****
ALL POST26 SPECIFICATIONS ARE RESET TO INITIAL DEFAULTS
*** NOTE *** CP = 0.000 TIME= 00:00:00
Geometry is not available. Issue RESUME to restore database.
*** NOTE *** CP = 0.000 TIME= 00:00:00
Unable to open default results file
Use FILE command to open a results file.
*** WARNING *** CP = 0.000 TIME= 00:00:00
The geometry is not available. Issue the RESUME command to restore the
database. The NUMVAR command is ignored.
***** ROUTINE COMPLETED ***** CP = 0.000
NUMBER OF DISPLAYED ERRORS ALLOWED PER COMMAND= 20
NUMBER OF ERRORS ALLOWED PER COMMAND BEFORE ANSYS ABORT= 10000
ABORT LEVEL KEY= -1
ALL ERRORS WRITTEN TO
DO NOT TERMINATE /INPUT UPON FIRST ERROR
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
Running test: tests/test_grpc.py::test_download[myfile*-expected_output2] (setu
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
***** ROUTINE COMPLETED ***** CP = 0.000
/OUTPUT FILE=
*****MAPDL VERIFICATION RUN ONLY*****
DO NOT USE RESULTS FOR PRODUCTION
***** MAPDL ANALYSIS DEFINITION (PREP7) *****
***** ROUTINE COMPLETED ***** CP = 0.000
*****MAPDL VERIFICATION RUN ONLY*****
DO NOT USE RESULTS FOR PRODUCTION
***** TIME-HISTORY POSTPROCESSOR (POST26) *****
ALL POST26 SPECIFICATIONS HAVE BEEN RESTORED TO THEIR PREVIOUS SETTINGS
*** WARNING *** CP = 0.000 TIME= 00:00:00
The geometry is not available. Issue the RESUME command to restore the
database. The NUMVAR command is ignored.
***** ROUTINE COMPLETED ***** CP = 0.000
*****MAPDL VERIFICATION RUN ONLY*****
DO NOT USE RESULTS FOR PRODUCTION
***** MAPDL ANALYSIS DEFINITION (PREP7) *****
/OUTPUT FILE=
/OUTPUT FILE=
*** WARNING *** CP = 0.000 TIME= 00:00:00
Altering the abort level key is not recommended.
NUMBER OF DISPLAYED ERRORS ALLOWED PER COMMAND= 20
NUMBER OF ERRORS ALLOWED PER COMMAND BEFORE ANSYS ABORT= 10000
ABORT LEVEL KEY= -1
ALL ERRORS WRITTEN TO
DO NOT TERMINATE /INPUT UPON FIRST ERROR
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
Running test: tests/test_grpc.py::test_download[myfile*-expected_output2] (setu
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
/OUTPUT FILE=
EXIT MAPDL WHILE IN SERVER MODE
SAVE ALL MODEL, SOLUTION AND POST DATA
ALL CURRENT MAPDL DATA WRITTEN TO FILE NAME=
FOR POSSIBLE RESUME FROM THIS POINT
NUMBER OF WARNING MESSAGES ENCOUNTERED= 71
NUMBER OF ERROR MESSAGES ENCOUNTERED= 0
*-----------------------------------------------------------------------------*
| |
| RUN COMPLETED |
| |
|-----------------------------------------------------------------------------|
| |
| Ansys MAPDL Build 24.2 UP20240603 LINUX x64 |
| |
|-----------------------------------------------------------------------------|
| |
| Database Requested(-db) 1024 MB Scratch Memory Requested 1024 MB |
| Max Database Used(Master) 1 MB Max Scratch Used(Master) 8 MB |
| Max Database Used(Workers) 1 MB Max Scratch Used(Workers) 5 MB |
| Sum Database Used(All) 2 MB Sum Scratch Used(All) 13 MB |
| |
|-----------------------------------------------------------------------------|
| |
| CP Time (sec) = 11.013 Time = 19:08:46 |
| Elapsed Time (sec) = 149.000 Date = 04/07/2025 |
| |
*-----------------------------------------------------------------------------*
Attempting to use an MPI routine (PMPI_Comm_size) before initializing or after finalizing MPICH