How to parallel N electrical ports in PLECS Blockset?

In PLECS, I have N identical subcircuits whose outputs I want to connect in parallel, where N is a parameter defined before the simulation starts but may vary between runs. The subcircuits are instantiated as a port array of width N. How can I programmatically parallel-connect these N electrical ports, given that I cannot hardcode the number of branches? Wire Multiplexer doesn’t seem to work here since it requires a fixed, known width at design time.

Refer to the Multi-phase Synchronous Buck Converter PLECS Demo Model and the Implicit Model Vectorization Tutorial.

The key is the Wire Selector component. The screenshot from the Multi-phase Synchronous Buck demo is instructive. The input side (marked with a dot) has a width of 1. The output side has a width of nPhase where the value can vary based on the mask / model initialization commands. The input signal branches nPhase times to separate parallel circuits. The input width to all the gate signals is nPhase and so is the width of the iph measurement.