XSPEC version: 12.13.0c
	Build Date/Time: Mon Dec 19 16:03:51 2022

XSPEC12>query no
XSPEC12>lmod takagrb /local/data/bat1/prebascript/xspec_taka_lmodel
Model package takagrb successfully loaded.
XSPEC12>data 1:1 /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-result 
s/pha/sw01161390000b_peak.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  4.563e-01 +/- 3.778e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-80
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 No response loaded.

***Warning!  One or more spectra are missing responses,
               and are not suitable for fit.
XSPEC12>response 1 /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflu 
x/spec_1speak/sw01161390000b_1speak.rsp
Response successfully loaded.
XSPEC12>ignore **-13.0 150.0-**
     3 channels (1-3) ignored in spectrum #     1
    18 channels (63-80) ignored in spectrum #     1

XSPEC12>model npow

Input parameter value, delta, min, bot, top, and max values for ...
            1.5       0.01(     0.015)         -3         -2          9         10
1:npow:PhoIndex>   1.5000      1.00000E-02  -3.0000      -2.0000       9.0000       10.000
            100      -0.01(         1)          0          0       1000       1000
2:npow:enorm>   50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0
              1       0.01(      0.01)          0          0      1e+20      1e+24
3:npow:norm>   1.0000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.50000      +/-  0.0          
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                307639.2     using 59 bins.

Test statistic : Chi-Squared                307639.2     using 59 bins.
 Null hypothesis probability of 0.0e+00 with 57 degrees of freedom
 Current data and model not fit yet.
XSPEC12>renorm

Fit statistic  : Chi-Squared                   59.56     using 59 bins.

Test statistic : Chi-Squared                   59.56     using 59 bins.
 Null hypothesis probability of 3.83e-01 with 57 degrees of freedom
 Current data and model not fit yet.
XSPEC12>fit
 renorm: no renormalization necessary
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
56.7508      7.6872       -3       1.30565     0.0279274
56.724       30.1197      -4       1.31954     0.0277145
56.7239      0.153504     -5       1.31875     0.0277148
==============================
 Variances and Principal Axes
                 1        3  
 3.2197E-06|  0.0016   1.0000  
 1.2079E-02|  1.0000  -0.0016  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.208e-02  -1.961e-05
  -1.961e-05   3.252e-06
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.31875      +/-  0.109905     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.77148E-02  +/-  1.80320E-03  
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
56.7239      0.002054     -3       1.31880     0.0277147
==============================
 Variances and Principal Axes
                 1        3  
 3.2200E-06|  0.0016   1.0000  
 1.2079E-02|  1.0000  -0.0016  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.208e-02  -1.942e-05
  -1.942e-05   3.251e-06
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.31880      +/-  0.109906     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.77147E-02  +/-  1.80311E-03  
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
56.7239      0.000127864   4       1.31880     0.0277147
==============================
 Variances and Principal Axes
                 1        3  
 3.2199E-06|  0.0016   1.0000  
 1.2079E-02|  1.0000  -0.0016  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.208e-02  -1.943e-05
  -1.943e-05   3.251e-06
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.31880      +/-  0.109906     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.77147E-02  +/-  1.80311E-03  
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
XSPEC12>log bat_spec.log
Logging to file:bat_spec.log
XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Channels
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.31880      +/-  0.109906     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.77147E-02  +/-  1.80311E-03  
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off

XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1      1.14306      1.49591    (-0.175747,0.177109)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0247447    0.0306788    (-0.00297003,0.00296409)
XSPEC12>log none
Log file closed
logging switched off
XSPEC12>setplot energy
XSPEC12>setplot command sc white
1
XSPEC12>setplot command cpd bat_spec.gif/gif
2
XSPEC12>plot ldata delchi
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cpflux_15_350kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cpflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.00000      +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 1.84e-16 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 3.42e-16 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
83.879       22.5344      -3       4.02030      0.743335
60.3047      20.7942      -4       3.58690       1.45991
56.7876      4.77063      -5       4.03227       1.29430
56.7242      1.22453      -6       4.04148       1.32054
56.7239      0.0743573    -7       4.04319       1.31869
==============================
 Variances and Principal Axes
                 3        4  
 1.0999E-02|  0.1300   0.9915  
 7.5251E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.416e-02  -8.283e-03
  -8.283e-03   1.209e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04319      +/-  0.272332     
   4    2   npow       PhoIndex            1.31869      +/-  0.109932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00488825   -3       4.04311       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5303E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.422e-02  -8.289e-03
  -8.289e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04311      +/-  0.272428     
   4    2   npow       PhoIndex            1.31881      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00030912   -1       4.04312       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5300E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.421e-02  -8.288e-03
  -8.288e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cpflux_15_350kev.log
