XSPEC version: 12.9.0c
	Build Date/Time: Wed Jul 29 15:14:04 2015

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_repro 
c/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  2.840e-02 +/- 1.918e-03
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-80
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 117 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_rep 
roc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_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 =   1.021768e+08 using 59 PHA bins.

Test statistic : Chi-Squared =   1.021768e+08 using 59 PHA bins.
 Reduced chi-squared =   1.792576e+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 =          55.95 using 59 PHA bins.

Test statistic : Chi-Squared =          55.95 using 59 PHA bins.
 Reduced chi-squared =         0.9817 for     57 degrees of freedom 
 Null hypothesis probability =   5.143212e-01
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
43.9517      20.5543      -3       1.16694    0.00199926
43.6066      2194.66      -4       1.20507    0.00196795
43.605       37.4071      -5       1.20116    0.00196635
==============================
 Variances and Principal Axes
                 1        3  
 8.2028E-03| -1.0000  -0.0002  
 9.6487E-09|  0.0002  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.203e-03   1.855e-06
   1.855e-06   1.007e-08
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.20116      +/-  9.05691E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                1.96635E-03  +/-  1.00340E-04  
________________________________________________________________________


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

Test statistic : Chi-Squared =          43.60 using 59 PHA bins.
 Reduced chi-squared =         0.7650 for     57 degrees of freedom 
 Null hypothesis probability =   9.040852e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
43.6049      0.0284957    -3       1.20163    0.00196645
==============================
 Variances and Principal Axes
                 1        3  
 8.2191E-03| -1.0000  -0.0002  
 9.6399E-09|  0.0002  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.219e-03   1.898e-06
   1.898e-06   1.008e-08
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.20163      +/-  9.06594E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                1.96645E-03  +/-  1.00390E-04  
________________________________________________________________________


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

Test statistic : Chi-Squared =          43.60 using 59 PHA bins.
 Reduced chi-squared =         0.7650 for     57 degrees of freedom 
 Null hypothesis probability =   9.040856e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
43.6049      0.00340943   -3       1.20158    0.00196644
==============================
 Variances and Principal Axes
                 1        3  
 8.2179E-03| -1.0000  -0.0002  
 9.6410E-09|  0.0002  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.218e-03   1.893e-06
   1.893e-06   1.008e-08
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.20158      +/-  9.06528E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                1.96644E-03  +/-  1.00384E-04  
________________________________________________________________________


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

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

XSPEC version: 12.9.0c

Thu Dec 24 13:43:39 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


Current model list:

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            1.20158      +/-  9.06528E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                1.96644E-03  +/-  1.00384E-04  
________________________________________________________________________

   Using energies from responses.

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

Test statistic : Chi-Squared =          43.60 using 59 PHA bins.
 Reduced chi-squared =         0.7650 for     57 degrees of freedom 
 Null hypothesis probability =   9.040856e-01
 Weighting method: standard
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1      1.05857      1.34134    (-0.143009,0.139759)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3   0.00180141   0.00213097    (-0.000165023,0.000164539)
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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        46.0658 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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        45.2576 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
49.4245      1765.23      -3      0.287709       1.40599
43.709       15.141       -4      0.289801       1.18015
43.6061      7.16441      -5      0.292137       1.20446
43.6049      0.207904     -6      0.292251       1.20123
==============================
 Variances and Principal Axes
                 3        4  
 2.1268E-04| -0.9997  -0.0263  
 8.2186E-03|  0.0263  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.182e-04  -2.105e-04
  -2.105e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0237488    -3      0.292241       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 2.1280E-04| -0.9996  -0.0265  
 8.2255E-03|  0.0265  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.120e-04
  -2.120e-04   8.220e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00282414   -1      0.292242       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.1279E-04| -0.9997  -0.0264  
 8.2244E-03|  0.0264  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.118e-04
  -2.118e-04   8.219e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:39 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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                0.292242     +/-  1.47781E-02  
   4    2   npow       PhoIndex            1.20158      +/-  9.06577E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.267999     0.316595    (-0.0242433,0.0243529)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143013,0.139756)

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

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        46.0658 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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        45.2576 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
49.4245      1765.23      -3      0.287709       1.40599
43.709       15.141       -4      0.289801       1.18015
43.6061      7.16441      -5      0.292137       1.20446
43.6049      0.207904     -6      0.292251       1.20123
==============================
 Variances and Principal Axes
                 3        4  
 2.1268E-04| -0.9997  -0.0263  
 8.2186E-03|  0.0263  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.182e-04  -2.105e-04
  -2.105e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0237488    -3      0.292241       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 2.1280E-04| -0.9996  -0.0265  
 8.2255E-03|  0.0265  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.120e-04
  -2.120e-04   8.220e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00282414   -1      0.292242       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.1279E-04| -0.9997  -0.0264  
 8.2244E-03|  0.0264  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.118e-04
  -2.118e-04   8.219e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =          71.95 using 59 PHA bins.
 Reduced chi-squared =          1.262 for     57 degrees of freedom 
 Null hypothesis probability =   8.777530e-02
 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
