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/trigger324895/00324895000-results/pha/sw00324895000b_peak.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/00324895000-results/pha/sw00324895000b_peak.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  3.677e-01 +/- 1.757e-02
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-80
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 1 sec
 Using fit statistic: chi
 Using test statistic: chi
 No response loaded.

***Warning!  One or more spectra are missing responses,
               and are not suitable for fit.
XSPEC12>response 1 /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_rep 
roc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp
Response successfully loaded.
XSPEC12>ignore **-13.0 150.0-**
     3 channels (1-3) ignored in spectrum #     1
    18 channels (63-80) ignored in spectrum #     1

XSPEC12>model npow

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

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


Fit statistic : Chi-Squared =   1.533592e+06 using 59 PHA bins.

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

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

Test statistic : Chi-Squared =         147.10 using 59 PHA bins.
 Reduced chi-squared =         2.5806 for     57 degrees of freedom 
 Null hypothesis probability =   6.739170e-10
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
64.1604      74.0693      -3      0.826542     0.0249836
55.7504      1467.99      -4      0.930096     0.0235104
55.7355      55.7484      -5      0.924711     0.0234193
55.7354      0.101761     -6      0.925361     0.0234210
==============================
 Variances and Principal Axes
                 1        3  
 3.9841E-03| -1.0000  -0.0028  
 6.8462E-07|  0.0028  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.984e-03   1.116e-05
   1.116e-05   7.159e-07
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.925361     +/-  6.31191E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.34210E-02  +/-  8.46087E-04  
________________________________________________________________________


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

Test statistic : Chi-Squared =          55.74 using 59 PHA bins.
 Reduced chi-squared =         0.9778 for     57 degrees of freedom 
 Null hypothesis probability =   5.226171e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
55.7354      0.010117     -3      0.925280     0.0234208
==============================
 Variances and Principal Axes
                 1        3  
 3.9832E-03|  1.0000   0.0028  
 6.8473E-07| -0.0028   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.983e-03   1.111e-05
   1.111e-05   7.157e-07
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.925280     +/-  6.31122E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.34208E-02  +/-  8.46014E-04  
________________________________________________________________________


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

Test statistic : Chi-Squared =          55.74 using 59 PHA bins.
 Reduced chi-squared =         0.9778 for     57 degrees of freedom 
 Null hypothesis probability =   5.226172e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
55.7354      0.0012231     2      0.925280     0.0234208
==============================
 Variances and Principal Axes
                 1        3  
 3.9833E-03| -1.0000  -0.0028  
 6.8472E-07|  0.0028  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.983e-03   1.112e-05
   1.112e-05   7.158e-07
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.925280     +/-  6.31131E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.34208E-02  +/-  8.46023E-04  
________________________________________________________________________


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

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

XSPEC version: 12.9.0c

Sat Dec 26 21:03:57 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345288


Current model list:

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.925280     +/-  6.31131E-02  
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.34208E-02  +/-  8.46023E-04  
________________________________________________________________________

   Using energies from responses.

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

Test statistic : Chi-Squared =          55.74 using 59 PHA bins.
 Reduced chi-squared =         0.9778 for     57 degrees of freedom 
 Null hypothesis probability =   5.226172e-01
 Weighting method: standard
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1     0.826345      1.02253    (-0.0989347,0.0972489)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0220308    0.0248078    (-0.00138993,0.00138708)
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 =         467.65 using 59 PHA bins.

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.3508 for     56 degrees of freedom 
 Null hypothesis probability =   2.677161e-66
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.2043 for     57 degrees of freedom 
 Null hypothesis probability =   7.789745e-66
 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
434.05       78.3546      -3       3.56068     -0.552209
160.224      69.501        0       3.80973      0.306173
68.2524      71.7583      -1       3.30446       1.07756
56.1275      14.4779      -2       3.78593      0.895305
55.7405      5.9635       -3       3.79538      0.929528
55.7355      0.579108     -4       3.80166      0.924761
==============================
 Variances and Principal Axes
                 3        4  
 2.4675E-02|  0.9749  -0.2225  
 2.9006E-03|  0.2225   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.360e-02  -4.724e-03
  -4.724e-03   3.979e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0749913    -3       3.80098      0.925351
