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/trigger564342/00564342000-results/pha/sw00564342000b_peak.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/00564342000-results/pha/sw00564342000b_peak.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  8.886e-01 +/- 4.458e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-80
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp
Response successfully loaded.
XSPEC12>ignore **-13.0 150.0-**
     3 channels (1-3) ignored in spectrum #     1
    18 channels (63-80) ignored in spectrum #     1

XSPEC12>model npow

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

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


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

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

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

Test statistic : Chi-Squared =          65.87 using 59 PHA bins.
 Reduced chi-squared =          1.156 for     57 degrees of freedom 
 Null hypothesis probability =   1.969452e-01
 Current data and model not fit yet.
XSPEC12>fit
 renorm: no renormalization necessary
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
65.3835      7.39363      -3       1.53507     0.0554349
65.3812      2.80122      -4       1.53267     0.0554349
==============================
 Variances and Principal Axes
                 1        3  
 2.3848E-03| -1.0000   0.0053  
 2.2992E-06| -0.0053  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.385e-03  -1.264e-05
  -1.264e-05   2.366e-06
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086088e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
65.3812      0.035319     -3       1.53284     0.0554340
==============================
 Variances and Principal Axes
                 1        3  
 2.3849E-03| -1.0000   0.0052  
 2.3002E-06| -0.0052  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.385e-03  -1.243e-05
  -1.243e-05   2.365e-06
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
65.3812      0.00245844    2       1.53284     0.0554340
==============================
 Variances and Principal Axes
                 1        3  
 2.3849E-03|  1.0000  -0.0052  
 2.3002E-06|  0.0052   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.385e-03  -1.245e-05
  -1.245e-05   2.365e-06
------------------------

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


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

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

XSPEC version: 12.9.0c

Thu Dec 24 01:42:22 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821020


Current model list:

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

   Using energies from responses.

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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-01
 Weighting method: standard
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1      1.45537      1.61083    (-0.0774715,0.0779907)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0529049    0.0579603    (-0.00252905,0.00252633)
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 =        1089.99 using 59 PHA bins.

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.4641 for     56 degrees of freedom 
 Null hypothesis probability =  1.511886e-191
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.1226 for     57 degrees of freedom 
 Null hypothesis probability =  6.706460e-191
 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
92.8229      72.795       -3       8.02631       1.78323
65.7129      53.6443      -4       7.95488       1.51319
65.3824      4.77882      -5       8.03484       1.53443
65.3812      0.357459     -6       8.03599       1.53271
==============================
 Variances and Principal Axes
                 3        4  
 4.8643E-02|  0.9998  -0.0181  
 2.3710E-03|  0.0181   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.863e-02  -8.395e-04
  -8.395e-04   2.386e-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                8.03599      +/-  0.220516     
   4    2   npow       PhoIndex            1.53271      +/-  4.88491E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.0254589    -3       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3699E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.411e-04
  -8.411e-04   2.385e-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                8.03596      +/-  0.220536     
   4    2   npow       PhoIndex            1.53284      +/-  4.88386E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00178156    4       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3700E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.410e-04
  -8.410e-04   2.385e-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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:22 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821020


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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      7.67331      8.39872    (-0.362647,0.362761)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774689,0.0779932)

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.4641 for     56 degrees of freedom 
 Null hypothesis probability =  1.511886e-191
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.1226 for     57 degrees of freedom 
 Null hypothesis probability =  6.706460e-191
 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
92.8229      72.795       -3       8.02631       1.78323
65.7129      53.6443      -4       7.95488       1.51319
65.3824      4.77882      -5       8.03484       1.53443
65.3812      0.357459     -6       8.03599       1.53271
==============================
 Variances and Principal Axes
                 3        4  
 4.8643E-02|  0.9998  -0.0181  
 2.3710E-03|  0.0181   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.863e-02  -8.395e-04
  -8.395e-04   2.386e-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                8.03599      +/-  0.220516     
   4    2   npow       PhoIndex            1.53271      +/-  4.88491E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.0254589    -3       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3699E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.411e-04
  -8.411e-04   2.385e-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                8.03596      +/-  0.220536     
   4    2   npow       PhoIndex            1.53284      +/-  4.88386E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00178156    4       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3700E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.410e-04
  -8.410e-04   2.385e-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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =          95.73 using 59 PHA bins.
 Reduced chi-squared =          1.679 for     57 degrees of freedom 
 Null hypothesis probability =   1.005498e-03
 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