Logging to file:npow_cpflux_15_350kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      3.59799      4.49226    (-0.445128,0.449142)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175744,0.177112)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cpflux_15_150kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cpflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.00000      +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 1.84e-16 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 3.42e-16 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
83.879       22.5344      -3       4.02030      0.743335
60.3047      20.7942      -4       3.58690       1.45991
56.7876      4.77063      -5       4.03227       1.29430
56.7242      1.22453      -6       4.04148       1.32054
56.7239      0.0743573    -7       4.04319       1.31869
==============================
 Variances and Principal Axes
                 3        4  
 1.0999E-02|  0.1300   0.9915  
 7.5251E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.416e-02  -8.283e-03
  -8.283e-03   1.209e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04319      +/-  0.272332     
   4    2   npow       PhoIndex            1.31869      +/-  0.109932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00488825   -3       4.04311       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5303E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.422e-02  -8.289e-03
  -8.289e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04311      +/-  0.272428     
   4    2   npow       PhoIndex            1.31881      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00030912   -1       4.04312       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5300E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.421e-02  -8.288e-03
  -8.288e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                   68.11     using 59 bins.

Test statistic : Chi-Squared                   68.11     using 59 bins.
 Null hypothesis probability of 1.49e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      8.9359       -3       3.31896       1.31887
56.7239      0.0079343    -4       3.31820       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.1298E-02| -0.1430   0.9897  
 4.9333E-02|  0.9897   0.1430  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.856e-02   5.382e-03
   5.382e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                3.31820      +/-  0.220354     
   4    2   npow       PhoIndex            1.31880      +/-  0.109886     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.000190159  -3       3.31820       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.1302E-02| -0.1430   0.9897  
 4.9334E-02|  0.9897   0.1430  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.856e-02   5.384e-03
   5.384e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                3.31820      +/-  0.220354     
   4    2   npow       PhoIndex            1.31880      +/-  0.109910     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      1.71605e-05  -3       3.31820       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.1302E-02| -0.1430   0.9897  
 4.9334E-02|  0.9897   0.1430  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.856e-02   5.383e-03
   5.383e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                3.31820      +/-  0.220354     
   4    2   npow       PhoIndex            1.31880      +/-  0.109910     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cpflux_15_150kev.log
Logging to file:npow_cpflux_15_150kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                3.31820      +/-  0.220354     
   4    2   npow       PhoIndex            1.31880      +/-  0.109910     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      2.95648      3.68034    (-0.361715,0.362139)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175745,0.177111)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cpflux_15_25kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cpflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.00000      +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 1.84e-16 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 3.42e-16 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
83.879       22.5344      -3       4.02030      0.743335
60.3047      20.7942      -4       3.58690       1.45991
56.7876      4.77063      -5       4.03227       1.29430
56.7242      1.22453      -6       4.04148       1.32054
56.7239      0.0743573    -7       4.04319       1.31869
==============================
 Variances and Principal Axes
                 3        4  
 1.0999E-02|  0.1300   0.9915  
 7.5251E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.416e-02  -8.283e-03
  -8.283e-03   1.209e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04319      +/-  0.272332     
   4    2   npow       PhoIndex            1.31869      +/-  0.109932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00488825   -3       4.04311       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5303E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.422e-02  -8.289e-03
  -8.289e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04311      +/-  0.272428     
   4    2   npow       PhoIndex            1.31881      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00030912   -1       4.04312       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5300E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.421e-02  -8.288e-03
  -8.288e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                 2524.39     using 59 bins.

Test statistic : Chi-Squared                 2524.39     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7429      1505.89      -3      0.969112       1.32076
56.7239      1.4003       -4      0.958823       1.31870
56.7239      0.00342274   -5      0.958932       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 2.0380E-03| -0.6947   0.7193  
 2.2841E-02|  0.7193   0.6947  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.280e-02   1.040e-02
   1.040e-02   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      25.0000      frozen
   3    1   cpflux     Flux                0.958932     +/-  0.113142     
   4    2   npow       PhoIndex            1.31881      +/-  0.109900     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.000278266  -3      0.958926       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 2.0383E-03| -0.6947   0.7193  
 2.2842E-02|  0.7193   0.6947  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.280e-02   1.040e-02
   1.040e-02   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      25.0000      frozen
   3    1   cpflux     Flux                0.958926     +/-  0.113146     
   4    2   npow       PhoIndex            1.31880      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      8.99296e-06  -3      0.958927       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 2.0383E-03| -0.6947   0.7193  
 2.2841E-02|  0.7193   0.6947  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.280e-02   1.040e-02
   1.040e-02   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      25.0000      frozen
   3    1   cpflux     Flux                0.958927     +/-  0.113146     
   4    2   npow       PhoIndex            1.31880      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cpflux_15_25kev.log
Logging to file:npow_cpflux_15_25kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      25.0000      frozen
   3    1   cpflux     Flux                0.958927     +/-  0.113146     
   4    2   npow       PhoIndex            1.31880      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.782301      1.14589    (-0.176626,0.186968)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175749,0.177107)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cpflux_25_50kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cpflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.00000      +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 1.84e-16 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 3.42e-16 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
