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/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  6.572e-01 +/- 3.824e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_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                403980.7     using 59 bins.

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

Test statistic : Chi-Squared                   71.70     using 59 bins.
 Null hypothesis probability of 9.09e-02 with 57 degrees of freedom
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
69.7284      11.1328      -3       1.59984     0.0394656
69.7031      16.7866      -4       1.58901     0.0394680
69.7028      0.25396      -5       1.59023     0.0394587
==============================
 Variances and Principal Axes
                 1        3  
 2.2250E-06| -0.0068  -1.0000  
 4.5555E-03| -1.0000   0.0068  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.555e-03  -3.091e-05
  -3.091e-05   2.435e-06
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-01 with 57 degrees of freedom
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
69.7028      0.0153076    -3       1.59009     0.0394597
==============================
 Variances and Principal Axes
                 1        3  
 2.2241E-06| -0.0068  -1.0000  
 4.5571E-03| -1.0000   0.0068  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.557e-03  -3.105e-05
  -3.105e-05   2.436e-06
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-01 with 57 degrees of freedom
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
69.7028      0.00173066   -3       1.59011     0.0394596
==============================
 Variances and Principal Axes
                 1        3  
 2.2242E-06| -0.0068  -1.0000  
 4.5570E-03| -1.0000   0.0068  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.557e-03  -3.104e-05
  -3.104e-05   2.436e-06
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:02 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-01 with 57 degrees of freedom
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1      1.48538      1.69624    (-0.104727,0.106134)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0368979    0.0420106    (-0.00256172,0.00255101)
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                  549.05     using 59 bins.

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  549.05     using 59 bins.

Test statistic : Chi-Squared                  549.05     using 59 bins.
 Null hypothesis probability of 1.33e-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:Flux    4:PhoIndex
124.387      50.3314      -3       5.72422       2.07831
71.6317      52.8873      -4       5.57433       1.52275
69.7279      9.23281      -5       5.73455       1.60016
69.7032      1.20604      -6       5.74389       1.58894
69.7028      0.143053     -7       5.74340       1.59024
==============================
 Variances and Principal Axes
                 3        4  
 4.4520E-03| -0.0488  -0.9988  
 4.8237E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.813e-02  -2.136e-03
  -2.136e-03   4.556e-03
------------------------

========================================================================
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                5.74340      +/-  0.219392     
   4    2   npow       PhoIndex            1.59024      +/-  6.75016E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.016261     -3       5.74347       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.4534E-03| -0.0488  -0.9988  
 4.8226E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219367     
   4    2   npow       PhoIndex            1.59009      +/-  6.75113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00184825   -3       5.74347       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.4532E-03| -0.0488  -0.9988  
 4.8227E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:03 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      5.38322      6.10417    (-0.360244,0.360705)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104728,0.106133)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  549.05     using 59 bins.

Test statistic : Chi-Squared                  549.05     using 59 bins.
 Null hypothesis probability of 1.33e-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:Flux    4:PhoIndex
124.387      50.3314      -3       5.72422       2.07831
71.6317      52.8873      -4       5.57433       1.52275
69.7279      9.23281      -5       5.73455       1.60016
69.7032      1.20604      -6       5.74389       1.58894
69.7028      0.143053     -7       5.74340       1.59024
==============================
 Variances and Principal Axes
                 3        4  
 4.4520E-03| -0.0488  -0.9988  
 4.8237E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.813e-02  -2.136e-03
  -2.136e-03   4.556e-03
------------------------

========================================================================
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                5.74340      +/-  0.219392     
   4    2   npow       PhoIndex            1.59024      +/-  6.75016E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.016261     -3       5.74347       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.4534E-03| -0.0488  -0.9988  
 4.8226E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219367     
   4    2   npow       PhoIndex            1.59009      +/-  6.75113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00184825   -3       5.74347       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.4532E-03| -0.0488  -0.9988  
 4.8227E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                   82.67     using 59 bins.

Test statistic : Chi-Squared                   82.67     using 59 bins.
 Null hypothesis probability of 1.48e-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:Flux    4:PhoIndex
69.7028      11.8622      -3       5.05622       1.59016
69.7028      0.00947849   -4       5.05549       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.2816E-03|  0.0891  -0.9960  
 3.8850E-02| -0.9960  -0.0891  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.858e-02   3.068e-03
   3.068e-03   4.556e-03
------------------------

========================================================================
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                5.05549      +/-  0.196406     
   4    2   npow       PhoIndex            1.59011      +/-  6.74984E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.000703831  -3       5.05549       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.2827E-03|  0.0891  -0.9960  
 3.8850E-02| -0.9960  -0.0891  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.858e-02   3.068e-03
   3.068e-03   4.557e-03