43.605       231.562      -3      0.230947       1.20176
43.6049      0.241445     -4      0.230871       1.20156
==============================
 Variances and Principal Axes
                 3        4  
 1.3242E-04| -0.9982   0.0606  
 8.2433E-03| -0.0606  -0.9982  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.622e-04   4.905e-04
   4.905e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0014547     0      0.230871       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 1.3241E-04| -0.9982   0.0606  
 8.2483E-03| -0.0606  -0.9982  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.622e-04   4.907e-04
   4.907e-04   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00132835    3      0.230871       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 1.3241E-04| -0.9982   0.0606  
 8.2483E-03| -0.0606  -0.9982  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.622e-04   4.907e-04
   4.907e-04   8.219e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:40 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69817E-02


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                0.230871     +/-  1.27356E-02  
   4    2   npow       PhoIndex            1.20157      +/-  9.06560E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      0.21019     0.251674    (-0.020681,0.0208028)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34133    (-0.143006,0.139763)

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

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        46.0658 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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        45.2576 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
49.4245      1765.23      -3      0.287709       1.40599
43.709       15.141       -4      0.289801       1.18015
43.6061      7.16441      -5      0.292137       1.20446
43.6049      0.207904     -6      0.292251       1.20123
==============================
 Variances and Principal Axes
                 3        4  
 2.1268E-04| -0.9997  -0.0263  
 8.2186E-03|  0.0263  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.182e-04  -2.105e-04
  -2.105e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0237488    -3      0.292241       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 2.1280E-04| -0.9996  -0.0265  
 8.2255E-03|  0.0265  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.120e-04
  -2.120e-04   8.220e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00282414   -1      0.292242       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.1279E-04| -0.9997  -0.0264  
 8.2244E-03|  0.0264  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.118e-04
  -2.118e-04   8.219e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =        5846.49 using 59 PHA bins.
 Reduced chi-squared =        102.570 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
43.6964      13137.3      -3     0.0619339       1.20435
43.6049      49.4322      -4     0.0608171       1.20131
43.6049      0.167903     -5     0.0608404       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 9.1836E-06| -0.9979   0.0650  
 8.2534E-03| -0.0650  -0.9979  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.405e-05   5.350e-04
   5.350e-04   8.218e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00232047   -3     0.0608380       1.20159
==============================
 Variances and Principal Axes
                 3        4  
 9.1897E-06| -0.9979   0.0650  
 8.2516E-03| -0.0650  -0.9979  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.406e-05   5.350e-04
   5.350e-04   8.217e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.000394374  -3     0.0608383       1.20159
