Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3602 closed defect (fixed)

-overrideFile flag does not work in 1.9.4 latest

Reported by: jf3 Owned by: Lennart Ochel
Priority: blocker Milestone: 1.9.4
Component: Run-time Version:
Keywords: overrideFile, override Cc:

Description

When I try to use my built model with -overrideFile it says:

assert | debug | simulation_input_xml.cpp: could not read overrideFile override_file.txt: No error

The file normally works in previous releases, the file exists.

When I do it via -override variable=value it mornally runs.

Change History (10)

comment:1 by Lennart Ochel, 9 years ago

What OS are you using? Windows?

comment:2 by Lennart Ochel, 9 years ago

I cannot reproduce this issue. I used the following script on linux which just work fine:

loadString("
model M
  parameter Real p=1;
end M;
"); getErrorString();

simulate(M, simflags="-overrideFile=override_file.txt"); getErrorString();
val(p, 0.0); getErrorString();

comment:3 by Dietmar Winkler, 9 years ago

Milestone: NeedsInput

comment:4 by anonymous, 9 years ago

I have the same problem.
Platform is Windows 7, 64 bit.
OM version 1.9.4dev.

override file (start.txt) is in same directory as the exe file.
shell command:
mymodel -overrideFile=start.txt
response:
assert : debug : simulation_input_xml.cpp: could not read overrideFile start.txt: No error

I checked the security settings of this folder and all users have full access.
Also changed the system path to include the work folder (with mymodel.exe), still not working.

Could you please check this issue for Windows?

comment:5 by Lennart Ochel, 9 years ago

Owner: changed from somebody to Lennart Ochel
Status: newassigned

I get the same error message on Windows.

comment:6 by Adrian Pop, 9 years ago

Milestone: NeedsInput1.9.4
Priority: highblocker

I make this a blocker as we really need to fix it for 1.9.4 final.

comment:7 by Lennart Ochel, 9 years ago

The issue occurs only on Windows with CRLF line endings in the override file.
This should be fixed with PR436.

comment:8 by Lennart Ochel, 9 years ago

Resolution: fixed
Status: assignedclosed

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:10 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.