XSPEC version: 12.11.0
	Build Date/Time: Mon Apr 13 12:38:19 2020

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/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  1.597e-01 +/- 3.140e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_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                318399.1     using 59 bins.

Test statistic : Chi-Squared                318399.1     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                   68.02     using 59 bins.

Test statistic : Chi-Squared                   68.02     using 59 bins.
 Null hypothesis probability of 1.51e-01 with 57 degrees of freedom
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
67.6461      0.764831     -3       1.67975    0.00849417
67.6007      6.11883      -4       1.74251    0.00834414
67.5952      0.537214     -5       1.76466    0.00829315
==============================
 Variances and Principal Axes
                 1        3  
 2.8416E-06| -0.0022  -1.0000  
 1.2020E-01| -1.0000   0.0022  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.202e-01  -2.604e-04
  -2.604e-04   3.406e-06
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.76466      +/-  0.346694     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                8.29315E-03  +/-  1.84545E-03  
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-01 with 57 degrees of freedom
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
67.5946      0.0315204    -3       1.77229    0.00827538
==============================
 Variances and Principal Axes
                 1        3  
 2.8081E-06| -0.0023  -1.0000  
 1.2121E-01| -1.0000   0.0023  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.212e-01  -2.768e-04
  -2.768e-04   3.440e-06
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.77229      +/-  0.348155     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                8.27538E-03  +/-  1.85483E-03  
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-01 with 57 degrees of freedom
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
67.5945      0.0108042    -3       1.77492    0.00826923
==============================
 Variances and Principal Axes
                 1        3  
 2.7962E-06| -0.0023  -1.0000  
 1.2156E-01| -1.0000   0.0023  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.216e-01  -2.825e-04
  -2.825e-04   3.453e-06
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.77492      +/-  0.348653     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                8.26923E-03  +/-  1.85814E-03  
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

XSPEC version: 12.11.0

Mon May 18 19:19:08 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129882


Current model list:

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.77492      +/-  0.348653     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                8.26923E-03  +/-  1.85814E-03  
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-01 with 57 degrees of freedom
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1      1.05044      2.61107    (-0.72538,0.835255)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3   0.00461129    0.0113266    (-0.0036551,0.00306016)
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                   68.97     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   68.97     using 59 bins.

Test statistic : Chi-Squared                   68.97     using 59 bins.
 Null hypothesis probability of 1.33e-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
67.6099      2.04649      -3       1.23546       1.72439
67.5962      0.154721     -4       1.23935       1.75856
67.5947      0.0483138    -5       1.23865       1.77020
==============================
 Variances and Principal Axes
                 3        4  
 6.1868E-02| -0.9857  -0.1683  
 1.2275E-01| -0.1683   0.9857  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.359e-02  -1.010e-02
  -1.010e-02   1.210e-01
------------------------

========================================================================
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.23865      +/-  0.252175     
   4    2   npow       PhoIndex            1.77020      +/-  0.347880     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.016455     -3       1.23834       1.77419
==============================
 Variances and Principal Axes
                 3        4  
 6.1753E-02| -0.9855  -0.1694  
 1.2326E-01| -0.1694   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.352e-02  -1.027e-02
  -1.027e-02   1.215e-01
------------------------

========================================================================
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.23834      +/-  0.252028     
   4    2   npow       PhoIndex            1.77419      +/-  0.348558     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00562629   -3       1.23823       1.77556
==============================
 Variances and Principal Axes
                 3        4  
 6.1714E-02| -0.9855  -0.1698  
 1.2345E-01| -0.1698   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.349e-02  -1.033e-02
  -1.033e-02   1.217e-01
------------------------

========================================================================
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.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:08 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129883


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                1.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.823179      1.65489    (-0.415014,0.416695)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725744,0.834887)

!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                   68.97     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   68.97     using 59 bins.

Test statistic : Chi-Squared                   68.97     using 59 bins.
 Null hypothesis probability of 1.33e-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
67.6099      2.04649      -3       1.23546       1.72439
67.5962      0.154721     -4       1.23935       1.75856
67.5947      0.0483138    -5       1.23865       1.77020
==============================
 Variances and Principal Axes
                 3        4  
 6.1868E-02| -0.9857  -0.1683  
 1.2275E-01| -0.1683   0.9857  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.359e-02  -1.010e-02
  -1.010e-02   1.210e-01
------------------------

========================================================================
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.23865      +/-  0.252175     
   4    2   npow       PhoIndex            1.77020      +/-  0.347880     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.016455     -3       1.23834       1.77419
==============================
 Variances and Principal Axes
                 3        4  
 6.1753E-02| -0.9855  -0.1694  
 1.2326E-01| -0.1694   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.352e-02  -1.027e-02
  -1.027e-02   1.215e-01
------------------------

========================================================================
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.23834      +/-  0.252028     
   4    2   npow       PhoIndex            1.77419      +/-  0.348558     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00562629   -3       1.23823       1.77556
==============================
 Variances and Principal Axes
                 3        4  
 6.1714E-02| -0.9855  -0.1698  
 1.2345E-01| -0.1698   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.349e-02  -1.033e-02
  -1.033e-02   1.217e-01
------------------------

========================================================================
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.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                   67.83     using 59 bins.

Test statistic : Chi-Squared                   67.83     using 59 bins.
 Null hypothesis probability of 1.54e-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
67.5945      1.06022      -3       1.12888       1.77600
67.5945      0.00135988   -4       1.12878       1.77617
==============================
 Variances and Principal Axes
                 3        4  
 5.1009E-02| -0.9833   0.1820  
 1.2414E-01|  0.1820   0.9833  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.343e-02   1.309e-02
   1.309e-02   1.217e-01
------------------------

========================================================================
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                1.12878      +/-  0.231152     
   4    2   npow       PhoIndex            1.77617      +/-  0.348886     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000238642  -3       1.12879       1.77622
