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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp
Response successfully loaded.
XSPEC12>ignore **-13.0 150.0-**
      No channels ignored (no channels in specified range)
      No channels ignored (no channels in specified range)

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 =       59201.82 using 10 PHA bins.

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

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.606908e-01
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
2.52022      0.0535383    -3       1.51616     0.0172661
==============================
 Variances and Principal Axes
                 1        3  
 1.5116E-01| -1.0000   0.0052  
 1.6311E-05| -0.0052  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.512e-01  -7.851e-04
  -7.851e-04   2.039e-05
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607812e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
2.5202       0.00563053   -3       1.51787     0.0172561
==============================
 Variances and Principal Axes
                 1        3  
 1.5232E-01| -1.0000   0.0054  
 1.6150E-05| -0.0054  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.523e-01  -8.199e-04
  -8.199e-04   2.056e-05
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
2.5202       0.000579651  -3       1.51805     0.0172552
==============================
 Variances and Principal Axes
                 1        3  
 1.5245E-01| -1.0000   0.0054  
 1.6133E-05| -0.0054  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.524e-01  -8.236e-04
  -8.236e-04   2.058e-05
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
XSPEC12>log bat_spec.log
Logging to file:bat_spec.log
XSPEC12>show

XSPEC version: 12.9.0c

Sun Dec 27 06:44:05 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1     0.815795      2.32296    (-0.702256,0.80491)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3   0.00904146     0.024579    (-0.00821372,0.00732385)
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 =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.32 for      7 degrees of freedom 
 Null hypothesis probability =   2.380539e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.15 for      8 degrees of freedom 
 Null hypothesis probability =   3.250407e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.52423      2.29766      -3       2.49906       1.54175
2.52024      0.0890369    -4       2.49790       1.52050
==============================
 Variances and Principal Axes
                 3        4  
 4.4348E-01|  0.9411  -0.3381  
 1.1486E-01|  0.3381   0.9411  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.059e-01  -1.046e-01
  -1.046e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607806e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00701461   -3       2.49954       1.51832
==============================
 Variances and Principal Axes
                 3        4  
 4.4656E-01|  0.9423  -0.3347  
 1.1560E-01|  0.3347   0.9423  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.095e-01  -1.044e-01
  -1.044e-01   1.527e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000726285  -3       2.49969       1.51810
==============================
 Variances and Principal Axes
                 3        4  
 4.4682E-01|  0.9426  -0.3341  
 1.1553E-01|  0.3341   0.9426  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.098e-01  -1.043e-01
  -1.043e-01   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:06 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280834


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                2.49969      +/-  0.640195     
   4    2   npow       PhoIndex            1.51810      +/-  0.390517     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      1.47034      3.59626    (-1.02937,1.09654)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815793      2.32296    (-0.702277,0.80489)

!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 =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.32 for      7 degrees of freedom 
 Null hypothesis probability =   2.380539e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.15 for      8 degrees of freedom 
 Null hypothesis probability =   3.250407e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.52423      2.29766      -3       2.49906       1.54175
2.52024      0.0890369    -4       2.49790       1.52050
==============================
 Variances and Principal Axes
                 3        4  
 4.4348E-01|  0.9411  -0.3381  
 1.1486E-01|  0.3381   0.9411  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.059e-01  -1.046e-01
  -1.046e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607806e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00701461   -3       2.49954       1.51832
==============================
 Variances and Principal Axes
                 3        4  
 4.4656E-01|  0.9423  -0.3347  
 1.1560E-01|  0.3347   0.9423  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.095e-01  -1.044e-01
  -1.044e-01   1.527e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000726285  -3       2.49969       1.51810
==============================
 Variances and Principal Axes
                 3        4  
 4.4682E-01|  0.9426  -0.3341  
 1.1553E-01|  0.3341   0.9426  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.098e-01  -1.043e-01
  -1.043e-01   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =           2.96 using 10 PHA bins.

Test statistic : Chi-Squared =           2.96 using 10 PHA bins.
 Reduced chi-squared =          0.370 for      8 degrees of freedom 
 Null hypothesis probability =   9.367250e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.662274     -3       2.16514       1.51806
2.5202       0.000660396  -4       2.16480       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 2.5630E-01|  0.9932  -0.1161  
 1.5100E-01|  0.1161   0.9932  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.549e-01  -1.215e-02
  -1.215e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       2.34748e-06  -3       2.16480       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 2.5630E-01|  0.9932  -0.1162  
 1.5105E-01|  0.1162   0.9932  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.549e-01  -1.215e-02
  -1.215e-02   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       3.11839e-07   1       2.16480       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 2.5630E-01|  0.9932  -0.1162  
 1.5105E-01|  0.1162   0.9932  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.549e-01  -1.215e-02
  -1.215e-02   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:06 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


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                2.16480      +/-  0.504853     
   4    2   npow       PhoIndex            1.51807      +/-  0.390478     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      1.33324      2.99537    (-0.831567,0.830569)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815794      2.32296    (-0.702273,0.804894)

