Repository navigation
Expand file tree
/
Copy pathfmi-simulators.json
More file actions
82 lines (82 loc) · 4.46 KB
/
Copy pathfmi-simulators.json
File metadata and controls
82 lines (82 loc) · 4.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"_comment": [
"The FMI simulators the testing knows how to run. Adding one is an entry here and nothing else.",
"",
"arguments the command line, a template over: simulator, fmu, result, tempDir,",
" startTime, stopTime, tolerance, timeout, stepSize, and every name",
" defined in optionalArguments.",
"optionalArguments flags that have to disappear when there is nothing to put in them, as a",
" result is always the file the tool should write; requestedResult is empty",
" when the run wants no result file at all, which only OMSimulator acts on.",
" name and its own template. OMSimulator crashes on --stepSize=0 instead of",
" ignoring it, so its step size flag lives here; FMPy wants --output-interval 0",
" all the same and writes the value straight into arguments.",
"command how the tool is invoked, {simulator} by default; FMPy needs a subcommand.",
"resultExtension what the tool writes, so the verification knows what to compare.",
"versionArgument the flag that prints the version, recorded with the results.",
"branchSuffix appended to --branch to get the table of this simulator; the default is",
" -<name>.",
"interface me or cs: which interface the tool runs of an FMU built with --fmuType=me_cs,",
" available to the templates as {interface}. It is empty for an FMU exporting",
" one interface, which the tool then runs; OMSimulator refuses --mode for it.",
"fmiFlags what the tool runs is a copy of the FMU whose resources/<prefix>_flags.json",
" holds these flags instead, which is how the Co-Simulation solver of the C",
" runtime is picked without building the FMU again. s:cvode in any of them",
" builds the FMU with --fmiFlags=s:cvode, which links CVODE into it.",
"untested set it while nobody has run the entry yet; the run then says so."
],
"OMSimulator": {
"branchSuffix": "",
"interface": "me",
"resultExtension": "mat",
"versionArgument": "--version",
"arguments": "{resultArgument} --stripRoot --tempDir={tempDir} --startTime={startTime:g} --stopTime={stopTime:g}{stepSizeArgument}{modeArgument} --timeout={timeout:.0f} --tolerance={tolerance:g} {fmu}",
"optionalArguments": {
"resultArgument": "--resultFile={requestedResult}",
"stepSizeArgument": " --stepSize={stepSize:g}",
"modeArgument": " --mode={interface}"
}
},
"OMSimulator-cs-cvode": {
"branchSuffix": "-cs-cvode",
"interface": "cs",
"fmiFlags": {"s": "cvode"},
"resultExtension": "mat",
"versionArgument": "--version",
"arguments": "{resultArgument} --stripRoot --tempDir={tempDir} --startTime={startTime:g} --stopTime={stopTime:g}{stepSizeArgument}{modeArgument} --timeout={timeout:.0f} --tolerance={tolerance:g} {fmu}",
"optionalArguments": {
"resultArgument": "--resultFile={requestedResult}",
"stepSizeArgument": " --stepSize={stepSize:g}",
"modeArgument": " --mode={interface}"
}
},
"OMSimulator-cs-euler": {
"branchSuffix": "-cs-euler",
"interface": "cs",
"fmiFlags": {"s": "euler"},
"resultExtension": "mat",
"versionArgument": "--version",
"arguments": "{resultArgument} --stripRoot --tempDir={tempDir} --startTime={startTime:g} --stopTime={stopTime:g}{stepSizeArgument}{modeArgument} --timeout={timeout:.0f} --tolerance={tolerance:g} {fmu}",
"optionalArguments": {
"resultArgument": "--resultFile={requestedResult}",
"stepSizeArgument": " --stepSize={stepSize:g}",
"modeArgument": " --mode={interface}"
}
},
"fmpy": {
"interface": "me",
"resultExtension": "csv",
"versionArgument": "--version",
"command": "{simulator} simulate",
"arguments": "--output-file {result} --start-time {startTime:g} --stop-time {stopTime:g} --timeout {timeout:g} --relative-tolerance {tolerance:g} --interface-type ModelExchange --solver CVode --output-interval {stepSize:g} {fmu}"
},
"fmusim": {
"untested": true,
"resultExtension": "csv",
"versionArgument": "--version",
"arguments": "--interface-type ModelExchange --output-file {result} --start-time {startTime:g} --stop-time {stopTime:g}{stepSizeArgument} {fmu}",
"optionalArguments": {
"stepSizeArgument": " --output-interval {stepSize:g}"
}
}
}