==============================
 Variances and Principal Axes
                 3        4  
 5.1012E-02| -0.9833   0.1818  
 1.2417E-01|  0.1818   0.9833  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.343e-02   1.308e-02
   1.308e-02   1.218e-01
------------------------

========================================================================
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                1.12879      +/-  0.231152     
   4    2   npow       PhoIndex            1.77622      +/-  0.348932     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      7.81111e-05  -2       1.12879       1.77624
==============================
 Variances and Principal Axes
                 3        4  
 5.1013E-02| -0.9833   0.1818  
 1.2418E-01|  0.1818   0.9833  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.343e-02   1.308e-02
   1.308e-02   1.218e-01
------------------------

========================================================================
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                1.12879      +/-  0.231153     
   4    2   npow       PhoIndex            1.77624      +/-  0.348937     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:08 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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                1.12879      +/-  0.231153     
   4    2   npow       PhoIndex            1.77624      +/-  0.348937     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.744612      1.51095    (-0.384176,0.382159)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725807,0.834824)

!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                   68.97     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   68.97     using 59 bins.

Test statistic : Chi-Squared                   68.97     using 59 bins.
 Null hypothesis probability of 1.33e-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
67.6099      2.04649      -3       1.23546       1.72439
67.5962      0.154721     -4       1.23935       1.75856
67.5947      0.0483138    -5       1.23865       1.77020
==============================
 Variances and Principal Axes
                 3        4  
 6.1868E-02| -0.9857  -0.1683  
 1.2275E-01| -0.1683   0.9857  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.359e-02  -1.010e-02
  -1.010e-02   1.210e-01
------------------------

========================================================================
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.23865      +/-  0.252175     
   4    2   npow       PhoIndex            1.77020      +/-  0.347880     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.016455     -3       1.23834       1.77419
==============================
 Variances and Principal Axes
                 3        4  
 6.1753E-02| -0.9855  -0.1694  
 1.2326E-01| -0.1694   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.352e-02  -1.027e-02
  -1.027e-02   1.215e-01
------------------------

========================================================================
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.23834      +/-  0.252028     
   4    2   npow       PhoIndex            1.77419      +/-  0.348558     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00562629   -3       1.23823       1.77556
==============================
 Variances and Principal Axes
                 3        4  
 6.1714E-02| -0.9855  -0.1698  
 1.2345E-01| -0.1698   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.349e-02  -1.033e-02
  -1.033e-02   1.217e-01
------------------------

========================================================================
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.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                  146.18     using 59 bins.

Test statistic : Chi-Squared                  146.18     using 59 bins.
 Null hypothesis probability of 9.01e-10 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
67.5948      64.7397      -3      0.445625       1.77701
67.5945      0.101943     -4      0.443885       1.77648
==============================
 Variances and Principal Axes
                 3        4  
 7.3314E-03| -0.9515   0.3076  
 1.3276E-01|  0.3076   0.9515  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.920e-02   3.671e-02
   3.671e-02   1.209e-01
------------------------

========================================================================
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.443885     +/-  0.138561     
   4    2   npow       PhoIndex            1.77648      +/-  0.347702     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000757478  -3      0.443831       1.77630
==============================
 Variances and Principal Axes
                 3        4  
 7.3309E-03| -0.9519   0.3065  
 1.3360E-01|  0.3065   0.9519  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.920e-02   3.684e-02
   3.684e-02   1.217e-01
------------------------

========================================================================
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.443831     +/-  0.138546     
   4    2   npow       PhoIndex            1.77630      +/-  0.348904     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000255923   2      0.443831       1.77630
==============================
 Variances and Principal Axes
                 3        4  
 7.3290E-03| -0.9519   0.3065  
 1.3359E-01|  0.3065   0.9519  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.919e-02   3.684e-02
   3.684e-02   1.217e-01
------------------------

========================================================================
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.443831     +/-  0.138541     
   4    2   npow       PhoIndex            1.77630      +/-  0.348891     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:08 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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.443831     +/-  0.138541     
   4    2   npow       PhoIndex            1.77630      +/-  0.348891     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
***Warning: Zero alpha-matrix diagonal element for parameter 4
 Parameter 4 is pegged at 1.7763 due to zero or negative pivot element, likely
 caused by the fit being insensitive to the parameter.

 Fit error occurred during lower bound error calculation.
     3            0     0.709764    (-0.443831,0.265933)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.72586,0.834771)

!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                   68.97     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   68.97     using 59 bins.

Test statistic : Chi-Squared                   68.97     using 59 bins.
 Null hypothesis probability of 1.33e-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
67.6099      2.04649      -3       1.23546       1.72439
67.5962      0.154721     -4       1.23935       1.75856
67.5947      0.0483138    -5       1.23865       1.77020
==============================
 Variances and Principal Axes
                 3        4  
 6.1868E-02| -0.9857  -0.1683  
 1.2275E-01| -0.1683   0.9857  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.359e-02  -1.010e-02
  -1.010e-02   1.210e-01
------------------------

========================================================================
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.23865      +/-  0.252175     
   4    2   npow       PhoIndex            1.77020      +/-  0.347880     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.016455     -3       1.23834       1.77419
==============================
 Variances and Principal Axes
                 3        4  
 6.1753E-02| -0.9855  -0.1694  
 1.2326E-01| -0.1694   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.352e-02  -1.027e-02
  -1.027e-02   1.215e-01
------------------------

========================================================================
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.23834      +/-  0.252028     
   4    2   npow       PhoIndex            1.77419      +/-  0.348558     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00562629   -3       1.23823       1.77556
==============================
 Variances and Principal Axes
                 3        4  
 6.1714E-02| -0.9855  -0.1698  
 1.2345E-01| -0.1698   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.349e-02  -1.033e-02
  -1.033e-02   1.217e-01
------------------------

========================================================================
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.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                   75.23     using 59 bins.

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

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                  193.06     using 59 bins.

Test statistic : Chi-Squared                  193.06     using 59 bins.
 Null hypothesis probability of 1.10e-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