==============================
 Variances and Principal Axes
                 3        4  
 9.1890E-06| -0.9979   0.0650  
 8.2518E-03| -0.0650  -0.9979  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.406e-05   5.350e-04
   5.350e-04   8.217e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:40 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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                6.08383E-02  +/-  6.63792E-03  
   4    2   npow       PhoIndex            1.20159      +/-  9.06473E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0507255    0.0715987    (-0.0101128,0.0107604)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143022,0.139746)

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

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        46.0658 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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        45.2576 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
49.4245      1765.23      -3      0.287709       1.40599
43.709       15.141       -4      0.289801       1.18015
43.6061      7.16441      -5      0.292137       1.20446
43.6049      0.207904     -6      0.292251       1.20123
==============================
 Variances and Principal Axes
                 3        4  
 2.1268E-04| -0.9997  -0.0263  
 8.2186E-03|  0.0263  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.182e-04  -2.105e-04
  -2.105e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0237488    -3      0.292241       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 2.1280E-04| -0.9996  -0.0265  
 8.2255E-03|  0.0265  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.120e-04
  -2.120e-04   8.220e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00282414   -1      0.292242       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.1279E-04| -0.9997  -0.0264  
 8.2244E-03|  0.0264  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.118e-04
  -2.118e-04   8.219e-03
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

Test statistic : Chi-Squared =          71.33 using 59 PHA bins.
 Reduced chi-squared =          1.251 for     57 degrees of freedom 
 Null hypothesis probability =   9.597249e-02
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =        3642.82 using 59 PHA bins.
 Reduced chi-squared =        63.9092 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
43.6137      8291.32      -3     0.0735204       1.20274
43.6049      12.7005      -4     0.0731367       1.20145
==============================
 Variances and Principal Axes
                 3        4  
 1.3336E-05| -0.9994   0.0347  
 8.1490E-03| -0.0347  -0.9994  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.312e-05   2.819e-04
   2.819e-04   8.139e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0107458    -3     0.0731420       1.20160
==============================
 Variances and Principal Axes
                 3        4  
 1.3320E-05| -0.9994   0.0345  
 8.2281E-03| -0.0345  -0.9994  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.313e-05   2.836e-04
   2.836e-04   8.218e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00109635   -3     0.0731414       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 1.3322E-05| -0.9994   0.0345  
 8.2277E-03| -0.0345  -0.9994  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.313e-05   2.836e-04
   2.836e-04   8.218e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:40 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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                7.31414E-02  +/-  4.80885E-03  
   4    2   npow       PhoIndex            1.20158      +/-  9.06524E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0653789    0.0808354    (-0.00776259,0.00769399)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143018,0.139751)

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

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        46.0658 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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        45.2576 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
49.4245      1765.23      -3      0.287709       1.40599
43.709       15.141       -4      0.289801       1.18015
43.6061      7.16441      -5      0.292137       1.20446
43.6049      0.207904     -6      0.292251       1.20123
==============================
 Variances and Principal Axes
                 3        4  
 2.1268E-04| -0.9997  -0.0263  
 8.2186E-03|  0.0263  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.182e-04  -2.105e-04
  -2.105e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0237488    -3      0.292241       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 2.1280E-04| -0.9996  -0.0265  
 8.2255E-03|  0.0265  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.120e-04
  -2.120e-04   8.220e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00282414   -1      0.292242       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.1279E-04| -0.9997  -0.0264  
 8.2244E-03|  0.0264  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.118e-04
  -2.118e-04   8.219e-03
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

Test statistic : Chi-Squared =         331.05 using 59 PHA bins.
 Reduced chi-squared =         5.8079 for     57 degrees of freedom 
 Null hypothesis probability =   2.830950e-40
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =        5226.29 using 59 PHA bins.
 Reduced chi-squared =        91.6893 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
