XSPEC version: 12.9.1
	Build Date/Time: Thu Apr 20 23:34:29 2017

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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  1.055e-02 +/- 1.053e-03
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-80
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test 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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.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 =   4.545207e+08 using 59 PHA bins.

Test statistic : Chi-Squared =   4.545207e+08 using 59 PHA bins.
 Reduced chi-squared =   7.974047e+06 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.
XSPEC12>renorm

Fit statistic : Chi-Squared =          54.64 using 59 PHA bins.

Test statistic : Chi-Squared =          54.64 using 59 PHA bins.
 Reduced chi-squared =         0.9586 for     57 degrees of freedom 
 Null hypothesis probability =   5.642304e-01
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
53.1323      4.24708      -3       1.33200   0.000620807
53.1256      551.765      -4       1.32357   0.000618738
==============================
 Variances and Principal Axes
                 1        3  
 1.9321E-02| -1.0000   0.0001  
 2.3086E-09| -0.0001  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.932e-02  -1.097e-06
  -1.097e-06   2.371e-09
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.32357      +/-  0.139001     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                6.18738E-04  +/-  4.86915E-05  
________________________________________________________________________


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211799e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
53.1256      0.0134755    -3       1.32305   0.000618757
==============================
 Variances and Principal Axes
                 1        3  
 1.9490E-02| -1.0000   0.0001  
 2.3121E-09| -0.0001  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.949e-02  -1.035e-06
  -1.035e-06   2.367e-09
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.32305      +/-  0.139608     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                6.18757E-04  +/-  4.86526E-05  
________________________________________________________________________


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
53.1256      0.000796214  -2       1.32301   0.000618759
==============================
 Variances and Principal Axes
                 1        3  
 1.9491E-02| -1.0000   0.0001  
 2.3123E-09| -0.0001  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.949e-02  -1.031e-06
  -1.031e-06   2.367e-09
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.32301      +/-  0.139611     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                6.18759E-04  +/-  4.86503E-05  
________________________________________________________________________


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
XSPEC12>log bat_spec.log
Logging to file:bat_spec.log
XSPEC12>show

XSPEC version: 12.9.1

Mon Aug  6 20:18:30 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40548E-03


Current model list:

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.32301      +/-  0.139611     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                6.18759E-04  +/-  4.86503E-05  
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1      1.08305      1.56065    (-0.239965,0.237634)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3  0.000538472  0.000698726    (-8.0287e-05,7.99674e-05)
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 =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       324.1700 for     56 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       318.4828 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
54.622       10071.5      -3     0.0905007       1.48487
53.1378      35.6059      -4     0.0896020       1.33680
53.1256      3.90057      -5     0.0902072       1.32376
53.1256      0.0506715    -6     0.0902241       1.32306
==============================
 Variances and Principal Axes
                 3        4  
 4.9135E-05| -0.9998  -0.0175  
 1.9501E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.510e-05  -3.407e-04
  -3.407e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00104747    0     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.512e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00180162    2     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.513e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:30 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40548E-03


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                9.02243E-02  +/-  7.42464E-03  
   4    2   npow       PhoIndex            1.32304      +/-  0.139621     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0780959     0.102623    (-0.0121284,0.0123988)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239991,0.237608)

!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 =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       324.1700 for     56 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       318.4828 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
54.622       10071.5      -3     0.0905007       1.48487
53.1378      35.6059      -4     0.0896020       1.33680
53.1256      3.90057      -5     0.0902072       1.32376
53.1256      0.0506715    -6     0.0902241       1.32306
==============================
 Variances and Principal Axes
                 3        4  
 4.9135E-05| -0.9998  -0.0175  
 1.9501E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.510e-05  -3.407e-04
  -3.407e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00104747    0     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.512e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00180162    2     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.513e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =          60.92 using 59 PHA bins.

Test statistic : Chi-Squared =          60.92 using 59 PHA bins.
 Reduced chi-squared =          1.069 for     57 degrees of freedom 
 Null hypothesis probability =   3.369607e-01
 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