83.879       22.5344      -3       4.02030      0.743335
60.3047      20.7942      -4       3.58690       1.45991
56.7876      4.77063      -5       4.03227       1.29430
56.7242      1.22453      -6       4.04148       1.32054
56.7239      0.0743573    -7       4.04319       1.31869
==============================
 Variances and Principal Axes
                 3        4  
 1.0999E-02|  0.1300   0.9915  
 7.5251E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.416e-02  -8.283e-03
  -8.283e-03   1.209e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04319      +/-  0.272332     
   4    2   npow       PhoIndex            1.31869      +/-  0.109932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00488825   -3       4.04311       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5303E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.422e-02  -8.289e-03
  -8.289e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04311      +/-  0.272428     
   4    2   npow       PhoIndex            1.31881      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00030912   -1       4.04312       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5300E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.421e-02  -8.288e-03
  -8.288e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                   79.78     using 59 bins.

Test statistic : Chi-Squared                   79.78     using 59 bins.
 Null hypothesis probability of 2.49e-02 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                 1875.70     using 59 bins.

Test statistic : Chi-Squared                 1875.70     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7265      482.947      -3       1.07864       1.31944
56.7239      0.375689     -4       1.07489       1.31876
==============================
 Variances and Principal Axes
                 3        4  
 4.1718E-03|  0.8953  -0.4454  
 1.3938E-02|  0.4454   0.8953  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.109e-03   3.895e-03
   3.895e-03   1.200e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      25.0000      frozen
   2    1   cpflux     Emax       keV      50.0000      frozen
   3    1   cpflux     Flux                1.07489      +/-  7.81630E-02  
   4    2   npow       PhoIndex            1.31876      +/-  0.109547     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00165073   -3       1.07490       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 4.1742E-03|  0.8962  -0.4436  
 1.4016E-02|  0.4436   0.8962  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.111e-03   3.913e-03
   3.913e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      25.0000      frozen
   2    1   cpflux     Emax       keV      50.0000      frozen
   3    1   cpflux     Flux                1.07490      +/-  7.81719E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.000107317  -1       1.07490       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 4.1744E-03|  0.8962  -0.4436  
 1.4016E-02|  0.4436   0.8962  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.111e-03   3.912e-03
   3.912e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      25.0000      frozen
   2    1   cpflux     Emax       keV      50.0000      frozen
   3    1   cpflux     Flux                1.07490      +/-  7.81714E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cpflux_25_50kev.log
Logging to file:npow_cpflux_25_50kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      25.0000      frozen
   2    1   cpflux     Emax       keV      50.0000      frozen
   3    1   cpflux     Flux                1.07490      +/-  7.81714E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.946307      1.20204    (-0.128593,0.127142)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175746,0.17711)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cpflux_50_100kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cpflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.00000      +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 1.84e-16 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 3.42e-16 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
83.879       22.5344      -3       4.02030      0.743335
60.3047      20.7942      -4       3.58690       1.45991
56.7876      4.77063      -5       4.03227       1.29430
56.7242      1.22453      -6       4.04148       1.32054
56.7239      0.0743573    -7       4.04319       1.31869
==============================
 Variances and Principal Axes
                 3        4  
 1.0999E-02|  0.1300   0.9915  
 7.5251E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.416e-02  -8.283e-03
  -8.283e-03   1.209e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04319      +/-  0.272332     
   4    2   npow       PhoIndex            1.31869      +/-  0.109932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00488825   -3       4.04311       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5303E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.422e-02  -8.289e-03
  -8.289e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04311      +/-  0.272428     
   4    2   npow       PhoIndex            1.31881      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00030912   -1       4.04312       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5300E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.421e-02  -8.288e-03
  -8.288e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                  301.13     using 59 bins.

Test statistic : Chi-Squared                  301.13     using 59 bins.
 Null hypothesis probability of 6.71e-35 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                 3307.28     using 59 bins.

Test statistic : Chi-Squared                 3307.28     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7299      957.077      -3      0.866390       1.31791
56.7239      0.713884     -4      0.861792       1.31885
==============================
 Variances and Principal Axes
                 3        4  
 2.7127E-03|  0.9159   0.4015  
 1.3736E-02| -0.4015   0.9159  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.490e-03  -4.053e-03
  -4.053e-03   1.196e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      50.0000      frozen
   2    1   cpflux     Emax       keV      100.000      frozen
   3    1   cpflux     Flux                0.861792     +/-  6.70038E-02  
   4    2   npow       PhoIndex            1.31885      +/-  0.109359     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00218283   -3      0.861811       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 2.7142E-03|  0.9168   0.3993  
 1.3856E-02| -0.3993   0.9168  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.491e-03  -4.079e-03
  -4.079e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      50.0000      frozen
   2    1   cpflux     Emax       keV      100.000      frozen
   3    1   cpflux     Flux                0.861811     +/-  6.70139E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00013682    1      0.861811       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 2.7144E-03|  0.9168   0.3993  
 1.3856E-02| -0.3993   0.9168  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.491e-03  -4.079e-03
  -4.079e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      50.0000      frozen
   2    1   cpflux     Emax       keV      100.000      frozen
   3    1   cpflux     Flux                0.861811     +/-  6.70133E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cpflux_50_100kev.log