65.3813      26.1483      -3       6.98461       1.53291
65.3812      0.0146727    -4       6.98343       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 4.0887E-02|  0.9967   0.0812  
 2.1289E-03| -0.0812   0.9967  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.063e-02   3.136e-03
   3.136e-03   2.384e-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                6.98343      +/-  0.201573     
   4    2   npow       PhoIndex            1.53282      +/-  4.88299E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00127675    0       6.98343       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 4.0887E-02|  0.9967   0.0812  
 2.1295E-03| -0.0812   0.9967  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.063e-02   3.137e-03
   3.137e-03   2.385e-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                6.98343      +/-  0.201572     
   4    2   npow       PhoIndex            1.53283      +/-  4.88370E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.000600256   1       6.98343       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 4.0887E-02|  0.9967   0.0812  
 2.1295E-03| -0.0812   0.9967  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.063e-02   3.137e-03
   3.137e-03   2.385e-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                6.98343      +/-  0.201572     
   4    2   npow       PhoIndex            1.53283      +/-  4.88369E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:23 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


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                6.98343      +/-  0.201572     
   4    2   npow       PhoIndex            1.53283      +/-  4.88369E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      6.65324      7.31417    (-0.330193,0.33074)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774617,0.0780004)

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.4641 for     56 degrees of freedom 
 Null hypothesis probability =  1.511886e-191
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.1226 for     57 degrees of freedom 
 Null hypothesis probability =  6.706460e-191
 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
92.8229      72.795       -3       8.02631       1.78323
65.7129      53.6443      -4       7.95488       1.51319
65.3824      4.77882      -5       8.03484       1.53443
65.3812      0.357459     -6       8.03599       1.53271
==============================
 Variances and Principal Axes
                 3        4  
 4.8643E-02|  0.9998  -0.0181  
 2.3710E-03|  0.0181   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.863e-02  -8.395e-04
  -8.395e-04   2.386e-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                8.03599      +/-  0.220516     
   4    2   npow       PhoIndex            1.53271      +/-  4.88491E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.0254589    -3       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3699E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.411e-04
  -8.411e-04   2.385e-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                8.03596      +/-  0.220536     
   4    2   npow       PhoIndex            1.53284      +/-  4.88386E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00178156    4       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3700E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.410e-04
  -8.410e-04   2.385e-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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =        7844.39 using 59 PHA bins.
 Reduced chi-squared =        137.621 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
65.4384      4813.86      -3       2.37360       1.53477
65.3812      3.77879      -4       2.35418       1.53271
65.3812      0.0205344    -5       2.35447       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 1.5823E-02| -0.9403  -0.3402  
 6.2516E-04|  0.3402  -0.9403  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.406e-02   4.862e-03
   4.862e-03   2.384e-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                2.35447      +/-  0.118593     
   4    2   npow       PhoIndex            1.53284      +/-  4.88304E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00185097   -3       2.35445       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.5825E-02|  0.9404   0.3402  
 6.2524E-04| -0.3402   0.9404  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.407e-02   4.862e-03
   4.862e-03   2.384e-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                2.35445      +/-  0.118599     
   4    2   npow       PhoIndex            1.53283      +/-  4.88303E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      7.06398e-05   0       2.35445       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.5825E-02| -0.9404  -0.3402  
 6.2524E-04|  0.3402  -0.9404  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.407e-02   4.862e-03
   4.862e-03   2.384e-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                2.35445      +/-  0.118598     
   4    2   npow       PhoIndex            1.53283      +/-  4.88303E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:24 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821020


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3       2.1666       2.5475    (-0.187857,0.193042)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774679,0.0779942)

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.4641 for     56 degrees of freedom 
 Null hypothesis probability =  1.511886e-191
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.1226 for     57 degrees of freedom 
 Null hypothesis probability =  6.706460e-191
 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