67.5946      73.5435      -3      0.380330       1.77589
67.5945      0.0753693    -4      0.379453       1.77613
==============================
 Variances and Principal Axes
                 3        4  
 5.8710E-03| -0.9993   0.0376  
 1.2133E-01|  0.0376   0.9993  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.034e-03   4.341e-03
   4.341e-03   1.212e-01
------------------------

========================================================================
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                0.379453     +/-  7.76818E-02  
   4    2   npow       PhoIndex            1.77613      +/-  0.348084     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000337989  -1      0.379456       1.77620
==============================
 Variances and Principal Axes
                 3        4  
 5.8713E-03| -0.9993   0.0375  
 1.2190E-01|  0.0375   0.9993  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.034e-03   4.345e-03
   4.345e-03   1.217e-01
------------------------

========================================================================
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                0.379456     +/-  7.76803E-02  
   4    2   npow       PhoIndex            1.77620      +/-  0.348912     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000136244  -2      0.379457       1.77624
==============================
 Variances and Principal Axes
                 3        4  
 5.8714E-03| -0.9993   0.0374  
 1.2191E-01|  0.0374   0.9993  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.034e-03   4.342e-03
   4.342e-03   1.217e-01
------------------------

========================================================================
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                0.379457     +/-  7.76798E-02  
   4    2   npow       PhoIndex            1.77624      +/-  0.348917     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:09 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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                0.379457     +/-  7.76798E-02  
   4    2   npow       PhoIndex            1.77624      +/-  0.348917     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.244762     0.507272    (-0.134695,0.127815)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725796,0.834835)

!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                   68.97     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   68.97     using 59 bins.

Test statistic : Chi-Squared                   68.97     using 59 bins.
 Null hypothesis probability of 1.33e-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
67.6099      2.04649      -3       1.23546       1.72439
67.5962      0.154721     -4       1.23935       1.75856
67.5947      0.0483138    -5       1.23865       1.77020
==============================
 Variances and Principal Axes
                 3        4  
 6.1868E-02| -0.9857  -0.1683  
 1.2275E-01| -0.1683   0.9857  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.359e-02  -1.010e-02
  -1.010e-02   1.210e-01
------------------------

========================================================================
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.23865      +/-  0.252175     
   4    2   npow       PhoIndex            1.77020      +/-  0.347880     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.016455     -3       1.23834       1.77419
==============================
 Variances and Principal Axes
                 3        4  
 6.1753E-02| -0.9855  -0.1694  
 1.2326E-01| -0.1694   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.352e-02  -1.027e-02
  -1.027e-02   1.215e-01
------------------------

========================================================================
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.23834      +/-  0.252028     
   4    2   npow       PhoIndex            1.77419      +/-  0.348558     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00562629   -3       1.23823       1.77556
==============================
 Variances and Principal Axes
                 3        4  
 6.1714E-02| -0.9855  -0.1698  
 1.2345E-01| -0.1698   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.349e-02  -1.033e-02
  -1.033e-02   1.217e-01
------------------------

========================================================================
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.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                  163.83     using 59 bins.

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

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                  582.70     using 59 bins.

Test statistic : Chi-Squared                  582.70     using 59 bins.
 Null hypothesis probability of 3.34e-88 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
67.5962      315.379      -3      0.223691       1.77418
67.5945      0.46336      -4      0.221657       1.77557
==============================
 Variances and Principal Axes
                 3        4  
 1.9736E-03| -0.9909  -0.1347  
 1.2181E-01| -0.1347   0.9909  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.149e-03  -1.600e-02
  -1.600e-02   1.196e-01
------------------------

========================================================================
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.221657     +/-  6.44120E-02  
   4    2   npow       PhoIndex            1.77557      +/-  0.345887     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.0020737    -3      0.221594       1.77606
==============================
 Variances and Principal Axes
                 3        4  
 1.9709E-03| -0.9910  -0.1337  
 1.2389E-01| -0.1337   0.9910  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.150e-03  -1.615e-02
  -1.615e-02   1.217e-01
------------------------

========================================================================
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.221594     +/-  6.44189E-02  
   4    2   npow       PhoIndex            1.77606      +/-  0.348865     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000686935  -3      0.221572       1.77622
==============================
 Variances and Principal Axes
                 3        4  
 1.9697E-03| -0.9910  -0.1337  
 1.2391E-01| -0.1337   0.9910  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.150e-03  -1.616e-02
  -1.616e-02   1.217e-01
------------------------

========================================================================
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.221572     +/-  6.44213E-02  
   4    2   npow       PhoIndex            1.77622      +/-  0.348895     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:09 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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.221572     +/-  6.44213E-02  
   4    2   npow       PhoIndex            1.77622      +/-  0.348895     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0983548     0.334224    (-0.123209,0.11266)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725856,0.834775)

!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                   68.97     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   68.97     using 59 bins.

Test statistic : Chi-Squared                   68.97     using 59 bins.
 Null hypothesis probability of 1.33e-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
67.6099      2.04649      -3       1.23546       1.72439
67.5962      0.154721     -4       1.23935       1.75856
67.5947      0.0483138    -5       1.23865       1.77020
==============================
 Variances and Principal Axes
                 3        4  
 6.1868E-02| -0.9857  -0.1683  
 1.2275E-01| -0.1683   0.9857  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.359e-02  -1.010e-02
  -1.010e-02   1.210e-01
------------------------

========================================================================
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.23865      +/-  0.252175     
   4    2   npow       PhoIndex            1.77020      +/-  0.347880     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.016455     -3       1.23834       1.77419
==============================
 Variances and Principal Axes
                 3        4  
 6.1753E-02| -0.9855  -0.1694  
 1.2326E-01| -0.1694   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.352e-02  -1.027e-02
  -1.027e-02   1.215e-01
------------------------

========================================================================
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.23834      +/-  0.252028     
   4    2   npow       PhoIndex            1.77419      +/-  0.348558     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00562629   -3       1.23823       1.77556
