Skip to content

Commit dc2ec3c

Browse files
committed
Add experiment annotation to EightConflictProb
1 parent b3e2c13 commit dc2ec3c

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

PNlib/Examples/DisTest/EightConflictProb.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ equation
3535
connect(T8.inPlaces[1], P1.outTransition[8]) annotation(Line(points={{5.2,-20},
3636
{-0.4,-20},{-0.4,0.875},{-29.2,0.875}}, color = {0, 0, 0}, smooth = Smooth.None));
3737
annotation(Diagram(coordinateSystem(preserveAspectRatio = false, extent={{-60,-60},
38-
{60,60}}), graphics));
38+
{60,60}}), graphics), experiment(StartTime=0.0, StopTime=10.0));
3939
end EightConflictProb;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// name: PNlib.Examples.DisTest.EightConflictProb
2+
// keywords: PNlib, discrete
3+
// status: correct
4+
5+
loadFile("../../PNlib/package.mo"); getErrorString();
6+
simulate(PNlib.Examples.DisTest.EightConflictProb); getErrorString();
7+
res := OpenModelica.Scripting.compareSimulationResults("PNlib.Examples.DisTest.EightConflictProb_res.mat",
8+
"../../ReferenceFiles/PNlib.Examples.DisTest.EightConflictProb.mat",
9+
"PNlib.Examples.DisTest.EightConflictProb_diff.csv", 0.01, 0.0001,
10+
{
11+
"P1.t",
12+
"T1.fire",
13+
"T1.instantaneousSpeed",
14+
"T1.maximumSpeed",
15+
"T2.fire",
16+
"T2.instantaneousSpeed",
17+
"T2.maximumSpeed",
18+
"T3.fire",
19+
"T3.instantaneousSpeed",
20+
"T3.maximumSpeed",
21+
"T4.fire",
22+
"T4.instantaneousSpeed",
23+
"T4.maximumSpeed",
24+
"T5.fire",
25+
"T5.instantaneousSpeed",
26+
"T5.maximumSpeed",
27+
"T6.fire",
28+
"T6.instantaneousSpeed",
29+
"T6.maximumSpeed",
30+
"T7.fire",
31+
"T7.instantaneousSpeed",
32+
"T7.maximumSpeed",
33+
"T8.fire",
34+
"T8.instantaneousSpeed",
35+
"T8.maximumSpeed"
36+
}); getErrorString();
37+
38+
// Result:
39+
// endResult

0 commit comments

Comments
 (0)