92.8229      72.795       -3       8.02631       1.78323
65.7129      53.6443      -4       7.95488       1.51319
65.3824      4.77882      -5       8.03484       1.53443
65.3812      0.357459     -6       8.03599       1.53271
==============================
 Variances and Principal Axes
                 3        4  
 4.8643E-02|  0.9998  -0.0181  
 2.3710E-03|  0.0181   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.863e-02  -8.395e-04
  -8.395e-04   2.386e-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                8.03599      +/-  0.220516     
   4    2   npow       PhoIndex            1.53271      +/-  4.88491E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.0254589    -3       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3699E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.411e-04
  -8.411e-04   2.385e-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                8.03596      +/-  0.220536     
   4    2   npow       PhoIndex            1.53284      +/-  4.88386E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00178156    4       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3700E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.410e-04
  -8.410e-04   2.385e-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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>newpar 1 25.0;

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

Test statistic : Chi-Squared =         294.80 using 59 PHA bins.
 Reduced chi-squared =         5.1720 for     57 degrees of freedom 
 Null hypothesis probability =   8.879587e-34
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =        8135.48 using 59 PHA bins.
 Reduced chi-squared =        142.728 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
65.3924      1707.16      -3       2.33106       1.53345
65.3812      0.910261     -4       2.32397       1.53279
65.3812      0.00930678   -5       2.32399       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 5.7024E-03|  0.9094   0.4159  
 1.6907E-03| -0.4159   0.9094  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.008e-03   1.517e-03
   1.517e-03   2.385e-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                2.32399      +/-  7.07698E-02  
   4    2   npow       PhoIndex            1.53283      +/-  4.88343E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.000662992  -2       2.32399       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 5.7023E-03|  0.9094   0.4159  
 1.6908E-03| -0.4159   0.9094  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.008e-03   1.517e-03
   1.517e-03   2.385e-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                2.32399      +/-  7.07693E-02  
   4    2   npow       PhoIndex            1.53283      +/-  4.88346E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      1.1892e-05   -1       2.32399       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 5.7023E-03| -0.9094  -0.4159  
 1.6908E-03|  0.4159  -0.9094  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.008e-03   1.517e-03
   1.517e-03   2.385e-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                2.32399      +/-  7.07694E-02  
   4    2   npow       PhoIndex            1.53283      +/-  4.88347E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:24 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      2.20806      2.43943    (-0.11593,0.115438)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774636,0.0779986)

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.4641 for     56 degrees of freedom 
 Null hypothesis probability =  1.511886e-191
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.1226 for     57 degrees of freedom 
 Null hypothesis probability =  6.706460e-191
 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
92.8229      72.795       -3       8.02631       1.78323
65.7129      53.6443      -4       7.95488       1.51319
65.3824      4.77882      -5       8.03484       1.53443
65.3812      0.357459     -6       8.03599       1.53271
==============================
 Variances and Principal Axes
                 3        4  
 4.8643E-02|  0.9998  -0.0181  
 2.3710E-03|  0.0181   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.863e-02  -8.395e-04
  -8.395e-04   2.386e-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                8.03599      +/-  0.220516     
   4    2   npow       PhoIndex            1.53271      +/-  4.88491E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.0254589    -3       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3699E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.411e-04
  -8.411e-04   2.385e-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                8.03596      +/-  0.220536     
   4    2   npow       PhoIndex            1.53284      +/-  4.88386E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00178156    4       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3700E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.410e-04
  -8.410e-04   2.385e-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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>newpar 1 50.0;

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

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

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =       21466.72 using 59 PHA bins.
 Reduced chi-squared =       376.6091 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