==============================
 Variances and Principal Axes
                 3        4  
 6.1714E-02| -0.9855  -0.1698  
 1.2345E-01| -0.1698   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.349e-02  -1.033e-02
  -1.033e-02   1.217e-01
------------------------

========================================================================
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.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  781.22     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                 4689.91     using 59 bins.

Test statistic : Chi-Squared                 4689.91     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
67.6962      3521.64      -3     0.0897605       1.77238
67.5945      9.40632      -4     0.0840727       1.77481
67.5945      0.0271458    -5     0.0839881       1.77583
==============================
 Variances and Principal Axes
                 3        4  
 2.8595E-04| -0.9952  -0.0979  
 1.2285E-01| -0.0979   0.9952  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.462e-03  -1.195e-02
  -1.195e-02   1.217e-01
------------------------

========================================================================
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                8.39881E-02  +/-  3.82343E-02  
   4    2   npow       PhoIndex            1.77583      +/-  0.348824     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00143678   -3     0.0839544       1.77617
==============================
 Variances and Principal Axes
                 3        4  
 2.8527E-04| -0.9952  -0.0979  
 1.2286E-01| -0.0979   0.9952  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.460e-03  -1.194e-02
  -1.194e-02   1.217e-01
------------------------

========================================================================
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                8.39544E-02  +/-  3.82135E-02  
   4    2   npow       PhoIndex            1.77617      +/-  0.348830     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000492952  -2     0.0839436       1.77628
==============================
 Variances and Principal Axes
                 3        4  
 2.8505E-04| -0.9952  -0.0979  
 1.2287E-01| -0.0979   0.9952  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.460e-03  -1.194e-02
  -1.194e-02   1.217e-01
------------------------

========================================================================
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                8.39436E-02  +/-  3.82065E-02  
   4    2   npow       PhoIndex            1.77628      +/-  0.348852     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:09 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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                8.39436E-02  +/-  3.82065E-02  
   4    2   npow       PhoIndex            1.77628      +/-  0.348852     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0234767     0.169555    (-0.0604669,0.0856114)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725892,0.834739)

!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                   68.97     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   68.97     using 59 bins.

Test statistic : Chi-Squared                   68.97     using 59 bins.
 Null hypothesis probability of 1.33e-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
67.6099      2.04649      -3       1.23546       1.72439
67.5962      0.154721     -4       1.23935       1.75856
67.5947      0.0483138    -5       1.23865       1.77020
==============================
 Variances and Principal Axes
                 3        4  
 6.1868E-02| -0.9857  -0.1683  
 1.2275E-01| -0.1683   0.9857  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.359e-02  -1.010e-02
  -1.010e-02   1.210e-01
------------------------

========================================================================
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.23865      +/-  0.252175     
   4    2   npow       PhoIndex            1.77020      +/-  0.347880     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.016455     -3       1.23834       1.77419
==============================
 Variances and Principal Axes
                 3        4  
 6.1753E-02| -0.9855  -0.1694  
 1.2326E-01| -0.1694   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.352e-02  -1.027e-02
  -1.027e-02   1.215e-01
------------------------

========================================================================
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.23834      +/-  0.252028     
   4    2   npow       PhoIndex            1.77419      +/-  0.348558     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00562629   -3       1.23823       1.77556
==============================
 Variances and Principal Axes
                 3        4  
 6.1714E-02| -0.9855  -0.1698  
 1.2345E-01| -0.1698   0.9855  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.349e-02  -1.033e-02
  -1.033e-02   1.217e-01
------------------------

========================================================================
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.23823      +/-  0.251978     
   4    2   npow       PhoIndex            1.77556      +/-  0.348817     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  781.22     using 59 bins.

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

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                  781.22     using 59 bins.

Test statistic : Chi-Squared                  781.22     using 59 bins.
 Null hypothesis probability of 8.07e-128 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
67.624       721.537      -3      0.201337       1.77192
67.5945      2.27463      -4      0.193741       1.77474
67.5945      0.0120641    -5      0.193456       1.77582
==============================
 Variances and Principal Axes
                 3        4  
 1.4121E-03| -0.9593  -0.2825  
 1.3207E-01| -0.2825   0.9593  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.184e-02  -3.541e-02
  -3.541e-02   1.216e-01
------------------------

========================================================================
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                0.193456     +/-  0.108810     
   4    2   npow       PhoIndex            1.77582      +/-  0.348769     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00154605   -3      0.193350       1.77619
==============================
 Variances and Principal Axes
                 3        4  
 1.4077E-03| -0.9593  -0.2822  
 1.3206E-01| -0.2822   0.9593  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.181e-02  -3.537e-02
  -3.537e-02   1.217e-01
------------------------

========================================================================
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                0.193350     +/-  0.108693     
   4    2   npow       PhoIndex            1.77619      +/-  0.348789     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00052778   -3      0.193313       1.77632
==============================
 Variances and Principal Axes
                 3        4  
 1.4063E-03| -0.9594  -0.2821  
 1.3207E-01| -0.2821   0.9594  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.181e-02  -3.536e-02
  -3.536e-02   1.217e-01
------------------------

========================================================================
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                0.193313     +/-  0.108653     
   4    2   npow       PhoIndex            1.77632      +/-  0.348814     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:09 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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                0.193313     +/-  0.108653     
   4    2   npow       PhoIndex            1.77632      +/-  0.348814     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0425882     0.495267    (-0.150713,0.301966)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725914,0.834716)

!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                   88.88     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   88.88     using 59 bins.

Test statistic : Chi-Squared                   88.88     using 59 bins.
 Null hypothesis probability of 4.39e-03 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
75.6198      1.92607       0      -7.50262       2.46424
70.5933      6.63748       0      -7.28978       2.59741
68.4785      2.85243      -1      -7.11645       2.13612
67.6504      2.56138      -2      -6.97946       1.87165
67.5997      0.499597     -3      -6.94867       1.80736
67.5951      0.0791227    -4      -6.94068       1.78684
==============================
 Variances and Principal Axes
                 3        4  
 6.7313E-03| -0.9343  -0.3566  
 1.4072E-01| -0.3566   0.9343  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.377e-02  -4.464e-02
  -4.464e-02   1.237e-01
