You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Do branch selection for if-expressions if the condition is a literal
value after evaluating constants in it, to avoid having to evaluate
constants in branches that would be removed anyway.
// len := Modelica.Utilities.Strings.length(string);
2217
-
// if len < 1 or nextIndex > len then
2218
-
// result := true;
2219
-
// else
2220
-
// result := false;
2221
-
// end if;
2222
-
// end Modelica.Utilities.Strings.isEmpty;
2223
-
//
2224
-
// function Modelica.Utilities.Strings.length "Return length of string"
2225
-
// input String string;
2226
-
// output Integer result "Number of characters of string";
2227
-
//
2228
-
// external "C" result = ModelicaStrings_length(string);
2229
-
// end Modelica.Utilities.Strings.length;
2230
-
//
2231
2201
// function Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue "Returns true, if at least on element of the Boolean input vector is true ('or')"
2232
2202
// input Boolean[:] b;
2233
2203
// output Boolean result;
@@ -2294,7 +2264,7 @@ end Test_total;
2294
2264
// final parameter Integer booleanTable.combiTimeTable.columns[1] = 2 "Columns of table to be interpolated";
2295
2265
// final parameter enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2) booleanTable.combiTimeTable.smoothness = Modelica.Blocks.Types.Smoothness.ConstantSegments "Smoothness of table interpolation";
2296
2266
// final parameter enumeration(HoldLastPoint, LastTwoPoints, Periodic, NoExtrapolation) booleanTable.combiTimeTable.extrapolation = Modelica.Blocks.Types.Extrapolation.HoldLastPoint "Extrapolation of data outside the definition range";
2297
-
// final parameter Real booleanTable.combiTimeTable.timeScale(quantity = "Time", unit = "s", min = 1e-015) = 1.0 "Time scale of first table column";
2267
+
// final parameter Real booleanTable.combiTimeTable.timeScale(quantity = "Time", unit = "s", min = 1e-15) = 1.0 "Time scale of first table column";
2298
2268
// final parameter Real booleanTable.combiTimeTable.offset[1] = 0.0 "Offsets of output signals";
2299
2269
// final parameter Real booleanTable.combiTimeTable.startTime(quantity = "Time", unit = "s") = booleanTable.startTime "Output = offset for time < startTime";
2300
2270
// final parameter Real booleanTable.combiTimeTable.shiftTime(quantity = "Time", unit = "s") = booleanTable.shiftTime "Shift time of first table column";
@@ -2305,7 +2275,7 @@ end Test_total;
2305
2275
// final parameter Real booleanTable.combiTimeTable.t_minScaled = Modelica.Blocks.Tables.Internal.getTimeTableTmin(booleanTable.combiTimeTable.tableID) "Minimum (scaled) abscissa value defined in table";
2306
2276
// final parameter Real booleanTable.combiTimeTable.t_maxScaled = Modelica.Blocks.Tables.Internal.getTimeTableTmax(booleanTable.combiTimeTable.tableID) "Maximum (scaled) abscissa value defined in table";
2307
2277
// protected final parameter Real booleanTable.combiTimeTable.p_offset[1] = 0.0 "Offsets of output signals";
2308
-
// protected parameter Modelica.Blocks.Types.ExternalCombiTimeTable booleanTable.combiTimeTable.tableID = Modelica.Blocks.Types.ExternalCombiTimeTable.constructor(if false then booleanTable.combiTimeTable.tableName else "NoName", if false and booleanTable.combiTimeTable.fileName <> "NoName" and not Modelica.Utilities.Strings.isEmpty(booleanTable.combiTimeTable.fileName) then booleanTable.combiTimeTable.fileName else "NoName", booleanTable.combiTimeTable.table, booleanTable.combiTimeTable.startTime / 1.0, {2}, Modelica.Blocks.Types.Smoothness.ConstantSegments, Modelica.Blocks.Types.Extrapolation.HoldLastPoint, booleanTable.combiTimeTable.shiftTime / 1.0, if Modelica.Blocks.Types.Smoothness.ConstantSegments == Modelica.Blocks.Types.Smoothness.LinearSegments then booleanTable.combiTimeTable.timeEvents else if Modelica.Blocks.Types.Smoothness.ConstantSegments == Modelica.Blocks.Types.Smoothness.ConstantSegments then Modelica.Blocks.Types.TimeEvents.Always else Modelica.Blocks.Types.TimeEvents.NoTimeEvents, if false then booleanTable.combiTimeTable.verboseRead else false) "External table object";
// protected discrete Real booleanTable.combiTimeTable.nextTimeEvent(quantity = "Time", unit = "s", start = 0.0, fixed = true) "Next time event instant";
2310
2280
// protected discrete Real booleanTable.combiTimeTable.nextTimeEventScaled(start = 0.0, fixed = true) "Next scaled time event instant";
2311
2281
// protected Real booleanTable.combiTimeTable.timeScaled "Scaled time";
@@ -2367,7 +2337,7 @@ end Test_total;
2367
2337
// Boolean logicalDelayStateGraph.T1.conditionPort "Fire condition as Boolean input.";
2368
2338
// Boolean logicalDelayStateGraph.T1.fire "= true, if transition fires";
2369
2339
// Boolean logicalDelayStateGraph.T1.enableFire "= true, if firing condition is true";
2370
-
// protected constant Real logicalDelayStateGraph.T1.minimumWaitTime(quantity = "Time", unit = "s") = 1e-013;
2340
+
// protected constant Real logicalDelayStateGraph.T1.minimumWaitTime(quantity = "Time", unit = "s") = 1e-13;
2371
2341
// protected Real logicalDelayStateGraph.T1.t_start(quantity = "Time", unit = "s") "Time instant at which the transition would fire, if waitTime would be zero";
// final parameter Integer logicalDelayStateGraph.Y0D0.nIn(min = 0) = 2 "Number of input connections";
@@ -2420,7 +2390,7 @@ end Test_total;
2420
2390
// Boolean logicalDelayStateGraph.T2.conditionPort "Fire condition as Boolean input.";
2421
2391
// Boolean logicalDelayStateGraph.T2.fire "= true, if transition fires";
2422
2392
// Boolean logicalDelayStateGraph.T2.enableFire "= true, if firing condition is true";
2423
-
// protected constant Real logicalDelayStateGraph.T2.minimumWaitTime(quantity = "Time", unit = "s") = 1e-013;
2393
+
// protected constant Real logicalDelayStateGraph.T2.minimumWaitTime(quantity = "Time", unit = "s") = 1e-13;
2424
2394
// protected Real logicalDelayStateGraph.T2.t_start(quantity = "Time", unit = "s") "Time instant at which the transition would fire, if waitTime would be zero";
// final parameter Integer logicalDelayStateGraph.Y0D1.nIn(min = 0) = 1 "Number of input connections";
@@ -2464,7 +2434,7 @@ end Test_total;
2464
2434
// Boolean logicalDelayStateGraph.T3.conditionPort "Fire condition as Boolean input.";
2465
2435
// Boolean logicalDelayStateGraph.T3.fire "= true, if transition fires";
2466
2436
// Boolean logicalDelayStateGraph.T3.enableFire "= true, if firing condition is true";
2467
-
// protected constant Real logicalDelayStateGraph.T3.minimumWaitTime(quantity = "Time", unit = "s") = 1e-013;
2437
+
// protected constant Real logicalDelayStateGraph.T3.minimumWaitTime(quantity = "Time", unit = "s") = 1e-13;
2468
2438
// protected Real logicalDelayStateGraph.T3.t_start(quantity = "Time", unit = "s") "Time instant at which the transition would fire, if waitTime would be zero";
// final parameter Boolean logicalDelayStateGraph.T4.use_conditionPort = true "= true, if conditionPort enabled";
@@ -2486,7 +2456,7 @@ end Test_total;
2486
2456
// Boolean logicalDelayStateGraph.T4.conditionPort "Fire condition as Boolean input.";
2487
2457
// Boolean logicalDelayStateGraph.T4.fire "= true, if transition fires";
2488
2458
// Boolean logicalDelayStateGraph.T4.enableFire "= true, if firing condition is true";
2489
-
// protected constant Real logicalDelayStateGraph.T4.minimumWaitTime(quantity = "Time", unit = "s") = 1e-013;
2459
+
// protected constant Real logicalDelayStateGraph.T4.minimumWaitTime(quantity = "Time", unit = "s") = 1e-13;
2490
2460
// protected Real logicalDelayStateGraph.T4.t_start(quantity = "Time", unit = "s") "Time instant at which the transition would fire, if waitTime would be zero";
// logicalDelayStateGraph.Y0D1.newActive = if logicalDelayStateGraph.Y0D1.node.resume then logicalDelayStateGraph.Y0D1.oldActive else logicalDelayStateGraph.Y0D1.inport_fire or logicalDelayStateGraph.Y0D1.active and not logicalDelayStateGraph.Y0D1.outport_fire and not logicalDelayStateGraph.Y0D1.node.suspend;
// assert(logicalDelayStateGraph.T4.waitTime > 1e-013, "Either set delayTransition = false, or set waitTime (= " + String(logicalDelayStateGraph.T4.waitTime, 6, 0, true) + ") > " + String(1e-013, 6, 0, true));
2614
+
// assert(logicalDelayStateGraph.T4.waitTime > 1e-13, "Either set delayTransition = false, or set waitTime (= " + String(logicalDelayStateGraph.T4.waitTime, 6, 0, true) + ") > " + String(1e-13, 6, 0, true));
2645
2615
// end Test_total;
2646
2616
// [flattening/modelica/scodeinst/Ticket5821.mo:39:7-39:47:writable] Warning: The second argument 'logicalDelayStateGraph.Y1D0.node' of Connections.branch must have the form A.R, where A is a connector and R an over-determined type/record.
2647
2617
// [flattening/modelica/scodeinst/Ticket5821.mo:43:7-49:9:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed.
0 commit comments