I am integrating a relative small Finite Element (FE) model into Modelica. In doing so, I created a Model (Modelica class) that can read the mass (M) and stiffness (K) matrix in Matlab binary file format. I connected the FE model with some components from the Modelica Standard Library (Modelica.Mechanics.MultiBody). If M and K are very small (say 20x20), then Dymola is able to run the Model and provides pretty accurate results compared to Abaqus (but computational not that efficient). However, if I increase the complexity of the FE model that includes larger M and K (e.g. size(M)=[200,200]), then Dymola provides the following error:
Compiling and linking the model (Visual C++).
Setting environment for using Microsoft Visual Studio 2010 x86 tools. dsmodel.c dsmodelext1.c dsmodelext10.c dsmodelext11.c dsmodelext12.c dsmodelext13.c dsmodelext14.c dsmodelext15.c dsmodelext16.c dsmodelext2.c dsmodelext3.c dsmodelext4.c dsmodelext5.c dsmodelext6.c dsmodelext7.c dsmodelext8.c dsmodelext9.c
Generating Code...
c:\sentient\src\gll\gearlibrary\dsmodel.c(185115) : fatal error C1128: number of sections exceeded object file format limit : compile with /bigobj
Error generating Dymosim.
I connected Visual Studio C++ Express Edition (10.0) with Dymola.
It looks to me that Dymola provides a variable name to each entity of M and K. This exceeds the maximum limit of objects for the C++ compiler.
How can I prevent Dymola of doing this? How can I set /bigobj within the Dymola environment?