43.6115      11357.5      -3     0.0638703       1.20101
43.6049      12.7471      -4     0.0636041       1.20165
==============================
 Variances and Principal Axes
                 3        4  
 1.0087E-05| -0.9999  -0.0141  
 8.1551E-03|  0.0141  -0.9999  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.171e-05  -1.151e-04
  -1.151e-04   8.153e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00448428   -3     0.0636052       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 1.0084E-05| -0.9999  -0.0141  
 8.2195E-03|  0.0141  -0.9999  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.171e-05  -1.157e-04
  -1.157e-04   8.218e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.000539112  -1     0.0636051       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 1.0085E-05| -0.9999  -0.0141  
 8.2196E-03|  0.0141  -0.9999  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.171e-05  -1.157e-04
  -1.157e-04   8.218e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:41 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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                6.36051E-02  +/-  3.42267E-03  
   4    2   npow       PhoIndex            1.20158      +/-  9.06533E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.058001    0.0691795    (-0.00560406,0.00557442)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143012,0.139756)

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

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        46.0658 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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        45.2576 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
49.4245      1765.23      -3      0.287709       1.40599
43.709       15.141       -4      0.289801       1.18015
43.6061      7.16441      -5      0.292137       1.20446
43.6049      0.207904     -6      0.292251       1.20123
==============================
 Variances and Principal Axes
                 3        4  
 2.1268E-04| -0.9997  -0.0263  
 8.2186E-03|  0.0263  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.182e-04  -2.105e-04
  -2.105e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0237488    -3      0.292241       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 2.1280E-04| -0.9996  -0.0265  
 8.2255E-03|  0.0265  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.120e-04
  -2.120e-04   8.220e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00282414   -1      0.292242       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.1279E-04| -0.9997  -0.0264  
 8.2244E-03|  0.0264  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.118e-04
  -2.118e-04   8.219e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =       24316.09 using 59 PHA bins.
 Reduced chi-squared =       426.5981 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
43.788       48056.2      -3     0.0340572       1.19933
43.6049      128.268      -4     0.0332814       1.20179
43.6049      0.236575     -5     0.0332888       1.20155
==============================
 Variances and Principal Axes
                 3        4  
 2.7600E-06| -0.9997  -0.0258  
 8.2228E-03|  0.0258  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.244e-06  -2.122e-04
  -2.122e-04   8.217e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00175225   -3     0.0332881       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.7610E-06| -0.9997  -0.0258  
 8.2228E-03|  0.0258  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.245e-06  -2.123e-04
  -2.123e-04   8.217e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.000211643   1     0.0332881       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.7609E-06| -0.9997  -0.0258  
 8.2226E-03|  0.0258  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.245e-06  -2.122e-04
  -2.122e-04   8.217e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:41 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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                3.32881E-02  +/-  2.87142E-03  
   4    2   npow       PhoIndex            1.20158      +/-  9.06484E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0288362    0.0379291    (-0.00445189,0.00464099)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143011,0.139757)

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

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        46.0658 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 =        2579.68 using 59 PHA bins.

Test statistic : Chi-Squared =        2579.68 using 59 PHA bins.
 Reduced chi-squared =        45.2576 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
49.4245      1765.23      -3      0.287709       1.40599
43.709       15.141       -4      0.289801       1.18015
43.6061      7.16441      -5      0.292137       1.20446
43.6049      0.207904     -6      0.292251       1.20123
==============================
 Variances and Principal Axes
                 3        4  
 2.1268E-04| -0.9997  -0.0263  
 8.2186E-03|  0.0263  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.182e-04  -2.105e-04
  -2.105e-04   8.213e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.0237488    -3      0.292241       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 2.1280E-04| -0.9996  -0.0265  
 8.2255E-03|  0.0265  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.120e-04
  -2.120e-04   8.220e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00282414   -1      0.292242       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 2.1279E-04| -0.9997  -0.0264  
 8.2244E-03|  0.0264  -0.9997  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.184e-04  -2.118e-04
  -2.118e-04   8.219e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 350.0;

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

Test statistic : Chi-Squared =        1791.15 using 59 PHA bins.
 Reduced chi-squared =        31.4236 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
43.6343      4676.17      -3     0.0957466       1.19899
43.6049      17.8713      -4     0.0946250       1.20185
43.6049      0.0690308    -5     0.0946632       1.20154
==============================
 Variances and Principal Axes
                 3        4  
 2.2051E-05| -0.9938  -0.1109  
 8.3182E-03|  0.1109  -0.9938  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.241e-04  -9.144e-04
  -9.144e-04   8.216e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00239627    2     0.0946632       1.20154
==============================
 Variances and Principal Axes
                 3        4  
 2.2068E-05| -0.9938  -0.1109  
 8.3185E-03|  0.1109  -0.9938  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-04  -9.147e-04
  -9.147e-04   8.216e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
