PieterTack / polycap

Polycapillary X-ray raytracing
GNU General Public License v3.0
3 stars 3 forks source link

python_profile: additional functionality towards defining and verifying profile shapes #63

Closed PieterTack closed 3 years ago

PieterTack commented 4 years ago

closes issue #62

PieterTack commented 4 years ago

Unittests?? 😄

yup, ging ik nog maken :)

PieterTack commented 4 years ago

Is nog work in progress, maar krijg vreemde error by compilen, in de unit test bij assert(nid == profile->nmax); krijg ik dereferencing pointer to incomplete type error

Ook bij andere keren dat ik profile->nmax gebruik, maar kzie niet in wat er fout aan is (overal anders in de code gebruik ik die profile->nmax zonder problemen)

tschoonj commented 4 years ago

Is nog work in progress, maar krijg vreemde error by compilen, in de unit test bij assert(nid == profile->nmax); krijg ik dereferencing pointer to incomplete type error

Ook bij andere keren dat ik profile->nmax gebruik, maar kzie niet in wat er fout aan is (overal anders in de code gebruik ik die profile->nmax zonder problemen)

Ge zult moeten de header include die de struct definitie van polycap_profile bevat. polycap-private.h denk ik.

PieterTack commented 4 years ago

Is nog work in progress, maar krijg vreemde error by compilen, in de unit test bij assert(nid == profile->nmax); krijg ik dereferencing pointer to incomplete type error Ook bij andere keren dat ik profile->nmax gebruik, maar kzie niet in wat er fout aan is (overal anders in de code gebruik ik die profile->nmax zonder problemen)

Ge zult moeten de header include die de struct definitie van polycap_profile bevat. polycap-private.h denk ik.

Kvermoedde ook zoiets, maar is toch raar dat die vorige tests in tests/profile.c dan op zich geen probleem hebben dat header er niet is? Oke, zij checken natuurlijk niet de inhoud van de struct, maar toch :P Absurd in mijn hoofd.

tschoonj commented 4 years ago

Nee dat is niet absurd nochtans 😄

Pas wanneer je de struct member variables will gebruiken moet de compiler weten hoe de struct er ook effectief uit ziet want de offset naar de members moet kunnen berekend worden.

Als je enkel pointers gebruikt is dat niet nodig, aangezien je enkel een geheugen adres doorgeeft.

PieterTack commented 4 years ago

todo:

PieterTack commented 4 years ago

@tschoonj Hm, hoe stel jij voor om de Profile python class op te stellen zodat hij enerzijds kan opgesteld worden met de automatische shape definition (zoals vroeger reeds was), maar ook door de arrays mee te geven? Kijk ik in Profile.cinit naar het aantal argumenten en besluit ik aan de hand daarvan welkeen de user bedoelt, ...? Of maak ik in de huidige polycap.Profile.set_profile eerst een algemeen profile (met irrelevante inhoud), die ik dan overschrijf...? Wat probleempjes om het echt werkende te krijgen in tests/python.py basically :P

tschoonj commented 4 years ago

Ik zou dat aanpakken met een classmethod Profile.new_from_arrays die al de nodige argumenten kan aannemen. Daarna een dummy Profile object maken (zoals in Source.get_photon()) en dan de profile pointer toewijzen aan Profile.profile.

PieterTack commented 4 years ago

Ik zou dat aanpakken met een classmethod Profile.new_from_arrays die al de nodige argumenten kan aannemen. Daarna een dummy Profile object maken (zoals in Source.get_photon()) en dan de profile pointer toewijzen aan Profile.profile.

Ik raak er niet wijs uit :( Alles wat ik probeer klaagt hij dat hij een Profile object moet krijgen, maar geen numpy ndarray in de tests/python.py. Kheb al een aantal zaken geprobeert, waarvan laatste commit me de deftigste methode lijkt, maar nog steeds errors... Of bedoelde je om een dummy Profile te maken in de tests, en die dan daar te overschrijven? Dat lijkt me wat clunky in gebruik...

tschoonj commented 4 years ago

Zal er morgen eens naar kijken.

PieterTack commented 4 years ago

@tschoonj Ben hier bezig met ''add photon and source leak event get functions for python'' Hiertoe was ik eerst allemaal functies aan het schrijven in C om bvb polycap_photon_get_extleak_coords(), polycap_photon_get_extleak_direction(), ... Echter dit houdt het designen van heel veel subfuncties in. Ik vroeg me af of het niet eleganter is om eenvoudigweg in python een leak class te definieren, die eigenlijk gelijk is aan de _polycap_leak struct, zodat je dan in python gewoon de coordinaten kan verkrijgen door bvb extleak_coords = Leak.coords

Ik vraag me echter af of zoiets kan in python, zonder eerst in C alle aparte ..._get_... functies te moeten schrijven. (vb als iemand een Extleak class in python wil maken dat ze moeten extleak = polycap.Photon.Extleak() En dan verder gewoon kunnen x = extleak.coords.x Basically dus dat je vanuit C de structure rechtstreeks returned als een dictionairy ofzo in Python (als ik de juiste terminologie gebruik?)

Enfin, kweet niet of je snapt wat ik precies bedoel... Maar nu ben ik get functies aan het schrijven in C voor elke aparte sub-variabele van de structures, en da's nogal arbeidsintensief en doet me denken dat er een elegantere manier moet bestaan...

EDIT: Heb deze gevonden https://stackoverflow.com/questions/35988/c-like-structures-in-python/31062667 denk dat ik daar mss wel het een ander mee kan doen?

tschoonj commented 4 years ago

Wat denkt ge van polycap_leak to promoveren naar de publieke API, tezamen met zijn struct definitie? Dan kunt ge dat ook gebruiken als return type voor uw API, en kan je makkelijk een python class Leak schrijven die toegang geeft tot al die member variables also property.

PieterTack commented 4 years ago

Wat denkt ge van polycap_leak to promoveren naar de publieke API, tezamen met zijn struct definitie? Dan kunt ge dat ook gebruiken als return type voor uw API, en kan je makkelijk een python class Leak schrijven die toegang geeft tot al die member variables also property.

Klinkt goed. Zal eens kijken of ik erin slaag :P Ben ook niet mee wat je bedoelt met property, maar misschien raak ik er wel wijs uit :)

tschoonj commented 4 years ago

Kijk eens naar:

https://github.com/PieterTack/polycap/blob/84fb56a578a74a213720289ed9a6ee2fea2ea8b4/python/polycap.pyx#L390-L395

Best ook eens algemeen op te zoeken hoe properties werken in Python. In dit geval zijn enkel de getters nodig, niet de setters!

PieterTack commented 4 years ago

Waarom kozen we er eigenlijk voor om in Photon functies te maken zoals Photon.get_exit_coords ipv bijvoorbeeld de exit_coords een object van Photon te maken, zodat men eenvoudigweg Photon.exit_coords[0:3] zou kunnen accessen ofzo? Idealer zou mss nog zijn voor Photon.exit_coords.x zoals in C, maar kbegrijp dat zoiets niet echt compatibel is in Python (met structures die daar niet echt bestaan)

Nuja, ik probeer verder met Leak :) Misschien kom ik vanzelf uit op de issues die me leren waarom bovenstaande niet gemakkelijk/mogelijk is :)

