Opened 5 years ago
Last modified 5 years ago
#6266 closed defect
Index out of bounds for array returned by built-in function — at Initial Version
| Reported by: | Andreas Heuermann | Owned by: | Per Östlund |
|---|---|---|---|
| Priority: | high | Milestone: | 1.17.0 |
| Component: | Backend | Version: | v1.17.0-dev |
| Keywords: | array, assertion, newFrontend | Cc: | kabdelhak |
Description
I have a model that simulates with the old frontend but fails to simulate with the new frontend.
setCommandLineOptions("-d=newInst");
loadString("
model mwe
parameter Integer dim=4;
Real vectorA[1,dim];
Real vectorB[1,dim];
equation
vectorA = {{1,2,3,4}};
vectorB = tanh(vectorA) .* ones(1,dim);
end mwe;
"); getErrorString();
simulate(mwe); getErrorString();
true
true
""
record SimulationResult
resultFile = "",
simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'mwe', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
messages = "Simulation execution failed for model: mwe
assert | debug | Index 2 out of bounds [1..1] for array {tanh(1.0)}
assert | info | simulation terminated by an assertion at initialization
",
timeFrontend = 0.0007499000000000001,
timeBackend = 0.0085439,
timeSimCode = 0.0006612,
timeTemplates = 0.0020973,
timeCompile = 0.3537083,
timeSimulation = 0.009690300000000001,
timeTotal = 0.3755453
end SimulationResult;
""
Not sure if this is a frontend, backend or runtime problem. We'll can push it around a bit.
Note:
See TracTickets
for help on using tickets.