------------------------

========================================================================
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.94068     +/-  0.154176     
   4    2   npow       PhoIndex            1.78684      +/-  0.351689     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5946      0.0268921    -3      -6.93810       1.77995
==============================
 Variances and Principal Axes
                 3        4  
 6.7096E-03| -0.9339  -0.3576  
 1.3927E-01| -0.3576   0.9339  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.366e-02  -4.427e-02
  -4.427e-02   1.223e-01
------------------------

========================================================================
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.93810     +/-  0.153816     
   4    2   npow       PhoIndex            1.77995      +/-  0.349741     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00939932   -3      -6.93722       1.77758
==============================
 Variances and Principal Axes
                 3        4  
 6.7059E-03| -0.9338  -0.3579  
 1.3887E-01| -0.3579   0.9338  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.363e-02  -4.417e-02
  -4.417e-02   1.219e-01
------------------------

========================================================================
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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:09 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.27195     -6.65892    (-0.335033,0.277996)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.726039,0.834593)

!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                   88.88     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   88.88     using 59 bins.

Test statistic : Chi-Squared                   88.88     using 59 bins.
 Null hypothesis probability of 4.39e-03 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
75.6198      1.92607       0      -7.50262       2.46424
70.5933      6.63748       0      -7.28978       2.59741
68.4785      2.85243      -1      -7.11645       2.13612
67.6504      2.56138      -2      -6.97946       1.87165
67.5997      0.499597     -3      -6.94867       1.80736
67.5951      0.0791227    -4      -6.94068       1.78684
==============================
 Variances and Principal Axes
                 3        4  
 6.7313E-03| -0.9343  -0.3566  
 1.4072E-01| -0.3566   0.9343  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.377e-02  -4.464e-02
  -4.464e-02   1.237e-01
------------------------

========================================================================
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.94068     +/-  0.154176     
   4    2   npow       PhoIndex            1.78684      +/-  0.351689     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5946      0.0268921    -3      -6.93810       1.77995
==============================
 Variances and Principal Axes
                 3        4  
 6.7096E-03| -0.9339  -0.3576  
 1.3927E-01| -0.3576   0.9339  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.366e-02  -4.427e-02
  -4.427e-02   1.223e-01
------------------------

========================================================================
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.93810     +/-  0.153816     
   4    2   npow       PhoIndex            1.77995      +/-  0.349741     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00939932   -3      -6.93722       1.77758
==============================
 Variances and Principal Axes
                 3        4  
 6.7059E-03| -0.9338  -0.3579  
 1.3887E-01| -0.3579   0.9338  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.363e-02  -4.417e-02
  -4.417e-02   1.219e-01
------------------------

========================================================================
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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                   74.15     using 59 bins.

Test statistic : Chi-Squared                   74.15     using 59 bins.
 Null hypothesis probability of 6.30e-02 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.7549      22.4587      -3      -7.08441       1.77669
67.5948      2.50235      -4      -7.11674       1.77644
67.5945      0.0945978    -5      -7.11815       1.77634
==============================
 Variances and Principal Axes
                 3        4  
 7.4225E-03| -0.9887  -0.1500  
 1.2358E-01| -0.1500   0.9887  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.003e-02  -1.722e-02
  -1.722e-02   1.210e-01
------------------------

========================================================================
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      -7.11815     +/-  0.100174     
   4    2   npow       PhoIndex            1.77634      +/-  0.347808     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000605629  -3      -7.11815       1.77631
==============================
 Variances and Principal Axes
                 3        4  
 7.4712E-03| -0.9887  -0.1500  
 1.2439E-01| -0.1500   0.9887  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.010e-02  -1.733e-02
  -1.733e-02   1.218e-01
------------------------

========================================================================
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      -7.11815     +/-  0.100500     
   4    2   npow       PhoIndex            1.77631      +/-  0.348941     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      4.61126e-05  -3      -7.11815       1.77629
==============================
 Variances and Principal Axes
                 3        4  
 7.4715E-03| -0.9887  -0.1499  
 1.2439E-01| -0.1499   0.9887  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.010e-02  -1.733e-02
  -1.733e-02   1.218e-01
------------------------

========================================================================
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      -7.11815     +/-  0.100501     
   4    2   npow       PhoIndex            1.77629      +/-  0.348946     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:09 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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      -7.11815     +/-  0.100501     
   4    2   npow       PhoIndex            1.77629      +/-  0.348946     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.34286     -6.97048    (-0.224714,0.147668)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.72585,0.834781)

!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                   88.88     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   88.88     using 59 bins.

Test statistic : Chi-Squared                   88.88     using 59 bins.
 Null hypothesis probability of 4.39e-03 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
75.6198      1.92607       0      -7.50262       2.46424
70.5933      6.63748       0      -7.28978       2.59741
68.4785      2.85243      -1      -7.11645       2.13612
67.6504      2.56138      -2      -6.97946       1.87165
67.5997      0.499597     -3      -6.94867       1.80736
67.5951      0.0791227    -4      -6.94068       1.78684
==============================
 Variances and Principal Axes
                 3        4  
 6.7313E-03| -0.9343  -0.3566  
 1.4072E-01| -0.3566   0.9343  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.377e-02  -4.464e-02
  -4.464e-02   1.237e-01
------------------------

========================================================================
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.94068     +/-  0.154176     
   4    2   npow       PhoIndex            1.78684      +/-  0.351689     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5946      0.0268921    -3      -6.93810       1.77995
==============================
 Variances and Principal Axes
                 3        4  
 6.7096E-03| -0.9339  -0.3576  
 1.3927E-01| -0.3576   0.9339  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.366e-02  -4.427e-02
  -4.427e-02   1.223e-01
------------------------