65.4265      5850.42      -3       1.61641       1.53177
65.3812      2.77745      -4       1.60635       1.53289
65.3812      0.0144574    -5       1.60640       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 4.3366E-03| -0.7721   0.6356  
 1.0622E-03| -0.6356  -0.7721  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.014e-03  -1.607e-03
  -1.607e-03   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.001039     -3       1.60640       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 4.3364E-03|  0.7721  -0.6356  
 1.0623E-03|  0.6356   0.7721  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.014e-03  -1.607e-03
  -1.607e-03   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      8.119e-05     1       1.60640       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 4.3364E-03| -0.7721   0.6356  
 1.0623E-03| -0.6356  -0.7721  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.014e-03  -1.607e-03
  -1.607e-03   2.385e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:25 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      1.51691      1.69538    (-0.0894902,0.0889866)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774588,0.0780034)

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.4641 for     56 degrees of freedom 
 Null hypothesis probability =  1.511886e-191
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.1226 for     57 degrees of freedom 
 Null hypothesis probability =  6.706460e-191
 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
92.8229      72.795       -3       8.02631       1.78323
65.7129      53.6443      -4       7.95488       1.51319
65.3824      4.77882      -5       8.03484       1.53443
65.3812      0.357459     -6       8.03599       1.53271
==============================
 Variances and Principal Axes
                 3        4  
 4.8643E-02|  0.9998  -0.0181  
 2.3710E-03|  0.0181   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.863e-02  -8.395e-04
  -8.395e-04   2.386e-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                8.03599      +/-  0.220516     
   4    2   npow       PhoIndex            1.53271      +/-  4.88491E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.0254589    -3       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3699E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.411e-04
  -8.411e-04   2.385e-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                8.03596      +/-  0.220536     
   4    2   npow       PhoIndex            1.53284      +/-  4.88386E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00178156    4       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3700E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.410e-04
  -8.410e-04   2.385e-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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>newpar 1 100.0;

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

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

Test statistic : Chi-Squared =       147430.4 using 59 PHA bins.
 Reduced chi-squared =       2586.498 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
67.4826      79937.9      -3      0.728313       1.53000
65.3812      46.0544      -4      0.698490       1.53289
65.3812      0.121025     -5      0.698619       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 2.3971E-04| -0.7950  -0.6067  
 3.6343E-03|  0.6067  -0.7950  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.489e-03  -1.637e-03
  -1.637e-03   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00106103   -2      0.698616       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 2.3972E-04| -0.7949  -0.6067  
 3.6338E-03|  0.6067  -0.7949  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.489e-03  -1.637e-03
  -1.637e-03   2.384e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      8.92621e-06   0      0.698616       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 2.3972E-04| -0.7949  -0.6067  
 3.6338E-03|  0.6067  -0.7949  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.489e-03  -1.637e-03
  -1.637e-03   2.384e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:26 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.637665     0.761374    (-0.0609509,0.0627583)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774543,0.0780078)

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.4641 for     56 degrees of freedom 
 Null hypothesis probability =  1.511886e-191
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1089.99 using 59 PHA bins.
 Reduced chi-squared =        19.1226 for     57 degrees of freedom 
 Null hypothesis probability =  6.706460e-191
 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
92.8229      72.795       -3       8.02631       1.78323
65.7129      53.6443      -4       7.95488       1.51319
65.3824      4.77882      -5       8.03484       1.53443
65.3812      0.357459     -6       8.03599       1.53271
==============================
 Variances and Principal Axes
                 3        4  
 4.8643E-02|  0.9998  -0.0181  
 2.3710E-03|  0.0181   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.863e-02  -8.395e-04
  -8.395e-04   2.386e-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                8.03599      +/-  0.220516     
   4    2   npow       PhoIndex            1.53271      +/-  4.88491E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.0254589    -3       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3699E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.411e-04
  -8.411e-04   2.385e-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                8.03596      +/-  0.220536     
   4    2   npow       PhoIndex            1.53284      +/-  4.88386E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00178156    4       8.03596       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 4.8651E-02|  0.9998  -0.0182  
 2.3700E-03|  0.0182   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.864e-02  -8.410e-04
  -8.410e-04   2.385e-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                8.03596      +/-  0.220534     
   4    2   npow       PhoIndex            1.53284      +/-  4.88392E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>newpar 1 100.0;

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

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