------------------------

========================================================================
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                5.05549      +/-  0.196406     
   4    2   npow       PhoIndex            1.59011      +/-  6.75070E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      7.70873e-05  -3       5.05549       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.2827E-03|  0.0891  -0.9960  
 3.8850E-02| -0.9960  -0.0891  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.858e-02   3.068e-03
   3.068e-03   4.557e-03
------------------------

========================================================================
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                5.05549      +/-  0.196406     
   4    2   npow       PhoIndex            1.59011      +/-  6.75071E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:03 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


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                5.05549      +/-  0.196406     
   4    2   npow       PhoIndex            1.59011      +/-  6.75071E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      4.73347      5.37785    (-0.322024,0.322357)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104731,0.106131)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  549.05     using 59 bins.

Test statistic : Chi-Squared                  549.05     using 59 bins.
 Null hypothesis probability of 1.33e-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:Flux    4:PhoIndex
124.387      50.3314      -3       5.72422       2.07831
71.6317      52.8873      -4       5.57433       1.52275
69.7279      9.23281      -5       5.73455       1.60016
69.7032      1.20604      -6       5.74389       1.58894
69.7028      0.143053     -7       5.74340       1.59024
==============================
 Variances and Principal Axes
                 3        4  
 4.4520E-03| -0.0488  -0.9988  
 4.8237E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.813e-02  -2.136e-03
  -2.136e-03   4.556e-03
------------------------

========================================================================
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                5.74340      +/-  0.219392     
   4    2   npow       PhoIndex            1.59024      +/-  6.75016E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.016261     -3       5.74347       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.4534E-03| -0.0488  -0.9988  
 4.8226E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219367     
   4    2   npow       PhoIndex            1.59009      +/-  6.75113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00184825   -3       5.74347       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.4532E-03| -0.0488  -0.9988  
 4.8227E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                 3593.03     using 59 bins.

Test statistic : Chi-Squared                 3593.03     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
69.7232      2057.62      -3       1.78260       1.59184
69.7028      1.63496      -4       1.77053       1.58994
69.7028      0.0204121    -5       1.77083       1.59014
==============================
 Variances and Principal Axes
                 3        4  
 1.2214E-03| -0.4641   0.8858  
 1.6703E-02|  0.8858   0.4641  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.337e-02   6.364e-03
   6.364e-03   4.556e-03
------------------------

========================================================================
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                1.77083      +/-  0.115624     
   4    2   npow       PhoIndex            1.59014      +/-  6.74971E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00253902   -3       1.77080       1.59012
==============================
 Variances and Principal Axes
                 3        4  
 1.2217E-03| -0.4641   0.8858  
 1.6705E-02|  0.8858   0.4641  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.337e-02   6.365e-03
   6.365e-03   4.556e-03
------------------------

========================================================================
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                1.77080      +/-  0.115632     
   4    2   npow       PhoIndex            1.59012      +/-  6.74984E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.000289418  -3       1.77080       1.59012
==============================
 Variances and Principal Axes
                 3        4  
 1.2217E-03| -0.4641   0.8858  
 1.6705E-02|  0.8858   0.4641  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.337e-02   6.365e-03
   6.365e-03   4.556e-03
------------------------

========================================================================
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                1.77080      +/-  0.115631     
   4    2   npow       PhoIndex            1.59012      +/-  6.74982E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:03 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


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                1.77080      +/-  0.115631     
   4    2   npow       PhoIndex            1.59012      +/-  6.74982E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      1.59004      1.95707    (-0.180765,0.186269)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104739,0.106123)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  549.05     using 59 bins.

Test statistic : Chi-Squared                  549.05     using 59 bins.
 Null hypothesis probability of 1.33e-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:Flux    4:PhoIndex
124.387      50.3314      -3       5.72422       2.07831
71.6317      52.8873      -4       5.57433       1.52275
69.7279      9.23281      -5       5.73455       1.60016
69.7032      1.20604      -6       5.74389       1.58894
69.7028      0.143053     -7       5.74340       1.59024
==============================
 Variances and Principal Axes
                 3        4  
 4.4520E-03| -0.0488  -0.9988  
 4.8237E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.813e-02  -2.136e-03
  -2.136e-03   4.556e-03
------------------------

