Parmodauto cluster graphs: merging within a level vs. across levels

New: merge_across_levels now takes the next merge by the measured costs: the merge that keeps the longest path of cluster costs shortest, then the one that removes the most dependencies between clusters. The first table has this version, measured in a separate session (median of 3 runs, percentage relative to the default of the same runtime and session). Its clusters depend on the costs measured in a run, so the graph below is the clustering of one run. In the two older tables, merge_across_levels is the first version, with a merge order by structure only.

The table is sorted by the time relative to the C++ default, summed over the models; the percentage is the difference from the C++ default. The Julia rows are searches with the old bound estimate and robust costs, population 30, 200 iterations, one seed, with the fixed MetaheuristicsAlgorithms.jl. The second table has the same clusterings with the Rust simulation runtime (--simCodeTarget=C+Rust): the two runtime strategies are computed by the Rust runtime, and the Julia clusterings are the same files, searched with the costs measured by the C runtime. The Rust runtime normally times the clustered evaluation against a sequential one and continues sequentially when the threads are not faster; for this table the threads were kept (OMC_PARMOD_TRIAL=force), as the C runtime does. Each percentage is relative to the default of the same runtime.

Each circle is one cluster of equations and each arrow a dependency between two clusters. Evaluation runs from top to bottom. The left side starts on the default clustering, which merges tasks of the same level (or a task with its only parent). The right side starts on merge_across_levels. Both selectors offer every clustering, including the ones searched in Julia and imported with -parmodImportClustering.

size and shade: measured cost of the cluster number: equations in the cluster double ring: the cluster holds tasks of more than one level costs: smallest of four profiling runs per task longest path of cluster costs
Merge order by cost, separate sessionBranchingDynamicPipes
C runtime, ODE ms
Spice3BenchmarkFourBitBinaryAdder
C runtime, ODE ms
CauerLowPassSC
C runtime, ODE ms
BranchingDynamicPipes
Rust runtime, ODE ms
Spice3BenchmarkFourBitBinaryAdder
Rust runtime, ODE ms
CauerLowPassSC
Rust runtime, ODE ms
default0.2689 +0%0.1504 +0%0.02192 +0%0.2321 +0%0.09107 +0%0.01737 +0%
merge_across_levels, merge order by cost (new)0.2473 -8%0.1386 -8%0.0292 +33%0.1908 -18%0.09718 +7%0.02371 +36%
best Julia search (pipes: Jaya, adder: SCA)0.2433 -10%0.1249 -17%0.1784 -23%0.07832 -14%
Measured, C runtimeBranchingDynamicPipes
ODE ms, median of 4 (min)
wall sSpice3BenchmarkFourBitBinaryAdder
ODE ms, median of 2 (min)
wall s
Julia, Jaya0.1932 (0.1904) -19%7.50.136 (0.1342) -6%51.5
Julia, GWO0.2086 (0.1962) -13%7.50.1274 (0.1146) -12%49.0
Julia, MPA0.2106 (0.2052) -12%7.50.1365 (0.1262) -6%51.4
Julia, SCA0.2276 (0.2124) -5%7.50.1268 (0.1239) -13%49.4
Julia, INFO0.2229 (0.2199) -7%7.40.1324 (0.1307) -9%50.7
Julia, AVOA0.1992 (0.189) -17%7.40.1476 (0.146) +2%55.0
Julia, AEO0.2309 (0.2033) -4%7.40.1327 (0.1224) -9%50.5
Julia, EO0.2173 (0.1796) -9%7.50.1462 (0.1423) +1%54.6
Julia, TLBO0.2207 (0.1998) -8%7.50.1447 (0.1435) -0%53.7
Julia, SSA0.2278 (0.2242) -5%7.50.141 (0.1305) -3%52.8
Julia, WOA0.2264 (0.2212) -5%7.40.1439 (0.1297) -1%53.4
Julia, RIME0.2194 (0.2043) -8%7.40.1497 (0.1473) +3%55.7
Julia, RUN0.2308 (0.227) -4%7.40.1499 (0.1493) +3%56.0
C++ default0.2394 (0.2327) +0%7.60.1451 (0.1359) +0%53.9
Julia, SMA0.2361 (0.2146) -1%7.50.1516 (0.1429) +4%55.3
Julia, HHO0.2529 (0.2391) +6%7.60.1431 (0.1299) -1%53.3
C++ merge_across_levels0.2687 (0.2659) +12%7.60.1387 (0.1339) -4%52.0
Measured, Rust runtimeBranchingDynamicPipes
ODE ms, median of 3 (min)
wall sSpice3BenchmarkFourBitBinaryAdder
ODE ms, median of 2 (min)
wall s
Julia, INFO0.1678 (0.1666) -26%9.10.08228 (0.08154) -4%27.4
Julia, Jaya0.1757 (0.1752) -23%8.50.08022 (0.08021) -6%26.8
Julia, AVOA0.1707 (0.1672) -25%8.50.08488 (0.08487) -1%28.1
Julia, SCA0.1953 (0.1937) -14%8.30.07591 (0.07312) -11%25.7
Julia, MPA0.172 (0.168) -24%8.50.08492 (0.08283) -1%28.2
Julia, EO0.1841 (0.1752) -19%8.60.08175 (0.08145) -4%27.3
Julia, GWO0.1743 (0.1724) -23%9.00.08756 (0.08684) +2%28.9
Julia, TLBO0.1835 (0.1771) -19%8.30.08565 (0.08419) +0%28.3
Julia, AEO0.1843 (0.1821) -19%8.60.08542 (0.08514) -0%28.2
Julia, RIME0.1691 (0.167) -25%8.10.09157 (0.09154) +7%30.0
Julia, RUN0.195 (0.1917) -14%8.60.08648 (0.08471) +1%28.5
Julia, WOA0.1832 (0.1831) -19%9.10.09303 (0.0926) +9%30.2
Julia, SSA0.1824 (0.1768) -20%9.00.09416 (0.093) +10%30.6
Julia, HHO0.2101 (0.2093) -7%8.80.08769 (0.08743) +2%28.9
Rust default0.2269 (0.2213) +0%9.00.0856 (0.08337) +0%28.3
Julia, SMA0.1994 (0.1954) -12%8.70.1009 (0.1002) +18%32.6
Rust merge_across_levels0.2414 (0.238) +6%9.00.1215 (0.121) +42%38.2

BranchingDynamicPipes

Modelica.Fluid.Examples.BranchingDynamicPipes · 833 tasks on 20 levels · 6 threads

Spice3BenchmarkFourBitBinaryAdder

Modelica.Electrical.Spice3.Examples.Spice3BenchmarkFourBitBinaryAdder · 1123 tasks on 14 levels · 6 threads

CauerLowPassSC

Modelica.Electrical.Analog.Examples.CauerLowPassSC · 61 tasks on 5 levels · 6 threads