﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3934	Support the vendor annotations in translateModel and simulation runtime	Adrian Pop	somebody	"We should add support for vendor annotations in translateModel:

Flags {{{fX}}} has the form {{{-name}}} or {{{-name=value}}}.

Annotation in the model:
{{{
__OpenModelica_simulationFlags=(f1 f2 f3 f4)
}}}
Flags in translateModel
{{{
// override f2 from __OpenModelica_simulationFlags
translateModel(M, simflags=""f2 f5 f6"");
}}}
Flags on command line:
{{{
# override f3 from __OpenModelica_simulationFlags
# override f6 from translateModel
./M -f3 f6 f7
}}}

The flags from {{{translateModel}}} should override {{__OpenModelica_simulationFlags}}} and should be put in the {{{M_init.xml}}} file each flag in its own element under {{{<DefaultExperiment>}}}. 

Example {{{M_init.xml}}} file:
{{{#!xml
<DefaultExperiment stopTime=""0"" endTime=""1"">
  <SimFlag>f1</SimFlag>
  <SimFlag>f2</SimFlag>
  <SimFlag>f3</SimFlag>
  <SimFlag>f4</SimFlag>
  <SimFlag>f5</SimFlag>
  <SimFlag>f6</SimFlag>
</DefaultExperiment>
}}}

The simulation runtime (M.exe) will read the simulation flags from {{{M_init.xml}}} and apply them before applying the flags given on the command line.

See also ticket: #3488
"	defect	new	high	1.10.0	Interactive Environment				