Logging to file:npow_cpflux_50_100kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      50.0000      frozen
   2    1   cpflux     Emax       keV      100.000      frozen
   3    1   cpflux     Flux                0.861811     +/-  6.70133E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.751797     0.970342    (-0.110013,0.108532)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175743,0.177113)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cpflux_100_150kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cpflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.00000      +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 1.84e-16 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 3.42e-16 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
83.879       22.5344      -3       4.02030      0.743335
60.3047      20.7942      -4       3.58690       1.45991
56.7876      4.77063      -5       4.03227       1.29430
56.7242      1.22453      -6       4.04148       1.32054
56.7239      0.0743573    -7       4.04319       1.31869
==============================
 Variances and Principal Axes
                 3        4  
 1.0999E-02|  0.1300   0.9915  
 7.5251E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.416e-02  -8.283e-03
  -8.283e-03   1.209e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04319      +/-  0.272332     
   4    2   npow       PhoIndex            1.31869      +/-  0.109932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00488825   -3       4.04311       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5303E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.422e-02  -8.289e-03
  -8.289e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04311      +/-  0.272428     
   4    2   npow       PhoIndex            1.31881      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00030912   -1       4.04312       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5300E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.421e-02  -8.288e-03
  -8.288e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                 1575.74     using 59 bins.

Test statistic : Chi-Squared                 1575.74     using 59 bins.
 Null hypothesis probability of 5.53e-292 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                17568.50     using 59 bins.

Test statistic : Chi-Squared                17568.50     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.915       9594.44      -3      0.435513       1.31637
56.7239      8.56981      -4      0.422510       1.31887
56.7239      0.0190667    -5      0.422570       1.31879
==============================
 Variances and Principal Axes
                 3        4  
 6.3971E-04|  0.9208   0.3901  
 1.4132E-02| -0.3901   0.9208  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.693e-03  -4.846e-03
  -4.846e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                0.422570     +/-  5.18935E-02  
   4    2   npow       PhoIndex            1.31879      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.000214698   7      0.422570       1.31879
==============================
 Variances and Principal Axes
                 3        4  
 6.3979E-04|  0.9208   0.3901  
 1.4131E-02| -0.3901   0.9208  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.693e-03  -4.846e-03
  -4.846e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                0.422570     +/-  5.18950E-02  
   4    2   npow       PhoIndex            1.31879      +/-  0.109897     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.000214698   8      0.422570       1.31879
==============================
 Variances and Principal Axes
                 3        4  
 6.3979E-04|  0.9208   0.3901  
 1.4131E-02| -0.3901   0.9208  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.693e-03  -4.846e-03
  -4.846e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                0.422570     +/-  5.18950E-02  
   4    2   npow       PhoIndex            1.31879      +/-  0.109897     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cpflux_100_150kev.log
Logging to file:npow_cpflux_100_150kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                0.422570     +/-  5.18950E-02  
   4    2   npow       PhoIndex            1.31879      +/-  0.109897     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.341668     0.508267    (-0.0809013,0.0856973)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175735,0.17712)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cpflux_100_350kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cpflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.00000      +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 1.84e-16 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  189.89     using 59 bins.

Test statistic : Chi-Squared                  189.89     using 59 bins.
 Null hypothesis probability of 3.42e-16 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
83.879       22.5344      -3       4.02030      0.743335
60.3047      20.7942      -4       3.58690       1.45991
56.7876      4.77063      -5       4.03227       1.29430
56.7242      1.22453      -6       4.04148       1.32054
56.7239      0.0743573    -7       4.04319       1.31869
==============================
 Variances and Principal Axes
                 3        4  
 1.0999E-02|  0.1300   0.9915  
 7.5251E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.416e-02  -8.283e-03
  -8.283e-03   1.209e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04319      +/-  0.272332     
   4    2   npow       PhoIndex            1.31869      +/-  0.109932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00488825   -3       4.04311       1.31881
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5303E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.422e-02  -8.289e-03
  -8.289e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04311      +/-  0.272428     
   4    2   npow       PhoIndex            1.31881      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.00030912   -1       4.04312       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 1.0994E-02|  0.1300   0.9915  
 7.5300E-02|  0.9915  -0.1300  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.421e-02  -8.288e-03
  -8.288e-03   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                4.04312      +/-  0.272421     
   4    2   npow       PhoIndex            1.31880      +/-  0.109913     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                 1575.74     using 59 bins.

Test statistic : Chi-Squared                 1575.74     using 59 bins.
 Null hypothesis probability of 5.53e-292 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                 1575.74     using 59 bins.

Test statistic : Chi-Squared                 1575.74     using 59 bins.
 Null hypothesis probability of 5.53e-292 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7569      1440.91      -3       1.16508       1.31607