Test statistic : Chi-Squared =       17273.72 using 59 PHA bins.
 Reduced chi-squared =       303.0476 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
65.8909      14855.2      -3       1.79310       1.52953
65.3812      18.5527      -4       1.75063       1.53297
65.3812      0.0652781    -5       1.75118       1.53281
==============================
 Variances and Principal Axes
                 3        4  
 1.7580E-02| -0.9381   0.3465  
 3.1122E-04| -0.3465  -0.9381  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.551e-02  -5.613e-03
  -5.613e-03   2.384e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.00251214   -3       1.75116       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.7584E-02| -0.9381   0.3464  
 3.1121E-04| -0.3464  -0.9381  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.551e-02  -5.613e-03
  -5.613e-03   2.384e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
65.3812      0.000182361   0       1.75116       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.7584E-02| -0.9381   0.3464  
 3.1121E-04| -0.3464  -0.9381  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.551e-02  -5.613e-03
  -5.613e-03   2.384e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:26 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      1.55862      1.95693    (-0.192538,0.205774)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774521,0.0780099)

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.5153 for     56 degrees of freedom 
 Null hypothesis probability =  2.859303e-250
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.0852 for     57 degrees of freedom 
 Null hypothesis probability =  1.423136e-249
 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
1286.94      17.4479       1      -7.60760       2.25521
842.108      65.7502       0      -6.90656       3.30417
581.637      200.78        0      -6.66530       2.41098
172.288      312.168      -1      -5.97512       1.11567
70.2823      239.312      -2      -6.08338       1.63714
65.4241      21.9535      -3      -6.03971       1.52444
65.3814      5.6648       -4      -6.04171       1.53343
65.3812      0.139882     -5      -6.04148       1.53278
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7161E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.0110394    -3      -6.04150       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000762535  -3      -6.04149       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:27 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.07631     -6.00757    (-0.034817,0.0339296)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774551,0.0780069)

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.5153 for     56 degrees of freedom 
 Null hypothesis probability =  2.859303e-250
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.0852 for     57 degrees of freedom 
 Null hypothesis probability =  1.423136e-249
 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
1286.94      17.4479       1      -7.60760       2.25521
842.108      65.7502       0      -6.90656       3.30417
581.637      200.78        0      -6.66530       2.41098
172.288      312.168      -1      -5.97512       1.11567
70.2823      239.312      -2      -6.08338       1.63714
65.4241      21.9535      -3      -6.03971       1.52444
65.3814      5.6648       -4      -6.04171       1.53343
65.3812      0.139882     -5      -6.04148       1.53278
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7161E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.0110394    -3      -6.04150       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000762535  -3      -6.04149       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =         791.01 using 59 PHA bins.
 Reduced chi-squared =         13.877 for     57 degrees of freedom 
 Null hypothesis probability =  8.467267e-130
 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
90.9824      1986.29      -3      -6.22495       1.53250
65.4781      244.561      -4      -6.27761       1.53280
65.3812      13.33        -5      -6.28127       1.53283
65.3812      0.101434     -6      -6.28130       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.3855E-04| -0.9938  -0.1114  
 2.4130E-03|  0.1114  -0.9938  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.668e-04  -2.517e-04
  -2.517e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.00033065    0      -6.28130       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.3857E-04| -0.9938  -0.1114  
 2.4133E-03|  0.1114  -0.9938  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.668e-04  -2.518e-04
  -2.518e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000159352   1      -6.28130       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.3857E-04| -0.9938  -0.1114  
 2.4133E-03|  0.1114  -0.9938  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.668e-04  -2.518e-04
  -2.518e-04   2.385e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:27 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3       -6.303     -6.26057    (-0.0217031,0.0207271)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774596,0.0780025)

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.5153 for     56 degrees of freedom 
 Null hypothesis probability =  2.859303e-250
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.0852 for     57 degrees of freedom 
 Null hypothesis probability =  1.423136e-249
 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