PieterTack commented 4 years ago

Waarom kozen we er eigenlijk voor om in Photon functies te maken zoals Photon.get_exit_coords ipv bijvoorbeeld de exit_coords een object van Photon te maken, zodat men eenvoudigweg Photon.exit_coords[0:3] zou kunnen accessen ofzo? Idealer zou mss nog zijn voor Photon.exit_coords.x zoals in C, maar kbegrijp dat zoiets niet echt compatibel is in Python (met structures die daar niet echt bestaan)

Nuja, ik probeer verder met Leak :) Misschien kom ik vanzelf uit op de issues die me leren waarom bovenstaande niet gemakkelijk/mogelijk is :)

Naar ik begrijp zouden we in Python onder Photon van: def get_exit_coords(): naar

@property
def exit_coords():

kunnen gaan, en zou het dus vanzelf die getter callen en dus werken zoals voorheen?

tschoonj commented 4 years ago

Waarom kozen we er eigenlijk voor om in Photon functies te maken zoals Photon.get_exit_coords ipv bijvoorbeeld de exit_coords een object van Photon te maken, zodat men eenvoudigweg Photon.exit_coords[0:3] zou kunnen accessen ofzo? Idealer zou mss nog zijn voor Photon.exit_coords.x zoals in C, maar kbegrijp dat zoiets niet echt compatibel is in Python (met structures die daar niet echt bestaan) Nuja, ik probeer verder met Leak :) Misschien kom ik vanzelf uit op de issues die me leren waarom bovenstaande niet gemakkelijk/mogelijk is :)

Naar ik begrijp zouden we in Python onder Photon van: def get_exit_coords(): naar

@property
def exit_coords():

kunnen gaan, en zou het dus vanzelf die getter callen en dus werken zoals voorheen?

Niet vanzelf, er zal expliciet een call moeten gemaakt worden. Ook zullen beide een tijdje moeten behouden blijven om backwards compatibility niet te verbreken.

Waarom kozen we er eigenlijk voor om in Photon functies te maken zoals Photon.get_exit_coords ipv bijvoorbeeld de exit_coords een object van Photon te maken, zodat men eenvoudigweg Photon.exit_coords[0:3] zou kunnen accessen ofzo? Idealer zou mss nog zijn voor Photon.exit_coords.x zoals in C, maar kbegrijp dat zoiets niet echt compatibel is in Python (met structures die daar niet echt bestaan)

Mja, dat is eigenlijk mogelijk, en had ik eigenlijk moeten doen maar ik heb er simpelweg niet aan gedacht indertijd. Simpelst is waarschijnlijk vector2tuple aan te passen zodanig dat het een namedtuple produceert met x, y en z als fieldnames.

Nuja, ik probeer verder met Leak :) Misschien kom ik vanzelf uit op de issues die me leren waarom bovenstaande niet gemakkelijk/mogelijk is :)

PieterTack commented 4 years ago

Waarom kozen we er eigenlijk voor om in Photon functies te maken zoals Photon.get_exit_coords ipv bijvoorbeeld de exit_coords een object van Photon te maken, zodat men eenvoudigweg Photon.exit_coords[0:3] zou kunnen accessen ofzo? Idealer zou mss nog zijn voor Photon.exit_coords.x zoals in C, maar kbegrijp dat zoiets niet echt compatibel is in Python (met structures die daar niet echt bestaan) Nuja, ik probeer verder met Leak :) Misschien kom ik vanzelf uit op de issues die me leren waarom bovenstaande niet gemakkelijk/mogelijk is :)

Naar ik begrijp zouden we in Python onder Photon van: def get_exit_coords(): naar

@property
def exit_coords():

kunnen gaan, en zou het dus vanzelf die getter callen en dus werken zoals voorheen?

Niet vanzelf, er zal expliciet een call moeten gemaakt worden. Ook zullen beide een tijdje moeten behouden blijven om backwards compatibility niet te verbreken.

Waarom kozen we er eigenlijk voor om in Photon functies te maken zoals Photon.get_exit_coords ipv bijvoorbeeld de exit_coords een object van Photon te maken, zodat men eenvoudigweg Photon.exit_coords[0:3] zou kunnen accessen ofzo? Idealer zou mss nog zijn voor Photon.exit_coords.x zoals in C, maar kbegrijp dat zoiets niet echt compatibel is in Python (met structures die daar niet echt bestaan)

Mja, dat is eigenlijk mogelijk, en had ik eigenlijk moeten doen maar ik heb er simpelweg niet aan gedacht indertijd. Simpelst is waarschijnlijk vector2tuple aan te passen zodanig dat het een namedtuple produceert met x, y en z als fieldnames.

Nuja, ik probeer verder met Leak :) Misschien kom ik vanzelf uit op de issues die me leren waarom bovenstaande niet gemakkelijk/mogelijk is :)

Oke, zal dat dan proberen direct invoegen :) Wat denk je dat meest intuitieve is? a) zoals nu, tuple returned en user weet zelf dat index 0=x, 1=y, 2=z b) met NamedTuple zodat user .x, .y, .z, .weight, ... kan gebruiken?

tschoonj commented 4 years ago

Een named tuple is nog altijd een tuple, dus je kan die nog altijd gebruiken met array indices. Door deze verandering zou je dus niet de backwards compatibility verbreken.

PieterTack commented 4 years ago

@tschoonj kan je mijn laatste commit eens bekijken en wat zaken aanduiden waar je duidelijk merkt waar ik de mist in ga? Kzit wat verveeld met hoe ik de leak struct array uit C elegant kan exporteren naar Python, maar evengoed zijn mijn huidige compiler crash geweten aan andere puur-Python gerelateerde zaken.

tschoonj commented 4 years ago

Hey Pieter,

Heb er eens naar gekeken en er is nog wel wat werk aan: je zal moeten werken met arrays van pointers naar polycap_leak in de C code. Gebruik dus intern:

int n_extleak = 0;
polycap_leak **extleak = NULL;

// add a leak
polycap_leak *new_leak = polycap_leak_new(..., ...); // mallocs a polycap_leak struct, and initialise it. Perhaps this method should not be public?

extleak = realloc(extleak, ++n_extleak * sizeof(polycap_leak*));
extleak[n_extleak - 1] = new_leak;

Hierdoor zal ook dit moeten veranderen:

-bool polycap_photon_get_extleak_data(polycap_photon *photon, polycap_leak **leaks, int64_t *n_leaks, polycap_error **error)
+bool polycap_photon_get_extleak_data(polycap_photon *photon, polycap_leak ***leaks, int64_t *n_leaks, polycap_error **error)
PieterTack commented 4 years ago

zoiets dan? Kzit nog steeds in de war met hoe die polycap_leak ***leaks uit polycap_photon_get_extleak_data() dan juist naar python te 'converteren'. Ik vermoed dat mijn grootste issues zit in de lijn: rv = Leak() * n_leaks

lgtm-com[bot] commented 4 years ago

This pull request introduces 1 alert when merging 565789080f555f07963f2d145c2c5ebb0a759fb0 into 84fb56a578a74a213720289ed9a6ee2fea2ea8b4 - view on LGTM.com

new alerts:

PieterTack commented 4 years ago