43.6049      0.00239617    3     0.0946632       1.20154
==============================
 Variances and Principal Axes
                 3        4  
 2.2068E-05| -0.9938  -0.1109  
 8.3185E-03|  0.1109  -0.9938  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-04  -9.147e-04
  -9.147e-04   8.216e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:42 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69816E-02


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                9.46632E-02  +/-  1.11432E-02  
   4    2   npow       PhoIndex            1.20154      +/-  9.06444E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.078164     0.113258    (-0.0164991,0.0185947)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05856      1.34133    (-0.142973,0.139795)

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.3463 for     56 degrees of freedom 
 Null hypothesis probability =   3.322788e-25
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.2700 for     57 degrees of freedom 
 Null hypothesis probability =   6.994575e-25
 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
109.578      99.7494       0      -7.57553       1.86053
52.1758      104.508      -1      -7.48450       1.39564
43.7295      38.2677      -2      -7.35991       1.17311
43.6066      4.03989      -3      -7.36908       1.20512
43.605       0.24578      -4      -7.36762       1.20115
==============================
 Variances and Principal Axes
                 3        4  
 4.0741E-04| -0.9322  -0.3618  
 9.3832E-03|  0.3618  -0.9322  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.583e-03  -3.028e-03
  -3.028e-03   8.208e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.0331192    -3      -7.36779       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 4.0746E-04| -0.9323  -0.3618  
 9.3956E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00380301   -2      -7.36777       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.0744E-04| -0.9323  -0.3618  
 9.3938E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.218e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:42 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69817E-02


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.36777     +/-  3.97956E-02  
   4    2   npow       PhoIndex            1.20157      +/-  9.06508E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.43232     -7.30561    (-0.0645473,0.0621604)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34133    (-0.143005,0.139763)

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.3463 for     56 degrees of freedom 
 Null hypothesis probability =   3.322788e-25
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.2700 for     57 degrees of freedom 
 Null hypothesis probability =   6.994575e-25
 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
109.578      99.7494       0      -7.57553       1.86053
52.1758      104.508      -1      -7.48450       1.39564
43.7295      38.2677      -2      -7.35991       1.17311
43.6066      4.03989      -3      -7.36908       1.20512
43.605       0.24578      -4      -7.36762       1.20115
==============================
 Variances and Principal Axes
                 3        4  
 4.0741E-04| -0.9322  -0.3618  
 9.3832E-03|  0.3618  -0.9322  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.583e-03  -3.028e-03
  -3.028e-03   8.208e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.0331192    -3      -7.36779       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 4.0746E-04| -0.9323  -0.3618  
 9.3956E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00380301   -2      -7.36777       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.0744E-04| -0.9323  -0.3618  
 9.3938E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.218e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =         573.99 using 59 PHA bins.
 Reduced chi-squared =         10.070 for     57 degrees of freedom 
 Null hypothesis probability =   1.725357e-86
 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
71.3923      1150.01      -3      -7.59870       1.20129
43.8913      154.706      -4      -7.68874       1.20154
43.605       12.767       -5      -7.69999       1.20158
43.6049      0.223756     -6      -7.70020       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.6243E-04| -0.9972  -0.0751  
 8.2545E-03|  0.0751  -0.9972  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.064e-04  -5.834e-04
  -5.834e-04   8.211e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00121762   -1      -7.70020       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.6287E-04| -0.9972  -0.0751  
 8.2623E-03|  0.0751  -0.9972  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.068e-04  -5.840e-04
  -5.840e-04   8.218e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.000114259  -3      -7.70020       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.6287E-04| -0.9972  -0.0751  
 8.2624E-03|  0.0751  -0.9972  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.068e-04  -5.840e-04
  -5.840e-04   8.218e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:43 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.73883      -7.6646    (-0.0386374,0.0355966)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143013,0.139756)

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.3463 for     56 degrees of freedom 
 Null hypothesis probability =   3.322788e-25
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.2700 for     57 degrees of freedom 
 Null hypothesis probability =   6.994575e-25
 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