==============================
 Variances and Principal Axes
                 3        4  
 2.4787E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.370e-02  -4.749e-03
  -4.749e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0091167    -2       3.80106      0.925280
==============================
 Variances and Principal Axes
                 3        4  
 2.4773E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.369e-02  -4.746e-03
  -4.746e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:03:58 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345288


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                3.80106      +/-  0.153913     
   4    2   npow       PhoIndex            0.925280     +/-  6.31141E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      3.55378       4.0536    (-0.24727,0.252553)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989413,0.0972423)

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.3508 for     56 degrees of freedom 
 Null hypothesis probability =   2.677161e-66
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.2043 for     57 degrees of freedom 
 Null hypothesis probability =   7.789745e-66
 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
434.05       78.3546      -3       3.56068     -0.552209
160.224      69.501        0       3.80973      0.306173
68.2524      71.7583      -1       3.30446       1.07756
56.1275      14.4779      -2       3.78593      0.895305
55.7405      5.9635       -3       3.79538      0.929528
55.7355      0.579108     -4       3.80166      0.924761
==============================
 Variances and Principal Axes
                 3        4  
 2.4675E-02|  0.9749  -0.2225  
 2.9006E-03|  0.2225   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.360e-02  -4.724e-03
  -4.724e-03   3.979e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0749913    -3       3.80098      0.925351
==============================
 Variances and Principal Axes
                 3        4  
 2.4787E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.370e-02  -4.749e-03
  -4.749e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0091167    -2       3.80106      0.925280
==============================
 Variances and Principal Axes
                 3        4  
 2.4773E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.369e-02  -4.746e-03
  -4.746e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =         192.71 using 59 PHA bins.
 Reduced chi-squared =         3.3808 for     57 degrees of freedom 
 Null hypothesis probability =   1.245481e-16
 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
55.7355      69.6487      -3       2.69030      0.925416
55.7354      0.0629267    -4       2.68912      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 9.9526E-03|  0.9704   0.2416  
 3.6098E-03| -0.2416   0.9704  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.583e-03   1.487e-03
   1.487e-03   3.980e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.00221344   -3       2.68912      0.925291
==============================
 Variances and Principal Axes
                 3        4  
 9.9532E-03|  0.9703   0.2418  
 3.6126E-03| -0.2418   0.9703  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.582e-03   1.488e-03
   1.488e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.000263603   1       2.68912      0.925291
==============================
 Variances and Principal Axes
                 3        4  
 9.9532E-03|  0.9703   0.2418  
 3.6126E-03| -0.2418   0.9703  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.582e-03   1.488e-03
   1.488e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:03:58 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.68912      +/-  9.78899E-02  
   4    2   npow       PhoIndex            0.925291     +/-  6.31141E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      2.52869      2.84971    (-0.160428,0.160585)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989425,0.0972409)

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.3508 for     56 degrees of freedom 
 Null hypothesis probability =   2.677161e-66
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.2043 for     57 degrees of freedom 
 Null hypothesis probability =   7.789745e-66
 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
434.05       78.3546      -3       3.56068     -0.552209
160.224      69.501        0       3.80973      0.306173
68.2524      71.7583      -1       3.30446       1.07756
56.1275      14.4779      -2       3.78593      0.895305
55.7405      5.9635       -3       3.79538      0.929528
55.7355      0.579108     -4       3.80166      0.924761
==============================
 Variances and Principal Axes
                 3        4  
 2.4675E-02|  0.9749  -0.2225  
 2.9006E-03|  0.2225   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.360e-02  -4.724e-03
  -4.724e-03   3.979e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0749913    -3       3.80098      0.925351
==============================
 Variances and Principal Axes
                 3        4  
 2.4787E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.370e-02  -4.749e-03
  -4.749e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0091167    -2       3.80106      0.925280
==============================
 Variances and Principal Axes
                 3        4  
 2.4773E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.369e-02  -4.746e-03
  -4.746e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
56.1833      17461.7      -3      0.572207      0.928159
55.7354      19.5742      -4      0.557114      0.925023
55.7354      0.0578293    -5      0.557339      0.925327
==============================
 Variances and Principal Axes
                 3        4  
 2.8086E-04| -0.8426   0.5385  
 5.4966E-03| -0.5385  -0.8426  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.794e-03   2.367e-03
   2.367e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.00473312   -1      0.557328      0.925306
