﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4844	Weird behaviour of OMEdit with packages	Francesco Casella	Adrian Pop	"Please open the {{{ScalableTestSuite library}}}, version 1.10.0, with the latest nightly build. Note the the library was updated today to include the model causing the reported problem, so it may still not be available in the built-in OMC libraries.

Select the {{{ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_10}}} model and simulate it. The code generation process proceeds until the generation of the C code, but then aborts with the following error messages:
{{{
[1] 13:44:00 Error
File.open: Failed to open file ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_10_functions.c with mode 2: No such file or directory

[2] 13:44:01 Error
File.open: Failed to open file ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_10_literals.h with mode 2: No such file or directory

[3] 13:44:01 Translation Error
Template error: A template call failed (C:\OpenModelica1.13.0-dev-64bit\bin\OMEdit.exe: [unknown function name]). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics).

[4] 13:44:01 Translation Error
[C:/dev/OpenModelica64bit/OMCompiler/Compiler/SimCode/SimCodeMain.mo: 449:7-449:78]: Internal error C:\OpenModelica1.13.0-dev-64bit\bin\OMEdit.exe: [unknown function name] failed
}}}

The model is syntactically and semantically correct, and it simulates just fine with the 1.12.0 stable release. Unfortunately I can't say when OMEdit got broken since then.

Also note that if I define a new model
{{{
model foo
  extends ScalableTestSuite.Mechanical.HarmonicOscillator.ScaledExperiments.HarmonicOscillatorNetwork_N_10;
  annotation(experiment(StopTime=10));
end foo;
}}}
it works just fine."	defect	closed	blocker	1.14.0	Frontend		duplicate		