53.1256      242.205      -3     0.0741591       1.32308
53.1256      0.24305      -4     0.0741425       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 3.3198E-05| -1.0000   0.0081  
 1.9485E-02| -0.0081  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.447e-05   1.570e-04
   1.570e-04   1.948e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                7.41425E-02  +/-  5.87071E-03  
   4    2   npow       PhoIndex            1.32302      +/-  0.139585     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.000102565  -3     0.0741425       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 3.3198E-05| -1.0000   0.0081  
 1.9494E-02| -0.0081  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.447e-05   1.571e-04
   1.571e-04   1.949e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                7.41425E-02  +/-  5.87070E-03  
   4    2   npow       PhoIndex            1.32301      +/-  0.139616     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      1.0927e-05    8     0.0741425       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 3.3198E-05| -1.0000   0.0081  
 1.9494E-02| -0.0081  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.447e-05   1.571e-04
   1.571e-04   1.949e-02
------------------------

========================================================================
Model cpflux<1>*npow<2> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   cpflux     Emin       keV      15.0000      frozen
   2    1   cpflux     Emax       keV      150.000      frozen
   3    1   cpflux     Flux                7.41425E-02  +/-  5.87070E-03  
   4    2   npow       PhoIndex            1.32301      +/-  0.139616     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:30 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40548E-03


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                7.41425E-02  +/-  5.87070E-03  
   4    2   npow       PhoIndex            1.32301      +/-  0.139616     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0644882    0.0838197    (-0.00965421,0.00967725)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239964,0.237635)

!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 =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       324.1700 for     56 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       318.4828 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
54.622       10071.5      -3     0.0905007       1.48487
53.1378      35.6059      -4     0.0896020       1.33680
53.1256      3.90057      -5     0.0902072       1.32376
53.1256      0.0506715    -6     0.0902241       1.32306
==============================
 Variances and Principal Axes
                 3        4  
 4.9135E-05| -0.9998  -0.0175  
 1.9501E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.510e-05  -3.407e-04
  -3.407e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00104747    0     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.512e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00180162    2     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.513e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0;

Fit statistic : Chi-Squared =        1745.78 using 59 PHA bins.

Test statistic : Chi-Squared =        1745.78 using 59 PHA bins.
 Reduced chi-squared =        30.6277 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
53.1394      12352        -3     0.0217305       1.32516
53.1256      34.842       -4     0.0214976       1.32315
53.1256      0.0604374    -5     0.0214953       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 2.7902E-06| -0.9998   0.0187  
 1.9496E-02| -0.0187  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.610e-06   3.646e-04
   3.646e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.000257972   2     0.0214953       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 2.7896E-06| -0.9998   0.0187  
 1.9496E-02| -0.0187  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.610e-06   3.645e-04
   3.645e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.000257884   2     0.0214953       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 2.7896E-06| -0.9998   0.0187  
 1.9496E-02| -0.0187  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.610e-06   3.645e-04
   3.645e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:33 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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                2.14953E-02  +/-  3.09993E-03  
   4    2   npow       PhoIndex            1.32302      +/-  0.139602     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0164618    0.0268504    (-0.0050336,0.00535501)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239969,0.237631)

!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 =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       324.1700 for     56 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       318.4828 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
54.622       10071.5      -3     0.0905007       1.48487
53.1378      35.6059      -4     0.0896020       1.33680
53.1256      3.90057      -5     0.0902072       1.32376
53.1256      0.0506715    -6     0.0902241       1.32306
==============================
 Variances and Principal Axes
                 3        4  
 4.9135E-05| -0.9998  -0.0175  
 1.9501E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.510e-05  -3.407e-04
  -3.407e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00104747    0     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.512e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00180162    2     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.513e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 25.0;

Fit statistic : Chi-Squared =          69.32 using 59 PHA bins.

Test statistic : Chi-Squared =          69.32 using 59 PHA bins.
 Reduced chi-squared =          1.216 for     57 degrees of freedom 
 Null hypothesis probability =   1.268344e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0;

Fit statistic : Chi-Squared =        1308.86 using 59 PHA bins.

Test statistic : Chi-Squared =        1308.86 using 59 PHA bins.
 Reduced chi-squared =        22.9625 for     57 degrees of freedom 
 Null hypothesis probability =  3.019741e-236
 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
53.1274      9488.83      -3     0.0241167       1.32368
53.1256      11.1356      -4     0.0240348       1.32305
==============================
 Variances and Principal Axes
                 3        4  
 3.4899E-06| -1.0000   0.0066  
 1.9366E-02| -0.0066  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.333e-06   1.278e-04
   1.278e-04   1.936e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00112942    2     0.0240348       1.32305