==============================
 Variances and Principal Axes
                 3        4  
 2.8100E-04| -0.8425   0.5386  
 5.4959E-03| -0.5386  -0.8425  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.794e-03   2.367e-03
   2.367e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.00171896    1      0.557328      0.925306
==============================
 Variances and Principal Axes
                 3        4  
 2.8099E-04| -0.8425   0.5386  
 5.4959E-03| -0.5386  -0.8425  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.794e-03   2.367e-03
   2.367e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:03:59 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345290


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.557328     +/-  4.23560E-02  
   4    2   npow       PhoIndex            0.925306     +/-  6.31101E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.492206      0.62525    (-0.0651216,0.0679222)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826347      1.02253    (-0.0989587,0.0972248)

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.3508 for     56 degrees of freedom 
 Null hypothesis probability =   2.677161e-66
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.2043 for     57 degrees of freedom 
 Null hypothesis probability =   7.789745e-66
 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
434.05       78.3546      -3       3.56068     -0.552209
160.224      69.501        0       3.80973      0.306173
68.2524      71.7583      -1       3.30446       1.07756
56.1275      14.4779      -2       3.78593      0.895305
55.7405      5.9635       -3       3.79538      0.929528
55.7355      0.579108     -4       3.80166      0.924761
==============================
 Variances and Principal Axes
                 3        4  
 2.4675E-02|  0.9749  -0.2225  
 2.9006E-03|  0.2225   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.360e-02  -4.724e-03
  -4.724e-03   3.979e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0749913    -3       3.80098      0.925351
==============================
 Variances and Principal Axes
                 3        4  
 2.4787E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.370e-02  -4.749e-03
  -4.749e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0091167    -2       3.80106      0.925280
==============================
 Variances and Principal Axes
                 3        4  
 2.4773E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.369e-02  -4.746e-03
  -4.746e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7632      3898.84      -3      0.796084      0.926448
55.7354      3.10327      -4      0.790976      0.925155
55.7354      0.018587     -5      0.791034      0.925307
==============================
 Variances and Principal Axes
                 3        4  
 6.7253E-04| -0.9152   0.4031  
 4.6258E-03| -0.4031  -0.9152  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.315e-03   1.458e-03
   1.458e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.00236625   -3      0.791027      0.925288
==============================
 Variances and Principal Axes
                 3        4  
 6.7265E-04| -0.9152   0.4031  
 4.6254E-03| -0.4031  -0.9152  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.315e-03   1.458e-03
   1.458e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.000300259  -3      0.791028      0.925291
==============================
 Variances and Principal Axes
                 3        4  
 6.7263E-04| -0.9152   0.4031  
 4.6254E-03| -0.4031  -0.9152  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.315e-03   1.458e-03
   1.458e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:00 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.791028     +/-  3.62607E-02  
   4    2   npow       PhoIndex            0.925291     +/-  6.31127E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      0.73252     0.849114    (-0.0585078,0.0580858)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989444,0.0972393)

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.3508 for     56 degrees of freedom 
 Null hypothesis probability =   2.677161e-66
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.2043 for     57 degrees of freedom 
 Null hypothesis probability =   7.789745e-66
 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
434.05       78.3546      -3       3.56068     -0.552209
160.224      69.501        0       3.80973      0.306173
68.2524      71.7583      -1       3.30446       1.07756
56.1275      14.4779      -2       3.78593      0.895305
55.7405      5.9635       -3       3.79538      0.929528
55.7355      0.579108     -4       3.80166      0.924761
==============================
 Variances and Principal Axes
                 3        4  
 2.4675E-02|  0.9749  -0.2225  
 2.9006E-03|  0.2225   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.360e-02  -4.724e-03
  -4.724e-03   3.979e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0749913    -3       3.80098      0.925351
==============================
 Variances and Principal Axes
                 3        4  
 2.4787E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.370e-02  -4.749e-03
  -4.749e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0091167    -2       3.80106      0.925280
==============================
 Variances and Principal Axes
                 3        4  
 2.4773E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.369e-02  -4.746e-03
  -4.746e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

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

