Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/OpenModelica/OpenModelica…
- Loading branch information
Showing
4 changed files
with
263 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// name: Tearing8-celMC3 | ||
// keywords: tearing | ||
// status: correct | ||
// cflags: +d=backenddaeinfo | ||
|
||
|
||
loadModel(Modelica); getErrorString(); | ||
loadFile("Tearing8.mo"); getErrorString(); | ||
|
||
setDebugFlags("backenddaeinfo"); getErrorString(); | ||
setTearingMethod("cellier"); getErrorString(); | ||
setCommandLineOptions("+tearingHeuristic=MC3 +d=sortEqnsAndVars"); getErrorString(); | ||
simulate(Tearing8); getErrorString(); | ||
|
||
val(R1.i,0.2); getErrorString(); | ||
val(R1.v,0.2); getErrorString(); | ||
|
||
// Result: | ||
// true | ||
// "" | ||
// true | ||
// "" | ||
// true | ||
// "" | ||
// true | ||
// "" | ||
// true | ||
// "" | ||
// record SimulationResult | ||
// resultFile = "Tearing8_res.mat", | ||
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Tearing8', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", | ||
// messages = "" | ||
// end SimulationResult; | ||
// "Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: | ||
// * Number of equations: 126 | ||
// * Number of variables: 126 | ||
// Notification: Model statistics after passing the back-end for simulation: | ||
// * Number of independent subsystems: 1 | ||
// * Number of states: 0 ('+d=stateselection' for list of states) | ||
// * Number of discrete variables: 0 ('+d=discreteinfo' for list of discrete vars) | ||
// * Number of discrete states: 0 ('+d=discreteinfo' for list of discrete states) | ||
// * Top-level inputs: 0 | ||
// Notification: Strong component statistics for simulation (17): | ||
// * Single equations (assignments): 16 | ||
// * Array equations: 0 | ||
// * Algorithm blocks: 0 | ||
// * Record equations: 0 | ||
// * When equations: 0 | ||
// * If-equations: 0 | ||
// * Equation systems (linear and non-linear blocks): 0 | ||
// * Torn equation systems: 1 | ||
// * Mixed (continuous/discrete) equation systems: 0 | ||
// Notification: Torn system details: | ||
// * Linear torn systems: 1 {9 20} | ||
// * Non-linear torn systems: 0 | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R1.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R2.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R3.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R4.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R5.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R6.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R7.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R8.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R9.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R10.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R11.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R12.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Basic.mo:62:3-63:40:writable] Warning: Parameter R13.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Sources.mo:359:5-359:61:writable] Warning: Parameter S.V has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// [Modelica 3.2.1/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter S.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. | ||
// Notification: Model statistics after passing the back-end for initialization: | ||
// * Number of independent subsystems: 2 | ||
// * Number of states: 0 ('+d=stateselection' for list of states) | ||
// * Number of discrete variables: 0 ('+d=discreteinfo' for list of discrete vars) | ||
// * Number of discrete states: 0 ('+d=discreteinfo' for list of discrete states) | ||
// * Top-level inputs: 0 | ||
// Notification: Strong component statistics for initialization (49): | ||
// * Single equations (assignments): 48 | ||
// * Array equations: 0 | ||
// * Algorithm blocks: 0 | ||
// * Record equations: 0 | ||
// * When equations: 0 | ||
// * If-equations: 0 | ||
// * Equation systems (linear and non-linear blocks): 0 | ||
// * Torn equation systems: 1 | ||
// * Mixed (continuous/discrete) equation systems: 0 | ||
// Notification: Torn system details: | ||
// * Linear torn systems: 1 {7 22} | ||
// * Non-linear torn systems: 0 | ||
// " | ||
// 0.3170188387650511 | ||
// "" | ||
// 0.3170188387650511 | ||
// "" | ||
// endResult |