﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3446	Impure file name passing breaking CombiTimeTable	paul.m.sco@…	Lennart Ochel	"Failure in creating a CombiTimeTable from an ASCII file, where the file name for the table is produced by a function using the ""impure"" keyword.  When the function is not labelled as being ""impure"" it works as expected.

When ""impure"" is used for the function returning the string, the simulation fails with the error saying that ""usertab"" is not implemented.  Looking at the CombiTimeTable external C source code, it seems likely that somehow the C code is being passed ""NoName"", which it interprets as us trying to use ""usertab"".  This might be a problem with calculating the value of the impure function at initialisation used in conjunction with external C code.

An example is attached along with a file that contains the ASCII matrix ""file.ext"".

Run it in shell:
loadModel(Modelica)
loadFile(""impure.mo"")
simulate(Impure)

To get it to work correctly remove the impure keyword from the first function.  Note that I realise that the function in this example is not actually impure, but when the bug first cropped up I was using an impure function."	defect	closed	normal	1.12.0	Backend	trunk	fixed	impure	Lennart Ochel