!XSPEC12>newpar 2 100.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7485      2276.76      -3      0.836551      0.924709
55.7354      1.95741      -4      0.833072      0.925356
55.7354      0.00971      -5      0.833087      0.925279
==============================
 Variances and Principal Axes
                 3        4  
 8.2782E-04| -0.9719  -0.2355  
 4.1684E-03|  0.2355  -0.9719  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.013e-03  -7.645e-04
  -7.645e-04   3.983e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0011844    -3      0.833085      0.925288
==============================
 Variances and Principal Axes
                 3        4  
 8.2786E-04| -0.9719  -0.2354  
 4.1684E-03|  0.2354  -0.9719  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.013e-03  -7.644e-04
  -7.644e-04   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.000131023  -1      0.833085      0.925287
==============================
 Variances and Principal Axes
                 3        4  
 8.2786E-04| -0.9719  -0.2355  
 4.1684E-03|  0.2355  -0.9719  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.013e-03  -7.644e-04
  -7.644e-04   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:00 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.833085     +/-  3.18285E-02  
   4    2   npow       PhoIndex            0.925287     +/-  6.31128E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.781043     0.884927    (-0.0520423,0.0518418)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989413,0.0972422)

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.3508 for     56 degrees of freedom 
 Null hypothesis probability =   2.677161e-66
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.2043 for     57 degrees of freedom 
 Null hypothesis probability =   7.789745e-66
 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
434.05       78.3546      -3       3.56068     -0.552209
160.224      69.501        0       3.80973      0.306173
68.2524      71.7583      -1       3.30446       1.07756
56.1275      14.4779      -2       3.78593      0.895305
55.7405      5.9635       -3       3.79538      0.929528
55.7355      0.579108     -4       3.80166      0.924761
==============================
 Variances and Principal Axes
                 3        4  
 2.4675E-02|  0.9749  -0.2225  
 2.9006E-03|  0.2225   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.360e-02  -4.724e-03
  -4.724e-03   3.979e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0749913    -3       3.80098      0.925351
==============================
 Variances and Principal Axes
                 3        4  
 2.4787E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.370e-02  -4.749e-03
  -4.749e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0091167    -2       3.80106      0.925280
==============================
 Variances and Principal Axes
                 3        4  
 2.4773E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.369e-02  -4.746e-03
  -4.746e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =        1508.95 using 59 PHA bins.
 Reduced chi-squared =        26.4729 for     57 degrees of freedom 
 Null hypothesis probability =  5.341248e-278
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.9743      15971.7      -3      0.517296      0.923143
55.7354      14.5053      -4      0.507591      0.925505
55.7354      0.0323252    -5      0.507704      0.925257
==============================
 Variances and Principal Axes
                 3        4  
 2.7550E-04| -0.9206  -0.3905  
 4.6500E-03|  0.3905  -0.9206  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.426e-04  -1.573e-03
  -1.573e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.00388188   -2      0.507693      0.925287
==============================
 Variances and Principal Axes
                 3        4  
 2.7560E-04| -0.9206  -0.3905  
 4.6502E-03|  0.3905  -0.9206  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.427e-04  -1.573e-03
  -1.573e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.000421719  -2      0.507693      0.925284
==============================
 Variances and Principal Axes
                 3        4  
 2.7559E-04| -0.9206  -0.3905  
 4.6501E-03|  0.3905  -0.9206  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.427e-04  -1.573e-03
  -1.573e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:01 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.507693     +/-  3.07038E-02  
   4    2   npow       PhoIndex            0.925284     +/-  6.31109E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.459771     0.556985    (-0.047923,0.0492917)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989387,0.0972448)

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.3508 for     56 degrees of freedom 
 Null hypothesis probability =   2.677161e-66
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         467.65 using 59 PHA bins.
 Reduced chi-squared =         8.2043 for     57 degrees of freedom 
 Null hypothesis probability =   7.789745e-66
 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
434.05       78.3546      -3       3.56068     -0.552209
160.224      69.501        0       3.80973      0.306173
68.2524      71.7583      -1       3.30446       1.07756
56.1275      14.4779      -2       3.78593      0.895305
55.7405      5.9635       -3       3.79538      0.929528
55.7355      0.579108     -4       3.80166      0.924761
==============================
 Variances and Principal Axes
                 3        4  
 2.4675E-02|  0.9749  -0.2225  
 2.9006E-03|  0.2225   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.360e-02  -4.724e-03
  -4.724e-03   3.979e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0749913    -3       3.80098      0.925351
