diff --git a/testsuite/simulation/modelica/NBackend/array_handling/diagonal_slice_for.mos b/testsuite/simulation/modelica/NBackend/array_handling/diagonal_slice_for.mos index 44d1ea63d30..ca294cee6f9 100644 --- a/testsuite/simulation/modelica/NBackend/array_handling/diagonal_slice_for.mos +++ b/testsuite/simulation/modelica/NBackend/array_handling/diagonal_slice_for.mos @@ -35,7 +35,7 @@ equation end entwine_for1; "); getErrorString(); -setCommandLineOptions("--newBackend -d=bltdump"); +setCommandLineOptions("--newBackend"); simulate(diagonal_slice_for1); getErrorString(); val(x[2,1],1); @@ -49,316 +49,6 @@ val(y[3],1); // true // "" // true -// ################################################# -// -// [ODE] Differential-Algebraic: (Causalize) -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = cos(time) ($RES_$AUX_6) -// -// BLOCK 2: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[$i1, $i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 1:4 loop -// [----] [SCAL] (1) x[$i1, $i1] = $i1 * $FUN_1 ($RES_SIM_3) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 3: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// $FUN_2[$i2] -// ### Equation: -// [FOR-] (4) ($RES_$AUX_4) -// [----] for $i2 in 1:4 loop -// [----] [SCAL] (1) $FUN_2[$i2] = sin($i2 * time) ($RES_$AUX_5) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 4: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// y[$i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {15, 10, 5, 0} -// -// BLOCK 5: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[$i1, $i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {11, 7, 3, 14, 6, 2, 13, 9, 1, 12, ...} -// -// ################################################# -// -// [ODE] Differential-Algebraic: (Causalize) -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = cos(time) ($RES_$AUX_6) -// -// BLOCK 2: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[$i1, $i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 1:4 loop -// [----] [SCAL] (1) x[$i1, $i1] = $i1 * $FUN_1 ($RES_SIM_3) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 3: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// $FUN_2[$i2] -// ### Equation: -// [FOR-] (4) ($RES_$AUX_4) -// [----] for $i2 in 1:4 loop -// [----] [SCAL] (1) $FUN_2[$i2] = sin($i2 * time) ($RES_$AUX_5) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 4: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// y[$i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {15, 10, 5, 0} -// -// BLOCK 5: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[$i1, $i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {11, 7, 3, 14, 6, 2, 13, 9, 1, 12, ...} -// -// ######################################### -// -// [INI] Initialization: (Causalize) -// -// ######################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = cos(time) ($RES_$AUX_6) -// -// BLOCK 2: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// $FUN_2[$i2] -// ### Equation: -// [FOR-] (4) ($RES_$AUX_4) -// [----] for $i2 in 1:4 loop -// [----] [SCAL] (1) $FUN_2[$i2] = sin($i2 * time) ($RES_$AUX_5) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 3: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[$i1, $i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 1:4 loop -// [----] [SCAL] (1) x[$i1, $i1] = $i1 * $FUN_1 ($RES_SIM_3) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 4: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// y[$i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {15, 10, 5, 0} -// -// BLOCK 5: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[$i1, $i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {11, 7, 3, 14, 6, 2, 13, 9, 1, 12, ...} -// -// ################################ -// -// [ALG] Algebraic: (Solve) -// -// ################################ -// -// =========================== -// CONTINUOUS 1 ALG System -// =========================== -// -// --- Alias of INI[1 | 1] --- -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = cos(time) ($RES_$AUX_6) -// -// --- Alias of INI[1 | 3] --- -// BLOCK 2: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// x[$i1, $i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 1:4 loop -// [----] [SCAL] (1) x[$i1, $i1] = $i1 * $FUN_1 ($RES_SIM_3) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// --- Alias of INI[1 | 2] --- -// BLOCK 3: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $FUN_2[$i2] -// ### Equation: -// [FOR-] (4) ($RES_$AUX_4) -// [----] for $i2 in 1:4 loop -// [----] [SCAL] (1) $FUN_2[$i2] = sin($i2 * time) ($RES_$AUX_5) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// --- Alias of INI[1 | 4] --- -// BLOCK 4: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// y[$i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) y[$i2] = -($i1 * $FUN_2[$i2] - x[$i1, $i2]) ($RES_SIM_1) -// [----] end for; -// slice: {15, 10, 5, 0} -// -// --- Alias of INI[1 | 5] --- -// BLOCK 5: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// x[$i1, $i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {11, 7, 3, 14, 6, 2, 13, 9, 1, 12, ...} -// -// ##################################### -// -// [INI] Initialization: (Solve) -// -// ##################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = cos(time) ($RES_$AUX_6) -// -// BLOCK 2: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $FUN_2[$i2] -// ### Equation: -// [FOR-] (4) ($RES_$AUX_4) -// [----] for $i2 in 1:4 loop -// [----] [SCAL] (1) $FUN_2[$i2] = sin($i2 * time) ($RES_$AUX_5) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 3: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// x[$i1, $i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 1:4 loop -// [----] [SCAL] (1) x[$i1, $i1] = $i1 * $FUN_1 ($RES_SIM_3) -// [----] end for; -// slice: {3, 2, 1, 0} -// -// BLOCK 4: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// y[$i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) y[$i2] = -($i1 * $FUN_2[$i2] - x[$i1, $i2]) ($RES_SIM_1) -// [----] end for; -// slice: {15, 10, 5, 0} -// -// BLOCK 5: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// x[$i1, $i2] -// ### Equation: -// [FOR-] (16) ($RES_SIM_0) -// [----] for {$i1 in 1:4, $i2 in 1:4} loop -// [----] [SCAL] (1) x[$i1, $i2] = y[$i2] + $i1 * $FUN_2[$i2] ($RES_SIM_1) -// [----] end for; -// slice: {11, 7, 3, 14, 6, 2, 13, 9, 1, 12, ...} -// // record SimulationResult // resultFile = "diagonal_slice_for1_res.mat", // simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'diagonal_slice_for1', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", @@ -369,326 +59,6 @@ val(y[3],1); // "" // 1.3817732906760363 // 3.0647152602918295 -// ################################################# -// -// [ODE] Differential-Algebraic: (Causalize) -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// BLOCK 1: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// y[1] -// ### Equation: -// [SCAL] (1) y[1] = 2.0 ($RES_SIM_6) -// slice: {} -// -// BLOCK 2: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[1] -// ### Equation: -// [SCAL] (1) x[1] = 1.0 ($RES_SIM_7) -// slice: {} -// -// BLOCK 3: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_8) -// -// BLOCK 4: Entwined Component (status = Solve.EXPLICIT) -// ------------------------------------------------------- -// call order: {$RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_0, $RES_SIM_4, ...} -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (5) ($RES_SIM_0) -// [----] for $i1 in 6:10 loop -// [----] [SCAL] (1) y[$i1] = x[$i1 - 1] ($RES_SIM_1) -// [----] end for; -// slice: {0, 1, 2, 3, 4} -// ### Variable: -// x[$i1] -// ### Equation: -// [FOR-] (9) ($RES_SIM_4) -// [----] for $i1 in 2:10 loop -// [----] [SCAL] (1) x[$i1] = y[$i1 - 1] * $FUN_1 ($RES_SIM_5) -// [----] end for; -// slice: {0, 1, 2, 3, 4, 5, 6, 7, 8} -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 2:5 loop -// [----] [SCAL] (1) y[$i1] = x[$i1 - 1] ($RES_SIM_3) -// [----] end for; -// slice: {0, 1, 2, 3} -// -// ################################################# -// -// [ODE] Differential-Algebraic: (Causalize) -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// BLOCK 1: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// y[1] -// ### Equation: -// [SCAL] (1) y[1] = 2.0 ($RES_SIM_6) -// slice: {} -// -// BLOCK 2: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[1] -// ### Equation: -// [SCAL] (1) x[1] = 1.0 ($RES_SIM_7) -// slice: {} -// -// BLOCK 3: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_8) -// -// BLOCK 4: Entwined Component (status = Solve.EXPLICIT) -// ------------------------------------------------------- -// call order: {$RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_0, $RES_SIM_4, ...} -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (5) ($RES_SIM_0) -// [----] for $i1 in 6:10 loop -// [----] [SCAL] (1) y[$i1] = x[$i1 - 1] ($RES_SIM_1) -// [----] end for; -// slice: {0, 1, 2, 3, 4} -// ### Variable: -// x[$i1] -// ### Equation: -// [FOR-] (9) ($RES_SIM_4) -// [----] for $i1 in 2:10 loop -// [----] [SCAL] (1) x[$i1] = y[$i1 - 1] * $FUN_1 ($RES_SIM_5) -// [----] end for; -// slice: {0, 1, 2, 3, 4, 5, 6, 7, 8} -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 2:5 loop -// [----] [SCAL] (1) y[$i1] = x[$i1 - 1] ($RES_SIM_3) -// [----] end for; -// slice: {0, 1, 2, 3} -// -// ######################################### -// -// [INI] Initialization: (Causalize) -// -// ######################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// x[1] -// ### Equation: -// [SCAL] (1) x[1] = 1.0 ($RES_SIM_7) -// slice: {} -// -// BLOCK 2: Sliced Component (status = Solve.UNPROCESSED) -// -------------------------------------------------------- -// ### Variable: -// y[1] -// ### Equation: -// [SCAL] (1) y[1] = 2.0 ($RES_SIM_6) -// slice: {} -// -// BLOCK 3: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_8) -// -// BLOCK 4: Entwined Component (status = Solve.EXPLICIT) -// ------------------------------------------------------- -// call order: {$RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_0, ...} -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (5) ($RES_SIM_0) -// [----] for $i1 in 6:10 loop -// [----] [SCAL] (1) y[$i1] = x[$i1 - 1] ($RES_SIM_1) -// [----] end for; -// slice: {0, 1, 2, 3, 4} -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 2:5 loop -// [----] [SCAL] (1) y[$i1] = x[$i1 - 1] ($RES_SIM_3) -// [----] end for; -// slice: {0, 1, 2, 3} -// ### Variable: -// x[$i1] -// ### Equation: -// [FOR-] (9) ($RES_SIM_4) -// [----] for $i1 in 2:10 loop -// [----] [SCAL] (1) x[$i1] = y[$i1 - 1] * $FUN_1 ($RES_SIM_5) -// [----] end for; -// slice: {0, 1, 2, 3, 4, 5, 6, 7, 8} -// -// ################################ -// -// [ALG] Algebraic: (Solve) -// -// ################################ -// -// =========================== -// CONTINUOUS 1 ALG System -// =========================== -// -// --- Alias of INI[1 | 2] --- -// BLOCK 1: Sliced Component (status = Solve.EXPLICIT) -// ----------------------------------------------------- -// ### Variable: -// y[1] -// ### Equation: -// [SCAL] (1) y[1] = 2.0 ($RES_SIM_6) -// slice: {} -// -// --- Alias of INI[1 | 1] --- -// BLOCK 2: Sliced Component (status = Solve.EXPLICIT) -// ----------------------------------------------------- -// ### Variable: -// x[1] -// ### Equation: -// [SCAL] (1) x[1] = 1.0 ($RES_SIM_7) -// slice: {} -// -// --- Alias of INI[1 | 3] --- -// BLOCK 3: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_8) -// -// BLOCK 4: Entwined Component (status = Solve.EXPLICIT) -// ------------------------------------------------------- -// call order: {$RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_0, $RES_SIM_4, ...} -// BLOCK: Generic Component (status = Solve.EXPLICIT) -// ---------------------------------------------------- -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (5) ($RES_SIM_0) -// [----] for $i1 in 6:10 loop -// [----] [SCAL] (1) y[$i1] = x[(-1) + $i1] ($RES_SIM_1) -// [----] end for; -// slice: {0, 1, 2, 3, 4} -// BLOCK: Generic Component (status = Solve.EXPLICIT) -// ---------------------------------------------------- -// ### Variable: -// x[$i1] -// ### Equation: -// [FOR-] (9) ($RES_SIM_4) -// [----] for $i1 in 2:10 loop -// [----] [SCAL] (1) x[$i1] = y[(-1) + $i1] * $FUN_1 ($RES_SIM_5) -// [----] end for; -// slice: {0, 1, 2, 3, 4, 5, 6, 7, 8} -// BLOCK: Generic Component (status = Solve.EXPLICIT) -// ---------------------------------------------------- -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 2:5 loop -// [----] [SCAL] (1) y[$i1] = x[(-1) + $i1] ($RES_SIM_3) -// [----] end for; -// slice: {0, 1, 2, 3} -// -// ##################################### -// -// [INI] Initialization: (Solve) -// -// ##################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Sliced Component (status = Solve.EXPLICIT) -// ----------------------------------------------------- -// ### Variable: -// x[1] -// ### Equation: -// [SCAL] (1) x[1] = 1.0 ($RES_SIM_7) -// slice: {} -// -// BLOCK 2: Sliced Component (status = Solve.EXPLICIT) -// ----------------------------------------------------- -// ### Variable: -// y[1] -// ### Equation: -// [SCAL] (1) y[1] = 2.0 ($RES_SIM_6) -// slice: {} -// -// BLOCK 3: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_8) -// -// BLOCK 4: Entwined Component (status = Solve.EXPLICIT) -// ------------------------------------------------------- -// call order: {$RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_2, $RES_SIM_4, $RES_SIM_0, ...} -// BLOCK: Generic Component (status = Solve.EXPLICIT) -// ---------------------------------------------------- -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (5) ($RES_SIM_0) -// [----] for $i1 in 6:10 loop -// [----] [SCAL] (1) y[$i1] = x[(-1) + $i1] ($RES_SIM_1) -// [----] end for; -// slice: {0, 1, 2, 3, 4} -// BLOCK: Generic Component (status = Solve.EXPLICIT) -// ---------------------------------------------------- -// ### Variable: -// y[$i1] -// ### Equation: -// [FOR-] (4) ($RES_SIM_2) -// [----] for $i1 in 2:5 loop -// [----] [SCAL] (1) y[$i1] = x[(-1) + $i1] ($RES_SIM_3) -// [----] end for; -// slice: {0, 1, 2, 3} -// BLOCK: Generic Component (status = Solve.EXPLICIT) -// ---------------------------------------------------- -// ### Variable: -// x[$i1] -// ### Equation: -// [FOR-] (9) ($RES_SIM_4) -// [----] for $i1 in 2:10 loop -// [----] [SCAL] (1) x[$i1] = y[(-1) + $i1] * $FUN_1 ($RES_SIM_5) -// [----] end for; -// slice: {0, 1, 2, 3, 4, 5, 6, 7, 8} -// // record SimulationResult // resultFile = "entwine_for1_res.mat", // simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'entwine_for1', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", diff --git a/testsuite/simulation/modelica/NBackend/array_handling/simple_der_for.mos b/testsuite/simulation/modelica/NBackend/array_handling/simple_der_for.mos index 1ff76bb3d21..011a85fda38 100644 --- a/testsuite/simulation/modelica/NBackend/array_handling/simple_der_for.mos +++ b/testsuite/simulation/modelica/NBackend/array_handling/simple_der_for.mos @@ -15,145 +15,17 @@ end simple_der_for; "); getErrorString(); -setCommandLineOptions("--newBackend -d=symjacdump"); +//setCommandLineOptions("--newBackend"); simulate(simple_der_for); getErrorString(); +val(x[1],1); +val(x[10],1); + // Result: // true // "" // true -// ################################################# -// -// [symjacdump] Creating symbolic Jacobians: -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// --- Alias of INI[1 | 1] --- -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_2 -// ### Equation: -// [SCAL] (1) $FUN_2 = cos(time) ($RES_$AUX_3) -// -// --- Alias of INI[1 | 2] --- -// BLOCK 2: Sliced Component (status = Solve.EXPLICIT) -// ----------------------------------------------------- -// ### Variable: -// $DER.x[3] -// ### Equation: -// [SCAL] (1) $DER.x[3] = $FUN_2 ($RES_SIM_0) -// slice: {} -// -// --- Alias of INI[1 | 4] --- -// BLOCK 3: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $FUN_1[$i1] -// ### Equation: -// [FOR-] (10) ($RES_$AUX_4) -// [----] for $i1 in 1:10 loop -// [----] [SCAL] (1) $FUN_1[$i1] = sin($i1 * time) ($RES_$AUX_5) -// [----] end for; -// slice: {9, 8, 7, 6, 5, 4, 3, 2, 1, 0} -// -// --- Alias of INI[1 | 5] --- -// BLOCK 4: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[$i1] -// ### Equation: -// [FOR-] (10) ($RES_SIM_1) -// [----] for $i1 in 1:10 loop -// [----] [SCAL] (1) $DER.x[$i1] = x[$i1] + $DER.x[1 + $i1] + $FUN_1[$i1] ($RES_SIM_2) -// [----] end for; -// slice: {0, 1} -// -// --- Alias of INI[1 | 6] --- -// BLOCK 5: Generic Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[1 + $i1] -// ### Equation: -// [FOR-] (10) ($RES_SIM_1) -// [----] for $i1 in 1:10 loop -// [----] [SCAL] (1) $DER.x[1 + $i1] = -((x[$i1] + $FUN_1[$i1]) - $DER.x[$i1]) ($RES_SIM_2) -// [----] end for; -// slice: {9, 8, 7, 6, 5, 4, 3, 2} -// -// ################################### -// -// [ODE] Jacobian ODE_JAC: SIM -// -// ################################### -// -// Partial Derivative Variables (3/22) -// ************************************* -// (1) [ALGB] (1) Real $FUN_2 -// (2) [ALGB] (10) Real[10] $FUN_1 -// (3) [DER-] (11) Real[11] $DER.x -// -// Seed Variables (1/11) -// *********************** -// (1) [STAT] (11) Real[11] x -// -// ============================== -// Sparsity Pattern (nnz: 10) -// ============================== -// -// ### Seeds (col vars) ### -// -------------------------- -// {x[11], x[10], x[9], x[8], x[7], x[6], x[5], x[4], x[3], x[2], x[1]} -// -// ### Partials (row vars) ### -// ----------------------------- -// {$DER.x[11], $DER.x[10], $DER.x[9], $DER.x[8], $DER.x[7], $DER.x[6], $DER.x[5], $DER.x[4], $DER.x[3], $DER.x[2], $DER.x[1]} -// -// ### Columns ### -// ----------------- -// (x[1]) affects: {$DER.x[2]} -// (x[2]) affects: {$DER.x[3]} -// (x[3]) affects: {$DER.x[4]} -// (x[4]) affects: {$DER.x[5]} -// (x[5]) affects: {$DER.x[6]} -// (x[6]) affects: {$DER.x[7]} -// (x[7]) affects: {$DER.x[8]} -// (x[8]) affects: {$DER.x[9]} -// (x[9]) affects: {$DER.x[9]} -// (x[10]) affects: {$DER.x[10]} -// (x[11]) affects: {} -// -// ##### Rows ##### -// ------------------ -// ($DER.x[1]) depends on: {} -// ($DER.x[2]) depends on: {x[1]} -// ($DER.x[3]) depends on: {x[2]} -// ($DER.x[4]) depends on: {x[3]} -// ($DER.x[5]) depends on: {x[4]} -// ($DER.x[6]) depends on: {x[5]} -// ($DER.x[7]) depends on: {x[6]} -// ($DER.x[8]) depends on: {x[7]} -// ($DER.x[9]) depends on: {x[8],x[9]} -// ($DER.x[10]) depends on: {x[10]} -// ($DER.x[11]) depends on: {} -// -// ===================== -// Sparsity Coloring -// ===================== -// Color (1) -// - Column: {x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[9],x[10],x[11]} -// - Row: {} -// -// Color (2) -// - Column: {x[8]} -// - Row: {} -// -// // record SimulationResult // resultFile = "simple_der_for_res.mat", // simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simple_der_for', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", @@ -162,4 +34,6 @@ simulate(simple_der_for); getErrorString(); // " // end SimulationResult; // "" +// 4.665076808625762 +// 0.8270481657743375 // endResult diff --git a/testsuite/simulation/modelica/NBackend/basics/partitioning.mos b/testsuite/simulation/modelica/NBackend/basics/partitioning.mos index 9f9c20faa6e..920fb404e7b 100644 --- a/testsuite/simulation/modelica/NBackend/basics/partitioning.mos +++ b/testsuite/simulation/modelica/NBackend/basics/partitioning.mos @@ -16,276 +16,58 @@ end partitioning; "); getErrorString(); -setCommandLineOptions("--newBackend -d=bltdump"); getErrorString(); +setCommandLineOptions("--newBackend -d=dumpSynchronous"); getErrorString(); simulate(partitioning); getErrorString(); +val(x, 1); + // Result: // true // "" // true // "" -// ################################################# +// ############################################## // -// [ODE] Differential-Algebraic: (Causalize) +// [dumpSynchronous] Partitioning result: // -// ################################################# +// ############################################## // // =========================== // CONTINUOUS 1 ODE System // =========================== // -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real k -// ### Equation: -// [SCAL] (1) k = cos(time) ($RES_$AUX_5) -// -// BLOCK 2: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real z -// ### Equation: -// [SCAL] (1) z = a ^ 2.0 * k ($RES_SIM_2) -// -// =========================== -// CONTINUOUS 2 ODE System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real y -// ### Equation: -// [SCAL] (1) y = x ^ 2.0 + a ($RES_SIM_1) -// -// BLOCK 2: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_2 -// ### Equation: -// [SCAL] (1) $FUN_2 = sin(time) ($RES_$AUX_4) -// -// BLOCK 3: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $DER.x -// ### Equation: -// [SCAL] (1) $DER.x = $FUN_2 ($RES_SIM_0) -// -// ################################################# -// -// [ODE] Differential-Algebraic: (Causalize) -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real k -// ### Equation: -// [SCAL] (1) k = cos(time) ($RES_$AUX_5) -// -// BLOCK 2: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real z -// ### Equation: -// [SCAL] (1) z = a ^ 2.0 * k ($RES_SIM_2) -// -// =========================== -// CONTINUOUS 2 ODE System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real y -// ### Equation: -// [SCAL] (1) y = x ^ 2.0 + a ($RES_SIM_1) -// -// BLOCK 2: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_2 -// ### Equation: -// [SCAL] (1) $FUN_2 = sin(time) ($RES_$AUX_4) -// -// BLOCK 3: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $DER.x -// ### Equation: -// [SCAL] (1) $DER.x = $FUN_2 ($RES_SIM_0) -// -// ######################################### -// -// [INI] Initialization: (Causalize) -// -// ######################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_2 -// ### Equation: -// [SCAL] (1) $FUN_2 = sin(time) ($RES_$AUX_4) -// -// BLOCK 2: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $DER.x -// ### Equation: -// [SCAL] (1) $DER.x = $FUN_2 ($RES_SIM_0) -// -// BLOCK 3: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real x -// ### Equation: -// [SCAL] (1) x = $START.x ($RES_SIM_7) +// Unknown Variables (2/2) +// ************************* +// (1) [ALGB] (1) Real z +// (2) [ALGB] (1) Real k // -// BLOCK 4: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real y -// ### Equation: -// [SCAL] (1) y = x ^ 2.0 + a ($RES_SIM_1) // -// BLOCK 5: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real k -// ### Equation: -// [SCAL] (1) k = cos(time) ($RES_$AUX_5) +// Equations Equations (2/2) +// *************************** +// (1) [SCAL] (1) z = a ^ 2.0 * k ($RES_SIM_2) +// (2) [SCAL] (1) k = cos(time) ($RES_$AUX_5) // -// BLOCK 6: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real z -// ### Equation: -// [SCAL] (1) z = a ^ 2.0 * k ($RES_SIM_2) // -// ############################################# -// -// [ODE] Differential-Algebraic: (Solve) -// -// ############################################# // // =========================== // CONTINUOUS 2 ODE System // =========================== // -// --- Alias of INI[1 | 4] --- -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real y -// ### Equation: -// [SCAL] (1) y = x ^ 2.0 + a ($RES_SIM_1) -// -// --- Alias of INI[1 | 1] --- -// BLOCK 2: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_2 -// ### Equation: -// [SCAL] (1) $FUN_2 = sin(time) ($RES_$AUX_4) -// -// --- Alias of INI[1 | 2] --- -// BLOCK 3: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $DER.x -// ### Equation: -// [SCAL] (1) $DER.x = $FUN_2 ($RES_SIM_0) -// -// ################################ -// -// [ALG] Algebraic: (Solve) -// -// ################################ -// -// =========================== -// CONTINUOUS 1 ALG System -// =========================== -// -// --- Alias of INI[1 | 5] --- -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real k -// ### Equation: -// [SCAL] (1) k = cos(time) ($RES_$AUX_5) -// -// --- Alias of INI[1 | 6] --- -// BLOCK 2: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real z -// ### Equation: -// [SCAL] (1) z = a ^ 2.0 * k ($RES_SIM_2) -// -// ##################################### -// -// [INI] Initialization: (Solve) -// -// ##################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_2 -// ### Equation: -// [SCAL] (1) $FUN_2 = sin(time) ($RES_$AUX_4) -// -// BLOCK 2: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $DER.x -// ### Equation: -// [SCAL] (1) $DER.x = $FUN_2 ($RES_SIM_0) +// Unknown Variables (3/3) +// ************************* +// (1) [ALGB] (1) Real y +// (2) [ALGB] (1) Real $FUN_2 +// (3) [DER-] (1) Real $DER.x // -// BLOCK 3: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real x -// ### Equation: -// [SCAL] (1) x = $START.x ($RES_SIM_7) // -// BLOCK 4: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real y -// ### Equation: -// [SCAL] (1) y = x ^ 2.0 + a ($RES_SIM_1) +// Equations Equations (3/3) +// *************************** +// (1) [SCAL] (1) y = x ^ 2.0 + a ($RES_SIM_1) +// (2) [SCAL] (1) $DER.x = $FUN_2 ($RES_SIM_0) +// (3) [SCAL] (1) $FUN_2 = sin(time) ($RES_$AUX_4) // -// BLOCK 5: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real k -// ### Equation: -// [SCAL] (1) k = cos(time) ($RES_$AUX_5) // -// BLOCK 6: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real z -// ### Equation: -// [SCAL] (1) z = a ^ 2.0 * k ($RES_SIM_2) // // record SimulationResult // resultFile = "partitioning_res.mat", @@ -295,4 +77,5 @@ simulate(partitioning); getErrorString(); // " // end SimulationResult; // "" +// 0.45969220091667 // endResult diff --git a/testsuite/simulation/modelica/NBackend/basics/simpleNonlinearLoop.mos b/testsuite/simulation/modelica/NBackend/basics/simpleNonlinearLoop.mos index 92be8b6000e..03706bac4d4 100644 --- a/testsuite/simulation/modelica/NBackend/basics/simpleNonlinearLoop.mos +++ b/testsuite/simulation/modelica/NBackend/basics/simpleNonlinearLoop.mos @@ -11,313 +11,24 @@ equation end simpleNonlinearLoop; "); getErrorString(); -setCommandLineOptions("--newBackend -d=bltdump"); +setCommandLineOptions("--newBackend"); simulate(simpleNonlinearLoop); getErrorString(); +val(x,1); +val(y,1); + // Result: // true // "" // true -// ################################################# -// -// [ODE] Differential-Algebraic: (Causalize) -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_3) -// -// BLOCK 2: Algebraic Loop (Linear = false, Mixed = false) -// --------------------------------------------------------- -// Strict Tearing Set -// ******************** -// ### Iteration Variables: -// [ALGB] (1) Real y (start = 1.0, nominal = 1.0) -// slice: {}; -// [ALGB] (1) Real x (start = 1.0, nominal = 1.0) -// slice: {}; -// ### Residual Equations: -// [SCAL] (1) x = y ^ 2.0 + $FUN_1 ($RES_SIM_1) -// slice: {}; -// [SCAL] (1) y = sin(x) ($RES_$AUX_2) -// slice: {}; -// ### Inner Equations: -// -// ################################################# -// -// [ODE] Differential-Algebraic: (Causalize) -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_3) -// -// BLOCK 2: Algebraic Loop (Linear = false, Mixed = false) -// --------------------------------------------------------- -// Strict Tearing Set -// ******************** -// ### Iteration Variables: -// [ALGB] (1) Real y (start = 1.0, nominal = 1.0) -// slice: {}; -// [ALGB] (1) Real x (start = 1.0, nominal = 1.0) -// slice: {}; -// ### Residual Equations: -// [SCAL] (1) x = y ^ 2.0 + $FUN_1 ($RES_SIM_1) -// slice: {}; -// [SCAL] (1) y = sin(x) ($RES_$AUX_2) -// slice: {}; -// ### Inner Equations: -// -// ######################################### -// -// [INI] Initialization: (Causalize) -// -// ######################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.UNPROCESSED) -// --------------------------------------------------------------- -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_3) -// -// BLOCK 2: Algebraic Loop (Linear = false, Mixed = false) -// --------------------------------------------------------- -// Strict Tearing Set -// ******************** -// ### Iteration Variables: -// [ALGB] (1) Real x (start = 1.0, nominal = 1.0) -// slice: {}; -// [ALGB] (1) Real y (start = 1.0, nominal = 1.0) -// slice: {}; -// ### Residual Equations: -// [SCAL] (1) x = y ^ 2.0 + $FUN_1 ($RES_SIM_1) -// slice: {}; -// [SCAL] (1) y = sin(x) ($RES_$AUX_2) -// slice: {}; -// ### Inner Equations: -// -// ################################ -// -// [ALG] Algebraic: (Solve) -// -// ################################ -// -// =========================== -// CONTINUOUS 1 ALG System -// =========================== -// -// --- Alias of INI[1 | 1] --- -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_3) -// -// BLOCK 2: Algebraic Loop (Linear = false, Mixed = false) -// --------------------------------------------------------- -// Strict Tearing Set -// ******************** -// ### Iteration Variables: -// [ALGB] (1) Real y (start = 1.0, nominal = 1.0) -// slice: {}; -// [ALGB] (1) Real x (start = 1.0, nominal = 1.0) -// slice: {}; -// ### Residual Equations: -// [SCAL] (1) $RES_SIM_1 = (y ^ 2.0 + $FUN_1) - x ($RES_SIM_1) -// slice: {}; -// [SCAL] (1) $RES_$AUX_2 = sin(x) - y ($RES_$AUX_2) -// slice: {}; -// ### Inner Equations: -// -// ######################################### -// -// [NLS] Jacobian ODE_NLS_JAC_1: NLS -// -// ######################################### -// -// Partial Derivative Variables (2/2) -// ************************************ -// (1) [JVAR] (1) Real $pDER_ODE_NLS_JAC_1.$RES_$AUX_2 -// (2) [JVAR] (1) Real $pDER_ODE_NLS_JAC_1.$RES_SIM_1 -// -// Seed Variables (2/2) -// ********************** -// (1) [SEED] (1) Real $SEED_ODE_NLS_JAC_1.x -// (2) [SEED] (1) Real $SEED_ODE_NLS_JAC_1.y -// -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $pDER_ODE_NLS_JAC_1.$RES_SIM_1 -// ### Equation: -// [SCAL] (1) $pDER_ODE_NLS_JAC_1.$RES_SIM_1 = 2.0 * y * $SEED_ODE_NLS_JAC_1.y - $SEED_ODE_NLS_JAC_1.x ($RES_ODE_NLS_JAC_1_0) -// -// BLOCK 2: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $pDER_ODE_NLS_JAC_1.$RES_$AUX_2 -// ### Equation: -// [SCAL] (1) $pDER_ODE_NLS_JAC_1.$RES_$AUX_2 = cos(x) * $SEED_ODE_NLS_JAC_1.x - $SEED_ODE_NLS_JAC_1.y ($RES_ODE_NLS_JAC_1_1) -// -// ============================= -// Sparsity Pattern (nnz: 4) -// ============================= -// -// ### Seeds (col vars) ### -// -------------------------- -// {x, y} -// -// ### Partials (row vars) ### -// ----------------------------- -// {$RES_$AUX_2, $RES_SIM_1} -// -// ### Columns ### -// ----------------- -// (y) affects: {$RES_SIM_1,$RES_$AUX_2} -// (x) affects: {$RES_SIM_1,$RES_$AUX_2} -// -// ##### Rows ##### -// ------------------ -// ($RES_SIM_1) depends on: {x,y} -// ($RES_$AUX_2) depends on: {x,y} -// -// ===================== -// Sparsity Coloring -// ===================== -// Color (1) -// - Column: {x} -// - Row: {} -// -// Color (2) -// - Column: {y} -// - Row: {} -// -// -// ##################################### -// -// [INI] Initialization: (Solve) -// -// ##################################### -// -// =========================== -// CONTINUOUS 1 INI System -// =========================== -// -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_1 -// ### Equation: -// [SCAL] (1) $FUN_1 = sin(time) ($RES_$AUX_3) -// -// BLOCK 2: Algebraic Loop (Linear = false, Mixed = false) -// --------------------------------------------------------- -// Strict Tearing Set -// ******************** -// ### Iteration Variables: -// [ALGB] (1) Real x (start = 1.0, nominal = 1.0) -// slice: {}; -// [ALGB] (1) Real y (start = 1.0, nominal = 1.0) -// slice: {}; -// ### Residual Equations: -// [SCAL] (1) $RES_SIM_1 = (y ^ 2.0 + $FUN_1) - x ($RES_SIM_1) -// slice: {}; -// [SCAL] (1) $RES_$AUX_2 = sin(x) - y ($RES_$AUX_2) -// slice: {}; -// ### Inner Equations: -// -// ######################################### -// -// [NLS] Jacobian INI_NLS_JAC_1: NLS -// -// ######################################### -// -// Partial Derivative Variables (2/2) -// ************************************ -// (1) [JVAR] (1) Real $pDER_INI_NLS_JAC_1.$RES_$AUX_2 -// (2) [JVAR] (1) Real $pDER_INI_NLS_JAC_1.$RES_SIM_1 -// -// Seed Variables (2/2) -// ********************** -// (1) [SEED] (1) Real $SEED_INI_NLS_JAC_1.y -// (2) [SEED] (1) Real $SEED_INI_NLS_JAC_1.x -// -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $pDER_INI_NLS_JAC_1.$RES_SIM_1 -// ### Equation: -// [SCAL] (1) $pDER_INI_NLS_JAC_1.$RES_SIM_1 = 2.0 * y * $SEED_INI_NLS_JAC_1.y - $SEED_INI_NLS_JAC_1.x ($RES_INI_NLS_JAC_1_0) -// -// BLOCK 2: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $pDER_INI_NLS_JAC_1.$RES_$AUX_2 -// ### Equation: -// [SCAL] (1) $pDER_INI_NLS_JAC_1.$RES_$AUX_2 = cos(x) * $SEED_INI_NLS_JAC_1.x - $SEED_INI_NLS_JAC_1.y ($RES_INI_NLS_JAC_1_1) -// -// ============================= -// Sparsity Pattern (nnz: 4) -// ============================= -// -// ### Seeds (col vars) ### -// -------------------------- -// {y, x} -// -// ### Partials (row vars) ### -// ----------------------------- -// {$RES_$AUX_2, $RES_SIM_1} -// -// ### Columns ### -// ----------------- -// (x) affects: {$RES_SIM_1,$RES_$AUX_2} -// (y) affects: {$RES_SIM_1,$RES_$AUX_2} -// -// ##### Rows ##### -// ------------------ -// ($RES_SIM_1) depends on: {x,y} -// ($RES_$AUX_2) depends on: {x,y} -// -// ===================== -// Sparsity Coloring -// ===================== -// Color (1) -// - Column: {y} -// - Row: {} -// -// Color (2) -// - Column: {x} -// - Row: {} -// -// // record SimulationResult // resultFile = "simpleNonlinearLoop_res.mat", -// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'simpleNonlinearLoop', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'simpleNonlinearLoop', 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.7929327169004783 +// 0.9754289990012507 // endResult diff --git a/testsuite/simulation/modelica/NBackend/event_handling/hybridSys.mos b/testsuite/simulation/modelica/NBackend/event_handling/hybridSys.mos index 12aa906e6e2..22395808b25 100644 --- a/testsuite/simulation/modelica/NBackend/event_handling/hybridSys.mos +++ b/testsuite/simulation/modelica/NBackend/event_handling/hybridSys.mos @@ -5,94 +5,30 @@ loadFile("hybridSys.mo"); getErrorString(); -setCommandLineOptions("--newBackend -d=stateselection,initialization"); getErrorString(); +setCommandLineOptions("--newBackend"); getErrorString(); -simulate(hybridSys); getErrorString(); +simulate(hybridSys, stopTime=2); getErrorString(); + +val(x2, 0.0); +val(x2, 2.0); +val(phase_Start, 0.9); +val(phase_Start, 1.1); // Result: // true // "" // true // "" -// [stateselection] Natural states before index reduction: -// ********************************************************* -// [STAT] (1) Real x1 (start = 10.0) -// -// [stateselection] Natural discrete states from discrete equations: -// ******************************************************************* -// [DISS] (1) Real x_End (start = 0.0) -// [DISS] (1) Real x_Loop3 (start = 0.0) -// [DISS] (1) Real x_Loop2 (start = 0.0) -// [DISS] (1) Real x_Loop1 (start = 0.0) -// [DISS] (1) Real x_Start (start = 0.0) -// -// [stateselection] Natural discrete states from initial equations: -// ****************************************************************** -// -// -// Created When Replacement Equations (5): -// ***************************************** -// [SCAL] (1) x_Start = $PRE.x_Start ($RES_SRT_30) -// [SCAL] (1) x_Loop1 = $PRE.x_Loop1 ($RES_SRT_29) -// [SCAL] (1) x_Loop2 = $PRE.x_Loop2 ($RES_SRT_28) -// [SCAL] (1) x_Loop3 = $PRE.x_Loop3 ($RES_SRT_27) -// [SCAL] (1) x_End = $PRE.x_End ($RES_SRT_26) -// -// ############################## -// -// Balance Initialization -// -// ############################## -// -// Stage 10 underdetermined. -// Not overdetermined. -// ********************* -// -// (10) Unmatched variables: -// *************************** -// [DISS] (1) Real x_Start (start = 0.0) -// slice: {}; -// [DISS] (1) Real x_Loop1 (start = 0.0) -// slice: {}; -// [DISS] (1) Real x_Loop2 (start = 0.0) -// slice: {}; -// [DISS] (1) Real x_Loop3 (start = 0.0) -// slice: {}; -// [DISS] (1) Real x_End (start = 0.0) -// slice: {}; -// [STAT] (1) Real x1 (start = 10.0) -// slice: {}; -// [PRE-] (1) Boolean $PRE.phase_Loop2 -// slice: {}; -// [PRE-] (1) Boolean $PRE.phase_Loop1 -// slice: {}; -// [PRE-] (1) Boolean $PRE.phase_Loop3 -// slice: {}; -// [PRE-] (1) Boolean $PRE.phase_Start -// slice: {}; -// Created Start Equations for balancing the Initialization (10): -// **************************************************************** -// [SCAL] (1) $PRE.phase_Start = $START.phase_Start ($RES_SIM_41) -// [SCAL] (1) $PRE.phase_Loop3 = $START.phase_Loop3 ($RES_SIM_42) -// [SCAL] (1) $PRE.phase_Loop1 = $START.phase_Loop1 ($RES_SIM_43) -// [SCAL] (1) $PRE.phase_Loop2 = $START.phase_Loop2 ($RES_SIM_44) -// [SCAL] (1) x1 = $START.x1 ($RES_SIM_45) -// [SCAL] (1) $PRE.x_End = $START.x_End ($RES_SIM_46) -// [SCAL] (1) $PRE.x_Loop3 = $START.x_Loop3 ($RES_SIM_47) -// [SCAL] (1) $PRE.x_Loop2 = $START.x_Loop2 ($RES_SIM_48) -// [SCAL] (1) $PRE.x_Loop1 = $START.x_Loop1 ($RES_SIM_49) -// [SCAL] (1) $PRE.x_Start = $START.x_Start ($RES_SIM_50) -// -// Not underdetermined. -// ********************** -// Not overdetermined. -// ********************* // record SimulationResult // resultFile = "hybridSys_res.mat", -// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'hybridSys', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +// simulationOptions = "startTime = 0.0, stopTime = 2.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'hybridSys', 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; // "" +// 10.0 +// 2.353351017981785 +// 1.0 +// 0.0 // endResult diff --git a/testsuite/simulation/modelica/NBackend/functions/builtin_functions.mos b/testsuite/simulation/modelica/NBackend/functions/builtin_functions.mos index 4355aff61f7..e8234fafc3c 100644 --- a/testsuite/simulation/modelica/NBackend/functions/builtin_functions.mos +++ b/testsuite/simulation/modelica/NBackend/functions/builtin_functions.mos @@ -23,359 +23,31 @@ equation der(x[13]) = log10(y+1); der(x[14]) = atan2(y, x[1]); end builtin_functions; - "); getErrorString(); -setCommandLineOptions("--newBackend -d=symjacdump"); getErrorString(); +setCommandLineOptions("--newBackend"); getErrorString(); simulate(builtin_functions); getErrorString(); + +val(x[1],1.0); +val(x[2],1.0); +val(x[3],1.0); +val(x[4],1.0); +val(x[5],1.0); +val(x[6],1.0); +val(x[7],1.0); +val(x[8],1.0); +val(x[9],1.0); +val(x[10],1.0); +val(x[11],1.0); +val(x[12],1.0); +val(x[13],1.0); +val(x[14],1.0); + // Result: // true // "" // true // "" -// ################################################# -// -// [symjacdump] Creating symbolic Jacobians: -// -// ################################################# -// -// =========================== -// CONTINUOUS 1 ODE System -// =========================== -// -// --- Alias of INI[1 | 2] --- -// BLOCK 1: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real y -// ### Equation: -// [SCAL] (1) y = abs(x[2]) ($RES_$AUX_29) -// -// --- Alias of INI[1 | 17] --- -// BLOCK 2: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_9 -// ### Equation: -// [SCAL] (1) $FUN_9 = sinh(y) ($RES_$AUX_21) -// -// --- Alias of INI[1 | 15] --- -// BLOCK 3: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_8 -// ### Equation: -// [SCAL] (1) $FUN_8 = atan(y) ($RES_$AUX_22) -// -// --- Alias of INI[1 | 13] --- -// BLOCK 4: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_7 -// ### Equation: -// [SCAL] (1) $FUN_7 = acos(y) ($RES_$AUX_23) -// -// --- Alias of INI[1 | 11] --- -// BLOCK 5: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_6 -// ### Equation: -// [SCAL] (1) $FUN_6 = asin(y) ($RES_$AUX_24) -// -// --- Alias of INI[1 | 9] --- -// BLOCK 6: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_5 -// ### Equation: -// [SCAL] (1) $FUN_5 = tan(y) ($RES_$AUX_25) -// -// --- Alias of INI[1 | 7] --- -// BLOCK 7: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_4 -// ### Equation: -// [SCAL] (1) $FUN_4 = cos(y) ($RES_$AUX_26) -// -// --- Alias of INI[1 | 5] --- -// BLOCK 8: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_3 -// ### Equation: -// [SCAL] (1) $FUN_3 = sin(y) ($RES_$AUX_27) -// -// --- Alias of INI[1 | 3] --- -// BLOCK 9: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------ -// ### Variable: -// Real $FUN_2 -// ### Equation: -// [SCAL] (1) $FUN_2 = sqrt(y) ($RES_$AUX_28) -// -// --- Alias of INI[1 | 29] --- -// BLOCK 10: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------- -// ### Variable: -// Real $FUN_15 -// ### Equation: -// [SCAL] (1) $FUN_15 = atan2(y, x[1]) ($RES_$AUX_15) -// -// --- Alias of INI[1 | 27] --- -// BLOCK 11: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------- -// ### Variable: -// Real $FUN_14 -// ### Equation: -// [SCAL] (1) $FUN_14 = log10(1.0 + y) ($RES_$AUX_16) -// -// --- Alias of INI[1 | 4] --- -// BLOCK 12: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[1] -// ### Equation: -// [SCAL] (1) $DER.x[1] = $FUN_2 ($RES_SIM_13) -// slice: {} -// -// --- Alias of INI[1 | 6] --- -// BLOCK 13: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[2] -// ### Equation: -// [SCAL] (1) $DER.x[2] = $FUN_3 ($RES_SIM_12) -// slice: {} -// -// --- Alias of INI[1 | 8] --- -// BLOCK 14: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[3] -// ### Equation: -// [SCAL] (1) $DER.x[3] = $FUN_4 ($RES_SIM_11) -// slice: {} -// -// --- Alias of INI[1 | 10] --- -// BLOCK 15: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[4] -// ### Equation: -// [SCAL] (1) $DER.x[4] = $FUN_5 ($RES_SIM_10) -// slice: {} -// -// --- Alias of INI[1 | 12] --- -// BLOCK 16: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[5] -// ### Equation: -// [SCAL] (1) $DER.x[5] = $FUN_6 ($RES_SIM_9) -// slice: {} -// -// --- Alias of INI[1 | 14] --- -// BLOCK 17: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[6] -// ### Equation: -// [SCAL] (1) $DER.x[6] = $FUN_7 ($RES_SIM_8) -// slice: {} -// -// --- Alias of INI[1 | 16] --- -// BLOCK 18: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[7] -// ### Equation: -// [SCAL] (1) $DER.x[7] = $FUN_8 ($RES_SIM_7) -// slice: {} -// -// --- Alias of INI[1 | 18] --- -// BLOCK 19: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[8] -// ### Equation: -// [SCAL] (1) $DER.x[8] = $FUN_9 ($RES_SIM_6) -// slice: {} -// -// --- Alias of INI[1 | 19] --- -// BLOCK 20: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------- -// ### Variable: -// Real $FUN_10 -// ### Equation: -// [SCAL] (1) $FUN_10 = cosh(y) ($RES_$AUX_20) -// -// --- Alias of INI[1 | 20] --- -// BLOCK 21: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[9] -// ### Equation: -// [SCAL] (1) $DER.x[9] = $FUN_10 ($RES_SIM_5) -// slice: {} -// -// --- Alias of INI[1 | 21] --- -// BLOCK 22: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------- -// ### Variable: -// Real $FUN_11 -// ### Equation: -// [SCAL] (1) $FUN_11 = tanh(y) ($RES_$AUX_19) -// -// --- Alias of INI[1 | 22] --- -// BLOCK 23: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[10] -// ### Equation: -// [SCAL] (1) $DER.x[10] = $FUN_11 ($RES_SIM_4) -// slice: {} -// -// --- Alias of INI[1 | 23] --- -// BLOCK 24: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------- -// ### Variable: -// Real $FUN_12 -// ### Equation: -// [SCAL] (1) $FUN_12 = exp(y) ($RES_$AUX_18) -// -// --- Alias of INI[1 | 24] --- -// BLOCK 25: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[11] -// ### Equation: -// [SCAL] (1) $DER.x[11] = $FUN_12 ($RES_SIM_3) -// slice: {} -// -// --- Alias of INI[1 | 25] --- -// BLOCK 26: Single Strong Component (status = Solve.EXPLICIT) -// ------------------------------------------------------------- -// ### Variable: -// Real $FUN_13 -// ### Equation: -// [SCAL] (1) $FUN_13 = log(1.0 + y) ($RES_$AUX_17) -// -// --- Alias of INI[1 | 26] --- -// BLOCK 27: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[12] -// ### Equation: -// [SCAL] (1) $DER.x[12] = $FUN_13 ($RES_SIM_2) -// slice: {} -// -// --- Alias of INI[1 | 28] --- -// BLOCK 28: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[13] -// ### Equation: -// [SCAL] (1) $DER.x[13] = $FUN_14 ($RES_SIM_1) -// slice: {} -// -// --- Alias of INI[1 | 30] --- -// BLOCK 29: Sliced Component (status = Solve.EXPLICIT) -// ------------------------------------------------------ -// ### Variable: -// $DER.x[14] -// ### Equation: -// [SCAL] (1) $DER.x[14] = $FUN_15 ($RES_SIM_0) -// slice: {} -// -// ################################### -// -// [ODE] Jacobian ODE_JAC: SIM -// -// ################################### -// -// Partial Derivative Variables (16/29) -// ************************************** -// (1) [ALGB] (1) Real $FUN_9 -// (2) [ALGB] (1) Real $FUN_8 -// (3) [ALGB] (1) Real $FUN_7 -// (4) [ALGB] (1) Real $FUN_6 -// (5) [ALGB] (1) Real $FUN_5 -// (6) [ALGB] (1) Real $FUN_4 -// (7) [ALGB] (1) Real $FUN_3 -// (8) [ALGB] (1) Real $FUN_2 -// (9) [ALGB] (1) Real y -// (10) [ALGB] (1) Real $FUN_15 -// (11) [ALGB] (1) Real $FUN_14 -// (12) [DER-] (14) Real[14] $DER.x -// (13) [ALGB] (1) Real $FUN_13 -// (14) [ALGB] (1) Real $FUN_12 -// (15) [ALGB] (1) Real $FUN_11 -// (16) [ALGB] (1) Real $FUN_10 -// -// Seed Variables (1/14) -// *********************** -// (1) [STAT] (14) Real[14] x (fixed = {true for $i1 in 1:14}, start = {-1.0 for $i1 in 1:14}) -// -// ============================== -// Sparsity Pattern (nnz: 15) -// ============================== -// -// ### Seeds (col vars) ### -// -------------------------- -// {x[14], x[13], x[12], x[11], x[10], x[9], x[8], x[7], x[6], x[5], x[4], x[3], x[2], x[1]} -// -// ### Partials (row vars) ### -// ----------------------------- -// {$DER.x[14], $DER.x[13], $DER.x[12], $DER.x[11], $DER.x[10], $DER.x[9], $DER.x[8], $DER.x[7], $DER.x[6], $DER.x[5], $DER.x[4], $DER.x[3], $DER.x[2], $DER.x[1]} -// -// ### Columns ### -// ----------------- -// (x[1]) affects: {$DER.x[14]} -// (x[2]) affects: {$DER.x[9],$DER.x[14],$DER.x[1],$DER.x[2],$DER.x[3],$DER.x[4],$DER.x[5],$DER.x[10],$DER.x[6],$DER.x[11],$DER.x[7],$DER.x[12],$DER.x[8],$DER.x[13]} -// (x[3]) affects: {} -// (x[4]) affects: {} -// (x[5]) affects: {} -// (x[6]) affects: {} -// (x[7]) affects: {} -// (x[8]) affects: {} -// (x[9]) affects: {} -// (x[10]) affects: {} -// (x[11]) affects: {} -// (x[12]) affects: {} -// (x[13]) affects: {} -// (x[14]) affects: {} -// -// ##### Rows ##### -// ------------------ -// ($DER.x[1]) depends on: {x[2]} -// ($DER.x[2]) depends on: {x[2]} -// ($DER.x[3]) depends on: {x[2]} -// ($DER.x[4]) depends on: {x[2]} -// ($DER.x[5]) depends on: {x[2]} -// ($DER.x[6]) depends on: {x[2]} -// ($DER.x[7]) depends on: {x[2]} -// ($DER.x[8]) depends on: {x[2]} -// ($DER.x[9]) depends on: {x[2]} -// ($DER.x[10]) depends on: {x[2]} -// ($DER.x[11]) depends on: {x[2]} -// ($DER.x[12]) depends on: {x[2]} -// ($DER.x[13]) depends on: {x[2]} -// ($DER.x[14]) depends on: {x[2],x[1]} -// -// ===================== -// Sparsity Coloring -// ===================== -// Color (1) -// - Column: {x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14]} -// - Row: {} -// -// Color (2) -// - Column: {x[1]} -// - Row: {} -// -// // record SimulationResult // resultFile = "builtin_functions_res.mat", // simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'builtin_functions', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", @@ -384,4 +56,18 @@ simulate(builtin_functions); getErrorString(); // " // end SimulationResult; // "" +// -0.1949680036981218 +// -0.39666298542884787 +// -0.22157219439097658 +// -0.18129859846135266 +// -0.24442009631048392 +// -0.18478357689461986 +// -0.4264604060338793 +// -0.2804123141042697 +// 0.24442400370441986 +// -0.4334016307733458 +// 0.96401168960015 +// -0.49889818933944474 +// -0.7823742487583922 +// 1.2533133489600217 // endResult