!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 =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.32 for      7 degrees of freedom 
 Null hypothesis probability =   2.380539e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.15 for      8 degrees of freedom 
 Null hypothesis probability =   3.250407e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.52423      2.29766      -3       2.49906       1.54175
2.52024      0.0890369    -4       2.49790       1.52050
==============================
 Variances and Principal Axes
                 3        4  
 4.4348E-01|  0.9411  -0.3381  
 1.1486E-01|  0.3381   0.9411  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.059e-01  -1.046e-01
  -1.046e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607806e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00701461   -3       2.49954       1.51832
==============================
 Variances and Principal Axes
                 3        4  
 4.4656E-01|  0.9423  -0.3347  
 1.1560E-01|  0.3347   0.9423  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.095e-01  -1.044e-01
  -1.044e-01   1.527e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000726285  -3       2.49969       1.51810
==============================
 Variances and Principal Axes
                 3        4  
 4.4682E-01|  0.9426  -0.3341  
 1.1553E-01|  0.3341   0.9426  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.098e-01  -1.043e-01
  -1.043e-01   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0;

Fit statistic : Chi-Squared =         114.16 using 10 PHA bins.

Test statistic : Chi-Squared =         114.16 using 10 PHA bins.
 Reduced chi-squared =         14.270 for      8 degrees of freedom 
 Null hypothesis probability =   5.298915e-21
 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
2.52058      59.7085      -3      0.726413       1.51937
2.5202       0.0616527    -4      0.722619       1.51820
==============================
 Variances and Principal Axes
                 3        4  
 2.2514E-02| -0.8758   0.4827  
 1.9027E-01| -0.4827  -0.8758  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.160e-02   7.092e-02
   7.092e-02   1.512e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000430584  -3      0.722562       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 2.2522E-02| -0.8769   0.4808  
 1.9151E-01| -0.4808  -0.8769  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.158e-02   7.124e-02
   7.124e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       4.29085e-05  -3      0.722556       1.51806
==============================
 Variances and Principal Axes
                 3        4  
 2.2518E-02| -0.8768   0.4808  
 1.9150E-01| -0.4808  -0.8768  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.158e-02   7.124e-02
   7.124e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:07 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.321402      1.15012    (-0.401154,0.427565)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815795      2.32296    (-0.702265,0.804901)

!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 =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.32 for      7 degrees of freedom 
 Null hypothesis probability =   2.380539e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.15 for      8 degrees of freedom 
 Null hypothesis probability =   3.250407e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.52423      2.29766      -3       2.49906       1.54175
2.52024      0.0890369    -4       2.49790       1.52050
==============================
 Variances and Principal Axes
                 3        4  
 4.4348E-01|  0.9411  -0.3381  
 1.1486E-01|  0.3381   0.9411  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.059e-01  -1.046e-01
  -1.046e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607806e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00701461   -3       2.49954       1.51832
==============================
 Variances and Principal Axes
                 3        4  
 4.4656E-01|  0.9423  -0.3347  
 1.1560E-01|  0.3347   0.9423  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.095e-01  -1.044e-01
  -1.044e-01   1.527e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000726285  -3       2.49969       1.51810
==============================
 Variances and Principal Axes
                 3        4  
 4.4682E-01|  0.9426  -0.3341  
 1.1553E-01|  0.3341   0.9426  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.098e-01  -1.043e-01
  -1.043e-01   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 25.0;

Fit statistic : Chi-Squared =           5.57 using 10 PHA bins.

Test statistic : Chi-Squared =           5.57 using 10 PHA bins.
 Reduced chi-squared =          0.696 for      8 degrees of freedom 
 Null hypothesis probability =   6.951031e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0;

Fit statistic : Chi-Squared =         115.52 using 10 PHA bins.

Test statistic : Chi-Squared =         115.52 using 10 PHA bins.
 Reduced chi-squared =         14.440 for      8 degrees of freedom 
 Null hypothesis probability =   2.787790e-21
 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
2.52032      32.0256      -3      0.721273       1.51820
2.5202       0.0318886    -4      0.719480       1.51808
==============================
 Variances and Principal Axes
                 3        4  
 2.7995E-02| -0.9989   0.0477  
 1.5200E-01| -0.0477  -0.9989  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.828e-02   5.911e-03
   5.911e-03   1.517e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       4.0004e-05   -3      0.719480       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 2.7994E-02| -0.9989   0.0476  
 1.5274E-01| -0.0476  -0.9989  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.828e-02   5.935e-03
   5.935e-03   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       3.58539e-06  -1      0.719479       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 2.7994E-02| -0.9989   0.0476  
 1.5274E-01| -0.0476  -0.9989  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.828e-02   5.936e-03
   5.936e-03   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:07 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.440137     0.995907    (-0.279342,0.276428)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815794      2.32296    (-0.702272,0.804895)