==============================
 Variances and Principal Axes
                 3        4  
 2.4787E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.370e-02  -4.749e-03
  -4.749e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.0091167    -2       3.80106      0.925280
==============================
 Variances and Principal Axes
                 3        4  
 2.4773E-02|  0.9749  -0.2226  
 2.8999E-03|  0.2226   0.9749  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.369e-02  -4.746e-03
  -4.746e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =        1508.95 using 59 PHA bins.
 Reduced chi-squared =        26.4729 for     57 degrees of freedom 
 Null hypothesis probability =  5.341248e-278
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

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

Test statistic : Chi-Squared =        1508.95 using 59 PHA bins.
 Reduced chi-squared =        26.4729 for     57 degrees of freedom 
 Null hypothesis probability =  5.341248e-278
 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
55.7559      1567.92      -3       1.63188      0.923090
55.7354      2.39682      -4       1.61910      0.925539
55.7354      0.0280796    -5       1.61970      0.925251
==============================
 Variances and Principal Axes
                 3        4  
 2.1953E-02|  0.9172  -0.3983  
 5.9365E-04|  0.3983   0.9172  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.856e-02  -7.804e-03
  -7.804e-03   3.982e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.00451462   -3       1.61963      0.925286
==============================
 Variances and Principal Axes
                 3        4  
 2.1964E-02|  0.9173  -0.3982  
 5.9381E-04|  0.3982   0.9173  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.858e-02  -7.806e-03
  -7.806e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
55.7354      0.000547282   0       1.61963      0.925286
==============================
 Variances and Principal Axes
                 3        4  
 2.1963E-02| -0.9173   0.3982  
 5.9379E-04| -0.3982  -0.9173  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.857e-02  -7.806e-03
  -7.806e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:02 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      1.41487      1.84293    (-0.204763,0.223294)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.098938,0.0972455)

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.595 for     56 degrees of freedom 
 Null hypothesis probability =  1.056816e-135
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.339 for     57 degrees of freedom 
 Null hypothesis probability =  4.060724e-135
 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
792.746      23.9648       1      -7.85381       1.69925
523.881      37.9004       0      -7.15608       2.52953
437.958      90.1392       0      -7.00853       2.16118
183.468      127.473      -1      -6.30139      0.740849
82.7509      241.669      -2      -6.17380       1.08313
55.7905      196.15       -3      -6.16543      0.931775
55.7355      7.8881       -4      -6.16543      0.924537
55.7354      0.0982483    -5      -6.16580      0.925376
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9092  -0.4165  
 4.7789E-03|  0.4165  -0.9092  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.736e-03
  -1.736e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0145141    -3      -6.16576      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7780E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00176332   -3      -6.16576      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7781E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.901e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:02 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.16576     +/-  3.14652E-02  
   4    2   npow       PhoIndex            0.925285     +/-  6.31113E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.21627     -6.11678    (-0.050502,0.0489798)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989382,0.0972453)

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.595 for     56 degrees of freedom 
 Null hypothesis probability =  1.056816e-135
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.339 for     57 degrees of freedom 
 Null hypothesis probability =  4.060724e-135
 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
792.746      23.9648       1      -7.85381       1.69925
523.881      37.9004       0      -7.15608       2.52953
437.958      90.1392       0      -7.00853       2.16118
183.468      127.473      -1      -6.30139      0.740849
82.7509      241.669      -2      -6.17380       1.08313
55.7905      196.15       -3      -6.16543      0.931775
55.7355      7.8881       -4      -6.16543      0.924537
55.7354      0.0982483    -5      -6.16580      0.925376
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9092  -0.4165  
 4.7789E-03|  0.4165  -0.9092  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.736e-03
  -1.736e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0145141    -3      -6.16576      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7780E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00176332   -3      -6.16576      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7781E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.901e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
194.642      3962.42      -3      -6.43323      0.924772
58.3191      549.411      -4      -6.56047      0.925157
55.7377      55.9138      -5      -6.58373      0.925295
55.7354      1.59029      -6      -6.58447      0.925286
==============================
 Variances and Principal Axes
                 3        4  
 2.2975E-04| -0.9929  -0.1188  
 4.0233E-03|  0.1188  -0.9929  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.833e-04  -4.476e-04
  -4.476e-04   3.970e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00738183   -3      -6.58447      0.925287