zoiets dan? Kzit nog steeds in de war met hoe die polycap_leak ***leaks uit polycap_photon_get_extleak_data() dan juist naar python te 'converteren'. Ik vermoed dat mijn grootste issues zit in de lijn: rv = Leak() * n_leaks

@tschoonj enig idee?

tschoonj commented 4 years ago

Heb niks getest, maar zou moeten werken als ik n_refl juist gebruikt heb.

Dit kan wel nog serieus verbeterd worden, deze implementatie is nogal naïef.

tschoonj commented 4 years ago

De C leak tests falen trouwens al dus ik veronderstel dat er daar ook al problemen zijn...

PieterTack commented 4 years ago

@tschoonj Valgrind geeft op ./tests/leaks een boel memleaks... Ksnap echter niet waarom op die plaatsen.

Het zijn steeds issues met mallocs die dus duidelijk niet eerst goed gefreed werden wanneer photon werd hergebruikt, maar kzie niet waarom het niet juist zou gefreed zijn.

Kvermoed/hoop dat de huidige leaks test faalt door een memory issue...

tschoonj commented 4 years ago

Hey Pieter, zal er morgen eens naar kijken.

tschoonj commented 4 years ago

Hey Pieter,

Op CentOS8 krijg ik volgende output:

$ valgrind --tool=memcheck ./leaks 
==89371== Memcheck, a memory error detector
==89371== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==89371== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==89371== Command: ./leaks
==89371== 
------
x: 0.048777, y: 0.000000, z: 9.000000 
leaks: ../../tests/leaks.c:486: test_polycap_capil_leak: Assertion `photon->intleak[0]->coords.z - 8.999072 < 0.0000005' failed.
==89371== 
==89371== Process terminating with default action of signal 6 (SIGABRT): dumping core
==89371==    at 0x7D2B70F: raise (in /usr/lib64/libc-2.28.so)
==89371==    by 0x7D15B24: abort (in /usr/lib64/libc-2.28.so)
==89371==    by 0x7D159F8: __assert_fail_base.cold.0 (in /usr/lib64/libc-2.28.so)
==89371==    by 0x7D23CC5: __assert_fail (in /usr/lib64/libc-2.28.so)
==89371==    by 0x4052E4: test_polycap_capil_leak (leaks.c:486)
==89371==    by 0x402B21: main (leaks.c:1130)
==89371== 
==89371== HEAP SUMMARY:
==89371==     in use at exit: 68,808 bytes in 526 blocks
==89371==   total heap usage: 6,119 allocs, 5,593 frees, 9,481,194 bytes allocated
==89371== 
==89371== LEAK SUMMARY:
==89371==    definitely lost: 4,016 bytes in 499 blocks
==89371==    indirectly lost: 0 bytes in 0 blocks
==89371==      possibly lost: 632 bytes in 13 blocks
==89371==    still reachable: 64,160 bytes in 14 blocks
==89371==         suppressed: 0 bytes in 0 blocks
==89371== Rerun with --leak-check=full to see details of leaked memory
==89371== 
==89371== For lists of detected and suppressed errors, rerun with: -s
==89371== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Aborted (core dumped)

Dus geen errors gevonden vooraleer de falende assert bereikt wordt.

Wat krijg jij misschien?

PieterTack commented 4 years ago

Aja, ik doe valgrind --leak-check=full ./tests/leaks en krijg:

==96437== Memcheck, a memory error detector
==96437== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==96437== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==96437== Command: ./tests/leaks
==96437== 
------
x: 0.048777, y: 0.000000, z: 9.000000 
leaks: ../../tests/leaks.c:486: test_polycap_capil_leak: Assertion `photon->intleak[0]->coords.z - 8.999072 < 0.0000005' failed.
==96437== 
==96437== Process terminating with default action of signal 6 (SIGABRT): dumping core
==96437==    at 0x7D2B70F: raise (in /usr/lib64/libc-2.28.so)
==96437==    by 0x7D15B24: abort (in /usr/lib64/libc-2.28.so)
==96437==    by 0x7D159F8: __assert_fail_base.cold.0 (in /usr/lib64/libc-2.28.so)
==96437==    by 0x7D23CC5: __assert_fail (in /usr/lib64/libc-2.28.so)
==96437==    by 0x4052E4: test_polycap_capil_leak (leaks.c:486)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== HEAP SUMMARY:
==96437==     in use at exit: 68,808 bytes in 526 blocks
==96437==   total heap usage: 6,119 allocs, 5,593 frees, 9,481,194 bytes allocated
==96437== 
==96437== 8 bytes in 1 blocks are possibly lost in loss record 3 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x404246: test_polycap_capil_leak (leaks.c:388)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are possibly lost in loss record 4 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x40425A: test_polycap_capil_leak (leaks.c:389)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are possibly lost in loss record 5 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x40E1F4: polycap_photon_scatf (polycap-photon.c:70)
==96437==    by 0x40429C: test_polycap_capil_leak (leaks.c:395)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are possibly lost in loss record 6 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x40E215: polycap_photon_scatf (polycap-photon.c:76)
==96437==    by 0x40429C: test_polycap_capil_leak (leaks.c:395)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are possibly lost in loss record 7 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are possibly lost in loss record 8 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x40DE91: polycap_leak_new (polycap-photon.c:1005)
==96437==    by 0x4140AE: polycap_capil_reflect (polycap-capil.c:822)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 9 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==96437==    by 0x40333B: test_polycap_capil_leak (leaks.c:171)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 10 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==96437==    by 0x403A04: test_polycap_capil_leak (leaks.c:265)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 11 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 12 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 13 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 14 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 15 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 16 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 8 bytes in 1 blocks are definitely lost in loss record 17 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 16 bytes in 1 blocks are possibly lost in loss record 19 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 16 bytes in 2 blocks are possibly lost in loss record 20 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x40DE91: polycap_leak_new (polycap-photon.c:1005)
==96437==    by 0x413FEC: polycap_capil_reflect (polycap-capil.c:838)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 16 bytes in 1 blocks are definitely lost in loss record 21 of 43
==96437==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 16 bytes in 1 blocks are definitely lost in loss record 22 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 16 bytes in 1 blocks are definitely lost in loss record 23 of 43
==96437==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 16 bytes in 2 blocks are definitely lost in loss record 24 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437== 
==96437== 16 bytes in 2 blocks are definitely lost in loss record 25 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437== 
==96437== 16 bytes in 2 blocks are definitely lost in loss record 26 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 16 bytes in 2 blocks are definitely lost in loss record 27 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 96 bytes in 1 blocks are possibly lost in loss record 31 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x40DE3D: polycap_leak_new (polycap-photon.c:993)
==96437==    by 0x4140AE: polycap_capil_reflect (polycap-capil.c:822)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 192 bytes in 2 blocks are possibly lost in loss record 32 of 43
==96437==    at 0x4C30EDB: malloc (vg_replace_malloc.c:309)
==96437==    by 0x40DE3D: polycap_leak_new (polycap-photon.c:993)
==96437==    by 0x413FEC: polycap_capil_reflect (polycap-capil.c:838)
==96437==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 264 bytes in 1 blocks are possibly lost in loss record 33 of 43
==96437==    at 0x4C331EA: calloc (vg_replace_malloc.c:762)
==96437==    by 0x40D10D: polycap_photon_new (polycap-photon.c:118)
==96437==    by 0x404219: test_polycap_capil_leak (leaks.c:383)
==96437==    by 0x402B21: main (leaks.c:1130)
==96437== 
==96437== 1,440 bytes in 180 blocks are definitely lost in loss record 34 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437== 
==96437== 2,392 bytes in 299 blocks are definitely lost in loss record 35 of 43
==96437==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==96437==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==96437==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==96437==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==96437== 
==96437== LEAK SUMMARY:
==96437==    definitely lost: 4,016 bytes in 499 blocks
==96437==    indirectly lost: 0 bytes in 0 blocks
==96437==      possibly lost: 632 bytes in 13 blocks
==96437==    still reachable: 64,160 bytes in 14 blocks
==96437==         suppressed: 0 bytes in 0 blocks
==96437== Reachable blocks (those to which a pointer was found) are not shown.
==96437== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==96437== 
==96437== For lists of detected and suppressed errors, rerun with: -s
==96437== ERROR SUMMARY: 29 errors from 29 contexts (suppressed: 0 from 0)
Aborted (core dumped)
tschoonj commented 4 years ago

