I am using Altair Compose 2025 to run a PSIM netlist (.cct file) through the command-line interface using PsimCmd.exe, e.g.:
"PsimCmd.exe" "… .cct"
The simulation runs successfully when I use ideal switches (SSWI), and the results are correct.
However, when I replace the switches with MOSFET Level-2 models, the simulation still completes, but the results indicate that the MOSFETs are not properly switching or appear as if they are not connected/active.
In the PSIM GUI, the same circuit works correctly with the MOSFET Level-2 model, so the issue seems specific to running the netlist directly from Compose / command-line execution.
How can I properly run a .cct file from Compose and ensure that MOSFET Level-2 models are correctly initialized and simulated to match the GUI results?
I attach the example of buck converter with level 2 MOSFET here.
If the MOSFET is changed to ideal model, the result obtained by running Compose is correct. But when MOSFEL level 2 is used, the switch doesn't seem to work.
The generated netlist in .cct file format is as following:
.TIME 5E-06 0.01 0 2 0 0 0 0 0 0 4
.TI_DM
C_VERSION 402
.SUB MOS2 [Parameter: VBR_DSS=100.0; On_Resistance=0.01; threshold_voltage=3.0; Rg_int=0.7; transconductance=150.0; Cgs=6.3E-9; Cgd=0.22E-9; Cds=0.35E-9; diode_voltage_drop=0.0; Rd=0.01; Ls=0.0; Ls_1=0.0; CurrentFlag=0.0; VoltageFlag=0.0] [SigBi: 6; 7; 4]
.SUB MOS2.S1 [Parameter: Cpn=Cgd] [SigBi: 9; 8]
.SUB MOS2.S2 [Parameter: Cpn=Cgs] [SigBi: 8; 4]
.SUB MOS2.S3 [Parameter: Cpn=Cds] [SigBi: 9; 4]
.SUB MOS2.Q6 [Parameter: On_Resistance=On_Resistance; threshold_voltage=threshold_voltage; transconductance=transconductance; diode_voltage_drop=diode_voltage_drop; Rd=Rd; CurrentFlag=0.0; VoltageFlag=0.0] [SigBi: 9; 8; 4]
.SUB MOS2.Q6.I [Parameter: CurrentFlag=CurrentFlag] [SigBi: 9; 9]
.SUB MOS2.Q6.I.S2 [SigBi: 9; 9]
.SUB MOS2.S6 [SigBi: 4; 4]
.SUB S2 [Parameter: VDD=10.0; VSS=0.0; RG=3.0; I_FLAG=0.0] [SigBi: 6; 4] [SigInput: 2]
VDC VDC5 1 0 0.5 0 0
VTRI VTRI1 3 0 1 5000 1 0 0 0
DIODE D3 0 4 0 0 0 0 0
VP Vo 5 1
C C3 5 0 9.999999999999999E-05 0 0 0
L L1 4 5 0.001 0 1 0
R R3 5 0 5 0 0
COMP COMP1 1 3 2 1 0
VDC VDC4 7 0 100 0 0