==============================
 Variances and Principal Axes
                 3        4  
 2.3053E-04| -0.9929  -0.1188  
 4.0370E-03|  0.1188  -0.9929  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.843e-04  -4.491e-04
  -4.491e-04   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      4.28103e-05  -3      -6.58447      0.925287
==============================
 Variances and Principal Axes
                 3        4  
 2.3053E-04| -0.9929  -0.1188  
 4.0371E-03|  0.1188  -0.9929  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.843e-04  -4.491e-04
  -4.491e-04   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:03 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.58447     +/-  1.68608E-02  
   4    2   npow       PhoIndex            0.925287     +/-  6.31135E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.61288     -6.55771    (-0.0284088,0.0267631)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989411,0.0972425)

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.595 for     56 degrees of freedom 
 Null hypothesis probability =  1.056816e-135
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.339 for     57 degrees of freedom 
 Null hypothesis probability =  4.060724e-135
 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
792.746      23.9648       1      -7.85381       1.69925
523.881      37.9004       0      -7.15608       2.52953
437.958      90.1392       0      -7.00853       2.16118
183.468      127.473      -1      -6.30139      0.740849
82.7509      241.669      -2      -6.17380       1.08313
55.7905      196.15       -3      -6.16543      0.931775
55.7355      7.8881       -4      -6.16543      0.924537
55.7354      0.0982483    -5      -6.16580      0.925376
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9092  -0.4165  
 4.7789E-03|  0.4165  -0.9092  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.736e-03
  -1.736e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0145141    -3      -6.16576      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7780E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00176332   -3      -6.16576      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7781E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.901e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

Fit statistic : Chi-Squared =   1.156446e+06 using 59 PHA bins.

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
152172       1.5046e+06   -3      -6.58563      0.928504
18815.2      206847       -4      -6.98892      0.928569
2001.51      28708.5      -5      -7.34756      0.927966
180.975      4052.73      -6      -7.61138      0.926794
57.9526      560.935      -7      -7.73435      0.925585
55.7373      56.3101      -8      -7.75608      0.925273
55.7354      1.58888      -9      -7.75675      0.925296
==============================
 Variances and Principal Axes
                 3        4  
 1.9130E-04| -0.9036   0.4284  
 4.8200E-03| -0.4284  -0.9036  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.041e-03   1.792e-03
   1.792e-03   3.971e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00933305   -2      -7.75675      0.925293
==============================
 Variances and Principal Axes
                 3        4  
 1.9190E-04| -0.9036   0.4284  
 4.8349E-03| -0.4284  -0.9036  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.044e-03   1.797e-03
   1.797e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.000173873   0      -7.75675      0.925293
==============================
 Variances and Principal Axes
                 3        4  
 1.9190E-04| -0.9036   0.4284  
 4.8350E-03| -0.4284  -0.9036  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.044e-03   1.797e-03
   1.797e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:04 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.75675     +/-  3.23103E-02  
   4    2   npow       PhoIndex            0.925293     +/-  6.31104E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.80989     -7.70762    (-0.0531395,0.0491303)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989471,0.0972364)

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.595 for     56 degrees of freedom 
 Null hypothesis probability =  1.056816e-135
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.339 for     57 degrees of freedom 
 Null hypothesis probability =  4.060724e-135
 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
792.746      23.9648       1      -7.85381       1.69925
523.881      37.9004       0      -7.15608       2.52953
437.958      90.1392       0      -7.00853       2.16118
183.468      127.473      -1      -6.30139      0.740849
82.7509      241.669      -2      -6.17380       1.08313
55.7905      196.15       -3      -6.16543      0.931775
55.7355      7.8881       -4      -6.16543      0.924537
55.7354      0.0982483    -5      -6.16580      0.925376
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9092  -0.4165  
 4.7789E-03|  0.4165  -0.9092  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.736e-03
  -1.736e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0145141    -3      -6.16576      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7780E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00176332   -3      -6.16576      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7781E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.901e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
19152.8      194609       -3      -6.56890      0.926541
2038.83      27030.5      -4      -6.92799      0.926414
183.848      3812.07      -5      -7.19248      0.925931
58.0214      527.255      -6      -7.31607      0.925417
55.7374      53.007       -7      -7.33801      0.925282
55.7354      1.48298      -8      -7.33869      0.925291
==============================
 Variances and Principal Axes
                 3        4  
 2.2452E-04| -0.9817   0.1903  
 4.1115E-03| -0.1903  -0.9817  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.653e-04   7.262e-04
   7.262e-04   3.971e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00814721   -1      -7.33869      0.925291