56.7239      2.12927      -4       1.14724       1.31892
56.7239      0.00554911   -5       1.14751       1.31878
==============================
 Variances and Principal Axes
                 3        4  
 1.4985E-03|  0.4961   0.8682  
 4.4473E-02|  0.8682  -0.4961  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.389e-02  -1.851e-02
  -1.851e-02   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.14751      +/-  0.184103     
   4    2   npow       PhoIndex            1.31878      +/-  0.109896     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      0.000366314  -3       1.14750       1.31879
==============================
 Variances and Principal Axes
                 3        4  
 1.4986E-03|  0.4961   0.8683  
 4.4480E-02|  0.8683  -0.4961  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.390e-02  -1.851e-02
  -1.851e-02   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.14750      +/-  0.184127     
   4    2   npow       PhoIndex            1.31879      +/-  0.109890     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.7239      2.28821e-05  -3       1.14750       1.31879
==============================
 Variances and Principal Axes
                 3        4  
 1.4986E-03|  0.4961   0.8683  
 4.4480E-02|  0.8683  -0.4961  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.390e-02  -1.851e-02
  -1.851e-02   1.208e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.14750      +/-  0.184126     
   4    2   npow       PhoIndex            1.31879      +/-  0.109891     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cpflux_100_350kev.log
Logging to file:npow_cpflux_100_350kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      100.000      frozen
   2    1   cpflux     Emax       keV      350.000      frozen
   3    1   cpflux     Flux                1.14750      +/-  0.184126     
   4    2   npow       PhoIndex            1.31879      +/-  0.109891     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3       0.8734      1.46537    (-0.274096,0.317875)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175737,0.177118)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cflux_15_350kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     -8.0        1.00000E+02  -30.000      -30.000      1.0000       1.0000  ;     1.500       1.00000E-02  -3.0000      -2.0000      9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000      1000.0       1000.0  ;     1.000       1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -8.00000     +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 2.11e-32 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 4.80e-32 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
275.018      6.3158        1      -7.81196       1.80860
170.483      12.0291       0      -7.05908       2.89716
147.908      27.2148       0      -6.95112       2.50509
93.8378      38.7574      -1      -6.43662       1.20949
62.7115      71.652       -2      -6.24245       1.40589
56.744       52.983       -3      -6.26536       1.32529
56.7239      2.61691      -4      -6.26609       1.31844
56.7239      0.014958     -5      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6533E-04|  0.9165   0.4001  
 1.4253E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.982e-03
  -4.982e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.32968E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121096    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121069    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cflux_15_350kev.log
Logging to file:npow_cflux_15_350kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406948


Current model list:

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -6.35547     -6.18291    (-0.0892047,0.0833576)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175761,0.177095)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cflux_15_150kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     -8.0        1.00000E+02  -30.000      -30.000      1.0000       1.0000  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -8.00000     +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 2.11e-32 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 4.80e-32 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
275.018      6.3158        1      -7.81196       1.80860
170.483      12.0291       0      -7.05908       2.89716
147.908      27.2148       0      -6.95112       2.50509
93.8378      38.7574      -1      -6.43662       1.20949
62.7115      71.652       -2      -6.24245       1.40589
56.744       52.983       -3      -6.26536       1.32529
56.7239      2.61691      -4      -6.26609       1.31844
56.7239      0.014958     -5      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6533E-04|  0.9165   0.4001  
 1.4253E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.982e-03
  -4.982e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.32968E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121096    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121069    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                  288.90     using 59 bins.

Test statistic : Chi-Squared                  288.90     using 59 bins.
 Null hypothesis probability of 9.77e-33 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
67.4121      544.496      -3      -6.48093       1.31839
56.8024      71.2685      -4      -6.55655       1.31873
56.7239      5.13068      -5      -6.56427       1.31880
56.7239      0.063476     -6      -6.56436       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.7094E-04|  0.9909   0.1349  
 1.2284E-02| -0.1349   0.9909  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.805e-04  -1.539e-03
  -1.539e-03   1.207e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.56436     +/-  3.13129E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109884     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.000246818  -3      -6.56436       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.7130E-04|  0.9909   0.1349  
 1.2290E-02| -0.1349   0.9909  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.809e-04  -1.540e-03
  -1.540e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.56436     +/-  3.13200E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109909     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      3.60568e-06   3      -6.56436       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.7130E-04|  0.9909   0.1349  
 1.2290E-02| -0.1349   0.9909  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.809e-04  -1.540e-03
  -1.540e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.56436     +/-  3.13200E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109909     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cflux_15_150kev.log