1286.94      17.4479       1      -7.60760       2.25521
842.108      65.7502       0      -6.90656       3.30417
581.637      200.78        0      -6.66530       2.41098
172.288      312.168      -1      -5.97512       1.11567
70.2823      239.312      -2      -6.08338       1.63714
65.4241      21.9535      -3      -6.03971       1.52444
65.3814      5.6648       -4      -6.04171       1.53343
65.3812      0.139882     -5      -6.04148       1.53278
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7161E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.0110394    -3      -6.04150       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000762535  -3      -6.04149       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =       175233.7 using 59 PHA bins.
 Reduced chi-squared =       3074.275 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
21255.7      234227       -3      -6.43833       1.53528
2143.29      32606.5      -4      -6.78427       1.53497
180.038      4606.41      -5      -7.02469       1.53397
66.7354      622.736      -6      -7.12301       1.53303
65.3817      54.0145      -7      -7.13642       1.53283
65.3812      1.02898      -8      -7.13669       1.53284
==============================
 Variances and Principal Axes
                 3        4  
 1.2253E-04| -0.9333   0.3592  
 2.7161E-03| -0.3592  -0.9333  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.572e-04   8.694e-04
   8.694e-04   2.381e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.00479957   -3      -7.13669       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.2268E-04| -0.9333   0.3592  
 2.7195E-03| -0.3592  -0.9333  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.577e-04   8.705e-04
   8.705e-04   2.384e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000123577   0      -7.13669       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.2268E-04| -0.9333   0.3592  
 2.7195E-03| -0.3592  -0.9333  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.577e-04   8.705e-04
   8.705e-04   2.384e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:28 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821020


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.17218     -7.10307    (-0.0354929,0.0336164)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774679,0.0779942)

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.5153 for     56 degrees of freedom 
 Null hypothesis probability =  2.859303e-250
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.0852 for     57 degrees of freedom 
 Null hypothesis probability =  1.423136e-249
 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
1286.94      17.4479       1      -7.60760       2.25521
842.108      65.7502       0      -6.90656       3.30417
581.637      200.78        0      -6.66530       2.41098
172.288      312.168      -1      -5.97512       1.11567
70.2823      239.312      -2      -6.08338       1.63714
65.4241      21.9535      -3      -6.03971       1.52444
65.3814      5.6648       -4      -6.04171       1.53343
65.3812      0.139882     -5      -6.04148       1.53278
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7161E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.0110394    -3      -6.04150       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000762535  -3      -6.04149       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =       46775.06 using 59 PHA bins.
 Reduced chi-squared =       820.6151 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
5143.16      63396.3      -3      -6.41134       1.53346
436.095      8921.86      -4      -6.69734       1.53328
74.5284      1248.22      -5      -6.84662       1.53297
65.3967      139.073      -6      -6.87969       1.53283
65.3812      5.29556      -7      -6.88116       1.53283
65.3812      0.0308689    -8      -6.88117       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.3850E-04| -0.9943   0.1067  
 2.4106E-03| -0.1067  -0.9943  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.644e-04   2.412e-04
   2.412e-04   2.385e-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      -6.88117     +/-  1.28215E-02  
   4    2   npow       PhoIndex            1.53283      +/-  4.88338E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000156899   1      -6.88117       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.3851E-04| -0.9943   0.1067  
 2.4107E-03| -0.1067  -0.9943  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.644e-04   2.412e-04
   2.412e-04   2.385e-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      -6.88117     +/-  1.28217E-02  
   4    2   npow       PhoIndex            1.53283      +/-  4.88346E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000155378   1      -6.88117       1.53283
==============================
 Variances and Principal Axes
                 3        4  
 1.3851E-04| -0.9943   0.1067  
 2.4107E-03| -0.1067  -0.9943  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.644e-04   2.412e-04
   2.412e-04   2.385e-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      -6.88117     +/-  1.28217E-02  
   4    2   npow       PhoIndex            1.53283      +/-  4.88346E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:29 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


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      -6.88117     +/-  1.28217E-02  
   4    2   npow       PhoIndex            1.53283      +/-  4.88346E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      -6.9028     -6.86062    (-0.0216346,0.0205445)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774634,0.0779988)

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.5153 for     56 degrees of freedom 
 Null hypothesis probability =  2.859303e-250
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.0852 for     57 degrees of freedom 
 Null hypothesis probability =  1.423136e-249
 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