==============================
 Variances and Principal Axes
                 3        4  
 3.4887E-06| -1.0000   0.0066  
 1.9492E-02| -0.0066  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.334e-06   1.284e-04
   1.284e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00112963   -2     0.0240346       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 3.4887E-06| -1.0000   0.0066  
 1.9492E-02| -0.0066  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.334e-06   1.284e-04
   1.284e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:33 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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                2.40346E-02  +/-  2.08190E-03  
   4    2   npow       PhoIndex            1.32301      +/-  0.139610     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0205464    0.0274487    (-0.00348814,0.00341416)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239966,0.237633)

!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 =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       324.1700 for     56 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       318.4828 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
54.622       10071.5      -3     0.0905007       1.48487
53.1378      35.6059      -4     0.0896020       1.33680
53.1256      3.90057      -5     0.0902072       1.32376
53.1256      0.0506715    -6     0.0902241       1.32306
==============================
 Variances and Principal Axes
                 3        4  
 4.9135E-05| -0.9998  -0.0175  
 1.9501E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.510e-05  -3.407e-04
  -3.407e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00104747    0     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.512e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00180162    2     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.513e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 50.0;

Fit statistic : Chi-Squared =         224.96 using 59 PHA bins.

Test statistic : Chi-Squared =         224.96 using 59 PHA bins.
 Reduced chi-squared =         3.9466 for     57 degrees of freedom 
 Null hypothesis probability =   8.261800e-22
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0;

Fit statistic : Chi-Squared =        2314.81 using 59 PHA bins.

Test statistic : Chi-Squared =        2314.81 using 59 PHA bins.
 Reduced chi-squared =        40.6107 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
53.1304      15936.3      -3     0.0193248       1.32197
53.1256      22.9959      -4     0.0192142       1.32295
==============================
 Variances and Principal Axes
                 3        4  
 2.2314E-06| -1.0000  -0.0081  
 1.9287E-02|  0.0081  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.493e-06  -1.559e-04
  -1.559e-04   1.929e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00698301   -3     0.0192138       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 2.2296E-06| -1.0000  -0.0081  
 1.9492E-02|  0.0081  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.493e-06  -1.569e-04
  -1.569e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.000137326   3     0.0192138       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 2.2294E-06| -1.0000  -0.0081  
 1.9492E-02|  0.0081  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.493e-06  -1.569e-04
  -1.569e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:33 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40548E-03


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.92138E-02  +/-  1.86905E-03  
   4    2   npow       PhoIndex            1.32301      +/-  0.139609     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0160791     0.022296    (-0.00313471,0.00308223)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239963,0.237637)

!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 =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       324.1700 for     56 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       318.4828 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
54.622       10071.5      -3     0.0905007       1.48487
53.1378      35.6059      -4     0.0896020       1.33680
53.1256      3.90057      -5     0.0902072       1.32376
53.1256      0.0506715    -6     0.0902241       1.32306
==============================
 Variances and Principal Axes
                 3        4  
 4.9135E-05| -0.9998  -0.0175  
 1.9501E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.510e-05  -3.407e-04
  -3.407e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00104747    0     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.512e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00180162    2     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.513e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =        1122.14 using 59 PHA bins.

Test statistic : Chi-Squared =        1122.14 using 59 PHA bins.
 Reduced chi-squared =        19.6867 for     57 degrees of freedom 
 Null hypothesis probability =  1.552169e-197
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =       12298.45 using 59 PHA bins.

Test statistic : Chi-Squared =       12298.45 using 59 PHA bins.
 Reduced chi-squared =       215.7622 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
53.2958      76045.2      -3    0.00972620       1.32023
53.1256      281.364      -4    0.00940042       1.32276
53.1256      0.685603     -5    0.00939894       1.32300
==============================
 Variances and Principal Axes
                 3        4  
 5.3373E-07| -1.0000  -0.0092  
 1.9493E-02|  0.0092  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.177e-06  -1.790e-04
  -1.790e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.000529456  -3    0.00939882       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 5.3348E-07| -1.0000  -0.0092  
 1.9490E-02|  0.0092  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.177e-06  -1.789e-04
  -1.789e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.000391228   1    0.00939882       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 5.3347E-07| -1.0000  -0.0092  
 1.9490E-02|  0.0092  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.177e-06  -1.789e-04
  -1.789e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:34 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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                9.39882E-03  +/-  1.47533E-03  
   4    2   npow       PhoIndex            1.32302      +/-  0.139599     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3   0.00704998    0.0120095    (-0.00234884,0.00261072)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239969,0.237631)