Logging to file:npow_cflux_15_150kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.56436     +/-  3.13200E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109909     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -6.61892     -6.51568    (-0.0545536,0.0486817)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175743,0.177113)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cflux_15_25kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     -8.0        1.00000E+02  -30.000      -30.000      1.0000       1.0000  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -8.00000     +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 2.11e-32 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 4.80e-32 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
275.018      6.3158        1      -7.81196       1.80860
170.483      12.0291       0      -7.05908       2.89716
147.908      27.2148       0      -6.95112       2.50509
93.8378      38.7574      -1      -6.43662       1.20949
62.7115      71.652       -2      -6.24245       1.40589
56.744       52.983       -3      -6.26536       1.32529
56.7239      2.61691      -4      -6.26609       1.31844
56.7239      0.014958     -5      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6533E-04|  0.9165   0.4001  
 1.4253E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.982e-03
  -4.982e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.32968E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121096    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121069    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                70091.73     using 59 bins.

Test statistic : Chi-Squared                70091.73     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
8872.66      91578.6      -3      -6.67388       1.32119
1020.3       12685.7      -4      -7.04538       1.32104
128.397      1783.76      -5      -7.33441       1.32027
58.5864      250.311      -6      -7.48783       1.31926
56.7275      28.371       -7      -7.52308       1.31882
56.7239      1.1541       -8      -7.52476       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 6.7439E-04|  0.9281  -0.3722  
 1.3803E-02|  0.3722   0.9281  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.493e-03   4.536e-03
   4.536e-03   1.198e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      25.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.52476     +/-  4.99344E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109472     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00796639   -3      -7.52477       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 6.7961E-04|  0.9281  -0.3722  
 1.3910E-02|  0.3722   0.9281  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.513e-03   4.571e-03
   4.571e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      25.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.52477     +/-  5.01278E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109896     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      5.52762e-05  -3      -7.52478       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 6.7965E-04|  0.9281  -0.3722  
 1.3911E-02|  0.3722   0.9281  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.513e-03   4.571e-03
   4.571e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      25.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.52478     +/-  5.01291E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cflux_15_25kev.log
Logging to file:npow_cflux_15_25kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      25.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.52478     +/-  5.01291E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.61194     -7.44874    (-0.0871659,0.0760388)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175749,0.177107)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cflux_25_50kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     -8.0        1.00000E+02  -30.000      -30.000      1.0000       1.0000  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -8.00000     +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 2.11e-32 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 4.80e-32 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
275.018      6.3158        1      -7.81196       1.80860
170.483      12.0291       0      -7.05908       2.89716
147.908      27.2148       0      -6.95112       2.50509
93.8378      38.7574      -1      -6.43662       1.20949
62.7115      71.652       -2      -6.24245       1.40589
56.744       52.983       -3      -6.26536       1.32529
56.7239      2.61691      -4      -6.26609       1.31844
56.7239      0.014958     -5      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6533E-04|  0.9165   0.4001  
 1.4253E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.982e-03
  -4.982e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.32968E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121096    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121069    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                   57.54     using 59 bins.

Test statistic : Chi-Squared                   57.54     using 59 bins.
 Null hypothesis probability of 4.55e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                14688.72     using 59 bins.

Test statistic : Chi-Squared                14688.72     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
1735.69      19184.2      -3      -6.64959       1.31948
198.951      2688.96      -4      -6.96376       1.31934
61.9755      379.811      -5      -7.15221       1.31902
56.7467      47.3045      -6      -7.20809       1.31882
56.7239      2.74012      -7      -7.21228       1.31880
56.7239      0.0254022    -8      -7.21232       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.7276E-04|  0.9928  -0.1199  
 1.2242E-02|  0.1199   0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.375e-04   1.365e-03
   1.365e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      25.0000      frozen
   2    1   cflux      Emax       keV      50.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.21232     +/-  3.06191E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109896     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.000116392   0      -7.21232       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.7290E-04|  0.9928  -0.1199  
 1.2244E-02|  0.1199   0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.377e-04   1.365e-03
   1.365e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      25.0000      frozen
   2    1   cflux      Emax       keV      50.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.21232     +/-  3.06219E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109906     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      5.92164e-05   0      -7.21232       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.7290E-04|  0.9928  -0.1199  
 1.2244E-02|  0.1199   0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.377e-04   1.365e-03
   1.365e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      25.0000      frozen
   2    1   cflux      Emax       keV      50.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.21232     +/-  3.06219E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109906     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cflux_25_50kev.log
Logging to file:npow_cflux_25_50kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:22:59 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      25.0000      frozen
   2    1   cflux      Emax       keV      50.0000      frozen
   3    1   cflux      lg10Flux   cgs      -7.21232     +/-  3.06219E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109906     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.26617     -7.16489    (-0.0538551,0.047429)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175746,0.17711)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cflux_50_100kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     -8.0        1.00000E+02  -30.000      -30.000      1.0000       1.0000  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -8.00000     +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 2.11e-32 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 4.80e-32 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
275.018      6.3158        1      -7.81196       1.80860
170.483      12.0291       0      -7.05908       2.89716
147.908      27.2148       0      -6.95112       2.50509
93.8378      38.7574      -1      -6.43662       1.20949
62.7115      71.652       -2      -6.24245       1.40589
56.744       52.983       -3      -6.26536       1.32529
56.7239      2.61691      -4      -6.26609       1.31844
56.7239      0.014958     -5      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6533E-04|  0.9165   0.4001  
 1.4253E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.982e-03
  -4.982e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.32968E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121096    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121069    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                   66.50     using 59 bins.