!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 =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.32 for      7 degrees of freedom 
 Null hypothesis probability =   2.380539e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.15 for      8 degrees of freedom 
 Null hypothesis probability =   3.250407e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.52423      2.29766      -3       2.49906       1.54175
2.52024      0.0890369    -4       2.49790       1.52050
==============================
 Variances and Principal Axes
                 3        4  
 4.4348E-01|  0.9411  -0.3381  
 1.1486E-01|  0.3381   0.9411  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.059e-01  -1.046e-01
  -1.046e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607806e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00701461   -3       2.49954       1.51832
==============================
 Variances and Principal Axes
                 3        4  
 4.4656E-01|  0.9423  -0.3347  
 1.1560E-01|  0.3347   0.9423  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.095e-01  -1.044e-01
  -1.044e-01   1.527e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000726285  -3       2.49969       1.51810
==============================
 Variances and Principal Axes
                 3        4  
 4.4682E-01|  0.9426  -0.3341  
 1.1553E-01|  0.3341   0.9426  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.098e-01  -1.043e-01
  -1.043e-01   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 50.0;

Fit statistic : Chi-Squared =          36.83 using 10 PHA bins.

Test statistic : Chi-Squared =          36.83 using 10 PHA bins.
 Reduced chi-squared =          4.604 for      8 degrees of freedom 
 Null hypothesis probability =   1.235626e-05
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0;

Fit statistic : Chi-Squared =         294.19 using 10 PHA bins.

Test statistic : Chi-Squared =         294.19 using 10 PHA bins.
 Reduced chi-squared =         36.774 for      8 degrees of freedom 
 Null hypothesis probability =   7.100653e-59
 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
2.52128      137.611      -3      0.506710       1.51666
2.5202       0.145424     -4      0.502479       1.51792
==============================
 Variances and Principal Axes
                 3        4  
 1.2301E-02| -0.9432  -0.3322  
 1.6714E-01|  0.3322  -0.9432  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.939e-02  -4.851e-02
  -4.851e-02   1.501e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000497386  -3      0.502438       1.51806
==============================
 Variances and Principal Axes
                 3        4  
 1.2301E-02| -0.9441  -0.3297  
 1.6953E-01|  0.3297  -0.9441  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.939e-02  -4.894e-02
  -4.894e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       4.77223e-05  -3      0.502433       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 1.2298E-02| -0.9441  -0.3297  
 1.6954E-01|  0.3297  -0.9441  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.939e-02  -4.895e-02
  -4.895e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:08 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

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

 Fit error occurred during lower bound error calculation.
     3            0     0.784112    (-0.502433,0.281679)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815795      2.32296    (-0.702279,0.804888)

!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 =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.32 for      7 degrees of freedom 
 Null hypothesis probability =   2.380539e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.15 for      8 degrees of freedom 
 Null hypothesis probability =   3.250407e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.52423      2.29766      -3       2.49906       1.54175
2.52024      0.0890369    -4       2.49790       1.52050
==============================
 Variances and Principal Axes
                 3        4  
 4.4348E-01|  0.9411  -0.3381  
 1.1486E-01|  0.3381   0.9411  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.059e-01  -1.046e-01
  -1.046e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607806e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00701461   -3       2.49954       1.51832
==============================
 Variances and Principal Axes
                 3        4  
 4.4656E-01|  0.9423  -0.3347  
 1.1560E-01|  0.3347   0.9423  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.095e-01  -1.044e-01
  -1.044e-01   1.527e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000726285  -3       2.49969       1.51810
==============================
 Variances and Principal Axes
                 3        4  
 4.4682E-01|  0.9426  -0.3341  
 1.1553E-01|  0.3341   0.9426  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.098e-01  -1.043e-01
  -1.043e-01   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =         228.90 using 10 PHA bins.

Test statistic : Chi-Squared =         228.90 using 10 PHA bins.
 Reduced chi-squared =         28.613 for      8 degrees of freedom 
 Null hypothesis probability =   5.052644e-45
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =        1978.01 using 10 PHA bins.

Test statistic : Chi-Squared =        1978.01 using 10 PHA bins.
 Reduced chi-squared =        247.252 for      8 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