!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 =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       324.1700 for     56 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =       18153.52 using 59 PHA bins.

Test statistic : Chi-Squared =       18153.52 using 59 PHA bins.
 Reduced chi-squared =       318.4828 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
54.622       10071.5      -3     0.0905007       1.48487
53.1378      35.6059      -4     0.0896020       1.33680
53.1256      3.90057      -5     0.0902072       1.32376
53.1256      0.0506715    -6     0.0902241       1.32306
==============================
 Variances and Principal Axes
                 3        4  
 4.9135E-05| -0.9998  -0.0175  
 1.9501E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.510e-05  -3.407e-04
  -3.407e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00104747    0     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.512e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.00180162    2     0.0902243       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 4.9149E-05| -0.9998  -0.0175  
 1.9500E-02|  0.0175  -0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.513e-05  -3.409e-04
  -3.409e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =        1122.14 using 59 PHA bins.

Test statistic : Chi-Squared =        1122.14 using 59 PHA bins.
 Reduced chi-squared =        19.6867 for     57 degrees of freedom 
 Null hypothesis probability =  1.552169e-197
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

Fit statistic : Chi-Squared =        1122.14 using 59 PHA bins.

Test statistic : Chi-Squared =        1122.14 using 59 PHA bins.
 Reduced chi-squared =        19.6867 for     57 degrees of freedom 
 Null hypothesis probability =  1.552169e-197
 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
53.1552      8317.93      -3     0.0259279       1.31992
53.1256      42.9103      -4     0.0254875       1.32279
53.1256      0.186661     -5     0.0254815       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 3.9191E-06| -0.9994  -0.0347  
 1.9511E-02|  0.0347  -0.9994  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.744e-05  -6.769e-04
  -6.769e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      0.000384727  -3     0.0254811       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 3.9168E-06| -0.9994  -0.0347  
 1.9509E-02|  0.0347  -0.9994  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.742e-05  -6.767e-04
  -6.767e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.1256      2.55418e-05   0     0.0254811       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 3.9166E-06| -0.9994  -0.0347  
 1.9509E-02|  0.0347  -0.9994  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.742e-05  -6.767e-04
  -6.767e-04   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:34 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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                2.54811E-02  +/-  5.23662E-03  
   4    2   npow       PhoIndex            1.32302      +/-  0.139589     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0176152    0.0354537    (-0.00786584,0.00997268)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239972,0.237628)

!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 =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9759 for     56 degrees of freedom 
 Null hypothesis probability =   5.260447e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9588 for     57 degrees of freedom 
 Null hypothesis probability =   5.637139e-01
 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
53.136       3.88841      -3      -7.92549       1.33148
53.1256      1.26936      -4      -7.91930       1.32347
53.1256      0.0144385    -5      -7.91909       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 9.4884E-04| -0.9140  -0.4057  
 2.3147E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.232e-03
  -8.232e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000665953  -3      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.1649e-05    0      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:35 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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      -7.91908     +/-  6.78438E-02  
   4    2   npow       PhoIndex            1.32302      +/-  0.139607     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.03736     -7.80677    (-0.118279,0.112318)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239972,0.237628)

!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 =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9759 for     56 degrees of freedom 
 Null hypothesis probability =   5.260447e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9588 for     57 degrees of freedom 
 Null hypothesis probability =   5.637139e-01
 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
53.136       3.88841      -3      -7.92549       1.33148
53.1256      1.26936      -4      -7.91930       1.32347
53.1256      0.0144385    -5      -7.91909       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 9.4884E-04| -0.9140  -0.4057  
 2.3147E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.232e-03
  -8.232e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000665953  -3      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.1649e-05    0      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =         212.50 using 59 PHA bins.

Test statistic : Chi-Squared =         212.50 using 59 PHA bins.
 Reduced chi-squared =         3.7280 for     57 degrees of freedom 
 Null hypothesis probability =   8.921149e-20
 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
