-
Notifications
You must be signed in to change notification settings - Fork 298
/
Modelica.Blocks.Sources.BooleanPulse.mos
59 lines (51 loc) · 2.84 KB
/
Modelica.Blocks.Sources.BooleanPulse.mos
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
// name: Modelica.Blocks.Sources.BooleanPulse
// keywords: simulation MSL Examples
// status: correct
// teardown_command: rm -rf binaries sources modelDescription.xml Modelica_Blocks_Sources_BooleanPulse.fmu Modelica_Blocks_Sources_BooleanPulse_* Modelica.Blocks.Sources.BooleanPulse_* Modelica_Blocks_Sources_BooleanPulse_me_FMU.mo Modelica_Blocks_Sources_BooleanPulse.libs Modelica_Blocks_Sources_BooleanPulse.lib Modelica_Blocks_Sources_BooleanPulse.so Modelica_Blocks_Sources_BooleanPulse.dll Modelica_Blocks_Sources_BooleanPulse.c Modelica_Blocks_Sources_BooleanPulse.makefile
// Simulation Results
// Modelica Standard Library
//
loadModel(Modelica, {"3.2.1"});
translateModelFMU(Modelica.Blocks.Sources.BooleanPulse, version="1.0");
getErrorString();
importFMU("Modelica_Blocks_Sources_BooleanPulse.fmu"); getErrorString();
loadFile("Modelica_Blocks_Sources_BooleanPulse_me_FMU.mo"); getErrorString();
simulate(Modelica_Blocks_Sources_BooleanPulse_me_FMU);
getErrorString();
val(y, 0);
val(y, 1);
simulate(Modelica.Blocks.Sources.BooleanPulse);
getErrorString();
val(y, 0);
val(y, 1);
// Result:
// true
// "Modelica_Blocks_Sources_BooleanPulse.fmu"
// "[Modelica 3.2.1+maint.om/Blocks/Sources.mo:2790:5-2791:39:writable] Warning: Parameter period has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// "
// "Modelica_Blocks_Sources_BooleanPulse_me_FMU.mo"
// ""
// true
// ""
// record SimulationResult
// resultFile = "Modelica_Blocks_Sources_BooleanPulse_me_FMU_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica_Blocks_Sources_BooleanPulse_me_FMU', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// end SimulationResult;
// ""
// 1.0
// 1.0
// record SimulationResult
// resultFile = "Modelica.Blocks.Sources.BooleanPulse_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Blocks.Sources.BooleanPulse', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// end SimulationResult;
// "[Modelica 3.2.1+maint.om/Blocks/Sources.mo:2790:5-2791:39:writable] Warning: Parameter period has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value.
// "
// 1.0
// 1.0
// endResult