﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6266	Index out of bounds for array returned by built-in function	Andreas Heuermann	Andreas Heuermann	"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 = {{10,20,30,40}};
  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(10.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."	defect	closed	high	1.17.0	Backend	v1.17.0-dev	fixed	array, assertion, newFrontend	kabdelhak