2.56294      1372.32      -3      0.231766       1.51504
2.5202       2.0807       -4      0.220413       1.51763
2.5202       0.00690676   -5      0.220338       1.51804
==============================
 Variances and Principal Axes
                 3        4  
 2.4577E-03| -0.9656  -0.2600  
 1.6330E-01|  0.2600  -0.9656  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.333e-02  -4.037e-02
  -4.037e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000135096   0      0.220337       1.51804
==============================
 Variances and Principal Axes
                 3        4  
 2.4553E-03| -0.9656  -0.2599  
 1.6328E-01|  0.2599  -0.9656  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.332e-02  -4.037e-02
  -4.037e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000155879   1      0.220337       1.51804
==============================
 Variances and Principal Axes
                 3        4  
 2.4553E-03| -0.9656  -0.2599  
 1.6328E-01|  0.2599  -0.9656  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.332e-02  -4.037e-02
  -4.037e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:08 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280836


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.220337     +/-  0.115420     
   4    2   npow       PhoIndex            1.51804      +/-  0.390404     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0601245     0.446928    (-0.160212,0.226591)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815795      2.32296    (-0.702246,0.804919)

!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 =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.32 for      7 degrees of freedom 
 Null hypothesis probability =   2.380539e-01
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =           9.21 using 10 PHA bins.

Test statistic : Chi-Squared =           9.21 using 10 PHA bins.
 Reduced chi-squared =           1.15 for      8 degrees of freedom 
 Null hypothesis probability =   3.250407e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.52423      2.29766      -3       2.49906       1.54175
2.52024      0.0890369    -4       2.49790       1.52050
==============================
 Variances and Principal Axes
                 3        4  
 4.4348E-01|  0.9411  -0.3381  
 1.1486E-01|  0.3381   0.9411  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.059e-01  -1.046e-01
  -1.046e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607806e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00701461   -3       2.49954       1.51832
==============================
 Variances and Principal Axes
                 3        4  
 4.4656E-01|  0.9423  -0.3347  
 1.1560E-01|  0.3347   0.9423  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.095e-01  -1.044e-01
  -1.044e-01   1.527e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000726285  -3       2.49969       1.51810
==============================
 Variances and Principal Axes
                 3        4  
 4.4682E-01|  0.9426  -0.3341  
 1.1553E-01|  0.3341   0.9426  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.098e-01  -1.043e-01
  -1.043e-01   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =         228.90 using 10 PHA bins.

Test statistic : Chi-Squared =         228.90 using 10 PHA bins.
 Reduced chi-squared =         28.613 for      8 degrees of freedom 
 Null hypothesis probability =   5.052644e-45
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

Fit statistic : Chi-Squared =         228.90 using 10 PHA bins.

Test statistic : Chi-Squared =         228.90 using 10 PHA bins.
 Reduced chi-squared =         28.613 for      8 degrees of freedom 
 Null hypothesis probability =   5.052644e-45
 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
2.52908      235.13       -3      0.570349       1.51472
2.5202       0.477358     -4      0.555529       1.51767
==============================
 Variances and Principal Axes
                 3        4  
 9.1322E-03| -0.7245  -0.6893  
 2.6931E-01|  0.6893  -0.7245  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.327e-01  -1.299e-01
  -1.299e-01   1.457e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.00334232   -3      0.555265       1.51804
==============================
 Variances and Principal Axes
                 3        4  
 9.2650E-03| -0.7338  -0.6794  
 2.7509E-01|  0.6794  -0.7338  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.320e-01  -1.325e-01
  -1.325e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
2.5202       0.000136478  -3      0.555228       1.51808
==============================
 Variances and Principal Axes
                 3        4  
 9.2570E-03| -0.7339  -0.6792  
 2.7499E-01|  0.6792  -0.7339  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.319e-01  -1.325e-01
  -1.325e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:09 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

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

 Fit error occurred during lower bound error calculation.
     3            0      1.42902    (-0.555224,0.873793)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815797      2.32296    (-0.702289,0.804875)

!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 =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.819 for      7 degrees of freedom 
 Null hypothesis probability =   6.175934e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.467 for      8 degrees of freedom 
 Null hypothesis probability =   1.139433e-02
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
18.9863      0.779956      1      -7.88049       1.69785
8.64789      1.21982       0      -7.25944       2.66716
7.10729      3.63498       0      -7.13473       2.58585
4.06743      2.52871      -1      -6.79853       1.78592
2.53995      4.14798      -2      -6.51488       1.47749
2.52038      0.518851     -3      -6.54086       1.51256
2.5202       0.0148135    -4      -6.54329       1.51751
==============================
 Variances and Principal Axes
                 3        4  
 8.2690E-03| -0.8985  -0.4390  
 1.8625E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.257e-02  -7.021e-02
  -7.021e-02   1.519e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00155404   -3      -6.54353       1.51802