==============================
 Variances and Principal Axes
                 3        4  
 2.2522E-04| -0.9817   0.1903  
 4.1244E-03| -0.1903  -0.9817  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.664e-04   7.285e-04
   7.285e-04   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00075759   -1      -7.33869      0.925290
==============================
 Variances and Principal Axes
                 3        4  
 2.2523E-04| -0.9817   0.1903  
 4.1244E-03| -0.1903  -0.9817  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.664e-04   7.285e-04
   7.285e-04   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04:04 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.33869     +/-  1.91427E-02  
   4    2   npow       PhoIndex            0.925290     +/-  6.31127E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.37094     -7.30887    (-0.0322463,0.029826)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989441,0.0972395)

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.595 for     56 degrees of freedom 
 Null hypothesis probability =  1.056816e-135
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.339 for     57 degrees of freedom 
 Null hypothesis probability =  4.060724e-135
 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
792.746      23.9648       1      -7.85381       1.69925
523.881      37.9004       0      -7.15608       2.52953
437.958      90.1392       0      -7.00853       2.16118
183.468      127.473      -1      -6.30139      0.740849
82.7509      241.669      -2      -6.17380       1.08313
55.7905      196.15       -3      -6.16543      0.931775
55.7355      7.8881       -4      -6.16543      0.924537
55.7354      0.0982483    -5      -6.16580      0.925376
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9092  -0.4165  
 4.7789E-03|  0.4165  -0.9092  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.736e-03
  -1.736e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0145141    -3      -6.16576      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7780E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00176332   -3      -6.16576      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7781E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.901e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

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

!XSPEC12>newpar 2 100.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
3283.17      39980.5      -3      -6.53692      0.924547
295.163      5625.82      -4      -6.82570      0.924766
61.9044      788.378      -5      -6.97862      0.925142
55.7469      89.0148      -6      -7.01352      0.925292
55.7354      3.5519       -7      -7.01516      0.925286
55.7354      0.0219409    -8      -7.01517      0.925287
==============================
 Variances and Principal Axes
                 3        4  
 2.3006E-04| -0.9924  -0.1230  
 4.0406E-03|  0.1230  -0.9924  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.877e-04  -4.651e-04
  -4.651e-04   3.983e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      9.03973e-05  -3      -7.01517      0.925287
==============================
 Variances and Principal Axes
                 3        4  
 2.3007E-04| -0.9924  -0.1230  
 4.0408E-03|  0.1230  -0.9924  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.877e-04  -4.651e-04
  -4.651e-04   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      1.06889e-05   0      -7.01517      0.925287
==============================
 Variances and Principal Axes
                 3        4  
 2.3007E-04| -0.9924  -0.1230  
 4.0409E-03|  0.1230  -0.9924  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.877e-04  -4.651e-04
  -4.651e-04   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04: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: 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


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.01517     +/-  1.69619E-02  
   4    2   npow       PhoIndex            0.925287     +/-  6.31129E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.04385     -6.98834    (-0.0286886,0.0268253)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989411,0.0972424)

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.595 for     56 degrees of freedom 
 Null hypothesis probability =  1.056816e-135
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.339 for     57 degrees of freedom 
 Null hypothesis probability =  4.060724e-135
 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
792.746      23.9648       1      -7.85381       1.69925
523.881      37.9004       0      -7.15608       2.52953
437.958      90.1392       0      -7.00853       2.16118
183.468      127.473      -1      -6.30139      0.740849
82.7509      241.669      -2      -6.17380       1.08313
55.7905      196.15       -3      -6.16543      0.931775
55.7355      7.8881       -4      -6.16543      0.924537
55.7354      0.0982483    -5      -6.16580      0.925376
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9092  -0.4165  
 4.7789E-03|  0.4165  -0.9092  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.736e-03
  -1.736e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0145141    -3      -6.16576      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7780E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00176332   -3      -6.16576      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7781E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.901e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 150.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
