|
| 1 | +// name: PNlib.Examples.ConTest.ConflictLoop |
| 2 | +// keywords: PNlib, continuous |
| 3 | +// status: correct |
| 4 | + |
| 5 | +loadFile("../../PNlib/package.mo"); getErrorString(); |
| 6 | +simulate(PNlib.Examples.ConTest.ConflictLoop); getErrorString(); |
| 7 | +res := OpenModelica.Scripting.compareSimulationResults("PNlib.Examples.ConTest.ConflictLoop_res.mat", |
| 8 | + "../../ReferenceFiles/PNlib.Examples.ConTest.ConflictLoop.mat", |
| 9 | + "PNlib.Examples.ConTest.ConflictLoop_diff.csv", 0.01, 0.0001, |
| 10 | + { |
| 11 | + "P1.t", |
| 12 | + "P2.t", |
| 13 | + "P3.t", |
| 14 | + "T1.fire", |
| 15 | + "T1.instantaneousSpeed", |
| 16 | + "T1.maximumSpeed", |
| 17 | + "T2.fire", |
| 18 | + "T2.instantaneousSpeed", |
| 19 | + "T2.maximumSpeed", |
| 20 | + "T3.fire", |
| 21 | + "T3.instantaneousSpeed", |
| 22 | + "T3.maximumSpeed" |
| 23 | + }); getErrorString(); |
| 24 | + |
| 25 | +// Result: |
| 26 | +// true |
| 27 | +// "Notification: Automatically loaded package Modelica 3.2.1 due to uses annotation. |
| 28 | +// Notification: Automatically loaded package Complex 3.2.1 due to uses annotation. |
| 29 | +// Notification: Automatically loaded package ModelicaServices 3.2.1 due to uses annotation. |
| 30 | +// " |
| 31 | +// record SimulationResult |
| 32 | +// resultFile = "", |
| 33 | +// simulationOptions = "startTime = 0.0, stopTime = 10.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'PNlib.Examples.ConTest.ConflictLoop', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", |
| 34 | +// messages = "Simulation execution failed for model: PNlib.Examples.ConTest.ConflictLoop |
| 35 | +// assert | debug | No system for the symbolic initialization was generated. |
| 36 | +// assert | info | simulation terminated by an assertion at initialization |
| 37 | +// " |
| 38 | +// end SimulationResult; |
| 39 | +// "[PNlib/PNlib/Blocks/enablingInCon.mo:34:7-98:13:writable] Warning: In component P1.enableIn, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions. |
| 40 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:41:13-44:19:writable] Warning: In component P1.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 41 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:78:13-81:19:writable] Warning: In component P1.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 42 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:37:5-101:13:writable] Warning: In component P1.enableOut, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions. |
| 43 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:44:11-47:17:writable] Warning: In component P1.enableOut, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 44 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:81:11-84:17:writable] Warning: In component P1.enableOut, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 45 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:34:7-98:13:writable] Warning: In component P2.enableIn, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions. |
| 46 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:41:13-44:19:writable] Warning: In component P2.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 47 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:78:13-81:19:writable] Warning: In component P2.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 48 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:37:5-101:13:writable] Warning: In component P2.enableOut, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions. |
| 49 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:44:11-47:17:writable] Warning: In component P2.enableOut, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 50 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:81:11-84:17:writable] Warning: In component P2.enableOut, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 51 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:34:7-98:13:writable] Warning: In component P3.enableIn, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions. |
| 52 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:41:13-44:19:writable] Warning: In component P3.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 53 | +// [PNlib/PNlib/Blocks/enablingInCon.mo:78:13-81:19:writable] Warning: In component P3.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 54 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:37:5-101:13:writable] Warning: In component P3.enableOut, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions. |
| 55 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:44:11-47:17:writable] Warning: In component P3.enableOut, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 56 | +// [PNlib/PNlib/Blocks/enablingOutCon.mo:81:11-84:17:writable] Warning: In component P3.enableOut, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions. |
| 57 | +// Notification: The given system is mixed-determined. [index > 0] |
| 58 | +// Notification: The given system is mixed-determined. [index > 1] |
| 59 | +// Notification: The given system is mixed-determined. [index > 2] |
| 60 | +// Notification: The given system is mixed-determined. [index > 3] |
| 61 | +// Error: No system for the symbolic initialization was generated. |
| 62 | +// " |
| 63 | +// {"Error get time!"} |
| 64 | +// "" |
| 65 | +// endResult |
0 commit comments