========================================================================
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.93810     +/-  0.153816     
   4    2   npow       PhoIndex            1.77995      +/-  0.349741     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00939932   -3      -6.93722       1.77758
==============================
 Variances and Principal Axes
                 3        4  
 6.7059E-03| -0.9338  -0.3579  
 1.3887E-01| -0.3579   0.9338  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.363e-02  -4.417e-02
  -4.417e-02   1.219e-01
------------------------

========================================================================
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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                 1421.32     using 59 bins.

Test statistic : Chi-Squared                 1421.32     using 59 bins.
 Null hypothesis probability of 1.11e-259 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
221.849      1846.46      -3      -7.31756       1.77920
80.3861      259.427      -4      -7.62674       1.77878
68.0401      36.682       -5      -7.80827       1.77780
67.5962      4.51077      -6      -7.85988       1.77688
67.5945      0.247838     -7      -7.86358       1.77644
==============================
 Variances and Principal Axes
                 3        4  
 6.8976E-03| -0.9572   0.2895  
 1.3007E-01|  0.2895   0.9572  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.722e-02   3.413e-02
   3.413e-02   1.197e-01
------------------------

========================================================================
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.86358     +/-  0.131218     
   4    2   npow       PhoIndex            1.77644      +/-  0.346041     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00229986   -3      -7.86366       1.77629
==============================
 Variances and Principal Axes
                 3        4  
 7.0117E-03| -0.9572   0.2896  
 1.3221E-01|  0.2896   0.9572  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.751e-02   3.470e-02
   3.470e-02   1.217e-01
------------------------

========================================================================
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.86366     +/-  0.132331     
   4    2   npow       PhoIndex            1.77629      +/-  0.348875     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000212849   2      -7.86366       1.77629
==============================
 Variances and Principal Axes
                 3        4  
 7.0126E-03| -0.9571   0.2896  
 1.3223E-01|  0.2896   0.9571  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.752e-02   3.471e-02
   3.471e-02   1.217e-01
------------------------

========================================================================
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.86366     +/-  0.132351     
   4    2   npow       PhoIndex            1.77629      +/-  0.348892     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:10 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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.86366     +/-  0.132351     
   4    2   npow       PhoIndex            1.77629      +/-  0.348892     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -8.20598     -7.66472    (-0.342318,0.198941)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725848,0.834783)

!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                   88.88     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   88.88     using 59 bins.

Test statistic : Chi-Squared                   88.88     using 59 bins.
 Null hypothesis probability of 4.39e-03 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
75.6198      1.92607       0      -7.50262       2.46424
70.5933      6.63748       0      -7.28978       2.59741
68.4785      2.85243      -1      -7.11645       2.13612
67.6504      2.56138      -2      -6.97946       1.87165
67.5997      0.499597     -3      -6.94867       1.80736
67.5951      0.0791227    -4      -6.94068       1.78684
==============================
 Variances and Principal Axes
                 3        4  
 6.7313E-03| -0.9343  -0.3566  
 1.4072E-01| -0.3566   0.9343  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.377e-02  -4.464e-02
  -4.464e-02   1.237e-01
------------------------

========================================================================
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.94068     +/-  0.154176     
   4    2   npow       PhoIndex            1.78684      +/-  0.351689     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5946      0.0268921    -3      -6.93810       1.77995
==============================
 Variances and Principal Axes
                 3        4  
 6.7096E-03| -0.9339  -0.3576  
 1.3927E-01| -0.3576   0.9339  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.366e-02  -4.427e-02
  -4.427e-02   1.223e-01
------------------------

========================================================================
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.93810     +/-  0.153816     
   4    2   npow       PhoIndex            1.77995      +/-  0.349741     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00939932   -3      -6.93722       1.77758
==============================
 Variances and Principal Axes
                 3        4  
 6.7059E-03| -0.9338  -0.3579  
 1.3887E-01| -0.3579   0.9338  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.363e-02  -4.417e-02
  -4.417e-02   1.219e-01
------------------------

========================================================================
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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                   68.04     using 59 bins.

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

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                  549.32     using 59 bins.

Test statistic : Chi-Squared                  549.32     using 59 bins.
 Null hypothesis probability of 1.17e-81 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
116.536      682.737      -3      -7.28975       1.77755
70.5518      96.6827      -4      -7.54291       1.77721
67.6388      13.2726      -5      -7.65435       1.77674
67.5945      1.25727      -6      -7.67199       1.77644
67.5945      0.0302759    -7      -7.67245       1.77632
==============================
 Variances and Principal Axes
                 3        4  
 7.6011E-03| -0.9997   0.0249  
 1.2157E-01|  0.0249   0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.672e-03   2.832e-03
   2.832e-03   1.215e-01
------------------------

========================================================================
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.67245     +/-  8.75875E-02  
   4    2   npow       PhoIndex            1.77632      +/-  0.348562     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000237433  -3      -7.67246       1.77628
==============================
 Variances and Principal Axes
                 3        4  
 7.6172E-03| -0.9997   0.0249  
 1.2182E-01|  0.0249   0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.688e-03   2.842e-03
   2.842e-03   1.217e-01
------------------------

========================================================================
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.67246     +/-  8.76814E-02  
   4    2   npow       PhoIndex            1.77628      +/-  0.348923     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      5.70584e-05  -3      -7.67246       1.77626
==============================
 Variances and Principal Axes
                 3        4  
 7.6173E-03| -0.9997   0.0249  
 1.2182E-01|  0.0249   0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.688e-03   2.844e-03
   2.844e-03   1.217e-01
------------------------

========================================================================
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.67246     +/-  8.76823E-02  
   4    2   npow       PhoIndex            1.77626      +/-  0.348923     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:10 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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.67246     +/-  8.76823E-02  
   4    2   npow       PhoIndex            1.77626      +/-  0.348923     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.85501     -7.54735    (-0.182553,0.125112)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725825,0.834806)

!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                   88.88     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   88.88     using 59 bins.