Deze zijn hoogstwaarschijnlijk te wijten aan het feit dat uw assert de execution stopt, en dus al uw latere calls om uw structs te free'en niet meer uitgevoerd worden. In elk geval zijn er geen problemen met memory overflow en dergelijke, wat goed nieuws is.

Best is eerst die assert te fixen, en dan nog eens valgrind te laten draaien met --leak-check=full, om zeker te zijn dat al die memory leaks dan weg zijn.

PieterTack commented 4 years ago

Deze zijn hoogstwaarschijnlijk te wijten aan het feit dat uw assert de execution stopt, en dus al uw latere calls om uw structs te free'en niet meer uitgevoerd worden. In elk geval zijn er geen problemen met memory overflow en dergelijke, wat goed nieuws is.

Best is eerst die assert te fixen, en dan nog eens valgrind te laten draaien met --leak-check=full, om zeker te zijn dat al die memory leaks dan weg zijn.

drommels, dan is er toch ergens een reden waarom die Z waarde plots verandert is :P Zal eens moeten speuren, tussen de remote beamtime door :)

PieterTack commented 3 years ago

Hm, net nog eens valgrind laten draaien op ./leaks (tijdens het weekend, want duurt wel even), en hij geeft telkens mem loss errors op lijnen zoals: photon->extleak = realloc(photon->extleak, sizeof(polycap_leak*) * n_leaks); In totaal wel slechts 1.5Mb leak in de hele leaks test, dus valt nog wel mee.

Voorlopig laat ik het zo. Op lange termijn willen we toch al die reallocs vervangen door linked lists. Kga nu eerst verder met python functionality, kwestie dat we de volgende release kunnen pushen en wat google statistics krijgen :)

tschoonj commented 3 years ago

Kunt ge eens de relevante output uit valgrind copy-pasten?

PieterTack commented 3 years ago

Kunt ge eens de relevante output uit valgrind copy-pasten?