========================================================================
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                5.74340      +/-  0.219392     
   4    2   npow       PhoIndex            1.59024      +/-  6.75016E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.016261     -3       5.74347       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.4534E-03| -0.0488  -0.9988  
 4.8226E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219367     
   4    2   npow       PhoIndex            1.59009      +/-  6.75113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00184825   -3       5.74347       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.4532E-03| -0.0488  -0.9988  
 4.8227E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                  208.79     using 59 bins.

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

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                 4099.39     using 59 bins.

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

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
69.7076      751.744      -3       1.69418       1.59056
69.7028      0.554594     -4       1.68961       1.59006
==============================
 Variances and Principal Axes
                 3        4  
 3.0439E-03| -0.7010   0.7131  
 6.0751E-03|  0.7131   0.7010  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.585e-03   1.515e-03
   1.515e-03   4.534e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00599369   -3       1.68963       1.59012
==============================
 Variances and Principal Axes
                 3        4  
 3.0499E-03| -0.7037   0.7105  
 6.0928E-03|  0.7105   0.7037  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.586e-03   1.521e-03
   1.521e-03   4.557e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.000653915   1       1.68963       1.59012
==============================
 Variances and Principal Axes
                 3        4  
 3.0502E-03| -0.7037   0.7105  
 6.0925E-03|  0.7105   0.7037  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.586e-03   1.521e-03
   1.521e-03   4.557e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:03 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      1.57865       1.8002    (-0.110982,0.110576)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104732,0.10613)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  549.05     using 59 bins.

Test statistic : Chi-Squared                  549.05     using 59 bins.
 Null hypothesis probability of 1.33e-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:Flux    4:PhoIndex
124.387      50.3314      -3       5.72422       2.07831
71.6317      52.8873      -4       5.57433       1.52275
69.7279      9.23281      -5       5.73455       1.60016
69.7032      1.20604      -6       5.74389       1.58894
69.7028      0.143053     -7       5.74340       1.59024
==============================
 Variances and Principal Axes
                 3        4  
 4.4520E-03| -0.0488  -0.9988  
 4.8237E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.813e-02  -2.136e-03
  -2.136e-03   4.556e-03
------------------------

========================================================================
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                5.74340      +/-  0.219392     
   4    2   npow       PhoIndex            1.59024      +/-  6.75016E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.016261     -3       5.74347       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.4534E-03| -0.0488  -0.9988  
 4.8226E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219367     
   4    2   npow       PhoIndex            1.59009      +/-  6.75113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00184825   -3       5.74347       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.4532E-03| -0.0488  -0.9988  
 4.8227E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                 1677.93     using 59 bins.

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

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                11934.59     using 59 bins.

Test statistic : Chi-Squared                11934.59     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
69.7346      3873.06      -3       1.13067       1.58884
69.7028      2.31877      -4       1.12237       1.59024
69.7028      0.0156641    -5       1.12246       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 1.2603E-03| -0.7927  -0.6096  
 6.5062E-03| -0.6096   0.7927  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.210e-03  -2.535e-03
  -2.535e-03   4.557e-03
------------------------

========================================================================
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                1.12246      +/-  5.66547E-02  
   4    2   npow       PhoIndex            1.59009      +/-  6.75040E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00186321   -2       1.12245       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 1.2606E-03| -0.7927  -0.6096  
 6.5057E-03| -0.6096   0.7927  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.210e-03  -2.535e-03
  -2.535e-03   4.557e-03
------------------------

========================================================================
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                1.12245      +/-  5.66538E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75025E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00018601    1       1.12245       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 1.2606E-03| -0.7927  -0.6096  
 6.5057E-03| -0.6096   0.7927  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.210e-03  -2.535e-03
  -2.535e-03   4.557e-03
------------------------

========================================================================
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                1.12245      +/-  5.66539E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75026E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:03 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


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                1.12245      +/-  5.66539E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75026E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      1.03115      1.21328    (-0.0913014,0.0908334)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104725,0.106137)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  549.05     using 59 bins.

Test statistic : Chi-Squared                  549.05     using 59 bins.
 Null hypothesis probability of 1.33e-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:Flux    4:PhoIndex
124.387      50.3314      -3       5.72422       2.07831
71.6317      52.8873      -4       5.57433       1.52275
69.7279      9.23281      -5       5.73455       1.60016
69.7032      1.20604      -6       5.74389       1.58894
69.7028      0.143053     -7       5.74340       1.59024
==============================
 Variances and Principal Axes
                 3        4  
 4.4520E-03| -0.0488  -0.9988  
 4.8237E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.813e-02  -2.136e-03
  -2.136e-03   4.556e-03
------------------------

