#4509 closed defect (fixed)
Unacceptable limitation on log file length under Windows
Reported by: | Francesco Casella | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | critical | Milestone: | 1.13.0 |
Component: | Run-time | Version: | |
Keywords: | Cc: | Adrian Pop |
Description
I ran the attached test script under windows using the latest 64-bit nightly; I get the following error message
Error: File too large to fit into a MetaModelica string: Test9.log.
If I reduce N from 50 to 45 the error is not triggered, and the resulting size of the log file is 13 MB, which is large but not unconceivably so.
I cannot reproduce exactly the same behaviour on Linux because I have a different version of the solver there and the nighly is broken, but I can easily produce log files in excess of 60 MB there on this example by increasing N, and I once produced a 2+ TB log file with some large test case, so I guess this is a Windows-specific problem.
Please make sure that no arbitrary limitations (except free mass storage space) are enforced on log files under Windows.
Attachments (1)
Change History (6)
by , 7 years ago
comment:1 by , 7 years ago
This seems to be a bug in MetaModelica. The max size of string for 64bit is 18014398509481984 * 4 characters.
comment:2 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:3 by , 7 years ago
Found the problem:
https://github.com/OpenModelica/OMCompiler/blob/master/Compiler/runtime/systemimpl.c#L358
That particular define #ifndef _LP64
is not working on Windows 64bit.
comment:4 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Fixed in 7deec2/OMCompiler.
comment:5 by , 7 years ago
Thanks Adrian! I guess not many people turn on LOG_NLS_V on systems with hundreds or thousands of coupled nonlinear equations, but for those who do this was particularly frustrating.
Test case