Test statistic : Chi-Squared                   88.88     using 59 bins.
 Null hypothesis probability of 4.39e-03 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
75.6198      1.92607       0      -7.50262       2.46424
70.5933      6.63748       0      -7.28978       2.59741
68.4785      2.85243      -1      -7.11645       2.13612
67.6504      2.56138      -2      -6.97946       1.87165
67.5997      0.499597     -3      -6.94867       1.80736
67.5951      0.0791227    -4      -6.94068       1.78684
==============================
 Variances and Principal Axes
                 3        4  
 6.7313E-03| -0.9343  -0.3566  
 1.4072E-01| -0.3566   0.9343  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.377e-02  -4.464e-02
  -4.464e-02   1.237e-01
------------------------

========================================================================
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.94068     +/-  0.154176     
   4    2   npow       PhoIndex            1.78684      +/-  0.351689     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5946      0.0268921    -3      -6.93810       1.77995
==============================
 Variances and Principal Axes
                 3        4  
 6.7096E-03| -0.9339  -0.3576  
 1.3927E-01| -0.3576   0.9339  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.366e-02  -4.427e-02
  -4.427e-02   1.223e-01
------------------------

========================================================================
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.93810     +/-  0.153816     
   4    2   npow       PhoIndex            1.77995      +/-  0.349741     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00939932   -3      -6.93722       1.77758
==============================
 Variances and Principal Axes
                 3        4  
 6.7059E-03| -0.9338  -0.3579  
 1.3887E-01| -0.3579   0.9338  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.363e-02  -4.417e-02
  -4.417e-02   1.219e-01
------------------------

========================================================================
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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                   72.20     using 59 bins.

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

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                  395.38     using 59 bins.

Test statistic : Chi-Squared                  395.38     using 59 bins.
 Null hypothesis probability of 3.90e-52 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
99.0229      500.714      -3      -7.27604       1.77591
69.2138      71.0046      -4      -7.50562       1.77593
67.6106      9.50232      -5      -7.59406       1.77613
67.5945      0.772878     -6      -7.60490       1.77625
67.5945      0.0130455    -7      -7.60510       1.77629
==============================
 Variances and Principal Axes
                 3        4  
 7.0461E-03| -0.9596  -0.2813  
 1.3147E-01| -0.2813   0.9596  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.689e-02  -3.359e-02
  -3.359e-02   1.216e-01
------------------------

========================================================================
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.60510     +/-  0.129964     
   4    2   npow       PhoIndex            1.77629      +/-  0.348751     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      8.24491e-05   1      -7.60510       1.77629
==============================
 Variances and Principal Axes
                 3        4  
 7.0522E-03| -0.9596  -0.2813  
 1.3159E-01| -0.2813   0.9596  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.691e-02  -3.362e-02
  -3.362e-02   1.217e-01
------------------------

========================================================================
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.60510     +/-  0.130025     
   4    2   npow       PhoIndex            1.77629      +/-  0.348908     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      8.19271e-05   2      -7.60510       1.77629
==============================
 Variances and Principal Axes
                 3        4  
 7.0522E-03| -0.9596  -0.2813  
 1.3159E-01| -0.2813   0.9596  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.691e-02  -3.362e-02
  -3.362e-02   1.217e-01
------------------------

========================================================================
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.60510     +/-  0.130025     
   4    2   npow       PhoIndex            1.77629      +/-  0.348908     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:10 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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.60510     +/-  0.130025     
   4    2   npow       PhoIndex            1.77629      +/-  0.348908     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.97018     -7.41937    (-0.365076,0.18573)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725852,0.834779)

!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                   88.88     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   88.88     using 59 bins.

Test statistic : Chi-Squared                   88.88     using 59 bins.
 Null hypothesis probability of 4.39e-03 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
75.6198      1.92607       0      -7.50262       2.46424
70.5933      6.63748       0      -7.28978       2.59741
68.4785      2.85243      -1      -7.11645       2.13612
67.6504      2.56138      -2      -6.97946       1.87165
67.5997      0.499597     -3      -6.94867       1.80736
67.5951      0.0791227    -4      -6.94068       1.78684
==============================
 Variances and Principal Axes
                 3        4  
 6.7313E-03| -0.9343  -0.3566  
 1.4072E-01| -0.3566   0.9343  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.377e-02  -4.464e-02
  -4.464e-02   1.237e-01
------------------------

========================================================================
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.94068     +/-  0.154176     
   4    2   npow       PhoIndex            1.78684      +/-  0.351689     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5946      0.0268921    -3      -6.93810       1.77995
==============================
 Variances and Principal Axes
                 3        4  
 6.7096E-03| -0.9339  -0.3576  
 1.3927E-01| -0.3576   0.9339  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.366e-02  -4.427e-02
  -4.427e-02   1.223e-01
------------------------

========================================================================
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.93810     +/-  0.153816     
   4    2   npow       PhoIndex            1.77995      +/-  0.349741     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00939932   -3      -6.93722       1.77758
==============================
 Variances and Principal Axes
                 3        4  
 6.7059E-03| -0.9338  -0.3579  
 1.3887E-01| -0.3579   0.9338  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.363e-02  -4.417e-02
  -4.417e-02   1.219e-01
------------------------

========================================================================
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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                   95.70     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                  964.78     using 59 bins.

Test statistic : Chi-Squared                  964.78     using 59 bins.
 Null hypothesis probability of 3.64e-165 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
165.866      1357.83      -3      -7.30639       1.77447
74.9029      191.349      -4      -7.59478       1.77465
67.7843      26.8743      -5      -7.74779       1.77536
67.5949      3.04698      -6      -7.78305       1.77596
67.5945      0.124134     -7      -7.78486       1.77622
==============================
 Variances and Principal Axes
                 3        4  
 5.9326E-03| -0.8809  -0.4732  
 1.5387E-01| -0.4732   0.8809  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.906e-02  -6.167e-02
  -6.167e-02   1.207e-01
------------------------