109.578      99.7494       0      -7.57553       1.86053
52.1758      104.508      -1      -7.48450       1.39564
43.7295      38.2677      -2      -7.35991       1.17311
43.6066      4.03989      -3      -7.36908       1.20512
43.605       0.24578      -4      -7.36762       1.20115
==============================
 Variances and Principal Axes
                 3        4  
 4.0741E-04| -0.9322  -0.3618  
 9.3832E-03|  0.3618  -0.9322  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.583e-03  -3.028e-03
  -3.028e-03   8.208e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.0331192    -3      -7.36779       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 4.0746E-04| -0.9323  -0.3618  
 9.3956E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00380301   -2      -7.36777       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.0744E-04| -0.9323  -0.3618  
 9.3938E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.218e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =       186643.5 using 59 PHA bins.
 Reduced chi-squared =       3274.447 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
23990.1      247984       -3      -7.77894       1.20484
2791.68      34353.4      -4      -8.16144       1.20473
276.528      4826.16      -5      -8.47426       1.20378
52.217       684.646      -6      -8.66153       1.20239
43.6437      85.6801      -7      -8.71702       1.20161
43.6049      5.06632      -8      -8.72123       1.20159
43.6049      0.0576903    -9      -8.72128       1.20159
==============================
 Variances and Principal Axes
                 3        4  
 3.8192E-04| -0.9035   0.4286  
 9.9778E-03| -0.4286  -0.9035  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.145e-03   3.716e-03
   3.716e-03   8.215e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.000327227  -3      -8.72128       1.20159
==============================
 Variances and Principal Axes
                 3        4  
 3.8201E-04| -0.9035   0.4286  
 9.9800E-03| -0.4286  -0.9035  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.145e-03   3.717e-03
   3.717e-03   8.217e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      6.27511e-05   0      -8.72128       1.20159
==============================
 Variances and Principal Axes
                 3        4  
 3.8201E-04| -0.9035   0.4286  
 9.9800E-03| -0.4286  -0.9035  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.145e-03   3.717e-03
   3.717e-03   8.217e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:44 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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      -8.72128     +/-  4.63152E-02  
   4    2   npow       PhoIndex            1.20159      +/-  9.06474E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.79903     -8.65171    (-0.0777503,0.0695655)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143022,0.139747)

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.3463 for     56 degrees of freedom 
 Null hypothesis probability =   3.322788e-25
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.2700 for     57 degrees of freedom 
 Null hypothesis probability =   6.994575e-25
 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
109.578      99.7494       0      -7.57553       1.86053
52.1758      104.508      -1      -7.48450       1.39564
43.7295      38.2677      -2      -7.35991       1.17311
43.6066      4.03989      -3      -7.36908       1.20512
43.605       0.24578      -4      -7.36762       1.20115
==============================
 Variances and Principal Axes
                 3        4  
 4.0741E-04| -0.9322  -0.3618  
 9.3832E-03|  0.3618  -0.9322  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.583e-03  -3.028e-03
  -3.028e-03   8.208e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.0331192    -3      -7.36779       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 4.0746E-04| -0.9323  -0.3618  
 9.3956E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00380301   -2      -7.36777       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.0744E-04| -0.9323  -0.3618  
 9.3938E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.218e-03
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =       34187.32 using 59 PHA bins.
 Reduced chi-squared =       599.7775 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
4074.69      44535.7      -3      -7.75710       1.20285
411.628      6242.9       -4      -8.08551       1.20262
60.2561      885.996      -5      -8.29687       1.20203
43.7257      115.902      -6      -8.37001       1.20162
43.605       8.34447      -7      -8.37738       1.20158
43.6049      0.119383     -8      -8.37749       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.4776E-04| -0.9811   0.1935  
 8.5158E-03| -0.1935  -0.9811  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.497e-04   1.531e-03
   1.531e-03   8.214e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00072425    0      -8.37749       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.4798E-04| -0.9811   0.1935  
 8.5200E-03| -0.1935  -0.9811  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.501e-04   1.532e-03
   1.532e-03   8.218e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.000358302   0      -8.37749       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.4799E-04| -0.9811   0.1935  
 8.5200E-03| -0.1935  -0.9811  
------------------------------