60.5138      376.11       -3      -8.13269       1.32251
53.182       49.5239      -4      -8.20803       1.32288
53.1256      3.63631      -5      -8.21586       1.32300
53.1256      0.0529997    -6      -8.21598       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.1026E-03| -0.9894  -0.1451  
 1.9877E-02|  0.1451  -0.9894  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.498e-03  -2.695e-03
  -2.695e-03   1.948e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000323254  -3      -8.21598       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.1032E-03| -0.9894  -0.1451  
 1.9888E-02|  0.1451  -0.9894  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.499e-03  -2.696e-03
  -2.696e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.58167e-06  -3      -8.21598       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.1033E-03| -0.9894  -0.1451  
 1.9887E-02|  0.1451  -0.9894  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.499e-03  -2.696e-03
  -2.696e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:35 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40548E-03


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      -8.21598     +/-  3.87114E-02  
   4    2   npow       PhoIndex            1.32301      +/-  0.139614     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.28529     -8.15545    (-0.0693045,0.0605333)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239966,0.237633)

!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 =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9759 for     56 degrees of freedom 
 Null hypothesis probability =   5.260447e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9588 for     57 degrees of freedom 
 Null hypothesis probability =   5.637139e-01
 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
53.136       3.88841      -3      -7.92549       1.33148
53.1256      1.26936      -4      -7.91930       1.32347
53.1256      0.0144385    -5      -7.91909       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 9.4884E-04| -0.9140  -0.4057  
 2.3147E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.232e-03
  -8.232e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000665953  -3      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.1649e-05    0      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0;

Fit statistic : Chi-Squared =       47881.13 using 59 PHA bins.

Test statistic : Chi-Squared =       47881.13 using 59 PHA bins.
 Reduced chi-squared =       840.0199 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
6096.99      62440.2      -3      -8.32563       1.32559
716.555      8687.64      -4      -8.69598       1.32548
102.794      1227.54      -5      -8.98394       1.32472
54.4419      173.247      -6      -9.13692       1.32368
53.1285      19.85        -7      -9.17242       1.32310
53.1256      0.853162     -8      -9.17424       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 9.7561E-04| -0.9332   0.3594  
 2.2051E-02| -0.3594  -0.9332  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.699e-03   7.069e-03
   7.069e-03   1.933e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.00808139   -2      -9.17426       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 9.8364E-04| -0.9332   0.3595  
 2.2233E-02| -0.3595  -0.9332  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.729e-03   7.128e-03
   7.128e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000146203  -2      -9.17426       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 9.8372E-04| -0.9332   0.3595  
 2.2235E-02| -0.3595  -0.9332  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.730e-03   7.129e-03
   7.129e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:36 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40548E-03


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      -9.17426     +/-  6.10715E-02  
   4    2   npow       PhoIndex            1.32301      +/-  0.139603     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      -9.2882     -9.07947    (-0.11394,0.0947921)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.23996,0.23764)

!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 =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9759 for     56 degrees of freedom 
 Null hypothesis probability =   5.260447e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9588 for     57 degrees of freedom 
 Null hypothesis probability =   5.637139e-01
 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
53.136       3.88841      -3      -7.92549       1.33148
53.1256      1.26936      -4      -7.91930       1.32347
53.1256      0.0144385    -5      -7.91909       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 9.4884E-04| -0.9140  -0.4057  
 2.3147E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.232e-03
  -8.232e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000665953  -3      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.1649e-05    0      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 25.0;

Fit statistic : Chi-Squared =          53.70 using 59 PHA bins.

Test statistic : Chi-Squared =          53.70 using 59 PHA bins.
 Reduced chi-squared =         0.9421 for     57 degrees of freedom 
 Null hypothesis probability =   5.996982e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0;

Fit statistic : Chi-Squared =       10093.20 using 59 PHA bins.

Test statistic : Chi-Squared =       10093.20 using 59 PHA bins.
 Reduced chi-squared =       177.0737 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
1209.88      13182.7      -3      -8.30138       1.32369
151.67       1856.18      -4      -8.61453       1.32357
56.8167      263.555      -5      -8.80246       1.32327
53.1428      33.1024      -6      -8.85852       1.32306
53.1256      1.98504      -7      -8.86287       1.32301
53.1256      0.0233069    -8      -8.86292       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.1112E-03| -0.9943   0.1065  
 1.9697E-02| -0.1065  -0.9943  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.322e-03   1.968e-03
   1.968e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.0001617    -3      -8.86292       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.1114E-03| -0.9943   0.1065  
 1.9702E-02| -0.1065  -0.9943  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.322e-03   1.968e-03
   1.968e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.24225e-06   0      -8.86292       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.1114E-03| -0.9943   0.1065  
 1.9702E-02| -0.1065  -0.9943  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.322e-03   1.968e-03
   1.968e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:37 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40548E-03


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      -8.86292     +/-  3.63616E-02  
   4    2   npow       PhoIndex            1.32301      +/-  0.139611     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.92887      -8.8067    (-0.0659496,0.0562282)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239963,0.237636)