========================================================================
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                5.74340      +/-  0.219392     
   4    2   npow       PhoIndex            1.59024      +/-  6.75016E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.016261     -3       5.74347       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.4534E-03| -0.0488  -0.9988  
 4.8226E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219367     
   4    2   npow       PhoIndex            1.59009      +/-  6.75113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00184825   -3       5.74347       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.4532E-03| -0.0488  -0.9988  
 4.8227E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                10984.87     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                87135.44     using 59 bins.

Test statistic : Chi-Squared                87135.44     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
71.2735      50977.4      -3      0.496611       1.58703
69.7028      39.2917      -4      0.472467       1.59027
69.7028      0.126107     -5      0.472642       1.59008
==============================
 Variances and Principal Axes
                 3        4  
 2.5200E-04| -0.8834  -0.4686  
 5.7685E-03| -0.4686   0.8834  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.463e-03  -2.284e-03
  -2.284e-03   4.557e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00246645   -3      0.472631       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.5208E-04| -0.8834  -0.4687  
 5.7671E-03| -0.4687   0.8834  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.463e-03  -2.283e-03
  -2.283e-03   4.556e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.000270027  -2      0.472632       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.5207E-04| -0.8834  -0.4687  
 5.7671E-03| -0.4687   0.8834  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.463e-03  -2.283e-03
  -2.283e-03   4.556e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:03 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601756


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.413784     0.534372    (-0.058848,0.0617401)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104716,0.106145)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  549.05     using 59 bins.

Test statistic : Chi-Squared                  549.05     using 59 bins.
 Null hypothesis probability of 1.33e-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:Flux    4:PhoIndex
124.387      50.3314      -3       5.72422       2.07831
71.6317      52.8873      -4       5.57433       1.52275
69.7279      9.23281      -5       5.73455       1.60016
69.7032      1.20604      -6       5.74389       1.58894
69.7028      0.143053     -7       5.74340       1.59024
==============================
 Variances and Principal Axes
                 3        4  
 4.4520E-03| -0.0488  -0.9988  
 4.8237E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.813e-02  -2.136e-03
  -2.136e-03   4.556e-03
------------------------

========================================================================
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                5.74340      +/-  0.219392     
   4    2   npow       PhoIndex            1.59024      +/-  6.75016E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.016261     -3       5.74347       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.4534E-03| -0.0488  -0.9988  
 4.8226E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219367     
   4    2   npow       PhoIndex            1.59009      +/-  6.75113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00184825   -3       5.74347       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 4.4532E-03| -0.0488  -0.9988  
 4.8227E-02| -0.9988   0.0488  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.812e-02  -2.135e-03
  -2.135e-03   4.558e-03
------------------------

========================================================================
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                5.74347      +/-  0.219370     
   4    2   npow       PhoIndex            1.59011      +/-  6.75100E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                10984.87     using 59 bins.

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

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                10984.87     using 59 bins.

Test statistic : Chi-Squared                10984.87     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
70.0978      9756.24      -3       1.19405       1.58656
69.7029      13.5519      -4       1.15998       1.59039
69.7028      0.0534843    -5       1.16069       1.59006
==============================
 Variances and Principal Axes
                 3        4  
 4.7895E-04| -0.4785  -0.8781  
 1.8291E-02| -0.8781   0.4785  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.421e-02  -7.484e-03
  -7.484e-03   4.556e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00422617   -2       1.16063       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.7903E-04| -0.4783  -0.8782  
 1.8299E-02| -0.8782   0.4783  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.422e-02  -7.484e-03
  -7.484e-03   4.555e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00025289    0       1.16063       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 4.7901E-04| -0.4783  -0.8782  
 1.8298E-02| -0.8782   0.4783  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.422e-02  -7.484e-03
  -7.484e-03   4.555e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:03 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601756


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.982139       1.3571    (-0.178493,0.19647)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104711,0.10615)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  749.08     using 59 bins.

Test statistic : Chi-Squared                  749.08     using 59 bins.
 Null hypothesis probability of 2.42e-121 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
710.457      12.7567       1      -7.71948       2.04062
416.408      34.7486       0      -6.94795       3.28475
318.341      89.2407       0      -6.81067       2.58587
173.835      147.717      -1      -6.22794       1.18617
85.2168      189.505      -2      -6.27459       1.82730
69.9314      67.8732      -3      -6.20591       1.57080
69.7043      12.9465      -4      -6.20801       1.59257
69.7028      0.312392     -5      -6.20699       1.58982
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9291  -0.3699  
 5.2457E-03| -0.3699   0.9291  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.723e-03
  -1.723e-03   4.560e-03
------------------------

