Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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)

test.mos (857 bytes ) - added by Francesco Casella 7 years ago.
Test case

Download all attachments as: .zip

Change History (6)

by Francesco Casella, 7 years ago

Attachment: test.mos added

Test case

comment:1 by Adrian Pop, 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 Adrian Pop, 7 years ago

Owner: changed from somebody to Adrian Pop
Status: newaccepted

comment:3 by Adrian Pop, 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 Adrian Pop, 7 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in 7deec2/OMCompiler.

Last edited 7 years ago by Adrian Pop (previous) (diff)

comment:5 by Francesco Casella, 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.

Note: See TracTickets for help on using tickets.