!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 =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9759 for     56 degrees of freedom 
 Null hypothesis probability =   5.260447e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9588 for     57 degrees of freedom 
 Null hypothesis probability =   5.637139e-01
 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
53.136       3.88841      -3      -7.92549       1.33148
53.1256      1.26936      -4      -7.91930       1.32347
53.1256      0.0144385    -5      -7.91909       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 9.4884E-04| -0.9140  -0.4057  
 2.3147E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.232e-03
  -8.232e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000665953  -3      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.1649e-05    0      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 50.0;

Fit statistic : Chi-Squared =          60.01 using 59 PHA bins.

Test statistic : Chi-Squared =          60.01 using 59 PHA bins.
 Reduced chi-squared =          1.053 for     57 degrees of freedom 
 Null hypothesis probability =   3.671780e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0;

Fit statistic : Chi-Squared =        3399.96 using 59 PHA bins.

Test statistic : Chi-Squared =        3399.96 using 59 PHA bins.
 Reduced chi-squared =        59.6484 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
395.634      4828.55      -3      -8.27180       1.32181
74.1876      685.567      -4      -8.52649       1.32219
53.4578      94.6249      -5      -8.64004       1.32276
53.1259      9.15243      -6      -8.65858       1.32299
53.1256      0.240589     -7      -8.65912       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.0767E-03| -0.9787  -0.2052  
 2.0250E-02|  0.2052  -0.9787  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.884e-03  -3.850e-03
  -3.850e-03   1.944e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.00173186   -3      -8.65912       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.0793E-03| -0.9787  -0.2052  
 2.0299E-02|  0.2052  -0.9787  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.889e-03  -3.860e-03
  -3.860e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      1.24862e-05   0      -8.65912       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 1.0793E-03| -0.9787  -0.2052  
 2.0300E-02|  0.2052  -0.9787  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.889e-03  -3.860e-03
  -3.860e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:37 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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      -8.65912     +/-  4.34574E-02  
   4    2   npow       PhoIndex            1.32301      +/-  0.139609     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.73939     -8.59224    (-0.0802697,0.0668862)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239967,0.237633)

!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 =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9759 for     56 degrees of freedom 
 Null hypothesis probability =   5.260447e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9588 for     57 degrees of freedom 
 Null hypothesis probability =   5.637139e-01
 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
53.136       3.88841      -3      -7.92549       1.33148
53.1256      1.26936      -4      -7.91930       1.32347
53.1256      0.0144385    -5      -7.91909       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 9.4884E-04| -0.9140  -0.4057  
 2.3147E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.232e-03
  -8.232e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000665953  -3      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.1649e-05    0      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =         101.70 using 59 PHA bins.

Test statistic : Chi-Squared =         101.70 using 59 PHA bins.
 Reduced chi-squared =         1.7841 for     57 degrees of freedom 
 Null hypothesis probability =   2.514671e-04
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =        5092.59 using 59 PHA bins.

Test statistic : Chi-Squared =        5092.59 using 59 PHA bins.
 Reduced chi-squared =        89.3437 for     57 degrees of freedom 
 Null hypothesis probability =   0.000000e+00
 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
595.836      7495.91      -3      -8.28319       1.32034
91.5275      1060.95      -4      -8.56154       1.32103
54.0006      148.823      -5      -8.70233       1.32228
53.127       16.2651      -6      -8.73184       1.32293
53.1256      0.598881     -7      -8.73311       1.32301
==============================
 Variances and Principal Axes
                 3        4  
 9.3757E-04| -0.9122  -0.4096  
 2.3095E-02|  0.4096  -0.9122  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.656e-03  -8.280e-03
  -8.280e-03   1.938e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.00491798   -3      -8.73312       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4288E-04| -0.9122  -0.4097  
 2.3227E-02|  0.4097  -0.9122  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.683e-03  -8.328e-03
  -8.328e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      3.78573e-05   0      -8.73312       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4293E-04| -0.9122  -0.4097  
 2.3228E-02|  0.4097  -0.9122  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.683e-03  -8.328e-03
  -8.328e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:38 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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      -8.73312     +/-  6.84316E-02  
   4    2   npow       PhoIndex            1.32302      +/-  0.139598     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.85928     -8.62549    (-0.126161,0.107635)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.23997,0.23763)