========================================================================
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.20699     +/-  3.03098E-02  
   4    2   npow       PhoIndex            1.58982      +/-  6.75245E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0382388    -3      -6.20710       1.59013
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9290  -0.3701  
 5.2428E-03| -0.3701   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20710     +/-  3.03102E-02  
   4    2   npow       PhoIndex            1.59013      +/-  6.75031E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00413324   -3      -6.20709       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.3258E-04| -0.9290  -0.3700  
 5.2431E-03| -0.3700   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:04 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601756


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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -6.25619     -6.15976    (-0.0490988,0.047331)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104716,0.106146)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  749.08     using 59 bins.

Test statistic : Chi-Squared                  749.08     using 59 bins.
 Null hypothesis probability of 2.42e-121 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
710.457      12.7567       1      -7.71948       2.04062
416.408      34.7486       0      -6.94795       3.28475
318.341      89.2407       0      -6.81067       2.58587
173.835      147.717      -1      -6.22794       1.18617
85.2168      189.505      -2      -6.27459       1.82730
69.9314      67.8732      -3      -6.20591       1.57080
69.7043      12.9465      -4      -6.20801       1.59257
69.7028      0.312392     -5      -6.20699       1.58982
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9291  -0.3699  
 5.2457E-03| -0.3699   0.9291  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.723e-03
  -1.723e-03   4.560e-03
------------------------

========================================================================
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.20699     +/-  3.03098E-02  
   4    2   npow       PhoIndex            1.58982      +/-  6.75245E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0382388    -3      -6.20710       1.59013
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9290  -0.3701  
 5.2428E-03| -0.3701   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20710     +/-  3.03102E-02  
   4    2   npow       PhoIndex            1.59013      +/-  6.75031E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00413324   -3      -6.20709       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.3258E-04| -0.9290  -0.3700  
 5.2431E-03| -0.3700   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                  393.21     using 59 bins.

Test statistic : Chi-Squared                  393.21     using 59 bins.
 Null hypothesis probability of 9.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
80.2469      931.14       -3      -6.38202       1.58972
69.7359      112.369      -4      -6.42937       1.59009
69.7028      5.64675      -5      -6.43233       1.59011
69.7028      0.0394847    -6      -6.43235       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 2.6280E-04| -0.9907  -0.1357  
 4.6374E-03| -0.1357   0.9907  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.434e-04  -5.882e-04
  -5.882e-04   4.557e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.000142155  -3      -6.43235       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 2.6282E-04| -0.9907  -0.1357  
 4.6378E-03| -0.1357   0.9907  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.434e-04  -5.883e-04
  -5.883e-04   4.557e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      1.54767e-05   0      -6.43235       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 2.6282E-04| -0.9907  -0.1357  
 4.6378E-03| -0.1357   0.9907  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.434e-04  -5.883e-04
  -5.883e-04   4.557e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:04 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -6.46358     -6.40304    (-0.0312335,0.029308)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104726,0.106136)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  749.08     using 59 bins.

Test statistic : Chi-Squared                  749.08     using 59 bins.
 Null hypothesis probability of 2.42e-121 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
710.457      12.7567       1      -7.71948       2.04062
416.408      34.7486       0      -6.94795       3.28475
318.341      89.2407       0      -6.81067       2.58587
173.835      147.717      -1      -6.22794       1.18617
85.2168      189.505      -2      -6.27459       1.82730
69.9314      67.8732      -3      -6.20591       1.57080
69.7043      12.9465      -4      -6.20801       1.59257
69.7028      0.312392     -5      -6.20699       1.58982
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9291  -0.3699  
 5.2457E-03| -0.3699   0.9291  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.723e-03
  -1.723e-03   4.560e-03
------------------------

========================================================================
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.20699     +/-  3.03098E-02  
   4    2   npow       PhoIndex            1.58982      +/-  6.75245E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0382388    -3      -6.20710       1.59013
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9290  -0.3701  
 5.2428E-03| -0.3701   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20710     +/-  3.03102E-02  
   4    2   npow       PhoIndex            1.59013      +/-  6.75031E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00413324   -3      -6.20709       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.3258E-04| -0.9290  -0.3700  
 5.2431E-03| -0.3700   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                74634.46     using 59 bins.

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

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
8978.97      99557.4      -3      -6.60054       1.59232
913.647      13887.2      -4      -6.93853       1.59197
112.03       1963.93      -5      -7.16518       1.59100
70.0947      261.255      -6      -7.25076       1.59021
69.7029      20.6579      -7      -7.26079       1.59011
69.7028      0.323557     -8      -7.26095       1.59012
==============================
 Variances and Principal Axes
                 3        4  
 2.3899E-04| -0.9439   0.3304  
 5.0810E-03|  0.3304   0.9439  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.674e-04   1.510e-03
   1.510e-03   4.553e-03
