Qspice seem to not calculate ".meas" statement the same as LTspice?

Hi, I’ve an issue were QSPICE and LTspice differes a lot, when using the .meas statment to later plot the results.

In LTspice I get the following when
image


and when not combining

With Qspice I get the following result

The settings shall be the same in both LTspice and Qspice, I use the following:

.meas Aavg avg V(a)
.meas Bavg avg V(b)
.meas Are avg (V(a)-Aavg)cos(360timeFreq)
.meas Aim avg -(V(a)-Aavg)sin(360time
Freq)
.meas Bre avg (V(b)-Bavg)cos(360timeFreq)
.meas Bim avg -(V(b)-Bavg)sin(360time
Freq)
.meas GainMag param 20*log10(hypot(Are,Aim)/hypot(Bre,Bim))
.meas GainPhi param mod(atan2(Aim,Are)-atan2(Bim,Bre)+180,360)-180
.options numdgt=16 […]
.save V(A) V(B)
.param t0=1.5m
.tran 0 {t0+10/freq} {t0} 1µ startup
.step param freq list 100 200 300 500 700 1K 2K 3K 5K 7K 10K 20K 30K 50K 70K 100K 200K 250K 300K 350K 500K 600K 700K 800K 900K 1Meg 1100K 1200K 1300K 1400K 1500K 1600K 1700K 1800K 1900K 2Meg 2100K 2200K 2300K 2400K 2500K 2600K 2700K 2800K 2900K 3000K 3100K 3200K 3300K 3400K 3500K 3600K 3700K 3800K 3900K 4000K 4100K 4200K 4300K 4400K 4500K 4600K 4700K 4800K 4900K 5000K

I think the rather huge difference may have to do something with that Qspice ignores the following parameters:

Warning: Ignoring unknown model parameter “VERSION•X1” in .MODEL BSIM3•X1 NMOS LEVEL•X1=7 VERSION•X1=3.1 MOBMOD•X1=3 CAPMOD•X1=2 PARAMCHK•X1=1 NQSMOD•X1=0 TOX•X1=1480E-10 XJ•X1=1.4E-6 NCH•X1=1.3E17 U0•X1=700 VSAT•X1=1.0E5 DROUT•X1=2.5 DELTA•X1=0.1 PSCBE2•X1=0 RSH•X1=3.29E-3 VTH0•X1=4.30 VOFF•X1=-0.1 NFACTOR•X1=1.1 LINT•X1=3.6E-7 DLC•X1=3.6E-7 FC•X1=0.5 CGSO•X1=1.05E-15 CGSL•X1=0 CGDO•X1=1.95E-13 CGDL•X1=3.23E-10 CJ•X1=0 CF•X1=0 CKAPPA•X1=0.02 KT1•X1=-1.47 KT2•X1=0 UA1•X1=8.0E-9 NJ•X1=10.
Warning: Ignoring unknown model parameter “MOBMOD•X1”
Warning: Ignoring unknown model parameter “CAPMOD•X1”
Warning: Ignoring unknown model parameter “PARAMCHK•X1”
Warning: Ignoring unknown model parameter “NQSMOD•X1”
Warning: Ignoring unknown model parameter “XJ•X1”
Warning: Ignoring unknown model parameter “NCH•X1”
Warning: Ignoring unknown model parameter “VSAT•X1”
Warning: Ignoring unknown model parameter “DROUT•X1”
Warning: Ignoring unknown model parameter “DELTA•X1”
Warning: Ignoring unknown model parameter “PSCBE2•X1”
Warning: Ignoring unknown model parameter “VTH0•X1”
Warning: Ignoring unknown model parameter “VOFF•X1”
Warning: Ignoring unknown model parameter “NFACTOR•X1”
Warning: Ignoring unknown model parameter “LINT•X1”
Warning: Ignoring unknown model parameter “DLC•X1”
Warning: Ignoring unknown model parameter “CGSL•X1”
Warning: Ignoring unknown model parameter “CGDL•X1”
Warning: Ignoring unknown model parameter “CF•X1”
Warning: Ignoring unknown model parameter “CKAPPA•X1”
Warning: Ignoring unknown model parameter “KT1•X1”
Warning: Ignoring unknown model parameter “KT2•X1”
Warning: Ignoring unknown model parameter “UA1•X1”
Warning: Ignoring unknown model parameter “NJ•X1”

While in LTspice only one parameter is ignored, which in my understanding is not used anyway:

Error on line 64 : .model m2:bsim3 nmos (level=7 version=3.1 mobmod=3 capmod=2 paramchk=1 nqsmod=0 tox=1480e-10 xj=1.4e-6 nch=1.3e17 u0=700 vsat=1.0e5 drout=2.5 delta=0.1 pscbe2=0 rsh=3.29e-3 vth0=4.30 voff=-0.1 nfactor=1.1 lint=3.6e-7 dlc=3.6e-7 fc=0.5 cgso=1.05e-15 cgsl=0 cgdo=1.95e-13 cgdl=3.23e-10 cj=0 cf=0 ckappa=0.02 kt1=-1.47 kt2=0 ua1=8.0e-9 nj=10)

  • Unrecognized parameter “fc” – ignored
    Warning: Pscbe2 = 0 is not positive.
    Warning: Pd = 0 is less than W.
    Warning: Ps = 0 is less than W.

It seems that you compare 2+2=3 with 2+2=5… )