Collection of functions that provide information of the hardware and software environment, the build information of the current version of mpacts, as well as the general settings of mpacts that can be set globally (such as the number of threads, or the contact data storage type). This information will be stored automatically in hdf5 data files and is useful for diagnostics and benchmarking purposes.

In order to be able to use this module import it like this:

#or assign it to a shorter name
import as sys

Finds out the contact data storage type by looping over all contact detectors and extracting their contact data storage. If different contact data storages are found, the last one found will be returned.

Parameters:sim (mpacts.core.simulation.Simulation) – a valid mpacts simulation object

C++ compiler that was used to build the current version of mpacts

Branch for the compilation

Revision number in the central repository of the currently used build of mpacts

Specifies whether the currently library of mpacts is a debug build or not

Elapsed real time since a fixed point in the past (in seconds) as specified by the os.times() function. This method is not available in Windows-based system. For these process_elapsed_time() will return -1

Returns the number of threads currently available for multi-threaded builds and 1 for single-threaded builds of mpacts'MB')

Returns the peak memory used by the (calling) process For Windows operating systems, this will return -1, since the underlying ‘resource’ module is not available.

Parameters:unit (str) – unit of memory to be reported (‘B’, ‘kB’, ‘MB’ or ‘GB’ are accepted).

Total ‘system’ time taken up by the current process (in seconds)

Total ‘user’ time taken up by the current process (in seconds)

Hardware architecture of the underlying system (e.g. x86_64, or arm). Level of detail provided might vary between different platforms.

Technical information about the central processing unit (CPU)

Version of C standard library (libc) that is used by this system

If the current system is a Linux distribution, returns the distribution name and version, if the current system is not a Linux distribution, this will return an empty string

Returns the name of the currently used computing node in which this process is running (e.g. the system’s host name in Linux).

Family of operating system used, e.g. Windows, Darwin (=Mac), or Linux

Specifies the currently used implementation of Python (e.g. CPython, JPython, RPython).

Version of the python interpreter that is used by mpacts

Release version of the system’s kernel