------------------------

========================================================================
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.26095     +/-  2.77025E-02  
   4    2   npow       PhoIndex            1.59012      +/-  6.74729E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00149508   -3      -7.26095       1.59012
==============================
 Variances and Principal Axes
                 3        4  
 2.3917E-04| -0.9439   0.3304  
 5.0849E-03|  0.3304   0.9439  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.680e-04   1.511e-03
   1.511e-03   4.556e-03
------------------------

========================================================================
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.26095     +/-  2.77128E-02  
   4    2   npow       PhoIndex            1.59012      +/-  6.74983E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      4.12892e-05  -3      -7.26095       1.59012
==============================
 Variances and Principal Axes
                 3        4  
 2.3917E-04| -0.9439   0.3304  
 5.0849E-03|  0.3304   0.9439  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.680e-04   1.511e-03
   1.511e-03   4.556e-03
------------------------

========================================================================
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.26095     +/-  2.77129E-02  
   4    2   npow       PhoIndex            1.59012      +/-  6.74984E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:04 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


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.26095     +/-  2.77129E-02  
   4    2   npow       PhoIndex            1.59012      +/-  6.74984E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.30688     -7.21831    (-0.0459338,0.0426392)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104739,0.106123)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  749.08     using 59 bins.

Test statistic : Chi-Squared                  749.08     using 59 bins.
 Null hypothesis probability of 2.42e-121 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
710.457      12.7567       1      -7.71948       2.04062
416.408      34.7486       0      -6.94795       3.28475
318.341      89.2407       0      -6.81067       2.58587
173.835      147.717      -1      -6.22794       1.18617
85.2168      189.505      -2      -6.27459       1.82730
69.9314      67.8732      -3      -6.20591       1.57080
69.7043      12.9465      -4      -6.20801       1.59257
69.7028      0.312392     -5      -6.20699       1.58982
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9291  -0.3699  
 5.2457E-03| -0.3699   0.9291  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.723e-03
  -1.723e-03   4.560e-03
------------------------

========================================================================
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.20699     +/-  3.03098E-02  
   4    2   npow       PhoIndex            1.58982      +/-  6.75245E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0382388    -3      -6.20710       1.59013
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9290  -0.3701  
 5.2428E-03| -0.3701   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20710     +/-  3.03102E-02  
   4    2   npow       PhoIndex            1.59013      +/-  6.75031E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00413324   -3      -6.20709       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.3258E-04| -0.9290  -0.3700  
 5.2431E-03| -0.3700   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                   76.27     using 59 bins.

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

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                21315.46     using 59 bins.

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

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2344.33      29066        -3      -6.57302       1.59052
228.839      4096.57      -4      -6.85127       1.59039
73.2062      571.149      -5      -6.99091       1.59018
69.7074      61.4542      -6      -7.01949       1.59011
69.7028      2.09184      -7      -7.02060       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 2.6442E-04| -0.9974   0.0722  
 4.5558E-03|  0.0722   0.9974  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.868e-04   3.090e-04
   3.090e-04   4.533e-03
------------------------

========================================================================
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.02060     +/-  1.69348E-02  
   4    2   npow       PhoIndex            1.59011      +/-  6.73309E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0116974    -3      -7.02060       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 2.6578E-04| -0.9974   0.0722  
 4.5791E-03|  0.0722   0.9974  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.883e-04   3.106e-04
   3.106e-04   4.557e-03
------------------------

========================================================================
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.02060     +/-  1.69781E-02  
   4    2   npow       PhoIndex            1.59011      +/-  6.75029E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      6.23247e-05   0      -7.02060       1.59011
==============================
 Variances and Principal Axes
                 3        4  
 2.6579E-04| -0.9974   0.0722  
 4.5793E-03|  0.0722   0.9974  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.883e-04   3.106e-04
   3.106e-04   4.557e-03
------------------------

========================================================================
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.02060     +/-  1.69783E-02  
   4    2   npow       PhoIndex            1.59011      +/-  6.75039E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:04 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601757


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.02060     +/-  1.69783E-02  
   4    2   npow       PhoIndex            1.59011      +/-  6.75039E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3      -7.0495     -6.99355    (-0.0288984,0.027049)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104731,0.10613)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  749.08     using 59 bins.

Test statistic : Chi-Squared                  749.08     using 59 bins.
 Null hypothesis probability of 2.42e-121 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