==============================
 Variances and Principal Axes
                 3        4  
 8.2736E-03| -0.8985  -0.4390  
 1.8682E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.269e-02  -7.043e-02
  -7.043e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000165442  -3      -6.54356       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 8.2738E-03| -0.8985  -0.4390  
 1.8687E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.270e-02  -7.045e-02
  -7.045e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:09 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


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.54356     +/-  0.206629     
   4    2   npow       PhoIndex            1.51807      +/-  0.390447     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.96855     -6.22223    (-0.424989,0.321331)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815795      2.32296    (-0.702285,0.804881)

!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 =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.819 for      7 degrees of freedom 
 Null hypothesis probability =   6.175934e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.467 for      8 degrees of freedom 
 Null hypothesis probability =   1.139433e-02
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
18.9863      0.779956      1      -7.88049       1.69785
8.64789      1.21982       0      -7.25944       2.66716
7.10729      3.63498       0      -7.13473       2.58585
4.06743      2.52871      -1      -6.79853       1.78592
2.53995      4.14798      -2      -6.51488       1.47749
2.52038      0.518851     -3      -6.54086       1.51256
2.5202       0.0148135    -4      -6.54329       1.51751
==============================
 Variances and Principal Axes
                 3        4  
 8.2690E-03| -0.8985  -0.4390  
 1.8625E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.257e-02  -7.021e-02
  -7.021e-02   1.519e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00155404   -3      -6.54353       1.51802
==============================
 Variances and Principal Axes
                 3        4  
 8.2736E-03| -0.8985  -0.4390  
 1.8682E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.269e-02  -7.043e-02
  -7.043e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000165442  -3      -6.54356       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 8.2738E-03| -0.8985  -0.4390  
 1.8687E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.270e-02  -7.045e-02
  -7.045e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =          12.97 using 10 PHA bins.

Test statistic : Chi-Squared =          12.97 using 10 PHA bins.
 Reduced chi-squared =          1.621 for      8 degrees of freedom 
 Null hypothesis probability =   1.129748e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.89769      28.6944      -3      -6.72901       1.51751
2.52173      3.55806      -4      -6.78321       1.51794
2.5202       0.199879     -5      -6.78714       1.51806
==============================
 Variances and Principal Axes
                 3        4  
 9.5351E-03| -0.9773  -0.2118  
 1.5630E-01|  0.2118  -0.9773  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.612e-02  -3.038e-02
  -3.038e-02   1.497e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00168508   -3      -6.78718       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 9.7078E-03| -0.9773  -0.2118  
 1.5915E-01|  0.2118  -0.9773  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.641e-02  -3.093e-02
  -3.093e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       1.03315e-05  -3      -6.78718       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 9.7092E-03| -0.9773  -0.2118  
 1.5917E-01|  0.2118  -0.9773  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.641e-02  -3.094e-02
  -3.094e-02   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:09 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


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.78718     +/-  0.128118     
   4    2   npow       PhoIndex            1.51807      +/-  0.390473     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.07257     -6.61005    (-0.285396,0.177122)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815794      2.32296    (-0.702278,0.804888)

!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 =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.819 for      7 degrees of freedom 
 Null hypothesis probability =   6.175934e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.467 for      8 degrees of freedom 
 Null hypothesis probability =   1.139433e-02
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
18.9863      0.779956      1      -7.88049       1.69785
8.64789      1.21982       0      -7.25944       2.66716
7.10729      3.63498       0      -7.13473       2.58585
4.06743      2.52871      -1      -6.79853       1.78592
2.53995      4.14798      -2      -6.51488       1.47749
2.52038      0.518851     -3      -6.54086       1.51256
2.5202       0.0148135    -4      -6.54329       1.51751
==============================
 Variances and Principal Axes
                 3        4  
 8.2690E-03| -0.8985  -0.4390  
 1.8625E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.257e-02  -7.021e-02
  -7.021e-02   1.519e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00155404   -3      -6.54353       1.51802
==============================
 Variances and Principal Axes
                 3        4  
 8.2736E-03| -0.8985  -0.4390  
 1.8682E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.269e-02  -7.043e-02
  -7.043e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000165442  -3      -6.54356       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 8.2738E-03| -0.8985  -0.4390  
 1.8687E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.270e-02  -7.045e-02
  -7.045e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 15.0;

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0;

Fit statistic : Chi-Squared =        2557.09 using 10 PHA bins.

Test statistic : Chi-Squared =        2557.09 using 10 PHA bins.
 Reduced chi-squared =        319.637 for      8 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
