Closed nikhilgupta10 closed 8 years ago
nikhilgupta10 imported these comments from Sourceforge: The user jhammerstrom does not exist anymore. Therefore assigning this to afisher1. "jcfuller": * priority changed from undetermined to major
component changed from Unknown to Core ,
"dchassin": * status changed from new to accepted ,
"mhauer":At one point, there was a problem with the included file having stacks of PV arrays wrapped in #if x>n\ macros. There was a problem with individual macros not counting as 'GLM code', and not getting flushed after a 'negative #if' was processed, surpressing the contents. The buffer would then overflow and stop the simulation.
That was addressed in r3568/r3569, though I am uncertain if it corrects the problem found when running on the gldportal.
,
"dchassin": * owner changed from dchassin to jhammerstrom
Referring this back to Jannelle for verification.
,
"jcfuller": * status changed from assigned to closed
IEEE_13_house_base.glm is the base file. Three files--definitions.glm, recorders.glm, and solar_panels.glm-- are included in the base file via '#include'. In the definitions file, there is a variable called solar_pen. The value of this variable determines how many solar panels are included in the system. Inside solar_panels.glm is a collection of #if/#endif blocks that contain inverter and solar objects. The first block is activated when solar_pen>=0.002, and the larger solar_pen is set, the more solar_panels are included (up to solar_pen ~1.5).
When the statement #include solar_panels.glm\ is placed at the top of IEEE_13_house_base.glm with the other #include\ statements, if more than one solar panel is activated (solar_pen>=0.002), the error quoted below results. When \include solar_panels.glm\ is placed at the bottom of IEEE_13_house_base.glm, the simulation runs as expected and includes the appropriate solar panels as determined by any chosen solar_pen value.
Error Produced:
* glibc detected * /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin: malloc(): memory corruption: 0x0000000015990ca0 *\
======= Backtrace: =========
/lib64/libc.so.6[0x3917271e7e]
/lib64/libc.so.6(libc_malloc+0x6e)[0x3917273bae]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x424ce5]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x4318c6]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x432ec4]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x435900]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x436a26]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x43749a]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x436356]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x43837a]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x4387ec]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin[0x40d3c4]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin(cos+0x1f6)[0x4067a6]
/lib64/libc.so.6(libc_start_main+0xf4)[0x391721d994]
/gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin(cos+0xd9)[0x406689]
======= Memory map: ========
00400000-00499000 r-xp 00000000 fd:00 88899743 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin
00699000-006e9000 rw-p 00099000 fd:00 88899743 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/gridlabd.bin
006e9000-00ec3000 rw-p 006e9000 00:00 0
158ec000-159b1000 rw-p 158ec000 00:00 0 [heap]
371a600000-371a6e6000 r-xp 00000000 fd:00 1176543 /usr/lib64/libstdc++.so.6.0.8
371a6e6000-371a8e5000 ---p 000e6000 fd:00 1176543 /usr/lib64/libstdc++.so.6.0.8
371a8e5000-371a8eb000 r--p 000e5000 fd:00 1176543 /usr/lib64/libstdc++.so.6.0.8
371a8eb000-371a8ee000 rw-p 000eb000 fd:00 1176543 /usr/lib64/libstdc++.so.6.0.8
371a8ee000-371a900000 rw-p 371a8ee000 00:00 0
3916e00000-3916e1c000 r-xp 00000000 fd:00 400228394 /lib64/ld-2.5.so
391701c000-391701d000 r--p 0001c000 fd:00 400228394 /lib64/ld-2.5.so
391701d000-391701e000 rw-p 0001d000 fd:00 400228394 /lib64/ld-2.5.so
3917200000-391734e000 r-xp 00000000 fd:00 400228398 /lib64/libc-2.5.so
391734e000-391754d000 ---p 0014e000 fd:00 400228398 /lib64/libc-2.5.so
391754d000-3917551000 r--p 0014d000 fd:00 400228398 /lib64/libc-2.5.so
3917551000-3917552000 rw-p 00151000 fd:00 400228398 /lib64/libc-2.5.so
3917552000-3917557000 rw-p 3917552000 00:00 0
3917600000-3917682000 r-xp 00000000 fd:00 400228694 /lib64/libm-2.5.so
3917682000-3917881000 ---p 00082000 fd:00 400228694 /lib64/libm-2.5.so
3917881000-3917882000 r--p 00081000 fd:00 400228694 /lib64/libm-2.5.so
3917882000-3917883000 rw-p 00082000 fd:00 400228694 /lib64/libm-2.5.so
3917a00000-3917a02000 r-xp 00000000 fd:00 400228735 /lib64/libdl-2.5.so
3917a02000-3917c02000 ---p 00002000 fd:00 400228735 /lib64/libdl-2.5.so
3917c02000-3917c03000 r--p 00002000 fd:00 400228735 /lib64/libdl-2.5.so
3917c03000-3917c04000 rw-p 00003000 fd:00 400228735 /lib64/libdl-2.5.so
3918200000-3918216000 r-xp 00000000 fd:00 400228744 /lib64/libpthread-2.5.so
3918216000-3918415000 ---p 00016000 fd:00 400228744 /lib64/libpthread-2.5.so
3918415000-3918416000 r--p 00015000 fd:00 400228744 /lib64/libpthread-2.5.so
3918416000-3918417000 rw-p 00016000 fd:00 400228744 /lib64/libpthread-2.5.so
3918417000-391841b000 rw-p 3918417000 00:00 0
391d200000-391d20d000 r-xp 00000000 fd:00 400228736 /lib64/libgcc_s-4.1.2-20080825.so.1
391d20d000-391d40d000 ---p 0000d000 fd:00 400228736 /lib64/libgcc_s-4.1.2-20080825.so.1
391d40d000-391d40e000 rw-p 0000d000 fd:00 400228736 /lib64/libgcc_s-4.1.2-20080825.so.1
3921400000-3921415000 r-xp 00000000 fd:00 400228714 /lib64/libnsl-2.5.so
3921415000-3921614000 ---p 00015000 fd:00 400228714 /lib64/libnsl-2.5.so
3921614000-3921615000 r--p 00014000 fd:00 400228714 /lib64/libnsl-2.5.so
3921615000-3921616000 rw-p 00015000 fd:00 400228714 /lib64/libnsl-2.5.so
3921616000-3921618000 rw-p 3921616000 00:00 0
2ad8fb055000-2ad8fb059000 rw-p 2ad8fb055000 00:00 0
2ad8fb07d000-2ad8fb435000 r-xp 00000000 fd:00 1177643 /usr/local/lib/libxerces-c-3.1.so
2ad8fb435000-2ad8fb634000 ---p 003b8000 fd:00 1177643 /usr/local/lib/libxerces-c-3.1.so
2ad8fb634000-2ad8fb675000 rw-p 003b7000 fd:00 1177643 /usr/local/lib/libxerces-c-3.1.so
2ad8fb675000-2ad8fb679000 rw-p 2ad8fb675000 00:00 0
2ad8fb679000-2ad8fb697000 r-xp 00000000 fd:00 88899728 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/tape.so
2ad8fb697000-2ad8fb896000 ---p 0001e000 fd:00 88899728 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/tape.so
2ad8fb896000-2ad8fb897000 rw-p 0001d000 fd:00 88899728 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/tape.so
2ad8fb897000-2ad8fb899000 rw-p 2ad8fb897000 00:00 0
2ad8fb899000-2ad8fb8ea000 r-xp 00000000 fd:00 88899683 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/generators.so
2ad8fb8ea000-2ad8fbae9000 ---p 00051000 fd:00 88899683 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/generators.so
2ad8fbae9000-2ad8fbaea000 rw-p 00050000 fd:00 88899683 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/generators.so
2ad8fbaea000-2ad8fbaeb000 rw-p 2ad8fbaea000 00:00 0
2ad8fbaeb000-2ad8fbafe000 r-xp 00000000 fd:00 88899718 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/climate.so
2ad8fbafe000-2ad8fbcfd000 ---p 00013000 fd:00 88899718 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/climate.so
2ad8fbcfd000-2ad8fbcfe000 rw-p 00012000 fd:00 88899718 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/climate.so
2ad8fbcfe000-2ad8fbcff000 rw-p 2ad8fbcfe000 00:00 0
2ad8fbcff000-2ad8fbd53000 r-xp 00000000 fd:00 88899732 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/residential.so
2ad8fbd53000-2ad8fbf53000 ---p 00054000 fd:00 88899732 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/residential.so
2ad8fbf53000-2ad8fbf55000 rw-p 00054000 fd:00 88899732 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/residential.so
2ad8fbf55000-2ad8fbf56000 rw-p 2ad8fbf55000 00:00 0
2ad8fbf56000-2ad8fc097000 r-xp 00000000 fd:00 88899767 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/powerflow.so
2ad8fc097000-2ad8fc297000 ---p 00141000 fd:00 88899767 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/powerflow.so
2ad8fc297000-2ad8fc299000 rw-p 00141000 fd:00 88899767 /gldportal/www/portal_files/gridlab-d23/lib/gridlabd/powerflow.so
2ad8fc299000-2ad91cdd2000 rw-p 2ad8fc299000 00:00 0
2ad920000000-2ad920021000 rw-p 2ad920000000 00:00 0
2ad920021000-2ad924000000 ---p 2ad920021000 00:00 0
7fff588f5000-7fff589c9000 rw-p 7ffffff2a000 00:00 0 [stack]
7fff589fd000-7fff58a00000 r-xp 7fff589fd000 00:00 0 [vdso]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vsyscall]
/gldportal/www/portal_files/gridlab-d23/bin/gridlabd: line 22: 17410 Aborted \$GRIDLABD/gridlabd.bin\ \$@\
,