2973.29      38571.4      -3      -6.53384      0.923144
266.403      5429.97      -4      -6.81794      0.923806
60.7831      759.167      -5      -6.96492      0.924896
55.7434      83.858       -6      -6.99686      0.925301
55.7354      3.10944      -7      -6.99822      0.925282
==============================
 Variances and Principal Axes
                 3        4  
 2.0644E-04| -0.9406  -0.3396  
 4.4469E-03|  0.3396  -0.9406  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.955e-04  -1.354e-03
  -1.354e-03   3.958e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0180231    -3      -6.99823      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 2.0774E-04| -0.9406  -0.3396  
 4.4750E-03|  0.3396  -0.9406  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.998e-04  -1.363e-03
  -1.363e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.000123624   0      -6.99823      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 2.0774E-04| -0.9406  -0.3396  
 4.4751E-03|  0.3396  -0.9406  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.999e-04  -1.363e-03
  -1.363e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04: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: 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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345289


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.04174     -6.95755    (-0.0435139,0.0406816)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989389,0.0972446)

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.595 for     56 degrees of freedom 
 Null hypothesis probability =  1.056816e-135
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         817.30 using 59 PHA bins.
 Reduced chi-squared =         14.339 for     57 degrees of freedom 
 Null hypothesis probability =  4.060724e-135
 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
792.746      23.9648       1      -7.85381       1.69925
523.881      37.9004       0      -7.15608       2.52953
437.958      90.1392       0      -7.00853       2.16118
183.468      127.473      -1      -6.30139      0.740849
82.7509      241.669      -2      -6.17380       1.08313
55.7905      196.15       -3      -6.16543      0.931775
55.7355      7.8881       -4      -6.16543      0.924537
55.7354      0.0982483    -5      -6.16580      0.925376
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9092  -0.4165  
 4.7789E-03|  0.4165  -0.9092  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.736e-03
  -1.736e-03   3.984e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.0145141    -3      -6.16576      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7780E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.900e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00176332   -3      -6.16576      0.925285
==============================
 Variances and Principal Axes
                 3        4  
 1.9495E-04| -0.9091  -0.4165  
 4.7781E-03|  0.4165  -0.9091  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.901e-04  -1.735e-03
  -1.735e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 350.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
56.6746      427.114      -3      -6.26648      0.924297
55.7358      37.7832      -4      -6.28142      0.925352
55.7354      0.736367     -5      -6.28167      0.925273
==============================
 Variances and Principal Axes
                 3        4  
 1.7295E-04| -0.8556  -0.5176  
 5.3690E-03|  0.5176  -0.8556  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.565e-03  -2.301e-03
  -2.301e-03   3.977e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00210661    0      -6.28167      0.925274
==============================
 Variances and Principal Axes
                 3        4  
 1.7319E-04| -0.8556  -0.5176  
 5.3763E-03|  0.5176  -0.8556  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.567e-03  -2.304e-03
  -2.304e-03   3.983e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
55.7354      0.00140342   -2      -6.28167      0.925282
==============================
 Variances and Principal Axes
                 3        4  
 1.7319E-04| -0.8556  -0.5176  
 5.3763E-03|  0.5176  -0.8556  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.567e-03  -2.304e-03
  -2.304e-03   3.983e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Dec 26 21:04: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/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger324895/remake_spec_cflux/spec_1speak/sw00324895000b_1speak.rsp

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

 Spectral data counts: 0.340197
 Model predicted rate: 0.345288


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.28167     +/-  3.95847E-02  
   4    2   npow       PhoIndex            0.925282     +/-  6.31077E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      -6.3453     -6.22078    (-0.0636307,0.0608951)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.826346      1.02253    (-0.0989362,0.0972473)

!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: 0.925280     ( -0.0989347   0.0972489 )
Norm@50keV  : 2.34208E-02    ( -0.00138993   0.00138708 )
------------------------------------------------------------
#Fit statistic : Chi-Squared =          55.74 using 59 PHA bins.
# Reduced chi-squared =         0.9778 for     57 degrees of freedom 
# Null hypothesis probability =   5.226172e-01
 
Photon flux (15-150 keV)    in 1 sec: 2.68912 ( -0.16043  0.16059 ) ph/cm2/s
Energy fluence (15-150 keV)             : 2.60333e-07 ( -1.64845e-08  1.6546e-08 ) ergs/cm2