312.915      3318.19      -3      -6.94148       1.51969
33.278       462.342      -4      -7.28916       1.51954
4.26521      65.391       -5      -7.53289       1.51897
2.54242      8.89174      -6      -7.63468       1.51834
2.52021      0.79404      -7      -7.64923       1.51810
2.5202       0.0165398    -8      -7.64957       1.51806
==============================
 Variances and Principal Axes
                 3        4  
 9.3708E-03| -0.9610   0.2765  
 1.6404E-01| -0.2765  -0.9610  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.120e-02   4.110e-02
   4.110e-02   1.522e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       9.22735e-05   1      -7.64957       1.51806
==============================
 Variances and Principal Axes
                 3        4  
 9.3846E-03| -0.9610   0.2765  
 1.6428E-01| -0.2765  -0.9610  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.123e-02   4.116e-02
   4.116e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       9.13511e-05   2      -7.64957       1.51806
==============================
 Variances and Principal Axes
                 3        4  
 9.3846E-03| -0.9610   0.2765  
 1.6428E-01| -0.2765  -0.9610  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.123e-02   4.116e-02
   4.116e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:10 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280836


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.64957     +/-  0.145705     
   4    2   npow       PhoIndex            1.51806      +/-  0.390432     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.99615      -7.4518    (-0.346586,0.197768)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815795      2.32296    (-0.702267,0.804898)

!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 =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.819 for      7 degrees of freedom 
 Null hypothesis probability =   6.175934e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.467 for      8 degrees of freedom 
 Null hypothesis probability =   1.139433e-02
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
18.9863      0.779956      1      -7.88049       1.69785
8.64789      1.21982       0      -7.25944       2.66716
7.10729      3.63498       0      -7.13473       2.58585
4.06743      2.52871      -1      -6.79853       1.78592
2.53995      4.14798      -2      -6.51488       1.47749
2.52038      0.518851     -3      -6.54086       1.51256
2.5202       0.0148135    -4      -6.54329       1.51751
==============================
 Variances and Principal Axes
                 3        4  
 8.2690E-03| -0.8985  -0.4390  
 1.8625E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.257e-02  -7.021e-02
  -7.021e-02   1.519e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00155404   -3      -6.54353       1.51802
==============================
 Variances and Principal Axes
                 3        4  
 8.2736E-03| -0.8985  -0.4390  
 1.8682E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.269e-02  -7.043e-02
  -7.043e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000165442  -3      -6.54356       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 8.2738E-03| -0.8985  -0.4390  
 1.8687E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.270e-02  -7.045e-02
  -7.045e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 25.0;

Fit statistic : Chi-Squared =           2.65 using 10 PHA bins.

Test statistic : Chi-Squared =           2.65 using 10 PHA bins.
 Reduced chi-squared =          0.332 for      8 degrees of freedom 
 Null hypothesis probability =   9.541856e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0;

Fit statistic : Chi-Squared =         672.24 using 10 PHA bins.

Test statistic : Chi-Squared =         672.24 using 10 PHA bins.
 Reduced chi-squared =         84.031 for      8 degrees of freedom 
 Null hypothesis probability =  6.748275e-140
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
75.7192      902.472      -3      -6.91424       1.51811
7.93718      127.129      -4      -7.20211       1.51810
2.65892      17.8301      -5      -7.35402       1.51808
2.52046      2.01153      -6      -7.38850       1.51807
2.5202       0.0803593    -7      -7.39011       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 1.0045E-02| -1.0000   0.0066  
 1.5133E-01| -0.0066  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.005e-02   9.258e-04
   9.258e-04   1.513e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000532743  -3      -7.39013       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 1.0120E-02| -1.0000   0.0066  
 1.5246E-01| -0.0066  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.013e-02   9.328e-04
   9.328e-04   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       3.21862e-06  -3      -7.39013       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 1.0121E-02| -1.0000   0.0066  
 1.5247E-01| -0.0066  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.013e-02   9.328e-04
   9.328e-04   1.525e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:11 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.59988     -7.24931    (-0.209752,0.140812)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815794      2.32296    (-0.702272,0.804894)

!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 =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.819 for      7 degrees of freedom 
 Null hypothesis probability =   6.175934e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.467 for      8 degrees of freedom 
 Null hypothesis probability =   1.139433e-02
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
18.9863      0.779956      1      -7.88049       1.69785
8.64789      1.21982       0      -7.25944       2.66716
7.10729      3.63498       0      -7.13473       2.58585
4.06743      2.52871      -1      -6.79853       1.78592
2.53995      4.14798      -2      -6.51488       1.47749
2.52038      0.518851     -3      -6.54086       1.51256
2.5202       0.0148135    -4      -6.54329       1.51751
==============================
 Variances and Principal Axes
                 3        4  
 8.2690E-03| -0.8985  -0.4390  
 1.8625E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.257e-02  -7.021e-02
  -7.021e-02   1.519e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00155404   -3      -6.54353       1.51802