========================================================================
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.78486     +/-  0.197641     
   4    2   npow       PhoIndex            1.77622      +/-  0.347481     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000848558  -3      -7.78492       1.77631
==============================
 Variances and Principal Axes
                 3        4  
 5.9782E-03| -0.8809  -0.4733  
 1.5509E-01| -0.4733   0.8809  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.938e-02  -6.217e-02
  -6.217e-02   1.217e-01
------------------------

========================================================================
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.78492     +/-  0.198438     
   4    2   npow       PhoIndex            1.77631      +/-  0.348845     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000117786   2      -7.78492       1.77631
==============================
 Variances and Principal Axes
                 3        4  
 5.9784E-03| -0.8809  -0.4733  
 1.5511E-01| -0.4733   0.8809  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.938e-02  -6.218e-02
  -6.218e-02   1.217e-01
------------------------

========================================================================
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.78492     +/-  0.198455     
   4    2   npow       PhoIndex            1.77631      +/-  0.348859     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:10 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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.78492     +/-  0.198455     
   4    2   npow       PhoIndex            1.77631      +/-  0.348859     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -8.34237     -7.47594    (-0.55745,0.308978)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725871,0.83476)

!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                   88.88     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   88.88     using 59 bins.

Test statistic : Chi-Squared                   88.88     using 59 bins.
 Null hypothesis probability of 4.39e-03 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
75.6198      1.92607       0      -7.50262       2.46424
70.5933      6.63748       0      -7.28978       2.59741
68.4785      2.85243      -1      -7.11645       2.13612
67.6504      2.56138      -2      -6.97946       1.87165
67.5997      0.499597     -3      -6.94867       1.80736
67.5951      0.0791227    -4      -6.94068       1.78684
==============================
 Variances and Principal Axes
                 3        4  
 6.7313E-03| -0.9343  -0.3566  
 1.4072E-01| -0.3566   0.9343  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.377e-02  -4.464e-02
  -4.464e-02   1.237e-01
------------------------

========================================================================
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.94068     +/-  0.154176     
   4    2   npow       PhoIndex            1.78684      +/-  0.351689     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.60     using 59 bins.

Test statistic : Chi-Squared                   67.60     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5946      0.0268921    -3      -6.93810       1.77995
==============================
 Variances and Principal Axes
                 3        4  
 6.7096E-03| -0.9339  -0.3576  
 1.3927E-01| -0.3576   0.9339  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.366e-02  -4.427e-02
  -4.427e-02   1.223e-01
------------------------

========================================================================
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.93810     +/-  0.153816     
   4    2   npow       PhoIndex            1.77995      +/-  0.349741     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.00939932   -3      -6.93722       1.77758
==============================
 Variances and Principal Axes
                 3        4  
 6.7059E-03| -0.9338  -0.3579  
 1.3887E-01| -0.3579   0.9338  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.363e-02  -4.417e-02
  -4.417e-02   1.219e-01
------------------------

========================================================================
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.93722     +/-  0.153736     
   4    2   npow       PhoIndex            1.77758      +/-  0.349203     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                   95.70     using 59 bins.

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

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                   95.70     using 59 bins.

Test statistic : Chi-Squared                   95.70     using 59 bins.
 Null hypothesis probability of 1.01e-03 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
68.9838      76.9244      -3      -7.15866       1.77474
67.6068      10.2187      -4      -7.24237       1.77552
67.5945      0.793274     -5      -7.25224       1.77608
67.5945      0.0116607    -6      -7.25254       1.77629
==============================
 Variances and Principal Axes
                 3        4  
 5.0182E-03| -0.8054  -0.5928  
 1.8471E-01| -0.5928   0.8054  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.816e-02  -8.579e-02
  -8.579e-02   1.216e-01
------------------------

========================================================================
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      -7.25254     +/-  0.261082     
   4    2   npow       PhoIndex            1.77629      +/-  0.348664     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      0.000241558  -3      -7.25259       1.77636
==============================
 Variances and Principal Axes
                 3        4  
 5.0215E-03| -0.8053  -0.5928  
 1.8486E-01| -0.5928   0.8053  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.822e-02  -8.586e-02
  -8.586e-02   1.217e-01
------------------------

========================================================================
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      -7.25259     +/-  0.261198     
   4    2   npow       PhoIndex            1.77636      +/-  0.348799     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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
67.5945      9.23297e-05  -3      -7.25260       1.77638
==============================
 Variances and Principal Axes
                 3        4  
 5.0214E-03| -0.8053  -0.5928  
 1.8487E-01| -0.5928   0.8053  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.823e-02  -8.587e-02
  -8.587e-02   1.217e-01
------------------------

========================================================================
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      -7.25260     +/-  0.261208     
   4    2   npow       PhoIndex            1.77638      +/-  0.348805     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   67.59     using 59 bins.

Test statistic : Chi-Squared                   67.59     using 59 bins.
 Null hypothesis probability of 1.59e-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.11.0

Mon May 18 19:19:10 2020
 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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger945344/00945344000-results/pha/sw00945344000b_peak.pha
Net count rate (cts/s) for Spectrum:1  1.515e-01 +/- 2.744e-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/trigger945344/remake_spec_cflux/spec_1speak/sw00945344000b_1speak.rsp for Source 1

 Spectral data counts: 0.15149
 Model predicted rate: 0.129884


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      -7.25260     +/-  0.261208     
   4    2   npow       PhoIndex            1.77638      +/-  0.348805     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   67.59     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.95384     -6.80576    (-0.701231,0.446844)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.05044      2.61107    (-0.725941,0.834689)

!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.77492     ( -0.72538   0.835255 )
Norm@50keV  : 8.26923E-03    ( -0.0036551   0.00306016 )
------------------------------------------------------------
 
Photon flux (15-150 keV)    in 1 sec: 1.12879 ( -0.384178  0.38216 ) ph/cm2/s
Energy fluence (15-150 keV)             : 7.61816e-08 ( -3.07728e-08  3.0852e-08 ) ergs/cm2