1 | // name: Modelica.Blocks.Examples.BooleanNetwork1
|
---|
2 | // keywords: simulation MSL Examples
|
---|
3 | // status: correct
|
---|
4 | // teardown_command: rm -f *_init.xml *_records.c *.exe *.log *_res.mat *.c *.libs *.makefile *.o *.dll *.so *_functions.h *.h *_diff.csv
|
---|
5 | //
|
---|
6 | // Simulation Results
|
---|
7 | // Modelica Standard Library
|
---|
8 | //
|
---|
9 |
|
---|
10 | loadModel(Modelica,{"3.2.1"});
|
---|
11 |
|
---|
12 | setMatchingAlgorithm("PFPlusExt");
|
---|
13 | setIndexReductionMethod("dynamicStateSelection");
|
---|
14 | simulate(Modelica.Blocks.Examples.BooleanNetwork1);
|
---|
15 | getErrorString();
|
---|
16 |
|
---|
17 | res := OpenModelica.Scripting.compareSimulationResults("Modelica.Blocks.Examples.BooleanNetwork1_res.mat",
|
---|
18 | "ReferenceFiles/Modelica.Blocks.Examples.BooleanNetwork1.mat",
|
---|
19 | "Modelica.Blocks.Examples.BooleanNetwork1_diff.csv",0.01,0.0001,
|
---|
20 | {""});
|
---|
21 |
|
---|
22 | // Result:
|
---|
23 | // true
|
---|
24 | // true
|
---|
25 | // true
|
---|
26 | // No. of Equations: 70
|
---|
27 | // No. of Variables: 70
|
---|
28 | // record SimulationResult
|
---|
29 | // resultFile = "",
|
---|
30 | // simulationOptions = "startTime = 0.0, stopTime = 10.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Blocks.Examples.BooleanNetwork1', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
|
---|
31 | // messages = "Simulation failed for model: Modelica.Blocks.Examples.BooleanNetwork1
|
---|
32 | // Error: Ableitung des Ausdrucks time >= booleanPulse1.pulsStart and time < booleanPulse1.pulsStart + booleanPulse1.Twidth ist nicht existent
|
---|
33 | // Error: Ableitung des Ausdrucks time >= booleanPulse2.pulsStart and time < booleanPulse2.pulsStart + booleanPulse2.Twidth ist nicht existent
|
---|
34 | // Error: Interner Fehler IndexReduction.pantelidesIndexReduction failed! Found empty set of continues equations. Use +d=bltdump to get more information.
|
---|
35 | // Error: Interner Fehler - IndexReduction.pantelidesIndexReduction failed! Use +d=bltdump to get more information.
|
---|
36 | // Error: Interner Fehler - IndexReduction.pantelidesIndexReduction failed!
|
---|
37 | // Error: Das Modell ist strukturell singulär. Fehler wurde durch Sortieren der Gleichungen für Variable gefunden
|
---|
38 | // Error: Interner Fehler Transformation Module failed!
|
---|
39 | // ",
|
---|
40 | // end SimulationResult;
|
---|
41 | // ""
|
---|
42 | // "Error Open File!"
|
---|
43 | // "Files Equal!"
|
---|
44 | // endResult
|
---|