7 | | %%(font-family: 'Courier New'; font-size: 11pt) >> loadModel(Modelica)%% |
8 | | |
9 | | %%(font-family: 'Courier New'; font-size: 11pt) true%% |
10 | | |
11 | | >> %%(font-family: 'Courier New'; font-size: 11pt) loadFile("C:/Program Files (x86)/OpenModelica1.8.1/share/doc/omc/testmodels/dcmotor.mo")%% |
12 | | |
13 | | %%(font-family: 'Courier New'; font-size: 11pt) true%% |
14 | | |
15 | | %%(font-family: 'Courier New'; font-size: 11pt) >> simulate(dcmotor,startTime=0.0,stopTime=10.0)%%%%(font-family: 'Courier New'; font-size: 11pt) record SimulationResult%% |
16 | | |
17 | | %%(font-family: 'Courier New'; font-size: 11pt) resultFile = "",%% |
18 | | |
19 | | %%(font-family: 'Courier New'; font-size: 11pt) simulationOptions = "startTime = 0.0, stopTime = 10.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'dcmotor', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",%% |
20 | | |
21 | | %%(font-family: 'Courier New'; font-size: 11pt) messages = "Simulation failed for model: dcmotor%% |
22 | | |
23 | | %%(font-family: 'Courier New'; font-size: 11pt) ",%% |
24 | | |
25 | | %%(font-family: 'Courier New'; font-size: 11pt) timeFrontend = 0.0,%% |
26 | | |
27 | | %%(font-family: 'Courier New'; font-size: 11pt) timeBackend = 0.0,%% |
28 | | |
29 | | %%(font-family: 'Courier New'; font-size: 11pt) timeSimCode = 0.0,%% |
30 | | |
31 | | %%(font-family: 'Courier New'; font-size: 11pt) timeTemplates = 0.0,%% |
32 | | |
33 | | %%(font-family: 'Courier New'; font-size: 11pt) timeCompile = 0.0,%% |
34 | | |
35 | | %%(font-family: 'Courier New'; font-size: 11pt) timeSimulation = 0.0,%% |
36 | | |
37 | | %%(font-family: 'Courier New'; font-size: 11pt) timeTotal = 0.0%% |
38 | | |
39 | | %%(font-family: 'Courier New'; font-size: 11pt) end SimulationResult;%% |
40 | | |
41 | | |
42 | | |
| 9 | {{{ |
| 10 | >> loadModel(Modelica) |
| 11 | true |
| 12 | >> loadFile("C:/Program Files (x86)/OpenModelica1.8.1/share/doc/omc/testmodels/dcmotor.mo") |
| 13 | true |
| 14 | >> simulate(dcmotor,startTime=0.0,stopTime=10.0) |
| 15 | record SimulationResult |
| 16 | resultFile = "", |
| 17 | simulationOptions = "startTime = 0.0, stopTime = 10.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'dcmotor', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''", |
| 18 | messages = "Simulation failed for model: dcmotor", |
| 19 | timeFrontend = 0.0, |
| 20 | timeBackend = 0.0, |
| 21 | timeSimCode = 0.0, |
| 22 | timeTemplates = 0.0, |
| 23 | timeCompile = 0.0, |
| 24 | timeSimulation = 0.0, |
| 25 | timeTotal = 0.0 |
| 26 | end SimulationResult; |
| 27 | }}} |