!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! !!!!! !!!!! VERIFICATION CHECK: vc-memory-leak !!!!! !!!!! !!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Description: Check that the model has no memory leaks. This is tested using the Valgrind memory debugging tool (http://valgrind.org) by performing a series of energy and force calculations on a randomly distorted face-centered cubic (FCC) cube base structure for both non-periodic and periodic boundary conditions. Separate configurations are tested for each species supported by the model, as well as one containing a random distribution of all species. Configurations used for testing are provided as auxiliary files. Author: Ellad Tadmor ----------------------------------------------------------------------------------------------------- Results for KIM Model : Morse_Shifted_GirifalcoWeizer_1959HighCutoff_Ag__MO_111986436268_004 Supported species : Ag random seed = 13 lattice constant (orig) = 3.000 perturbation amplitude = 0.300 number unit cells per side = 2 ----------------------------------------------------------------------------------------------------- MONOATOMIC STRUCTURE (pbc=False)-- Species = Ag (Configuration in file "config-F-Ag.xyz") ----------------------------------------------------------------------------------------------------- Energy = 327.4581607287681 Forces: 1 -1.08762055e+01 -1.91884538e+01 -2.07234069e+01 2 -8.36412637e+00 1.24025332e+01 -1.91703919e+01 3 1.27801817e+01 -3.39011078e+01 -1.40473180e+01 4 -2.51206049e+01 1.28300022e+01 1.13578241e+00 5 -2.69571552e+00 -3.16043329e+01 -1.03976816e+01 6 2.00701413e+01 1.14781091e+01 -2.17660880e+01 7 1.90941357e+01 -5.44521653e+01 -3.71337603e+01 8 -2.69187090e+01 -2.05613729e+01 -3.18947202e+00 9 -2.03833121e+01 -1.47886203e+01 -3.48680187e+01 10 -8.32927213e+00 3.82498981e+01 -3.96834254e+01 11 -7.55280424e+00 -2.60125604e+01 5.94633821e+00 12 -2.46793481e+01 3.30050866e+01 4.35189585e+00 13 -1.05893830e+01 -2.63410506e+01 -7.80873953e+01 14 1.91419842e+01 2.28261427e+01 -1.58775657e+01 15 7.23720025e+01 -9.41817265e+00 1.58412020e+01 16 9.77124646e+00 6.12058152e+01 2.44186225e+01 17 -3.72824253e+01 -2.38346681e+01 -5.31921463e+00 18 2.07340859e+01 2.69151381e+01 1.64860130e+01 19 9.18070109e+00 -2.81838968e+01 1.61281578e+01 20 -1.52848536e+01 1.68162525e+01 1.85028854e+01 21 -2.28538655e+01 -2.51108305e+01 1.50661363e+01 22 4.19831366e+01 4.16825946e+01 2.85454674e+01 23 1.14429145e+01 -6.64511552e+00 2.34284305e+01 24 5.40086128e+00 1.22518963e+01 1.27372647e+01 25 -2.87974966e+01 -1.13389766e+01 1.76436020e+01 26 -1.16319439e+01 4.19614591e+01 -1.68784258e+01 27 1.75012107e+01 -5.81046272e+01 2.50277404e+01 28 -5.05611050e+01 4.15822272e+01 1.22092041e+01 29 -1.51494199e+01 -2.36612229e+01 1.75568608e+01 30 2.12112224e+01 3.13300735e+01 -2.15608721e+00 31 2.98823911e+01 -2.18118467e+01 3.02399960e+01 32 1.65043753e+01 3.04217924e+01 3.40326519e+01 MONOATOMIC STRUCTURE (pbc=True)-- Species = Ag (Configuration in file "config-T-Ag.xyz") ----------------------------------------------------------------------------------------------------- Energy = 327.4581607287681 Forces: 1 -1.08762055e+01 -1.91884538e+01 -2.07234069e+01 2 -8.36412637e+00 1.24025332e+01 -1.91703919e+01 3 1.27801817e+01 -3.39011078e+01 -1.40473180e+01 4 -2.51206049e+01 1.28300022e+01 1.13578241e+00 5 -2.69571552e+00 -3.16043329e+01 -1.03976816e+01 6 2.00701413e+01 1.14781091e+01 -2.17660880e+01 7 1.90941357e+01 -5.44521653e+01 -3.71337603e+01 8 -2.69187090e+01 -2.05613729e+01 -3.18947202e+00 9 -2.03833121e+01 -1.47886203e+01 -3.48680187e+01 10 -8.32927213e+00 3.82498981e+01 -3.96834254e+01 11 -7.55280424e+00 -2.60125604e+01 5.94633821e+00 12 -2.46793481e+01 3.30050866e+01 4.35189585e+00 13 -1.05893830e+01 -2.63410506e+01 -7.80873953e+01 14 1.91419842e+01 2.28261427e+01 -1.58775657e+01 15 7.23720025e+01 -9.41817265e+00 1.58412020e+01 16 9.77124646e+00 6.12058152e+01 2.44186225e+01 17 -3.72824253e+01 -2.38346681e+01 -5.31921463e+00 18 2.07340859e+01 2.69151381e+01 1.64860130e+01 19 9.18070109e+00 -2.81838968e+01 1.61281578e+01 20 -1.52848536e+01 1.68162525e+01 1.85028854e+01 21 -2.28538655e+01 -2.51108305e+01 1.50661363e+01 22 4.19831366e+01 4.16825946e+01 2.85454674e+01 23 1.14429145e+01 -6.64511552e+00 2.34284305e+01 24 5.40086128e+00 1.22518963e+01 1.27372647e+01 25 -2.87974966e+01 -1.13389766e+01 1.76436020e+01 26 -1.16319439e+01 4.19614591e+01 -1.68784258e+01 27 1.75012107e+01 -5.81046272e+01 2.50277404e+01 28 -5.05611050e+01 4.15822272e+01 1.22092041e+01 29 -1.51494199e+01 -2.36612229e+01 1.75568608e+01 30 2.12112224e+01 3.13300735e+01 -2.15608721e+00 31 2.98823911e+01 -2.18118467e+01 3.02399960e+01 32 1.65043753e+01 3.04217924e+01 3.40326519e+01 ================================================================================ VALGRIND OUTPUT ================================================================================ ==12388== Memcheck, a memory error detector ==12388== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==12388== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==12388== Command: python runner2.py Morse_Shifted_GirifalcoWeizer_1959HighCutoff_Ag__MO_111986436268_004 ==12388== ==12388== Conditional jump or move depends on uninitialised value(s) ==12388== at 0x4FCBE77: __wcsnlen_avx2 (strlen-avx2.S:261) ==12388== by 0x4EF9EC1: wcsrtombs (wcsrtombs.c:104) ==12388== by 0x4E7FB20: wcstombs (wcstombs.c:34) ==12388== by 0x547A3F: ??? (in /usr/bin/python3.6) ==12388== by 0x63345D: _Py_stat (in /usr/bin/python3.6) ==12388== by 0x5BA640: ??? (in /usr/bin/python3.6) ==12388== by 0x551B80: ??? (in /usr/bin/python3.6) ==12388== by 0x5AA6EB: _PyObject_FastCallKeywords (in /usr/bin/python3.6) ==12388== by 0x50ABB2: ??? (in /usr/bin/python3.6) ==12388== by 0x50C5B8: _PyEval_EvalFrameDefault (in /usr/bin/python3.6) ==12388== by 0x509D47: ??? (in /usr/bin/python3.6) ==12388== by 0x50AA7C: ??? (in /usr/bin/python3.6) ==12388== ==12388== Conditional jump or move depends on uninitialised value(s) ==12388== at 0x4E63408: internal_utf8_loop (loop.c:298) ==12388== by 0x4E63408: __gconv_transform_internal_utf8 (skeleton.c:609) ==12388== by 0x4EF9EF4: wcsrtombs (wcsrtombs.c:110) ==12388== by 0x4E7FB20: wcstombs (wcstombs.c:34) ==12388== by 0x547A3F: ??? (in /usr/bin/python3.6) ==12388== by 0x63345D: _Py_stat (in /usr/bin/python3.6) ==12388== by 0x5BA640: ??? (in /usr/bin/python3.6) ==12388== by 0x551B80: ??? (in /usr/bin/python3.6) ==12388== by 0x5AA6EB: _PyObject_FastCallKeywords (in /usr/bin/python3.6) ==12388== by 0x50ABB2: ??? (in /usr/bin/python3.6) ==12388== by 0x50C5B8: _PyEval_EvalFrameDefault (in /usr/bin/python3.6) ==12388== by 0x509D47: ??? (in /usr/bin/python3.6) ==12388== by 0x50AA7C: ??? (in /usr/bin/python3.6) ==12388== ==12388== Conditional jump or move depends on uninitialised value(s) ==12388== at 0x4E63411: internal_utf8_loop (loop.c:303) ==12388== by 0x4E63411: __gconv_transform_internal_utf8 (skeleton.c:609) ==12388== by 0x4EF9EF4: wcsrtombs (wcsrtombs.c:110) ==12388== by 0x4E7FB20: wcstombs (wcstombs.c:34) ==12388== by 0x547A3F: ??? (in /usr/bin/python3.6) ==12388== by 0x63345D: _Py_stat (in /usr/bin/python3.6) ==12388== by 0x5BA640: ??? (in /usr/bin/python3.6) ==12388== by 0x551B80: ??? (in /usr/bin/python3.6) ==12388== by 0x5AA6EB: _PyObject_FastCallKeywords (in /usr/bin/python3.6) ==12388== by 0x50ABB2: ??? (in /usr/bin/python3.6) ==12388== by 0x50C5B8: _PyEval_EvalFrameDefault (in /usr/bin/python3.6) ==12388== by 0x509D47: ??? (in /usr/bin/python3.6) ==12388== by 0x50AA7C: ??? (in /usr/bin/python3.6) ==12388== ==12388== Conditional jump or move depends on uninitialised value(s) ==12388== at 0x4E63458: internal_utf8_loop (loop.c:298) ==12388== by 0x4E63458: __gconv_transform_internal_utf8 (skeleton.c:609) ==12388== by 0x4EF9EF4: wcsrtombs (wcsrtombs.c:110) ==12388== by 0x4E7FB20: wcstombs (wcstombs.c:34) ==12388== by 0x547A3F: ??? (in /usr/bin/python3.6) ==12388== by 0x63345D: _Py_stat (in /usr/bin/python3.6) ==12388== by 0x5BA640: ??? (in /usr/bin/python3.6) ==12388== by 0x551B80: ??? (in /usr/bin/python3.6) ==12388== by 0x5AA6EB: _PyObject_FastCallKeywords (in /usr/bin/python3.6) ==12388== by 0x50ABB2: ??? (in /usr/bin/python3.6) ==12388== by 0x50C5B8: _PyEval_EvalFrameDefault (in /usr/bin/python3.6) ==12388== by 0x509D47: ??? (in /usr/bin/python3.6) ==12388== by 0x50AA7C: ??? (in /usr/bin/python3.6) ==12388== ==12388== Conditional jump or move depends on uninitialised value(s) ==12388== at 0x4FCBCEC: __wcsnlen_avx2 (strlen-avx2.S:103) ==12388== by 0x4EF9EC1: wcsrtombs (wcsrtombs.c:104) ==12388== by 0x4E7FB20: wcstombs (wcstombs.c:34) ==12388== by 0x547A3F: ??? (in /usr/bin/python3.6) ==12388== by 0x547D20: PyUnicode_FSConverter (in /usr/bin/python3.6) ==12388== by 0x4C51E6: ??? (in /usr/bin/python3.6) ==12388== by 0x4F8388: ??? (in /usr/bin/python3.6) ==12388== by 0x4FBD83: ??? (in /usr/bin/python3.6) ==12388== by 0x4FC914: _PyArg_ParseStack_SizeT (in /usr/bin/python3.6) ==12388== by 0x4C6C88: ??? (in /usr/bin/python3.6) ==12388== by 0x50A9D9: ??? (in /usr/bin/python3.6) ==12388== by 0x50C5B8: _PyEval_EvalFrameDefault (in /usr/bin/python3.6) ==12388== ==12388== ==12388== HEAP SUMMARY: ==12388== in use at exit: 2,765,467 bytes in 1,647 blocks ==12388== total heap usage: 31,862 allocs, 30,215 frees, 60,901,879 bytes allocated ==12388== ==12388== LEAK SUMMARY: ==12388== definitely lost: 0 bytes in 0 blocks ==12388== indirectly lost: 0 bytes in 0 blocks ==12388== possibly lost: 146,155 bytes in 87 blocks ==12388== still reachable: 2,619,312 bytes in 1,560 blocks ==12388== suppressed: 0 bytes in 0 blocks ==12388== Rerun with --leak-check=full to see details of leaked memory ==12388== ==12388== For counts of detected and suppressed errors, rerun with: -v ==12388== Use --track-origins=yes to see where uninitialised values come from ==12388== ERROR SUMMARY: 6672 errors from 5 contexts (suppressed: 11140 from 633) ================================================================================ To pass this verification check the number of bytes that are "definitely lost" or "indirectly lost" must be zero. NOTE that Valgrind will typically report non-zero "possibly lost" bytes due to Python's internal memory allocation and garbage collection that it does not monitor. Full Valgrind output written to auxiliary file "valgrind.out" Grade: P Comment: No memory leak detected.