========================
  Covariance Matrix
        1           2   
   7.501e-04   1.532e-03
   1.532e-03   8.218e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:44 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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.37749     +/-  2.73881E-02  
   4    2   npow       PhoIndex            1.20158      +/-  9.06525E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.42458     -8.33543    (-0.0470913,0.0420623)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143018,0.139751)

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.3463 for     56 degrees of freedom 
 Null hypothesis probability =   3.322788e-25
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.2700 for     57 degrees of freedom 
 Null hypothesis probability =   6.994575e-25
 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
109.578      99.7494       0      -7.57553       1.86053
52.1758      104.508      -1      -7.48450       1.39564
43.7295      38.2677      -2      -7.35991       1.17311
43.6066      4.03989      -3      -7.36908       1.20512
43.605       0.24578      -4      -7.36762       1.20115
==============================
 Variances and Principal Axes
                 3        4  
 4.0741E-04| -0.9322  -0.3618  
 9.3832E-03|  0.3618  -0.9322  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.583e-03  -3.028e-03
  -3.028e-03   8.208e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.0331192    -3      -7.36779       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 4.0746E-04| -0.9323  -0.3618  
 9.3956E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00380301   -2      -7.36777       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.0744E-04| -0.9323  -0.3618  
 9.3938E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.218e-03
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

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

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =        9594.74 using 59 PHA bins.
 Reduced chi-squared =        168.329 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
1040.34      13397.7      -3      -7.72604       1.20086
108.382      1897.29      -4      -7.99038       1.20112
44.7819      263.272      -5      -8.11422       1.20148
43.606       26.6909      -6      -8.13641       1.20158
43.6049      0.780408     -7      -8.13713       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.5708E-04| -0.9929  -0.1186  
 8.3009E-03|  0.1186  -0.9929  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.674e-04  -9.237e-04
  -9.237e-04   8.191e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00518063   -3      -8.13714       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.5859E-04| -0.9929  -0.1186  
 8.3285E-03|  0.1186  -0.9929  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.693e-04  -9.267e-04
  -9.267e-04   8.218e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      3.31086e-05  -3      -8.13714       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.5860E-04| -0.9929  -0.1186  
 8.3286E-03|  0.1186  -0.9929  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.693e-04  -9.267e-04
  -9.267e-04   8.218e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:45 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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.13714     +/-  2.38597E-02  
   4    2   npow       PhoIndex            1.20158      +/-  9.06527E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.17823     -8.09981    (-0.0410941,0.0373248)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143012,0.139756)

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.3463 for     56 degrees of freedom 
 Null hypothesis probability =   3.322788e-25
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.2700 for     57 degrees of freedom 
 Null hypothesis probability =   6.994575e-25
 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
109.578      99.7494       0      -7.57553       1.86053
52.1758      104.508      -1      -7.48450       1.39564
43.7295      38.2677      -2      -7.35991       1.17311
43.6066      4.03989      -3      -7.36908       1.20512
43.605       0.24578      -4      -7.36762       1.20115
==============================
 Variances and Principal Axes
                 3        4  
 4.0741E-04| -0.9322  -0.3618  
 9.3832E-03|  0.3618  -0.9322  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.583e-03  -3.028e-03
  -3.028e-03   8.208e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.0331192    -3      -7.36779       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 4.0746E-04| -0.9323  -0.3618  
 9.3956E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00380301   -2      -7.36777       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.0744E-04| -0.9323  -0.3618  
 9.3938E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.218e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         126.22 using 59 PHA bins.
 Reduced chi-squared =         2.2143 for     57 degrees of freedom 
 Null hypothesis probability =   3.767001e-07
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =       12342.55 using 59 PHA bins.
 Reduced chi-squared =       216.5359 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
1366.68      17748.4      -3      -7.73276       1.19938
137.106      2508.2       -4      -8.01158       1.20009
45.7252      351.185      -5      -8.15257       1.20120
43.6081      38.264       -6      -8.18197       1.20159
43.6049      1.38257      -7      -8.18317       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.1173E-04| -0.9412  -0.3379  
 9.1712E-03|  0.3379  -0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.412e-03  -2.786e-03
  -2.786e-03   8.171e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00995513   -3      -8.18318       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.1403E-04| -0.9412  -0.3379  
 9.2225E-03|  0.3379  -0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.420e-03  -2.801e-03
  -2.801e-03   8.217e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      7.34094e-05   0      -8.18318       1.20158