Test statistic : Chi-Squared                   66.50     using 59 bins.
 Null hypothesis probability of 1.82e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                 4904.31     using 59 bins.

Test statistic : Chi-Squared                 4904.31     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
550.357      6961.16      -3      -6.61993       1.31780
86.7896      983.772      -4      -6.87518       1.31816
57.1824      134.948      -5      -6.98859       1.31866
56.7242      12.8392      -6      -7.00678       1.31880
56.7239      0.305955     -7      -7.00725       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.5411E-04|  0.9807   0.1953  
 1.2501E-02| -0.1953   0.9807  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.202e-03  -2.250e-03
  -2.250e-03   1.205e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      50.0000      frozen
   2    1   cflux      Emax       keV      100.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.00725     +/-  3.46734E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109785     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00148332   -3      -7.00725       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.5574E-04|  0.9807   0.1953  
 1.2528E-02| -0.1953   0.9807  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.205e-03  -2.255e-03
  -2.255e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      50.0000      frozen
   2    1   cflux      Emax       keV      100.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.00725     +/-  3.47110E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      3.1806e-06    0      -7.00725       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 7.5575E-04|  0.9807   0.1953  
 1.2528E-02| -0.1953   0.9807  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.205e-03  -2.255e-03
  -2.255e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      50.0000      frozen
   2    1   cflux      Emax       keV      100.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.00725     +/-  3.47111E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cflux_50_100kev.log
Logging to file:npow_cflux_50_100kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:23:00 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      50.0000      frozen
   2    1   cflux      Emax       keV      100.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.00725     +/-  3.47111E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109905     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.06849     -6.95423    (-0.0612371,0.0530159)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175742,0.177114)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cflux_100_150kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     -8.0        1.00000E+02  -30.000      -30.000      1.0000       1.0000  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -8.00000     +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 2.11e-32 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 4.80e-32 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
275.018      6.3158        1      -7.81196       1.80860
170.483      12.0291       0      -7.05908       2.89716
147.908      27.2148       0      -6.95112       2.50509
93.8378      38.7574      -1      -6.43662       1.20949
62.7115      71.652       -2      -6.24245       1.40589
56.744       52.983       -3      -6.26536       1.32529
56.7239      2.61691      -4      -6.26609       1.31844
56.7239      0.014958     -5      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6533E-04|  0.9165   0.4001  
 1.4253E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.982e-03
  -4.982e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.32968E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121096    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121069    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  125.84     using 59 bins.

Test statistic : Chi-Squared                  125.84     using 59 bins.
 Null hypothesis probability of 4.20e-07 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                 7316.23     using 59 bins.

Test statistic : Chi-Squared                 7316.23     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
834.306      10733.6      -3      -6.63130       1.31648
111.189      1512.38      -4      -6.90997       1.31718
57.9271      210.899      -5      -7.05028       1.31833
56.7255      22.7192      -6      -7.07915       1.31879
56.7239      0.777871     -7      -7.08027       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 6.5876E-04|  0.9151   0.4032  
 1.4220E-02| -0.4032   0.9151  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.864e-03  -5.004e-03
  -5.004e-03   1.202e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.08027     +/-  5.35147E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109613     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00441783    2      -7.08027       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 6.6216E-04|  0.9151   0.4032  
 1.4294E-02| -0.4032   0.9151  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.879e-03  -5.030e-03
  -5.030e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.08027     +/-  5.36529E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109896     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00441306    2      -7.08027       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 6.6216E-04|  0.9151   0.4032  
 1.4294E-02| -0.4032   0.9151  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.879e-03  -5.030e-03
  -5.030e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.08027     +/-  5.36529E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109896     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cflux_100_150kev.log
Logging to file:npow_cflux_100_150kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:23:00 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406953


Current model list:

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      150.000      frozen
   3    1   cflux      lg10Flux   cgs      -7.08027     +/-  5.36529E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109896     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.17367     -6.99923    (-0.0933949,0.0810429)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175737,0.177118)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>@/local/data/bat1/alien/Swift_3rdBATcatalog/event/scripts/test_cflux/bat_npow_cflux_100_350kev_fit.xcm

!XSPEC12>log none
No log file open

!XSPEC12>query no

!XSPEC12>model cflux*npow  ;     15.000     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     350.00     -1.00000E-02  -100.00      -100.00      1.00000E+10  1.00000E+10  ;     -8.0        1.00000E+02  -30.000      -30.000      1.0000       1.0000  ;      1.500      1.00000E-02  -3.0000      -2.0000       9.0000       10.000  ;     50.000     -1.00000E-02   0.0000       0.0000       1000.0       1000.0  ;      1.000      1.00000E-02   0.0000       0.0000      1.00000E+24  1.00000E+24

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -8.00000     +/-  0.0          
   4    2   npow       PhoIndex            1.50000      +/-  0.0          
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      +/-  0.0          
________________________________________________________________________


Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 2.11e-32 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  284.97     using 59 bins.