1286.94      17.4479       1      -7.60760       2.25521
842.108      65.7502       0      -6.90656       3.30417
581.637      200.78        0      -6.66530       2.41098
172.288      312.168      -1      -5.97512       1.11567
70.2823      239.312      -2      -6.08338       1.63714
65.4241      21.9535      -3      -6.03971       1.52444
65.3814      5.6648       -4      -6.04171       1.53343
65.3812      0.139882     -5      -6.04148       1.53278
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7161E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.0110394    -3      -6.04150       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000762535  -3      -6.04149       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

Test statistic : Chi-Squared =         177.94 using 59 PHA bins.
 Reduced chi-squared =         3.1218 for     57 degrees of freedom 
 Null hypothesis probability =   2.310335e-14
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =       21446.98 using 59 PHA bins.
 Reduced chi-squared =       376.2627 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
2167.68      31473.2      -3      -6.38725       1.53166
181.662      4450.47      -4      -6.62810       1.53213
66.7583      601.394      -5      -6.72677       1.53270
65.3817      52.1646      -6      -6.74025       1.53283
65.3812      0.974752     -7      -6.74052       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.3427E-04| -0.9785  -0.2060  
 2.4815E-03|  0.2060  -0.9785  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.339e-04  -4.732e-04
  -4.732e-04   2.382e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.00414321   -3      -6.74052       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.3443E-04| -0.9785  -0.2060  
 2.4845E-03|  0.2060  -0.9785  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.342e-04  -4.738e-04
  -4.738e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      1.82999e-06   5      -6.74052       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.3443E-04| -0.9785  -0.2060  
 2.4845E-03|  0.2060  -0.9785  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.342e-04  -4.738e-04
  -4.738e-04   2.385e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:29 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.76624     -6.71633    (-0.0257233,0.0241909)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774581,0.078004)

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.5153 for     56 degrees of freedom 
 Null hypothesis probability =  2.859303e-250
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.0852 for     57 degrees of freedom 
 Null hypothesis probability =  1.423136e-249
 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
1286.94      17.4479       1      -7.60760       2.25521
842.108      65.7502       0      -6.90656       3.30417
581.637      200.78        0      -6.66530       2.41098
172.288      312.168      -1      -5.97512       1.11567
70.2823      239.312      -2      -6.08338       1.63714
65.4241      21.9535      -3      -6.03971       1.52444
65.3814      5.6648       -4      -6.04171       1.53343
65.3812      0.139882     -5      -6.04148       1.53278
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7161E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.0110394    -3      -6.04150       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000762535  -3      -6.04149       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         794.87 using 59 PHA bins.
 Reduced chi-squared =         13.945 for     57 degrees of freedom 
 Null hypothesis probability =  1.406711e-130
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =       42454.94 using 59 PHA bins.
 Reduced chi-squared =       744.8235 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
4624.47      62786.8      -3      -6.40761       1.53015
388.545      8839.02      -4      -6.68867       1.53095
72.7481      1233.26      -5      -6.83186       1.53228
65.3917      134.095      -6      -6.86199       1.53282
65.3812      4.71492      -7      -6.86320       1.53282
65.3812      0.0258977    -8      -6.86320       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.1713E-04| -0.9108  -0.4128  
 2.8499E-03|  0.4128  -0.9108  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.828e-04  -1.027e-03
  -1.027e-03   2.384e-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      -6.86320     +/-  2.41414E-02  
   4    2   npow       PhoIndex            1.53282      +/-  4.88290E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000219722  -3      -6.86320       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.1714E-04| -0.9108  -0.4128  
 2.8500E-03|  0.4128  -0.9108  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.828e-04  -1.028e-03
  -1.028e-03   2.384e-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      -6.86320     +/-  2.41418E-02  
   4    2   npow       PhoIndex            1.53282      +/-  4.88297E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      5.33723e-05   0      -6.86320       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.1714E-04| -0.9108  -0.4128  
 2.8500E-03|  0.4128  -0.9108  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.828e-04  -1.028e-03
  -1.028e-03   2.384e-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      -6.86320     +/-  2.41418E-02  
   4    2   npow       PhoIndex            1.53282      +/-  4.88299E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:30 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821019


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      -6.86320     +/-  2.41418E-02  
   4    2   npow       PhoIndex            1.53282      +/-  4.88299E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.90325     -6.82546    (-0.0400424,0.0377434)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774541,0.0780079)

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.5153 for     56 degrees of freedom 
 Null hypothesis probability =  2.859303e-250
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1372.86 using 59 PHA bins.
 Reduced chi-squared =        24.0852 for     57 degrees of freedom 
 Null hypothesis probability =  1.423136e-249
 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