==============================
 Variances and Principal Axes
                 3        4  
 8.2736E-03| -0.8985  -0.4390  
 1.8682E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.269e-02  -7.043e-02
  -7.043e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000165442  -3      -6.54356       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 8.2738E-03| -0.8985  -0.4390  
 1.8687E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.270e-02  -7.045e-02
  -7.045e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 50.0;

Fit statistic : Chi-Squared =           4.00 using 10 PHA bins.

Test statistic : Chi-Squared =           4.00 using 10 PHA bins.
 Reduced chi-squared =          0.500 for      8 degrees of freedom 
 Null hypothesis probability =   8.570528e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0;

Fit statistic : Chi-Squared =         302.14 using 10 PHA bins.

Test statistic : Chi-Squared =         302.14 using 10 PHA bins.
 Reduced chi-squared =         37.767 for      8 degrees of freedom 
 Null hypothesis probability =   1.446005e-60
 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
32.089       450.455      -3      -6.88939       1.51655
4.17101      63.7668      -4      -7.13111       1.51705
2.5403       8.64078      -5      -7.23085       1.51775
2.52021      0.758079     -6      -7.24474       1.51803
2.5202       0.0148735    -7      -7.24504       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 9.2616E-03| -0.9545  -0.2983  
 1.6621E-01|  0.2983  -0.9545  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.323e-02  -4.469e-02
  -4.469e-02   1.522e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       7.22666e-05  -3      -7.24504       1.51808
==============================
 Variances and Principal Axes
                 3        4  
 9.2739E-03| -0.9545  -0.2983  
 1.6643E-01|  0.2983  -0.9545  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.326e-02  -4.475e-02
  -4.475e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       1.62622e-06   0      -7.24504       1.51808
==============================
 Variances and Principal Axes
                 3        4  
 9.2739E-03| -0.9545  -0.2983  
 1.6644E-01|  0.2983  -0.9545  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.326e-02  -4.475e-02
  -4.475e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:11 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.63358     -7.04536    (-0.388542,0.199683)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815795      2.32296    (-0.70228,0.804886)

!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 =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.819 for      7 degrees of freedom 
 Null hypothesis probability =   6.175934e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.467 for      8 degrees of freedom 
 Null hypothesis probability =   1.139433e-02
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
18.9863      0.779956      1      -7.88049       1.69785
8.64789      1.21982       0      -7.25944       2.66716
7.10729      3.63498       0      -7.13473       2.58585
4.06743      2.52871      -1      -6.79853       1.78592
2.53995      4.14798      -2      -6.51488       1.47749
2.52038      0.518851     -3      -6.54086       1.51256
2.5202       0.0148135    -4      -6.54329       1.51751
==============================
 Variances and Principal Axes
                 3        4  
 8.2690E-03| -0.8985  -0.4390  
 1.8625E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.257e-02  -7.021e-02
  -7.021e-02   1.519e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00155404   -3      -6.54353       1.51802
==============================
 Variances and Principal Axes
                 3        4  
 8.2736E-03| -0.8985  -0.4390  
 1.8682E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.269e-02  -7.043e-02
  -7.043e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000165442  -3      -6.54356       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 8.2738E-03| -0.8985  -0.4390  
 1.8687E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.270e-02  -7.045e-02
  -7.045e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =          12.16 using 10 PHA bins.

Test statistic : Chi-Squared =          12.16 using 10 PHA bins.
 Reduced chi-squared =          1.520 for      8 degrees of freedom 
 Null hypothesis probability =   1.440485e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

Fit statistic : Chi-Squared =         585.07 using 10 PHA bins.

Test statistic : Chi-Squared =         585.07 using 10 PHA bins.
 Reduced chi-squared =         73.134 for      8 degrees of freedom 
 Null hypothesis probability =  3.790792e-121
 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
65.2274      896.077      -3      -6.90896       1.51520
6.96984      126.288      -4      -7.18966       1.51589
2.62203      17.6448      -5      -7.33271       1.51720
2.52035      1.92301      -6      -7.36298       1.51794
2.5202       0.0685503    -7      -7.36427       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 7.7955E-03| -0.8748  -0.4846  
 1.9565E-01|  0.4846  -0.8748  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.190e-02  -7.963e-02
  -7.963e-02   1.515e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000419967   1      -7.36427       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 7.8393E-03| -0.8747  -0.4846  
 1.9678E-01|  0.4846  -0.8747  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.221e-02  -8.009e-02
  -8.009e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000415685   3      -7.36427       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 7.8393E-03| -0.8747  -0.4846  
 1.9678E-01|  0.4846  -0.8747  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.221e-02  -8.009e-02
  -8.009e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:11 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280840


Current model list:

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

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.93348     -7.05382    (-0.569202,0.310451)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815796      2.32296    (-0.702271,0.804893)