710.457      12.7567       1      -7.71948       2.04062
416.408      34.7486       0      -6.94795       3.28475
318.341      89.2407       0      -6.81067       2.58587
173.835      147.717      -1      -6.22794       1.18617
85.2168      189.505      -2      -6.27459       1.82730
69.9314      67.8732      -3      -6.20591       1.57080
69.7043      12.9465      -4      -6.20801       1.59257
69.7028      0.312392     -5      -6.20699       1.58982
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9291  -0.3699  
 5.2457E-03| -0.3699   0.9291  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.723e-03
  -1.723e-03   4.560e-03
------------------------

========================================================================
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.20699     +/-  3.03098E-02  
   4    2   npow       PhoIndex            1.58982      +/-  6.75245E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0382388    -3      -6.20710       1.59013
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9290  -0.3701  
 5.2428E-03| -0.3701   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20710     +/-  3.03102E-02  
   4    2   npow       PhoIndex            1.59013      +/-  6.75031E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00413324   -3      -6.20709       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.3258E-04| -0.9290  -0.3700  
 5.2431E-03| -0.3700   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                  141.03     using 59 bins.

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

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                10712.08     using 59 bins.

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

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
1108.41      15856.9      -3      -6.55090       1.58874
125.983      2243.5       -4      -6.78861       1.58933
70.3354      302.266      -5      -6.88431       1.59000
69.703       25.7208      -6      -6.89696       1.59011
69.7028      0.462887     -7      -6.89720       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.5254E-04| -0.9712  -0.2382  
 4.8100E-03| -0.2382   0.9712  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.110e-04  -1.054e-03
  -1.054e-03   4.552e-03
------------------------

========================================================================
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      -6.89720     +/-  2.26059E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.74651E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00202429   -3      -6.89720       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.5282E-04| -0.9712  -0.2382  
 4.8153E-03| -0.2382   0.9712  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.116e-04  -1.055e-03
  -1.055e-03   4.557e-03
------------------------

========================================================================
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      -6.89720     +/-  2.26183E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75022E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      1.38262e-05   0      -6.89720       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.5282E-04| -0.9712  -0.2382  
 4.8154E-03| -0.2382   0.9712  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.116e-04  -1.055e-03
  -1.055e-03   4.557e-03
------------------------

========================================================================
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      -6.89720     +/-  2.26184E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75024E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:04 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601756


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      -6.89720     +/-  2.26184E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75024E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -6.93525     -6.86228    (-0.0380475,0.034924)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104723,0.106139)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  749.08     using 59 bins.

Test statistic : Chi-Squared                  749.08     using 59 bins.
 Null hypothesis probability of 2.42e-121 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
710.457      12.7567       1      -7.71948       2.04062
416.408      34.7486       0      -6.94795       3.28475
318.341      89.2407       0      -6.81067       2.58587
173.835      147.717      -1      -6.22794       1.18617
85.2168      189.505      -2      -6.27459       1.82730
69.9314      67.8732      -3      -6.20591       1.57080
69.7043      12.9465      -4      -6.20801       1.59257
69.7028      0.312392     -5      -6.20699       1.58982
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9291  -0.3699  
 5.2457E-03| -0.3699   0.9291  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.723e-03
  -1.723e-03   4.560e-03
------------------------

========================================================================
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.20699     +/-  3.03098E-02  
   4    2   npow       PhoIndex            1.58982      +/-  6.75245E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0382388    -3      -6.20710       1.59013
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9290  -0.3701  
 5.2428E-03| -0.3701   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20710     +/-  3.03102E-02  
   4    2   npow       PhoIndex            1.59013      +/-  6.75031E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00413324   -3      -6.20709       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.3258E-04| -0.9290  -0.3700  
 5.2431E-03| -0.3700   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  523.73     using 59 bins.

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

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                22825.95     using 59 bins.

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

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2524.94      34075.2      -3      -6.57361       1.58721
245.197      4797.75      -4      -6.85604       1.58810
73.7953      670.211      -5      -7.00102       1.58957
69.709       73.4237      -6      -7.03198       1.59011
69.7028      2.65271      -7      -7.03325       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 2.1647E-04| -0.8988  -0.4384  
 5.5548E-03| -0.4384   0.8988  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-03  -2.103e-03
  -2.103e-03   4.529e-03
------------------------

========================================================================
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.03325     +/-  3.52491E-02  
   4    2   npow       PhoIndex            1.59009      +/-  6.72964E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0151915    -3      -7.03326       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.1775E-04| -0.8988  -0.4384  
 5.5875E-03| -0.4384   0.8988  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.250e-03  -2.116e-03
  -2.116e-03   4.555e-03
