﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5108	Models with large arrays of parameters cause the runtime to segfault	Francesco Casella	Lennart Ochel	"Please check 
[https://libraries.openmodelica.org/branches/newInst/ScalableTestSuite_noopt/files/ScalableTestSuite_noopt_ScalableTestSuite.Elementary.ParameterArrays.ScaledExperiments.Table_N_280_M_280.sim ScalableTestSuite.Elementary.ParameterArrays.ScaledExperiments.Table_N_280_M_280]
[https://libraries.openmodelica.org/branches/newInst/ScalableTestSuite_noopt/files/ScalableTestSuite_noopt_ScalableTestSuite.Elementary.ParameterArrays.ScaledExperiments.Table_N_400_M_400.sim ScalableTestSuite.Elementary.ParameterArrays.ScaledExperiments.Table_N_400_M_400].
The models fail at runtime with
{{{

Limited backtrace at point of segmentation fault
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fc506f6a890]
/lib/x86_64-linux-gnu/libc.so.6(+0x9430e)[0x7fc506bfb30e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x8c)[0x7fc506bfe0fc]
/lib/x86_64-linux-gnu/libc.so.6(+0xf377b)[0x7fc506c5a77b]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf3af7)[0x7fc506c5aaf7]
}}}
The first of the two models contains a two-dimensional parameter array with 78400 elements, the second with 160000 elemets. These are large arrays, but definitely not huge, about 600 kB and 1.2 MB of memory, respectively. OMC should be able to handle them without  problems."	defect	new	high		Run-time				