!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 =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.819 for      7 degrees of freedom 
 Null hypothesis probability =   6.175934e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

Fit statistic : Chi-Squared =          19.73 using 10 PHA bins.

Test statistic : Chi-Squared =          19.73 using 10 PHA bins.
 Reduced chi-squared =          2.467 for      8 degrees of freedom 
 Null hypothesis probability =   1.139433e-02
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
18.9863      0.779956      1      -7.88049       1.69785
8.64789      1.21982       0      -7.25944       2.66716
7.10729      3.63498       0      -7.13473       2.58585
4.06743      2.52871      -1      -6.79853       1.78592
2.53995      4.14798      -2      -6.51488       1.47749
2.52038      0.518851     -3      -6.54086       1.51256
2.5202       0.0148135    -4      -6.54329       1.51751
==============================
 Variances and Principal Axes
                 3        4  
 8.2690E-03| -0.8985  -0.4390  
 1.8625E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.257e-02  -7.021e-02
  -7.021e-02   1.519e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607822e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00155404   -3      -6.54353       1.51802
==============================
 Variances and Principal Axes
                 3        4  
 8.2736E-03| -0.8985  -0.4390  
 1.8682E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.269e-02  -7.043e-02
  -7.043e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.000165442  -3      -6.54356       1.51807
==============================
 Variances and Principal Axes
                 3        4  
 8.2738E-03| -0.8985  -0.4390  
 1.8687E-01|  0.4390  -0.8985  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.270e-02  -7.045e-02
  -7.045e-02   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>newpar 1 100.0;

Fit statistic : Chi-Squared =          12.16 using 10 PHA bins.

Test statistic : Chi-Squared =          12.16 using 10 PHA bins.
 Reduced chi-squared =          1.520 for      8 degrees of freedom 
 Null hypothesis probability =   1.440485e-01
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

Fit statistic : Chi-Squared =          12.16 using 10 PHA bins.

Test statistic : Chi-Squared =          12.16 using 10 PHA bins.
 Reduced chi-squared =          1.520 for      8 degrees of freedom 
 Null hypothesis probability =   1.440485e-01
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.85527      32.9433      -3      -6.72346       1.51612
2.52144      4.03998      -4      -6.77592       1.51762
2.5202       0.217635     -5      -6.77974       1.51804
==============================
 Variances and Principal Axes
                 3        4  
 6.3860E-03| -0.7939  -0.6080  
 2.3405E-01|  0.6080  -0.7939  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.056e-02  -1.099e-01
  -1.099e-01   1.499e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       0.00173626   -3      -6.77980       1.51808
==============================
 Variances and Principal Axes
                 3        4  
 6.4894E-03| -0.7939  -0.6081  
 2.3794E-01|  0.6081  -0.7939  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.208e-02  -1.117e-01
  -1.117e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2.5202       1.98273e-05   0      -6.77980       1.51808
==============================
 Variances and Principal Axes
                 3        4  
 6.4902E-03| -0.7939  -0.6081  
 2.3798E-01|  0.6081  -0.7939  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.209e-02  -1.118e-01
  -1.118e-01   1.524e-01
------------------------

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


Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sun Dec 27 06:44:12 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/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 10
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp

1 file 1 spectrum 
Spectrum 1  Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.pha
Net count rate (cts/s) for Spectrum:1  2.732e-01 +/- 6.639e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-10
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 0.02 sec
 Using fit statistic: chi
 Using test statistic: chi
 Using Response (RMF) File            /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger306858/remake_spec_cflux/spec_20ms_peak/sw00306858000b_20ms_peak.rsp for Source 1

 Spectral data counts: 0.00546465
 Model predicted rate: 0.280835


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.77980     +/-  0.303470     
   4    2   npow       PhoIndex            1.51808      +/-  0.390357     
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.

Test statistic : Chi-Squared =           2.52 using 10 PHA bins.
 Reduced chi-squared =          0.315 for      8 degrees of freedom 
 Null hypothesis probability =   9.607823e-01
 Weighting method: standard

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.49629     -6.33412    (-0.716491,0.445686)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.815797      2.32296    (-0.702286,0.804878)

!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.51805     ( -0.702256   0.80491 )
Norm@50keV  : 1.72552E-02    ( -0.00821372   0.00732385 )
------------------------------------------------------------
#Fit statistic : Chi-Squared =           2.52 using 10 PHA bins.
# Reduced chi-squared =          0.315 for      8 degrees of freedom 
# Null hypothesis probability =   9.607823e-01
 
Photon flux (15-150 keV)    in 0.02 sec: 2.16480 ( -0.83156  0.83057 ) ph/cm2/s
Energy fluence (15-150 keV)             : 3.26476e-09 ( -1.57253e-09  1.64409e-09 ) ergs/cm2