[ptack:~/polycap/build] python-profile+ 4m19s 2 ± valgrind --leak-check=full ./tests/leaks
==6331== Memcheck, a memory error detector
==6331== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==6331== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==6331== Command: ./tests/leaks
==6331== 
------
x: 0.048777, y: 0.000000, z: 9.000000 
10% Complete    40 reflections  Last reflection at z=8.997030, d_travel=8.999158
20% Complete    47 reflections  Last reflection at z=8.991667, d_travel=8.993466
30% Complete    36 reflections  Last reflection at z=8.991803, d_travel=8.993092
40% Complete    34 reflections  Last reflection at z=8.995668, d_travel=8.996841
50% Complete    43 reflections  Last reflection at z=8.992889, d_travel=8.994761
60% Complete    35 reflections  Last reflection at z=8.994848, d_travel=8.995635
70% Complete    30 reflections  Last reflection at z=8.984204, d_travel=8.984856
80% Complete    42 reflections  Last reflection at z=8.998412, d_travel=8.999436
90% Complete    46 reflections  Last reflection at z=8.990628, d_travel=8.991757
Average number of reflections: 37.700800, Simulated photons: 3560
Open area Calculated: 0.696364, Simulated: 0.702247
iexit: 2500, no enter: 1060, no trans: 0
10% Complete    40 reflections  Last reflection at z=8.982400, d_travel=8.983704
20% Complete    48 reflections  Last reflection at z=8.997570, d_travel=8.999544
30% Complete    31 reflections  Last reflection at z=8.998070, d_travel=8.999404
40% Complete    40 reflections  Last reflection at z=8.982211, d_travel=8.982419
50% Complete    46 reflections  Last reflection at z=8.988258, d_travel=8.988969
60% Complete    37 reflections  Last reflection at z=8.996395, d_travel=8.997698
70% Complete    48 reflections  Last reflection at z=8.995761, d_travel=8.997663
80% Complete    42 reflections  Last reflection at z=8.977120, d_travel=8.978864
90% Complete    57 reflections  Last reflection at z=8.994905, d_travel=8.996541
Average number of reflections: 38.636800, Simulated photons: 3598
Open area Calculated: 0.696364, Simulated: 0.694830
iexit: 2500, no enter: 1098, no trans: 0
with leak: 0: 0.426199, 1: 0.352827, 2: 0.138732, 3: 0.050540, 4: 0.023813, 5: 0.012853, 6: 0.007209 
no leak: 0: 0.418405, 1: 0.343781, 2: 0.135637, 3: 0.054802, 4: 0.023123, 5: 0.013369, 6: 0.008706 
==6331== 
==6331== HEAP SUMMARY:
==6331==     in use at exit: 1,866,536 bytes in 133,792 blocks
==6331==   total heap usage: 6,121,123 allocs, 5,987,331 frees, 7,004,515,244 bytes allocated
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 11 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 12 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 13 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 14 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 15 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x406888: test_polycap_photon_leak (leaks.c:858)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 16 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x406888: test_polycap_photon_leak (leaks.c:858)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 17 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x406888: test_polycap_photon_leak (leaks.c:858)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 18 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x406888: test_polycap_photon_leak (leaks.c:858)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 19 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x4069A4: test_polycap_photon_leak (leaks.c:882)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 20 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x4069A4: test_polycap_photon_leak (leaks.c:882)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 21 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x4069A4: test_polycap_photon_leak (leaks.c:882)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 22 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40F26E: polycap_photon_launch (polycap-photon.c:790)
==6331==    by 0x406FAB: test_polycap_photon_leak (leaks.c:1010)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 23 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 8 bytes in 1 blocks are definitely lost in loss record 24 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 16 (8 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 28 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x40333B: test_polycap_capil_leak (leaks.c:171)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 16 (8 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 29 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 16 (8 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 30 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 16 bytes in 1 blocks are definitely lost in loss record 31 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 16 bytes in 1 blocks are definitely lost in loss record 32 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 16 bytes in 1 blocks are definitely lost in loss record 33 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 16 (8 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 34 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x4069A4: test_polycap_photon_leak (leaks.c:882)
==6331==    by 0x402B36: main (leaks.c:1133)
==6331== 
==6331== 16 bytes in 1 blocks are definitely lost in loss record 35 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 16 bytes in 1 blocks are definitely lost in loss record 36 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 16 bytes in 2 blocks are definitely lost in loss record 37 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331== 
==6331== 16 bytes in 2 blocks are definitely lost in loss record 38 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 16 bytes in 2 blocks are definitely lost in loss record 39 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 24 (16 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 45 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x404104: test_polycap_capil_leak (leaks.c:365)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 24 (8 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record 46 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331== 
==6331== 24 bytes in 1 blocks are definitely lost in loss record 47 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 24 bytes in 1 blocks are definitely lost in loss record 48 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 24 bytes in 1 blocks are definitely lost in loss record 49 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 24 (16 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 50 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 24 (16 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 51 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40489E: test_polycap_capil_leak (leaks.c:469)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 24 bytes in 2 blocks are definitely lost in loss record 52 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40ACF6: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:854)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 24 bytes in 3 blocks are definitely lost in loss record 53 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 24 bytes in 3 blocks are definitely lost in loss record 54 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 24 bytes in 3 blocks are definitely lost in loss record 55 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 24 bytes in 3 blocks are definitely lost in loss record 56 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 24 bytes in 3 blocks are definitely lost in loss record 57 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 32 (24 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 60 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 32 bytes in 4 blocks are definitely lost in loss record 61 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 32 bytes in 4 blocks are definitely lost in loss record 62 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 32 bytes in 4 blocks are definitely lost in loss record 63 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 32 bytes in 4 blocks are definitely lost in loss record 64 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 32 bytes in 4 blocks are definitely lost in loss record 65 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 40 bytes in 1 blocks are definitely lost in loss record 70 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 40 bytes in 2 blocks are definitely lost in loss record 71 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 40 bytes in 5 blocks are definitely lost in loss record 72 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 40 bytes in 5 blocks are definitely lost in loss record 73 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331== 
==6331== 48 bytes in 2 blocks are definitely lost in loss record 78 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 56 bytes in 7 blocks are definitely lost in loss record 81 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 56 bytes in 7 blocks are definitely lost in loss record 82 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 64 (8 direct, 56 indirect) bytes in 1 blocks are definitely lost in loss record 85 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x403A04: test_polycap_capil_leak (leaks.c:265)
==6331==    by 0x402B21: main (leaks.c:1130)
==6331== 
==6331== 64 bytes in 2 blocks are definitely lost in loss record 86 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 64 (32 direct, 32 indirect) bytes in 4 blocks are definitely lost in loss record 87 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 64 bytes in 8 blocks are definitely lost in loss record 88 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 72 (64 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 90 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 72 bytes in 2 blocks are definitely lost in loss record 91 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 80 (72 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 92 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 80 (72 direct, 8 indirect) bytes in 5 blocks are definitely lost in loss record 93 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 96 (88 direct, 8 indirect) bytes in 4 blocks are definitely lost in loss record 98 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 104 bytes in 4 blocks are definitely lost in loss record 101 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 104 bytes in 13 blocks are definitely lost in loss record 102 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 112 bytes in 1 blocks are definitely lost in loss record 104 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 120 (112 direct, 8 indirect) bytes in 6 blocks are definitely lost in loss record 110 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 136 (128 direct, 8 indirect) bytes in 16 blocks are definitely lost in loss record 115 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 144 (104 direct, 40 indirect) bytes in 4 blocks are definitely lost in loss record 119 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331== 
==6331== 144 (136 direct, 8 indirect) bytes in 17 blocks are definitely lost in loss record 120 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 144 bytes in 18 blocks are definitely lost in loss record 121 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 160 (152 direct, 8 indirect) bytes in 19 blocks are definitely lost in loss record 124 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 168 (160 direct, 8 indirect) bytes in 6 blocks are definitely lost in loss record 128 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331== 
==6331== 176 (152 direct, 24 indirect) bytes in 7 blocks are definitely lost in loss record 132 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 208 (176 direct, 32 indirect) bytes in 22 blocks are definitely lost in loss record 142 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 224 (200 direct, 24 indirect) bytes in 7 blocks are definitely lost in loss record 143 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 232 (216 direct, 16 indirect) bytes in 22 blocks are definitely lost in loss record 146 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 232 (216 direct, 16 indirect) bytes in 27 blocks are definitely lost in loss record 147 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 240 (120 direct, 120 indirect) bytes in 4 blocks are definitely lost in loss record 149 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 280 (272 direct, 8 indirect) bytes in 17 blocks are definitely lost in loss record 153 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 296 (264 direct, 32 indirect) bytes in 33 blocks are definitely lost in loss record 156 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 304 (296 direct, 8 indirect) bytes in 9 blocks are definitely lost in loss record 158 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 304 (288 direct, 16 indirect) bytes in 20 blocks are definitely lost in loss record 159 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 304 (232 direct, 72 indirect) bytes in 21 blocks are definitely lost in loss record 160 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 312 (296 direct, 16 indirect) bytes in 15 blocks are definitely lost in loss record 161 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 352 (336 direct, 16 indirect) bytes in 9 blocks are definitely lost in loss record 165 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 360 (112 direct, 248 indirect) bytes in 5 blocks are definitely lost in loss record 167 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 376 (368 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 171 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 408 (328 direct, 80 indirect) bytes in 7 blocks are definitely lost in loss record 173 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 408 (240 direct, 168 indirect) bytes in 10 blocks are definitely lost in loss record 174 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 408 (368 direct, 40 indirect) bytes in 18 blocks are definitely lost in loss record 175 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 408 (376 direct, 32 indirect) bytes in 44 blocks are definitely lost in loss record 176 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 416 (288 direct, 128 indirect) bytes in 15 blocks are definitely lost in loss record 177 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331== 
==6331== 416 (392 direct, 24 indirect) bytes in 49 blocks are definitely lost in loss record 178 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 424 (352 direct, 72 indirect) bytes in 44 blocks are definitely lost in loss record 179 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 432 (352 direct, 80 indirect) bytes in 8 blocks are definitely lost in loss record 180 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 456 (240 direct, 216 indirect) bytes in 30 blocks are definitely lost in loss record 184 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331== 
==6331== 472 (240 direct, 232 indirect) bytes in 10 blocks are definitely lost in loss record 186 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 488 (456 direct, 32 indirect) bytes in 8 blocks are definitely lost in loss record 188 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40B3AE: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:834)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 504 (456 direct, 48 indirect) bytes in 19 blocks are definitely lost in loss record 190 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 520 (464 direct, 56 indirect) bytes in 18 blocks are definitely lost in loss record 193 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 544 (504 direct, 40 indirect) bytes in 16 blocks are definitely lost in loss record 195 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331== 
==6331== 552 (448 direct, 104 indirect) bytes in 8 blocks are definitely lost in loss record 196 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 568 bytes in 6 blocks are definitely lost in loss record 197 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 576 (472 direct, 104 indirect) bytes in 15 blocks are definitely lost in loss record 198 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 608 (568 direct, 40 indirect) bytes in 21 blocks are definitely lost in loss record 199 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 624 (408 direct, 216 indirect) bytes in 31 blocks are definitely lost in loss record 200 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 712 (392 direct, 320 indirect) bytes in 16 blocks are definitely lost in loss record 201 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 712 (528 direct, 184 indirect) bytes in 20 blocks are definitely lost in loss record 202 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 712 (352 direct, 360 indirect) bytes in 44 blocks are definitely lost in loss record 203 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 720 (584 direct, 136 indirect) bytes in 25 blocks are definitely lost in loss record 204 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 720 (664 direct, 56 indirect) bytes in 30 blocks are definitely lost in loss record 205 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331== 
==6331== 744 (632 direct, 112 indirect) bytes in 4 blocks are definitely lost in loss record 207 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 744 (560 direct, 184 indirect) bytes in 22 blocks are definitely lost in loss record 208 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 768 (736 direct, 32 indirect) bytes in 13 blocks are definitely lost in loss record 209 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 784 (608 direct, 176 indirect) bytes in 12 blocks are definitely lost in loss record 212 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 1,008 (408 direct, 600 indirect) bytes in 51 blocks are definitely lost in loss record 223 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 1,024 (824 direct, 200 indirect) bytes in 103 blocks are definitely lost in loss record 227 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 1,040 (744 direct, 296 indirect) bytes in 24 blocks are definitely lost in loss record 228 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331== 
==6331== 1,072 (920 direct, 152 indirect) bytes in 115 blocks are definitely lost in loss record 230 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331== 
==6331== 1,088 (976 direct, 112 indirect) bytes in 40 blocks are definitely lost in loss record 231 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 1,088 (432 direct, 656 indirect) bytes in 54 blocks are definitely lost in loss record 232 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 1,176 (752 direct, 424 indirect) bytes in 94 blocks are definitely lost in loss record 236 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 1,192 (1,152 direct, 40 indirect) bytes in 19 blocks are definitely lost in loss record 237 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 1,208 (1,064 direct, 144 indirect) bytes in 42 blocks are definitely lost in loss record 238 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 1,224 (896 direct, 328 indirect) bytes in 112 blocks are definitely lost in loss record 241 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 1,264 (1,128 direct, 136 indirect) bytes in 30 blocks are definitely lost in loss record 244 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 1,280 (1,192 direct, 88 indirect) bytes in 40 blocks are definitely lost in loss record 246 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 1,288 (912 direct, 376 indirect) bytes in 13 blocks are definitely lost in loss record 247 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 1,288 (904 direct, 384 indirect) bytes in 95 blocks are definitely lost in loss record 248 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 1,304 (992 direct, 312 indirect) bytes in 7 blocks are definitely lost in loss record 250 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 1,312 (1,056 direct, 256 indirect) bytes in 92 blocks are definitely lost in loss record 252 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 1,320 (1,136 direct, 184 indirect) bytes in 37 blocks are definitely lost in loss record 253 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331== 
==6331== 1,328 (1,216 direct, 112 indirect) bytes in 41 blocks are definitely lost in loss record 254 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 1,440 bytes in 5 blocks are possibly lost in loss record 258 of 394
==6331==    at 0x4C331EA: calloc (vg_replace_malloc.c:762)
==6331==    by 0x4012341: allocate_dtv (in /usr/lib64/ld-2.28.so)
==6331==    by 0x4012CD1: _dl_allocate_tls (in /usr/lib64/ld-2.28.so)
==6331==    by 0x7ADCF32: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x78B7A72: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x78AD6A0: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 1,456 (1,048 direct, 408 indirect) bytes in 43 blocks are definitely lost in loss record 259 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 1,504 (1,392 direct, 112 indirect) bytes in 40 blocks are definitely lost in loss record 262 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331== 
==6331== 1,520 (1,320 direct, 200 indirect) bytes in 94 blocks are definitely lost in loss record 263 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 1,632 (1,096 direct, 536 indirect) bytes in 10 blocks are definitely lost in loss record 265 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 1,736 (1,064 direct, 672 indirect) bytes in 12 blocks are definitely lost in loss record 266 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40B3AE: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:834)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 1,776 (432 direct, 1,344 indirect) bytes in 21 blocks are definitely lost in loss record 267 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331== 
==6331== 1,904 (1,688 direct, 216 indirect) bytes in 43 blocks are definitely lost in loss record 269 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 1,944 (1,824 direct, 120 indirect) bytes in 228 blocks are definitely lost in loss record 271 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 2,008 (1,016 direct, 992 indirect) bytes in 127 blocks are definitely lost in loss record 272 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 2,104 (856 direct, 1,248 indirect) bytes in 29 blocks are definitely lost in loss record 273 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331== 
==6331== 2,296 (1,768 direct, 528 indirect) bytes in 68 blocks are definitely lost in loss record 276 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331== 
==6331== 2,304 (1,872 direct, 432 indirect) bytes in 43 blocks are definitely lost in loss record 277 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 2,408 (896 direct, 1,512 indirect) bytes in 112 blocks are definitely lost in loss record 278 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414181: polycap_capil_reflect (polycap-capil.c:856)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331== 
==6331== 2,520 (1,640 direct, 880 indirect) bytes in 18 blocks are definitely lost in loss record 282 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 2,552 (2,128 direct, 424 indirect) bytes in 250 blocks are definitely lost in loss record 283 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331== 
==6331== 2,760 (1,904 direct, 856 indirect) bytes in 51 blocks are definitely lost in loss record 287 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 2,872 (2,496 direct, 376 indirect) bytes in 238 blocks are definitely lost in loss record 288 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 2,912 (1,680 direct, 1,232 indirect) bytes in 210 blocks are definitely lost in loss record 289 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 3,088 (1,176 direct, 1,912 indirect) bytes in 16 blocks are definitely lost in loss record 290 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 3,104 (2,168 direct, 936 indirect) bytes in 271 blocks are definitely lost in loss record 292 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331== 
==6331== 3,144 (2,376 direct, 768 indirect) bytes in 88 blocks are definitely lost in loss record 293 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 3,144 (2,424 direct, 720 indirect) bytes in 102 blocks are definitely lost in loss record 294 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331== 
==6331== 3,144 (2,400 direct, 744 indirect) bytes in 300 blocks are definitely lost in loss record 295 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 3,184 (1,432 direct, 1,752 indirect) bytes in 46 blocks are definitely lost in loss record 297 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 3,248 (2,672 direct, 576 indirect) bytes in 334 blocks are definitely lost in loss record 298 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 3,264 (2,304 direct, 960 indirect) bytes in 261 blocks are definitely lost in loss record 299 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 3,296 (2,888 direct, 408 indirect) bytes in 63 blocks are definitely lost in loss record 300 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40B3AE: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:834)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 3,376 (2,232 direct, 1,144 indirect) bytes in 108 blocks are definitely lost in loss record 303 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 3,824 (2,208 direct, 1,616 indirect) bytes in 85 blocks are definitely lost in loss record 306 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 3,952 (3,272 direct, 680 indirect) bytes in 75 blocks are definitely lost in loss record 307 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 4,136 (3,456 direct, 680 indirect) bytes in 69 blocks are definitely lost in loss record 308 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 4,200 (3,296 direct, 904 indirect) bytes in 47 blocks are definitely lost in loss record 309 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 4,328 (3,656 direct, 672 indirect) bytes in 119 blocks are definitely lost in loss record 310 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 4,496 (3,944 direct, 552 indirect) bytes in 493 blocks are definitely lost in loss record 313 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 4,512 (3,744 direct, 768 indirect) bytes in 133 blocks are definitely lost in loss record 314 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 4,608 (3,992 direct, 616 indirect) bytes in 112 blocks are definitely lost in loss record 315 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331== 
==6331== 5,088 (3,856 direct, 1,232 indirect) bytes in 55 blocks are definitely lost in loss record 319 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 5,200 (3,608 direct, 1,592 indirect) bytes in 122 blocks are definitely lost in loss record 321 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 5,360 (4,032 direct, 1,328 indirect) bytes in 191 blocks are definitely lost in loss record 323 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 5,512 (4,568 direct, 944 indirect) bytes in 52 blocks are definitely lost in loss record 325 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 5,856 (5,048 direct, 808 indirect) bytes in 535 blocks are definitely lost in loss record 327 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 5,880 (3,904 direct, 1,976 indirect) bytes in 172 blocks are definitely lost in loss record 328 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 5,944 (4,648 direct, 1,296 indirect) bytes in 477 blocks are definitely lost in loss record 329 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 5,984 (3,896 direct, 2,088 indirect) bytes in 131 blocks are definitely lost in loss record 330 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 6,248 (4,352 direct, 1,896 indirect) bytes in 493 blocks are definitely lost in loss record 331 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 6,912 (5,848 direct, 1,064 indirect) bytes in 651 blocks are definitely lost in loss record 334 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331== 
==6331== 7,160 (5,784 direct, 1,376 indirect) bytes in 35 blocks are definitely lost in loss record 335 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40ACF6: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:854)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 7,168 (4,848 direct, 2,320 indirect) bytes in 606 blocks are definitely lost in loss record 336 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 7,216 (5,296 direct, 1,920 indirect) bytes in 662 blocks are definitely lost in loss record 337 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 7,712 (5,512 direct, 2,200 indirect) bytes in 640 blocks are definitely lost in loss record 338 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331== 
==6331== 7,832 (4,680 direct, 3,152 indirect) bytes in 585 blocks are definitely lost in loss record 339 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 8,016 (5,584 direct, 2,432 indirect) bytes in 163 blocks are definitely lost in loss record 340 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 9,088 (5,592 direct, 3,496 indirect) bytes in 699 blocks are definitely lost in loss record 344 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 9,384 (7,664 direct, 1,720 indirect) bytes in 111 blocks are definitely lost in loss record 345 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 10,096 (8,120 direct, 1,976 indirect) bytes in 262 blocks are definitely lost in loss record 346 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 10,136 (6,568 direct, 3,568 indirect) bytes in 71 blocks are definitely lost in loss record 347 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40B3AE: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:834)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 10,712 (7,360 direct, 3,352 indirect) bytes in 84 blocks are definitely lost in loss record 349 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 12,544 (8,936 direct, 3,608 indirect) bytes in 246 blocks are definitely lost in loss record 354 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 12,640 (8,472 direct, 4,168 indirect) bytes in 1,059 blocks are definitely lost in loss record 355 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 13,128 (11,232 direct, 1,896 indirect) bytes in 1,164 blocks are definitely lost in loss record 357 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 13,360 (11,072 direct, 2,288 indirect) bytes in 337 blocks are definitely lost in loss record 358 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 14,376 (11,680 direct, 2,696 indirect) bytes in 356 blocks are definitely lost in loss record 359 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 14,416 (10,488 direct, 3,928 indirect) bytes in 1,311 blocks are definitely lost in loss record 360 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 14,792 (11,560 direct, 3,232 indirect) bytes in 90 blocks are definitely lost in loss record 361 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 14,984 (10,296 direct, 4,688 indirect) bytes in 1,287 blocks are definitely lost in loss record 362 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 15,944 (14,080 direct, 1,864 indirect) bytes in 1,653 blocks are definitely lost in loss record 363 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331== 
==6331== 16,032 (11,072 direct, 4,960 indirect) bytes in 244 blocks are definitely lost in loss record 364 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x40F3E5: polycap_photon_launch (polycap-photon.c:640)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 19,088 (14,704 direct, 4,384 indirect) bytes in 432 blocks are definitely lost in loss record 366 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 19,232 (14,776 direct, 4,456 indirect) bytes in 584 blocks are definitely lost in loss record 367 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 20,336 (16,064 direct, 4,272 indirect) bytes in 212 blocks are definitely lost in loss record 368 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 23,400 (17,840 direct, 5,560 indirect) bytes in 117 blocks are definitely lost in loss record 370 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78AD6A5: GOMP_parallel (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x40BC19: polycap_source_get_transmission_efficiencies (polycap-source.c:691)
==6331==    by 0x40761B: test_polycap_source_leak (leaks.c:1088)
==6331==    by 0x402B3D: main (leaks.c:1134)
==6331== 
==6331== 23,984 (20,696 direct, 3,288 indirect) bytes in 2,420 blocks are definitely lost in loss record 372 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 25,512 (19,600 direct, 5,912 indirect) bytes in 2,450 blocks are definitely lost in loss record 373 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 25,712 (20,264 direct, 5,448 indirect) bytes in 2,395 blocks are definitely lost in loss record 374 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 27,192 (16,480 direct, 10,712 indirect) bytes in 2,060 blocks are definitely lost in loss record 375 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331== 
==6331== 28,504 (22,112 direct, 6,392 indirect) bytes in 744 blocks are definitely lost in loss record 376 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 28,896 (22,624 direct, 6,272 indirect) bytes in 2,267 blocks are definitely lost in loss record 377 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 33,880 (25,960 direct, 7,920 indirect) bytes in 3,245 blocks are definitely lost in loss record 379 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 34,104 (23,512 direct, 10,592 indirect) bytes in 2,939 blocks are definitely lost in loss record 380 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413763: polycap_capil_reflect (polycap-capil.c:690)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331== 
==6331== 39,016 (24,280 direct, 14,736 indirect) bytes in 3,035 blocks are definitely lost in loss record 382 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 47,776 (35,904 direct, 11,872 indirect) bytes in 435 blocks are definitely lost in loss record 383 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 52,592 (36,664 direct, 15,928 indirect) bytes in 180 blocks are definitely lost in loss record 384 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x40ACF6: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:854)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 68,224 (53,736 direct, 14,488 indirect) bytes in 5,575 blocks are definitely lost in loss record 386 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 70,960 (54,376 direct, 16,584 indirect) bytes in 1,745 blocks are definitely lost in loss record 387 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 81,064 (67,872 direct, 13,192 indirect) bytes in 7,834 blocks are definitely lost in loss record 388 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331== 
==6331== 85,144 (67,304 direct, 17,840 indirect) bytes in 8,062 blocks are definitely lost in loss record 389 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331== 
==6331== 87,240 (66,144 direct, 21,096 indirect) bytes in 455 blocks are definitely lost in loss record 390 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413EE5: polycap_capil_reflect (polycap-capil.c:868)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 92,144 (61,992 direct, 30,152 indirect) bytes in 7,749 blocks are definitely lost in loss record 391 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331== 
==6331== 94,256 (76,624 direct, 17,632 indirect) bytes in 533 blocks are definitely lost in loss record 392 of 394
==6331==    at 0x4C333E9: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413625: polycap_capil_reflect (polycap-capil.c:702)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x40EB36: polycap_photon_launch (polycap-photon.c:901)
==6331==    by 0x40A306: polycap_source_get_transmission_efficiencies._omp_fn.0 (polycap-source.c:744)
==6331==    by 0x78B743D: ??? (in /usr/lib64/libgomp.so.1.0.0)
==6331==    by 0x7ADC2DD: start_thread (in /usr/lib64/libpthread-2.28.so)
==6331==    by 0x7DEFE82: clone (in /usr/lib64/libc-2.28.so)
==6331== 
==6331== 106,208 (86,448 direct, 19,760 indirect) bytes in 10,614 blocks are definitely lost in loss record 393 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x414048: polycap_capil_reflect (polycap-capil.c:812)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331== 
==6331== 284,088 (223,464 direct, 60,624 indirect) bytes in 27,543 blocks are definitely lost in loss record 394 of 394
==6331==    at 0x4C30E18: malloc (vg_replace_malloc.c:308)
==6331==    by 0x4C33433: realloc (vg_replace_malloc.c:836)
==6331==    by 0x413F86: polycap_capil_reflect (polycap-capil.c:828)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331==    by 0x413D80: polycap_capil_reflect (polycap-capil.c:787)
==6331==    by 0x412E05: polycap_capil_trace (polycap-capil.c:1359)
==6331== 
==6331== LEAK SUMMARY:
==6331==    definitely lost: 1,420,520 bytes in 114,559 blocks
==6331==    indirectly lost: 441,680 bytes in 19,224 blocks
==6331==      possibly lost: 1,440 bytes in 5 blocks
==6331==    still reachable: 2,896 bytes in 4 blocks
==6331==         suppressed: 0 bytes in 0 blocks
==6331== Reachable blocks (those to which a pointer was found) are not shown.
==6331== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==6331== 
==6331== For lists of detected and suppressed errors, rerun with: -s
==6331== ERROR SUMMARY: 224 errors from 224 contexts (suppressed: 0 from 0)
tschoonj commented 3 years ago

Kunt ge eens valgrind laten draaien met deze commit? Ik denk dat al de warnings zullen verdwijnen...

lgtm-com[bot] commented 3 years ago

This pull request introduces 1 alert when merging dbb66f54c4afe7ceb9e42775378593b0cf3502a7 into 84fb56a578a74a213720289ed9a6ee2fea2ea8b4 - view on LGTM.com

new alerts:

tschoonj commented 3 years ago

Er scheelt iets met de klok instellingen van uw computer: volgens de git commit timestamps zit ge er twee dagen naast.

tschoonj commented 3 years ago

Ik heb trouwens ook even naar uw probleem gekeken maar zie niet waarom het crasht, alhoewel er zeker een probleem was met hoe ge uw leaks kopieerde door assignment. Best eens polycap_photon_get_extleak_data te gebruiken in een C test met dezelfde input als in Python en dan zien met valgrind wat er misloopt.

Ik heb wel uw VectorTuple probleem gefixed denk ik. Je mag die class maar een keer definiëren.

PieterTack commented 3 years ago

Er scheelt iets met de klok instellingen van uw computer: volgens de git commit timestamps zit ge er twee dagen naast.

Ja, is door die virtualbox die ik draai. Als ik die pauseer (of pc in slaapstand gaat met virtualbox open) dan begint zijn tijd achter te lopen.

Kan fiksen door virtualbox te rebooten, maar had net valgrind terug gestart toen ik het doorhad :P

Ken jij methode om virtualbox tijd toch te updaten? (kzou denken dat eenvoudige check met internet zou moeten updaten...)

tschoonj commented 3 years ago

Probeer in uw instellingen ervoor te zorgen dat er automatisch gesynchroniseerd wordt met internet time servers.

PieterTack commented 3 years ago

Kunt ge eens valgrind laten draaien met deze commit? Ik denk dat al de warnings zullen verdwijnen...

deze zijn inderdaad verdwenen. Good job!

Ik heb trouwens ook even naar uw probleem gekeken maar zie niet waarom het crasht, alhoewel er zeker een probleem was met hoe ge uw leaks kopieerde door assignment. Best eens polycap_photon_get_extleak_data te gebruiken in een C test met dezelfde input als in Python en dan zien met valgrind wat er misloopt.

Ik raak er indeed ook niet aan uit... Had in leaks.c test reeds dergelijke test gemaakt, die lijkt te werken. Ben nu valgrind erop aan het laten werken, maar kvermoed dat het niets zal zijn (is al voorbij dat deel in de code, en alleszins geen seg fault)

Ik heb wel uw VectorTuple probleem gefixed denk ik. Je mag die class maar een keer definiëren.

Is inderdaad ook opgelost :) Superthanks!

tschoonj commented 3 years ago

Problemen op macOS precies....:

Assertion failed: (fabs(photon->extleak[0]->coords.x + 0.089664) < 0.0000005), function test_polycap_photon_leak, file ../tests/leaks.c, line 1020.
138
PieterTack commented 3 years ago

Problemen op macOS precies....:

Assertion failed: (fabs(photon->extleak[0]->coords.x + 0.089664) < 0.0000005), function test_polycap_photon_leak, file ../tests/leaks.c, line 1020.
138

hmm... Kunnen we ergens zien welke waarde ze dan wel hadden? Een beetje verontrustend. Heb nog niet eerder gehad dat er numerieke verschillen waren tussen de systems... Misschien is die 5e-7 te nauwkeurig?

tschoonj commented 3 years ago

steek ne printf voor de assert?

PieterTack commented 3 years ago

steek ne printf voor de assert?

een gewone printf of een fprint(stderr,...)? Kdacht dat print statements niet in die checks verschenen :)

tschoonj commented 3 years ago

Zou ook moeten lukken met gewone printf's, maar fprintf + stderr kan geen kwaad.

tschoonj commented 3 years ago

Op mijn Mac kan ik het probleem reproduceren:

Assertion failed: (fabs(photon->extleak[0]->coords.x + 0.089664) < 0.0000005), function test_polycap_photon_leak, file ../../tests/leaks.c, line 1021.
extleak0.x: -0.091175 , y: -0.010418, z: 8.426171, w: 0.000184
FAIL leaks (exit status: 134)

Het zit er precies vrij ver naast.

PieterTack commented 3 years ago

Op mijn Mac kan ik het probleem reproduceren:

Assertion failed: (fabs(photon->extleak[0]->coords.x + 0.089664) < 0.0000005), function test_polycap_photon_leak, file ../../tests/leaks.c, line 1021.
extleak0.x: -0.091175 , y: -0.010418, z: 8.426171, w: 0.000184
FAIL leaks (exit status: 134)

Het zit er precies vrij ver naast.

ja :( geen idee waar die fout ineens vandaan komt. Moet ergens in de gewone leak berekingen zijn. Had blijkbaar bij de leak tests het launched photon wat verkeerd geinitialiseerd waardoor ik geen betrouwbare resultaten kreeg... Maar nu blijkt dus dat er OS verschillende uitkomsten zijn :P Kheb nog een paar andere tests die ik kan toevoegen om te zien of daar ook verschilt, maar initieel dus geen flauw idee :( Hoe zou ik dit ook best debuggen? Een macOS virtual box maken op mijn pc? (heb geen macOS ter beshikking)