1286.94      17.4479       1      -7.60760       2.25521
842.108      65.7502       0      -6.90656       3.30417
581.637      200.78        0      -6.66530       2.41098
172.288      312.168      -1      -5.97512       1.11567
70.2823      239.312      -2      -6.08338       1.63714
65.4241      21.9535      -3      -6.03971       1.52444
65.3814      5.6648       -4      -6.04171       1.53343
65.3812      0.139882     -5      -6.04148       1.53278
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7161E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.0110394    -3      -6.04150       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000762535  -3      -6.04149       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 1.2318E-04| -0.9340  -0.3573  
 2.7159E-03|  0.3573  -0.9340  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.541e-04  -8.652e-04
  -8.652e-04   2.385e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         794.87 using 59 PHA bins.
 Reduced chi-squared =         13.945 for     57 degrees of freedom 
 Null hypothesis probability =  1.406711e-130
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

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

Test statistic : Chi-Squared =         794.87 using 59 PHA bins.
 Reduced chi-squared =         13.945 for     57 degrees of freedom 
 Null hypothesis probability =  1.406711e-130
 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
91.1827      2352.28      -3      -6.22401       1.53085
65.4797      289.452      -4      -6.27795       1.53264
65.3812      15.8311      -5      -6.28176       1.53283
65.3812      0.124204     -6      -6.28178       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 9.8393E-05| -0.8325  -0.5541  
 3.3959E-03|  0.5541  -0.8325  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.111e-03  -1.521e-03
  -1.521e-03   2.383e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000296602   0      -6.28178       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 9.8406E-05| -0.8325  -0.5541  
 3.3963E-03|  0.5541  -0.8325  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.111e-03  -1.521e-03
  -1.521e-03   2.384e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
65.3812      0.000147785   0      -6.28178       1.53282
==============================
 Variances and Principal Axes
                 3        4  
 9.8406E-05| -0.8325  -0.5541  
 3.3963E-03|  0.5541  -0.8325  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.111e-03  -1.521e-03
  -1.521e-03   2.384e-03
------------------------

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


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

Test statistic : Chi-Squared =          65.38 using 59 PHA bins.
 Reduced chi-squared =          1.147 for     57 degrees of freedom 
 Null hypothesis probability =   2.086091e-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 01:42:32 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/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger564342/remake_spec_cflux/spec_1speak/sw00564342000b_1speak.rsp

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

 Spectral data counts: 0.819712
 Model predicted rate: 0.821018


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.33646     -6.22956    (-0.0546777,0.0522177)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.45537      1.61083    (-0.0774499,0.0780122)

!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.53284     ( -0.0774715   0.0779907 )
Norm@50keV  : 5.54340E-02    ( -0.00252905   0.00252633 )
------------------------------------------------------------
#Fit statistic : Chi-Squared =          65.38 using 59 PHA bins.
# Reduced chi-squared =          1.147 for     57 degrees of freedom 
# Null hypothesis probability =   2.086091e-01
 
Photon flux (15-150 keV)    in 1 sec: 6.98343 ( -0.33019  0.33074 ) ph/cm2/s
Energy fluence (15-150 keV)             : 5.23239e-07 ( -2.55019e-08  2.55811e-08 ) ergs/cm2