Opened 15 years ago
Last modified 15 years ago
#1116 closed defect (fixed)
parameter String breaks simulations if it placed at first in a model.
Reported by: | jorgeecardona | Owned by: | jorgeecardona |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | 1.4.5 | |
Keywords: | Cc: | jorgeecardona, |
Description
If i set a parameter String first that any other parameter in a model it breaks the simulation.
This fails:
model Test Real x(start = 10); parameter String b=""; equation der(x) = -x; end Test;
>>> loadFile("/tmp/test.mo") true >>> simulate(Test) record SimulationResult resultFile = "Simulation failed. Internal error generate_global_data failed Internal error Generation of simulation code failed " end SimulationResult;
But this works:
model Test Real x(start = 10); parameter Real a=0; parameter String b=""; equation der(x) = -x; end Test;
>>> loadFile("/tmp/test.mo") true >>> simulate(Test) record SimulationResult resultFile = "Test_res.plt" end SimulationResult;
Note:
See TracTickets
for help on using tickets.
This seems to have been fixed, example works for me with trunk.