==============================
 Variances and Principal Axes
                 3        4  
 4.1404E-04| -0.9412  -0.3379  
 9.2229E-03|  0.3379  -0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.420e-03  -2.801e-03
  -2.801e-03   8.217e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:45 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69818E-02


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.18318     +/-  3.76796E-02  
   4    2   npow       PhoIndex            1.20158      +/-  9.06490E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.24631     -8.12587    (-0.0631262,0.0573151)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34134    (-0.143008,0.13976)

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.3463 for     56 degrees of freedom 
 Null hypothesis probability =   3.322788e-25
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         243.39 using 59 PHA bins.
 Reduced chi-squared =         4.2700 for     57 degrees of freedom 
 Null hypothesis probability =   6.994575e-25
 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
109.578      99.7494       0      -7.57553       1.86053
52.1758      104.508      -1      -7.48450       1.39564
43.7295      38.2677      -2      -7.35991       1.17311
43.6066      4.03989      -3      -7.36908       1.20512
43.605       0.24578      -4      -7.36762       1.20115
==============================
 Variances and Principal Axes
                 3        4  
 4.0741E-04| -0.9322  -0.3618  
 9.3832E-03|  0.3618  -0.9322  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.583e-03  -3.028e-03
  -3.028e-03   8.208e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.0331192    -3      -7.36779       1.20162
==============================
 Variances and Principal Axes
                 3        4  
 4.0746E-04| -0.9323  -0.3618  
 9.3956E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.219e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00380301   -2      -7.36777       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 4.0744E-04| -0.9323  -0.3618  
 9.3938E-03|  0.3618  -0.9323  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.584e-03  -3.031e-03
  -3.031e-03   8.218e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         126.22 using 59 PHA bins.
 Reduced chi-squared =         2.2143 for     57 degrees of freedom 
 Null hypothesis probability =   3.767001e-07
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

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

Test statistic : Chi-Squared =         126.22 using 59 PHA bins.
 Reduced chi-squared =         2.2143 for     57 degrees of freedom 
 Null hypothesis probability =   3.767001e-07
 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
45.3479      351.496      -3      -7.50181       1.20025
43.6071      37.3832      -4      -7.52930       1.20161
43.6049      1.2399       -5      -7.53028       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 3.4785E-04| -0.8616  -0.5075  
 1.0895E-02|  0.5075  -0.8616  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.065e-03  -4.612e-03
  -4.612e-03   8.178e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.00727443   -1      -7.53028       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 3.4946E-04| -0.8616  -0.5075  
 1.0945E-02|  0.5075  -0.8616  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.079e-03  -4.633e-03
  -4.633e-03   8.216e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
43.6049      0.000583949  -2      -7.53029       1.20157
==============================
 Variances and Principal Axes
                 3        4  
 3.4947E-04| -0.8616  -0.5075  
 1.0945E-02|  0.5075  -0.8616  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.079e-03  -4.634e-03
  -4.634e-03   8.216e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Thu Dec 24 13:43:46 2015
 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: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/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/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger535764/remake_spec_cflux/spec_T100/sw00535764000b_avg.rsp

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

 Spectral data counts: 3.08784
 Model predicted rate: 2.69817E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.62064     -7.44522    (-0.0903531,0.0850717)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.05857      1.34133    (-0.143004,0.139764)

!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.20158     ( -0.143009   0.139759 )
Norm@50keV  : 1.96644E-03    ( -0.000165023   0.000164539 )
------------------------------------------------------------
#Fit statistic : Chi-Squared =          43.60 using 59 PHA bins.
# Reduced chi-squared =         0.7650 for     57 degrees of freedom 
# Null hypothesis probability =   9.040856e-01
 
Photon flux (15-150 keV)    in 117 sec: 0.230871 ( -0.020681  0.020803 ) ph/cm2/s
Energy fluence (15-150 keV)             : 2.33338e-06 ( -1.98584e-07  1.99334e-07 ) ergs/cm2