Test statistic : Chi-Squared                  284.97     using 59 bins.
 Null hypothesis probability of 4.80e-32 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
275.018      6.3158        1      -7.81196       1.80860
170.483      12.0291       0      -7.05908       2.89716
147.908      27.2148       0      -6.95112       2.50509
93.8378      38.7574      -1      -6.43662       1.20949
62.7115      71.652       -2      -6.24245       1.40589
56.744       52.983       -3      -6.26536       1.32529
56.7239      2.61691      -4      -6.26609       1.31844
56.7239      0.014958     -5      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6533E-04|  0.9165   0.4001  
 1.4253E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.982e-03
  -4.982e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.32968E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109899     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121096    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00121069    2      -6.26626       1.31882
==============================
 Variances and Principal Axes
                 3        4  
 6.6537E-04|  0.9165   0.4001  
 1.4254E-02| -0.4001   0.9165  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.841e-03  -4.983e-03
  -4.983e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      15.0000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.26626     +/-  5.33000E-02  
   4    2   npow       PhoIndex            1.31882      +/-  0.109904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  125.84     using 59 bins.

Test statistic : Chi-Squared                  125.84     using 59 bins.
 Null hypothesis probability of 4.20e-07 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                  125.84     using 59 bins.

Test statistic : Chi-Squared                  125.84     using 59 bins.
 Null hypothesis probability of 4.20e-07 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
58.4792      270.239      -3      -6.41662       1.31734
56.727       30.356       -4      -6.45168       1.31873
56.7239      1.17901      -5      -6.45328       1.31880
==============================
 Variances and Principal Axes
                 3        4  
 5.4821E-04|  0.8329   0.5535  
 1.7041E-02| -0.5535   0.8329  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.601e-03  -7.603e-03
  -7.603e-03   1.199e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.45328     +/-  7.48386E-02  
   4    2   npow       PhoIndex            1.31880      +/-  0.109492     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      0.00664521   -3      -6.45329       1.31879
==============================
 Variances and Principal Axes
                 3        4  
 5.5214E-04|  0.8329   0.5535  
 1.7164E-02| -0.5535   0.8329  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.641e-03  -7.658e-03
  -7.658e-03   1.207e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.45329     +/-  7.51086E-02  
   4    2   npow       PhoIndex            1.31879      +/-  0.109885     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.7239      1.24667e-05  -3      -6.45329       1.31879
==============================
 Variances and Principal Axes
                 3        4  
 5.5216E-04|  0.8329   0.5535  
 1.7164E-02| -0.5535   0.8329  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.642e-03  -7.658e-03
  -7.658e-03   1.208e-02
------------------------

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.45329     +/-  7.51100E-02  
   4    2   npow       PhoIndex            1.31879      +/-  0.109887     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

!XSPEC12>log npow_cflux_100_350kev.log
Logging to file:npow_cflux_100_350kev.log

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:23:00 2023
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
Using chain rule to calculate statistic derivatives (faster method).
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-pc-linux-gnu-libc2.12/../spectral/manager/../modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/01161390000-results/pha/sw01161390000b_peak.pha
Net count rate (cts/s) for Spectrum:1  4.224e-01 +/- 2.704e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1161390/remake_spec_cflux/spec_1speak/sw01161390000b_1speak.rsp for Source 1

 Spectral data counts: 0.422381
 Model predicted rate: 0.406947


Current model list:

========================================================================
Model cflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cflux      Emin       keV      100.000      frozen
   2    1   cflux      Emax       keV      350.000      frozen
   3    1   cflux      lg10Flux   cgs      -6.45329     +/-  7.51100E-02  
   4    2   npow       PhoIndex            1.31879      +/-  0.109887     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   56.72     using 59 bins.

Test statistic : Chi-Squared                   56.72     using 59 bins.
 Null hypothesis probability of 4.85e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      -6.5811     -6.33818    (-0.127814,0.115101)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.14306      1.49591    (-0.175737,0.177118)

!XSPEC12>log none
Log file closed
logging switched off
XSPEC12>/*
XSPEC12>exit
 XSPEC: quit
 
 
Spectral model in power-law:
------------------------------------------------------------
Parameters  : value       lower 90%   higher 90%
Photon index: 1.31880     ( -0.175747   0.177109 )
Norm@50keV  : 2.77147E-02    ( -0.00297003   0.00296409 )
------------------------------------------------------------
#Fit statistic  : Chi-Squared                   56.72     using 59 bins.
 Reduced chi-squared = 0.995088
# Null hypothesis probability of 4.85e-01 with 57 degrees of freedom
 
Photon flux (15-150 keV)    in 1 sec: 3.31820 ( -0.36172  0.36214 ) ph/cm2/s
Energy fluence (15-150 keV)             : 2.72672e-07 ( -3.21914e-08  3.23422e-08 ) ergs/cm2