!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 =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9759 for     56 degrees of freedom 
 Null hypothesis probability =   5.260447e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          54.65 using 59 PHA bins.

Test statistic : Chi-Squared =          54.65 using 59 PHA bins.
 Reduced chi-squared =         0.9588 for     57 degrees of freedom 
 Null hypothesis probability =   5.637139e-01
 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
53.136       3.88841      -3      -7.92549       1.33148
53.1256      1.26936      -4      -7.91930       1.32347
53.1256      0.0144385    -5      -7.91909       1.32304
==============================
 Variances and Principal Axes
                 3        4  
 9.4884E-04| -0.9140  -0.4057  
 2.3147E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.232e-03
  -8.232e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.000665953  -3      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      4.1649e-05    0      -7.91908       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 9.4871E-04| -0.9140  -0.4057  
 2.3144E-02|  0.4057  -0.9140  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.603e-03  -8.231e-03
  -8.231e-03   1.949e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =         101.70 using 59 PHA bins.

Test statistic : Chi-Squared =         101.70 using 59 PHA bins.
 Reduced chi-squared =         1.7841 for     57 degrees of freedom 
 Null hypothesis probability =   2.514671e-04
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

Fit statistic : Chi-Squared =         101.70 using 59 PHA bins.

Test statistic : Chi-Squared =         101.70 using 59 PHA bins.
 Reduced chi-squared =         1.7841 for     57 degrees of freedom 
 Null hypothesis probability =   2.514671e-04
 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
54.39        190.42       -3      -8.06960       1.32136
53.1281      21.6458      -4      -8.10520       1.32276
53.1256      0.889858     -5      -8.10703       1.32300
==============================
 Variances and Principal Axes
                 3        4  
 7.7981E-04| -0.8302  -0.5575  
 2.7699E-02|  0.5575  -0.8302  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.146e-03  -1.246e-02
  -1.246e-02   1.933e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      0.00715236   -3      -8.10706       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 7.8581E-04| -0.8302  -0.5575  
 2.7915E-02|  0.5575  -0.8302  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.218e-03  -1.256e-02
  -1.256e-02   1.948e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.1256      5.1e-05       0      -8.10706       1.32302
==============================
 Variances and Principal Axes
                 3        4  
 7.8586E-04| -0.8302  -0.5575  
 2.7917E-02|  0.5575  -0.8302  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.218e-03  -1.256e-02
  -1.256e-02   1.948e-02
------------------------

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


Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01

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

!XSPEC12>show;

XSPEC version: 12.9.1

Mon Aug  6 20:18:39 2018
 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
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 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: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.pha
Net count rate (cts/s) for Spectrum:1  9.564e-03 +/- 7.513e-04
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  4-62
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 223.1 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger846868/remake_spec_cflux/spec_T100/sw00846868000b_avg.rsp for Source 1

 Spectral data counts: 2.134
 Model predicted rate: 9.40549E-03


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      -8.10706     +/-  9.60128E-02  
   4    2   npow       PhoIndex            1.32302      +/-  0.139585     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.

Test statistic : Chi-Squared =          53.13 using 59 PHA bins.
 Reduced chi-squared =         0.9320 for     57 degrees of freedom 
 Null hypothesis probability =   6.211805e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.28006     -7.95122    (-0.173002,0.15584)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.08305      1.56065    (-0.239972,0.237628)

!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.32301     ( -0.239965   0.237634 )
Norm@50keV  : 6.18759E-04    ( -8.0287e-05   7.99674e-05 )
------------------------------------------------------------
#Fit statistic : Chi-Squared =          53.13 using 59 PHA bins.
# Reduced chi-squared =         0.9320 for     57 degrees of freedom 
# Null hypothesis probability =   6.211805e-01
 
Photon flux (15-150 keV)    in 223.1 sec: 7.41425E-02 ( -0.0096543  0.0096772 ) ph/cm2/s
Energy fluence (15-150 keV)             : 1.35681e-06 ( -2.00141e-07  2.02919e-07 ) ergs/cm2