------------------------

========================================================================
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.03326     +/-  3.53524E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.74941E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.000149632  -1      -7.03326       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.1775E-04| -0.8988  -0.4384  
 5.5877E-03| -0.4384   0.8988  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.250e-03  -2.116e-03
  -2.116e-03   4.556e-03
------------------------

========================================================================
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.03326     +/-  3.53531E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.74953E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:04 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601756


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.03326     +/-  3.53531E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.74953E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.09158     -6.97944    (-0.0583184,0.0538232)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104716,0.106145)

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

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

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  749.08     using 59 bins.

Test statistic : Chi-Squared                  749.08     using 59 bins.
 Null hypothesis probability of 2.42e-121 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
710.457      12.7567       1      -7.71948       2.04062
416.408      34.7486       0      -6.94795       3.28475
318.341      89.2407       0      -6.81067       2.58587
173.835      147.717      -1      -6.22794       1.18617
85.2168      189.505      -2      -6.27459       1.82730
69.9314      67.8732      -3      -6.20591       1.57080
69.7043      12.9465      -4      -6.20801       1.59257
69.7028      0.312392     -5      -6.20699       1.58982
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9291  -0.3699  
 5.2457E-03| -0.3699   0.9291  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.723e-03
  -1.723e-03   4.560e-03
------------------------

========================================================================
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.20699     +/-  3.03098E-02  
   4    2   npow       PhoIndex            1.58982      +/-  6.75245E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.0382388    -3      -6.20710       1.59013
==============================
 Variances and Principal Axes
                 3        4  
 2.3259E-04| -0.9290  -0.3701  
 5.2428E-03| -0.3701   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20710     +/-  3.03102E-02  
   4    2   npow       PhoIndex            1.59013      +/-  6.75031E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00413324   -3      -6.20709       1.59010
==============================
 Variances and Principal Axes
                 3        4  
 2.3258E-04| -0.9290  -0.3700  
 5.2431E-03| -0.3700   0.9290  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.187e-04  -1.722e-03
  -1.722e-03   4.557e-03
------------------------

========================================================================
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.20709     +/-  3.03099E-02  
   4    2   npow       PhoIndex            1.59010      +/-  6.75052E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  523.73     using 59 bins.

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

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                  523.73     using 59 bins.

Test statistic : Chi-Squared                  523.73     using 59 bins.
 Null hypothesis probability of 1.15e-76 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
87.1576      1414.61      -3      -6.39852       1.58793
69.7847      177.705      -4      -6.45887       1.58994
69.7028      10.6285      -5      -6.46361       1.59010
69.7028      0.0964541    -6      -6.46364       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 1.8241E-04| -0.8205  -0.5716  
 6.6752E-03| -0.5716   0.8205  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.304e-03  -3.045e-03
  -3.045e-03   4.554e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.00022726    0      -6.46364       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 1.8244E-04| -0.8205  -0.5716  
 6.6765E-03| -0.5716   0.8205  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.305e-03  -3.046e-03
  -3.046e-03   4.554e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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
69.7028      0.000204382   0      -6.46364       1.59009
==============================
 Variances and Principal Axes
                 3        4  
 1.8244E-04| -0.8205  -0.5716  
 6.6765E-03| -0.5716   0.8205  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.305e-03  -3.046e-03
  -3.046e-03   4.554e-03
------------------------

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


Fit statistic  : Chi-Squared                   69.70     using 59 bins.

Test statistic : Chi-Squared                   69.70     using 59 bins.
 Null hypothesis probability of 1.20e-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 16:17:04 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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger959431/00959431000-results/pha/sw00959431000b_peak.pha
Net count rate (cts/s) for Spectrum:1  6.017e-01 +/- 2.350e-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/trigger959431/remake_spec_cflux/spec_1speak/sw00959431000b_1speak.rsp for Source 1

 Spectral data counts: 0.601729
 Model predicted rate: 0.601756


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   69.70     using 59 bins.

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

!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -6.54178     -6.39027    (-0.0781383,0.0733677)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.48538      1.69624    (-0.104709,0.106152)

!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.59011     ( -0.104727   0.106134 )
Norm@50keV  : 3.94596E-02    ( -0.00256172   0.00255101 )
------------------------------------------------------------
 
Photon flux (15-150 keV)    in 1 sec: 5.05549 ( -0.32202  0.32236 ) ph/cm2/s
Energy fluence (15-150 keV)             : 3.6953e-07 ( -2.56396e-08  2.58002e-08 ) ergs/cm2