==2178772== Memcheck, a memory error detector
==2178772== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2178772== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==2178772== Command: /home/github/actions-runner/_work/Chaste/Chaste/Chaste/chaste-build-dir/mesh/test/TestImmersedBoundary2dArrays -malloc_debug -malloc_dump -memory_info
==2178772== Parent PID: 2178034
==2178772== 
==2178772== Invalid free() / delete / delete[] / realloc()
==2178772==    at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2178772==    by 0x5B38103: ImmersedBoundaryMesh<2u, 2u>::Clear() (ImmersedBoundaryMesh.cpp:604)
==2178772==    by 0x5B36979: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:524)
==2178772==    by 0x5B36A59: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:525)
==2178772==    by 0x5BCA1F3: ImmersedBoundaryPalisadeMeshGenerator::~ImmersedBoundaryPalisadeMeshGenerator() (ImmersedBoundaryPalisadeMeshGenerator.cpp:356)
==2178772==    by 0x12F936: TestImmersedBoundary2dArrays::TestMethods() (TestImmersedBoundary2dArrays.hpp:139)
==2178772==    by 0x12FAAE: TestDescription_TestImmersedBoundary2dArrays_TestMethods::runTest() (TestImmersedBoundary2dArrays.cpp:30)
==2178772==    by 0x12974A: CxxTest::RealTestDescription::run() (RealDescriptions.cpp:96)
==2178772==    by 0x12C760: CxxTest::TestRunner::runTest(CxxTest::TestDescription&) (TestRunner.h:74)
==2178772==    by 0x12C645: CxxTest::TestRunner::runSuite(CxxTest::SuiteDescription&) (TestRunner.h:61)
==2178772==    by 0x12C4EB: CxxTest::TestRunner::runWorld() (TestRunner.h:46)
==2178772==    by 0x12C3AD: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23)
==2178772==    by 0x12C9C1: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47)
==2178772==    by 0x128715: main (TestImmersedBoundary2dArrays.cpp:18)
==2178772==  Address 0x122efa20 is 0 bytes inside a block of size 48 free'd
==2178772==    at 0x484BB6F: operator delete(void*, unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2178772==    by 0x5ABE789: ImmersedBoundaryElement<2u, 2u>::~ImmersedBoundaryElement() (ImmersedBoundaryElement.cpp:63)
==2178772==    by 0x5ABE7C9: ImmersedBoundaryElement<2u, 2u>::~ImmersedBoundaryElement() (ImmersedBoundaryElement.cpp:65)
==2178772==    by 0x5B37F92: ImmersedBoundaryMesh<2u, 2u>::Clear() (ImmersedBoundaryMesh.cpp:583)
==2178772==    by 0x5B36979: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:524)
==2178772==    by 0x5B36A59: ImmersedBoundaryMesh<2u, 2u>::~ImmersedBoundaryMesh() (ImmersedBoundaryMesh.cpp:525)
==2178772==    by 0x5BCA1F3: ImmersedBoundaryPalisadeMeshGenerator::~ImmersedBoundaryPalisadeMeshGenerator() (ImmersedBoundaryPalisadeMeshGenerator.cpp:356)
==2178772==    by 0x12F936: TestImmersedBoundary2dArrays::TestMethods() (TestImmersedBoundary2dArrays.hpp:139)
==2178772==    by 0x12FAAE: TestDescription_TestImmersedBoundary2dArrays_TestMethods::runTest() (TestImmersedBoundary2dArrays.cpp:30)
==2178772==    by 0x12974A: CxxTest::RealTestDescription::run() (RealDescriptions.cpp:96)
==2178772==    by 0x12C760: CxxTest::TestRunner::runTest(CxxTest::TestDescription&) (TestRunner.h:74)
==2178772==    by 0x12C645: CxxTest::TestRunner::runSuite(CxxTest::SuiteDescription&) (TestRunner.h:61)
==2178772==    by 0x12C4EB: CxxTest::TestRunner::runWorld() (TestRunner.h:46)
==2178772==    by 0x12C3AD: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23)
==2178772==    by 0x12C9C1: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47)
==2178772==    by 0x128715: main (TestImmersedBoundary2dArrays.cpp:18)
==2178772==  Block was alloc'd at
==2178772==    at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2178772==    by 0x5B3621F: ImmersedBoundaryMesh<2u, 2u>::ImmersedBoundaryMesh(std::vector<Node<2u>*, std::allocator<Node<2u>*> >, std::vector<ImmersedBoundaryElement<2u, 2u>*, std::allocator<ImmersedBoundaryElement<2u, 2u>*> >, std::vector<ImmersedBoundaryElement<1u, 2u>*, std::allocator<ImmersedBoundaryElement<1u, 2u>*> >, unsigned int, unsigned int) (ImmersedBoundaryMesh.cpp:134)
==2178772==    by 0x5BC9A15: ImmersedBoundaryPalisadeMeshGenerator::ImmersedBoundaryPalisadeMeshGenerator(unsigned int, unsigned int, double, double, double, bool, bool, bool, unsigned int, double) (ImmersedBoundaryPalisadeMeshGenerator.cpp:350)
==2178772==    by 0x12E659: TestImmersedBoundary2dArrays::TestMethods() (TestImmersedBoundary2dArrays.hpp:56)
==2178772==    by 0x12FAAE: TestDescription_TestImmersedBoundary2dArrays_TestMethods::runTest() (TestImmersedBoundary2dArrays.cpp:30)
==2178772==    by 0x12974A: CxxTest::RealTestDescription::run() (RealDescriptions.cpp:96)
==2178772==    by 0x12C760: CxxTest::TestRunner::runTest(CxxTest::TestDescription&) (TestRunner.h:74)
==2178772==    by 0x12C645: CxxTest::TestRunner::runSuite(CxxTest::SuiteDescription&) (TestRunner.h:61)
==2178772==    by 0x12C4EB: CxxTest::TestRunner::runWorld() (TestRunner.h:46)
==2178772==    by 0x12C3AD: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23)
==2178772==    by 0x12C9C1: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47)
==2178772==    by 0x128715: main (TestImmersedBoundary2dArrays.cpp:18)
==2178772== 
{
   <insert_a_suppression_name_here>
   Memcheck:Free
   fun:_ZdlPvm
   fun:_ZN20ImmersedBoundaryMeshILj2ELj2EE5ClearEv
   fun:_ZN20ImmersedBoundaryMeshILj2ELj2EED1Ev
   fun:_ZN20ImmersedBoundaryMeshILj2ELj2EED0Ev
   fun:_ZN37ImmersedBoundaryPalisadeMeshGeneratorD1Ev
   fun:_ZN28TestImmersedBoundary2dArrays11TestMethodsEv
   fun:_ZN56TestDescription_TestImmersedBoundary2dArrays_TestMethods7runTestEv
   fun:_ZN7CxxTest19RealTestDescription3runEv
   fun:_ZN7CxxTest10TestRunner7runTestERNS_15TestDescriptionE
   fun:_ZN7CxxTest10TestRunner8runSuiteERNS_16SuiteDescriptionE
   fun:_ZN7CxxTest10TestRunner8runWorldEv
   fun:_ZN7CxxTest10TestRunner11runAllTestsERNS_12TestListenerE
   fun:_ZN7CxxTest14ErrorFormatter3runEv
   fun:main
}
==2178772== 
==2178772== FILE DESCRIPTORS: 9 open (3 std) at exit.
==2178772== Open file descriptor 12:
==2178772==    at 0x81E422D: pipe (pipe.c:29)
==2178772==    by 0x100BB07D: ???
==2178772==    by 0xB9F24CB: orte_init (in /usr/lib/x86_64-linux-gnu/libopen-rte.so.40.30.2)
==2178772==    by 0x7A07418: ompi_mpi_init (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2)
==2178772==    by 0x79A0D7A: PMPI_Init_thread (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2)
==2178772==    by 0x6675D38: PetscInitialize (pinit.c:924)
==2178772==    by 0x654C2DF: PetscSetupUtils::InitialisePetsc() (PetscSetupUtils.cpp:80)
==2178772==    by 0x654C32D: PetscSetupUtils::CommonSetup() (PetscSetupUtils.cpp:88)
==2178772==    by 0x12E481: PetscSetup::setUpWorld() (FakePetscSetup.hpp:70)
==2178772==    by 0x129F13: CxxTest::RealWorldDescription::setUp() (RealDescriptions.cpp:266)
==2178772==    by 0x12C4B2: CxxTest::TestRunner::runWorld() (TestRunner.h:43)
==2178772==    by 0x12C3AD: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23)
==2178772==    by 0x12C9C1: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47)
==2178772==    by 0x128715: main (TestImmersedBoundary2dArrays.cpp:18)
==2178772== 
==2178772== Open file descriptor 8: /dev/shm/open_mpi.0000
==2178772==    at 0x81E8BCC: __open_nocancel (open64_nocancel.c:39)
==2178772==    by 0x816CC4F: shm_open@@GLIBC_2.34 (shm_open.c:40)
==2178772==    by 0x78FF822: ???
==2178772==    by 0x78FF96F: ???
==2178772==    by 0xBA976DC: ??? (in /usr/lib/x86_64-linux-gnu/libopen-pal.so.40.30.2)
==2178772==    by 0xBA97938: opal_shmem_base_select (in /usr/lib/x86_64-linux-gnu/libopen-pal.so.40.30.2)
==2178772==    by 0xBA4D922: opal_init (in /usr/lib/x86_64-linux-gnu/libopen-pal.so.40.30.2)
==2178772==    by 0xB9F22DB: orte_init (in /usr/lib/x86_64-linux-gnu/libopen-rte.so.40.30.2)
==2178772==    by 0x7A07418: ompi_mpi_init (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2)
==2178772==    by 0x79A0D7A: PMPI_Init_thread (in /usr/lib/x86_64-linux-gnu/libmpi.so.40.30.2)
==2178772==    by 0x6675D38: PetscInitialize (pinit.c:924)
==2178772==    by 0x654C2DF: PetscSetupUtils::InitialisePetsc() (PetscSetupUtils.cpp:80)
==2178772==    by 0x654C32D: PetscSetupUtils::CommonSetup() (PetscSetupUtils.cpp:88)
==2178772==    by 0x12E481: PetscSetup::setUpWorld() (FakePetscSetup.hpp:70)
==2178772==    by 0x129F13: CxxTest::RealWorldDescription::setUp() (RealDescriptions.cpp:266)
==2178772==    by 0x12C4B2: CxxTest::TestRunner::runWorld() (TestRunner.h:43)
==2178772==    by 0x12C3AD: CxxTest::TestRunner::runAllTests(CxxTest::TestListener&) (TestRunner.h:23)
==2178772==    by 0x12C9C1: CxxTest::ErrorFormatter::run() (ErrorFormatter.h:47)
==2178772==    by 0x128715: main (TestImmersedBoundary2dArrays.cpp:18)
==2178772== 
==2178772== Open file descriptor 116:
==2178772==    <inherited from parent>
==2178772== 
==2178772== Open file descriptor 112:
==2178772==    <inherited from parent>
==2178772== 
==2178772== Open file descriptor 4: /home/github/actions-runner/_work/Chaste/Chaste/Chaste/chaste-build-dir/memtest/TestImmersedBoundary2dArrays_valgrind.txt
==2178772==    <inherited from parent>
==2178772== 
==2178772== Open file descriptor 3: /home/github/actions-runner/_work/Chaste/Chaste/Chaste/chaste-build-dir/Testing/Temporary/LastTest.log.tmp
==2178772==    <inherited from parent>
==2178772== 
==2178772== 
==2178772== HEAP SUMMARY:
==2178772==     in use at exit: 703,183 bytes in 9,378 blocks
==2178772==   total heap usage: 52,138 allocs, 42,765 frees, 1,360,346,394 bytes allocated
==2178772== 
==2178772== LEAK SUMMARY:
==2178772==    definitely lost: 0 bytes in 0 blocks
==2178772==    indirectly lost: 0 bytes in 0 blocks
==2178772==      possibly lost: 0 bytes in 0 blocks
==2178772==    still reachable: 2,576 bytes in 3 blocks
==2178772==         suppressed: 700,607 bytes in 9,375 blocks
==2178772== Reachable blocks (those to which a pointer was found) are not shown.
==2178772== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==2178772== 
==2178772== For lists of detected and suppressed errors, rerun with: -s
==2178772== ERROR SUMMARY: 5 errors from 1 contexts (suppressed: 37 from 37)
