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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.pha

1 spectrum  in use
 
Spectral Data File: /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.pha  Spectrum 1
Net count rate (cts/s) for Spectrum:1  4.892e-02 +/- 6.949e-03
 Assigned to Data Group 1 and Plot Group 1
  Noticed Channels:  1-80
  Telescope: SWIFT Instrument: BAT  Channel Type: PI
  Exposure Time: 9.049 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp
Response successfully loaded.
XSPEC12>ignore **-13.0 150.0-**
     3 channels (1-3) ignored in spectrum #     1
    18 channels (63-80) ignored in spectrum #     1

XSPEC12>model npow

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

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


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

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

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

Test statistic : Chi-Squared =          55.70 using 59 PHA bins.
 Reduced chi-squared =         0.9772 for     57 degrees of freedom 
 Null hypothesis probability =   5.239522e-01
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
45.8277      6.46718      -3      0.800392    0.00311278
45.2534      944.525      -4      0.723176    0.00279983
45.2463      21.9693      -5      0.704184    0.00278492
==============================
 Variances and Principal Axes
                 1        3  
 6.0760E-02| -1.0000  -0.0011  
 1.1655E-07|  0.0011  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.076e-02   6.409e-05
   6.409e-05   1.841e-07
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.704184     +/-  0.246496     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.78492E-03  +/-  4.29117E-04  
________________________________________________________________________


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

Test statistic : Chi-Squared =          45.25 using 59 PHA bins.
 Reduced chi-squared =         0.7938 for     57 degrees of freedom 
 Null hypothesis probability =   8.693906e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
45.2462      0.0239943    -3      0.701245    0.00278167
==============================
 Variances and Principal Axes
                 1        3  
 6.1384E-02| -1.0000  -0.0011  
 1.1487E-07|  0.0011  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.138e-02   6.612e-05
   6.612e-05   1.861e-07
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.701245     +/-  0.247758     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.78167E-03  +/-  4.31385E-04  
________________________________________________________________________


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

Test statistic : Chi-Squared =          45.25 using 59 PHA bins.
 Reduced chi-squared =         0.7938 for     57 degrees of freedom 
 Null hypothesis probability =   8.693944e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
45.2462      0.00375394   -3      0.700784    0.00278116
==============================
 Variances and Principal Axes
                 1        3  
 6.1519E-02| -1.0000  -0.0011  
 1.1461E-07|  0.0011  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.152e-02   6.645e-05
   6.645e-05   1.864e-07
------------------------

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.700784     +/-  0.248029     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.78116E-03  +/-  4.31736E-04  
________________________________________________________________________


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

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

XSPEC version: 12.9.0c

Sat Jan  9 13:55:17 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93094E-02


Current model list:

========================================================================
Model npow<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   npow       PhoIndex            0.700784     +/-  0.248029     
   2    1   npow       enorm      keV      50.0000      frozen
   3    1   npow       norm                2.78116E-03  +/-  4.31736E-04  
________________________________________________________________________

   Using energies from responses.

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

Test statistic : Chi-Squared =          45.25 using 59 PHA bins.
 Reduced chi-squared =         0.7938 for     57 degrees of freedom 
 Null hypothesis probability =   8.693945e-01
 Weighting method: standard
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1     0.198427      1.11535    (-0.502285,0.414635)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3   0.00199582    0.0034861    (-0.000785249,0.000705023)
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 =         168.17 using 59 PHA bins.

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         3.0031 for     56 degrees of freedom 
 Null hypothesis probability =   3.778261e-13
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         2.9504 for     57 degrees of freedom 
 Null hypothesis probability =   6.633032e-13
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
49.4074      99.3581      -3      0.443610       1.20878
45.4891      4.29386      -4      0.474765      0.776372
45.2475      3.31382      -5      0.505764      0.709608
45.2462      0.136646     -6      0.507594      0.702071
==============================
 Variances and Principal Axes
                 3        4  
 3.7523E-03| -0.9928  -0.1197  
 6.2215E-02|  0.1197  -0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.590e-03  -6.949e-03
  -6.949e-03   6.138e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00935561   -3      0.507736      0.700915
==============================
 Variances and Principal Axes
                 3        4  
 3.7638E-03| -0.9926  -0.1212  
 6.2345E-02|  0.1212  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.624e-03  -7.048e-03
  -7.048e-03   6.148e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00146303   -3      0.507757      0.700734
==============================
 Variances and Principal Axes
                 3        4  
 3.7656E-03| -0.9926  -0.1214  
 6.2400E-02|  0.1214  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.630e-03  -7.065e-03
  -7.065e-03   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:18 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93090E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.398755     0.631269    (-0.109006,0.123508)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502277,0.414644)

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         3.0031 for     56 degrees of freedom 
 Null hypothesis probability =   3.778261e-13
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         2.9504 for     57 degrees of freedom 
 Null hypothesis probability =   6.633032e-13
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
49.4074      99.3581      -3      0.443610       1.20878
45.4891      4.29386      -4      0.474765      0.776372
45.2475      3.31382      -5      0.505764      0.709608
45.2462      0.136646     -6      0.507594      0.702071
==============================
 Variances and Principal Axes
                 3        4  
 3.7523E-03| -0.9928  -0.1197  
 6.2215E-02|  0.1197  -0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.590e-03  -6.949e-03
  -6.949e-03   6.138e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00935561   -3      0.507736      0.700915
==============================
 Variances and Principal Axes
                 3        4  
 3.7638E-03| -0.9926  -0.1212  
 6.2345E-02|  0.1212  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.624e-03  -7.048e-03
  -7.048e-03   6.148e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00146303   -3      0.507757      0.700734
==============================
 Variances and Principal Axes
                 3        4  
 3.7656E-03| -0.9926  -0.1214  
 6.2400E-02|  0.1214  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.630e-03  -7.065e-03
  -7.065e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      61.6158      -3      0.321705      0.701186
45.2462      0.0693881    -4      0.321452      0.700774
==============================
 Variances and Principal Axes
                 3        4  
 1.5155E-03| -0.9948   0.1017  
 6.2068E-02| -0.1017  -0.9948  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.142e-03   6.129e-03
   6.129e-03   6.144e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00051781   -3      0.321445      0.700711
==============================
 Variances and Principal Axes
                 3        4  
 1.5151E-03| -0.9948   0.1017  
 6.2168E-02| -0.1017  -0.9948  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.142e-03   6.135e-03
   6.135e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      7.86438e-05  -3      0.321444      0.700701
==============================
 Variances and Principal Axes
                 3        4  
 1.5150E-03| -0.9948   0.1017  
 6.2171E-02| -0.1017  -0.9948  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.142e-03   6.135e-03
   6.135e-03   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:18 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93087E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.244274     0.400159    (-0.0771701,0.0787142)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502274,0.414647)

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         3.0031 for     56 degrees of freedom 
 Null hypothesis probability =   3.778261e-13
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         2.9504 for     57 degrees of freedom 
 Null hypothesis probability =   6.633032e-13
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
49.4074      99.3581      -3      0.443610       1.20878
45.4891      4.29386      -4      0.474765      0.776372
45.2475      3.31382      -5      0.505764      0.709608
45.2462      0.136646     -6      0.507594      0.702071
==============================
 Variances and Principal Axes
                 3        4  
 3.7523E-03| -0.9928  -0.1197  
 6.2215E-02|  0.1197  -0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.590e-03  -6.949e-03
  -6.949e-03   6.138e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00935561   -3      0.507736      0.700915
==============================
 Variances and Principal Axes
                 3        4  
 3.7638E-03| -0.9926  -0.1212  
 6.2345E-02|  0.1212  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.624e-03  -7.048e-03
  -7.048e-03   6.148e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00146303   -3      0.507757      0.700734
==============================
 Variances and Principal Axes
                 3        4  
 3.7656E-03| -0.9926  -0.1214  
 6.2400E-02|  0.1214  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.630e-03  -7.065e-03
  -7.065e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =        4906.25 using 59 PHA bins.
 Reduced chi-squared =        86.0745 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
45.5135      6457.83      -3     0.0572658      0.705595
45.2462      39.5097      -4     0.0535847      0.701737
45.2462      0.208293     -5     0.0535395      0.700855
==============================
 Variances and Principal Axes
                 3        4  
 4.2342E-05| -0.9975   0.0711  
 6.1845E-02| -0.0711  -0.9975  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.552e-04   4.386e-03
   4.386e-03   6.153e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00112252   -3     0.0535300      0.700721
==============================
 Variances and Principal Axes
                 3        4  
 4.2243E-05| -0.9975   0.0711  
 6.1845E-02| -0.0711  -0.9975  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.548e-04   4.384e-03
   4.384e-03   6.153e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.000216401  -1     0.0535294      0.700712
==============================
 Variances and Principal Axes
                 3        4  
 4.2228E-05| -0.9975   0.0711  
 6.1851E-02| -0.0711  -0.9975  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.547e-04   4.384e-03
   4.384e-03   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:18 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93088E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0248375    0.0908601    (-0.0286918,0.0373308)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502286,0.414636)

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         3.0031 for     56 degrees of freedom 
 Null hypothesis probability =   3.778261e-13
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         2.9504 for     57 degrees of freedom 
 Null hypothesis probability =   6.633032e-13
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
49.4074      99.3581      -3      0.443610       1.20878
45.4891      4.29386      -4      0.474765      0.776372
45.2475      3.31382      -5      0.505764      0.709608
45.2462      0.136646     -6      0.507594      0.702071
==============================
 Variances and Principal Axes
                 3        4  
 3.7523E-03| -0.9928  -0.1197  
 6.2215E-02|  0.1197  -0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.590e-03  -6.949e-03
  -6.949e-03   6.138e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00935561   -3      0.507736      0.700915
==============================
 Variances and Principal Axes
                 3        4  
 3.7638E-03| -0.9926  -0.1212  
 6.2345E-02|  0.1212  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.624e-03  -7.048e-03
  -7.048e-03   6.148e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00146303   -3      0.507757      0.700734
==============================
 Variances and Principal Axes
                 3        4  
 3.7656E-03| -0.9926  -0.1214  
 6.2400E-02|  0.1214  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.630e-03  -7.065e-03
  -7.065e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =        1622.44 using 59 PHA bins.
 Reduced chi-squared =        28.4638 for     57 degrees of freedom 
 Null hypothesis probability =  8.908040e-302
 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
45.2584      1996.81      -3     0.0883699      0.703203
45.2462      5.20596      -4     0.0870665      0.701118
45.2462      0.00826584   -5     0.0870458      0.700762
==============================
 Variances and Principal Axes
                 3        4  
 1.1184E-04| -0.9980   0.0629  
 6.1770E-02| -0.0629  -0.9980  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.561e-04   3.873e-03
   3.873e-03   6.153e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.000445791  -2     0.0870425      0.700710
==============================
 Variances and Principal Axes
                 3        4  
 1.1179E-04| -0.9980   0.0629  
 6.1784E-02| -0.0629  -0.9980  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.561e-04   3.874e-03
   3.874e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.000160178  -3     0.0870418      0.700699
==============================
 Variances and Principal Axes
                 3        4  
 1.1178E-04| -0.9980   0.0629  
 6.1786E-02| -0.0629  -0.9980  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.561e-04   3.874e-03
   3.874e-03   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:19 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93087E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0540777     0.119397    (-0.032964,0.0323552)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502271,0.414651)

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         3.0031 for     56 degrees of freedom 
 Null hypothesis probability =   3.778261e-13
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         2.9504 for     57 degrees of freedom 
 Null hypothesis probability =   6.633032e-13
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
49.4074      99.3581      -3      0.443610       1.20878
45.4891      4.29386      -4      0.474765      0.776372
45.2475      3.31382      -5      0.505764      0.709608
45.2462      0.136646     -6      0.507594      0.702071
==============================
 Variances and Principal Axes
                 3        4  
 3.7523E-03| -0.9928  -0.1197  
 6.2215E-02|  0.1197  -0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.590e-03  -6.949e-03
  -6.949e-03   6.138e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00935561   -3      0.507736      0.700915
==============================
 Variances and Principal Axes
                 3        4  
 3.7638E-03| -0.9926  -0.1212  
 6.2345E-02|  0.1212  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.624e-03  -7.048e-03
  -7.048e-03   6.148e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00146303   -3      0.507757      0.700734
==============================
 Variances and Principal Axes
                 3        4  
 3.7656E-03| -0.9926  -0.1214  
 6.2400E-02|  0.1214  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.630e-03  -7.065e-03
  -7.065e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

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

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =         989.85 using 59 PHA bins.
 Reduced chi-squared =         17.366 for     57 degrees of freedom 
 Null hypothesis probability =  2.650170e-170
 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
45.2471      1178.98      -3      0.107512      0.700827
45.2462      1.18093      -4      0.107111      0.700719
==============================
 Variances and Principal Axes
                 3        4  
 1.6993E-04| -1.0000   0.0032  
 6.1080E-02| -0.0032  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.706e-04   1.972e-04
   1.972e-04   6.108e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.000180405  -3      0.107110      0.700702
==============================
 Variances and Principal Axes
                 3        4  
 1.6993E-04| -1.0000   0.0032  
 6.1543E-02| -0.0032  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.706e-04   1.983e-04
   1.983e-04   6.154e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      2.20891e-05  -3      0.107110      0.700700
==============================
 Variances and Principal Axes
                 3        4  
 1.6993E-04| -1.0000   0.0032  
 6.1544E-02| -0.0032  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.706e-04   1.984e-04
   1.984e-04   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:19 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93087E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0856154     0.128593    (-0.0214951,0.0214821)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502274,0.414648)

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         3.0031 for     56 degrees of freedom 
 Null hypothesis probability =   3.778261e-13
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         2.9504 for     57 degrees of freedom 
 Null hypothesis probability =   6.633032e-13
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
49.4074      99.3581      -3      0.443610       1.20878
45.4891      4.29386      -4      0.474765      0.776372
45.2475      3.31382      -5      0.505764      0.709608
45.2462      0.136646     -6      0.507594      0.702071
==============================
 Variances and Principal Axes
                 3        4  
 3.7523E-03| -0.9928  -0.1197  
 6.2215E-02|  0.1197  -0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.590e-03  -6.949e-03
  -6.949e-03   6.138e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00935561   -3      0.507736      0.700915
==============================
 Variances and Principal Axes
                 3        4  
 3.7638E-03| -0.9926  -0.1212  
 6.2345E-02|  0.1212  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.624e-03  -7.048e-03
  -7.048e-03   6.148e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00146303   -3      0.507757      0.700734
==============================
 Variances and Principal Axes
                 3        4  
 3.7656E-03| -0.9926  -0.1214  
 6.2400E-02|  0.1214  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.630e-03  -7.065e-03
  -7.065e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         106.48 using 59 PHA bins.
 Reduced chi-squared =         1.8681 for     57 degrees of freedom 
 Null hypothesis probability =   7.780834e-05
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =        2382.42 using 59 PHA bins.
 Reduced chi-squared =        41.7968 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
45.2548      2781.91      -3     0.0746660      0.698922
45.2462      5.17672      -4     0.0737741      0.700407
==============================
 Variances and Principal Axes
                 3        4  
 8.0622E-05| -0.9993  -0.0381  
 6.0340E-02|  0.0381  -0.9993  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.683e-04  -2.296e-03
  -2.296e-03   6.025e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00402481   -3     0.0737653      0.700656
==============================
 Variances and Principal Axes
                 3        4  
 8.0502E-05| -0.9993  -0.0377  
 6.1644E-02|  0.0377  -0.9993  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.682e-04  -2.322e-03
  -2.322e-03   6.156e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.000320051  -2     0.0737639      0.700694
==============================
 Variances and Principal Axes
                 3        4  
 8.0481E-05| -0.9993  -0.0377  
 6.1632E-02|  0.0377  -0.9993  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.682e-04  -2.321e-03
  -2.321e-03   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:20 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93086E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3    0.0522459    0.0966446    (-0.0215179,0.0228808)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502267,0.414654)

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         3.0031 for     56 degrees of freedom 
 Null hypothesis probability =   3.778261e-13
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =         168.17 using 59 PHA bins.
 Reduced chi-squared =         2.9504 for     57 degrees of freedom 
 Null hypothesis probability =   6.633032e-13
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
49.4074      99.3581      -3      0.443610       1.20878
45.4891      4.29386      -4      0.474765      0.776372
45.2475      3.31382      -5      0.505764      0.709608
45.2462      0.136646     -6      0.507594      0.702071
==============================
 Variances and Principal Axes
                 3        4  
 3.7523E-03| -0.9928  -0.1197  
 6.2215E-02|  0.1197  -0.9928  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.590e-03  -6.949e-03
  -6.949e-03   6.138e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00935561   -3      0.507736      0.700915
==============================
 Variances and Principal Axes
                 3        4  
 3.7638E-03| -0.9926  -0.1212  
 6.2345E-02|  0.1212  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.624e-03  -7.048e-03
  -7.048e-03   6.148e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00146303   -3      0.507757      0.700734
==============================
 Variances and Principal Axes
                 3        4  
 3.7656E-03| -0.9926  -0.1214  
 6.2400E-02|  0.1214  -0.9926  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.630e-03  -7.065e-03
  -7.065e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         106.48 using 59 PHA bins.
 Reduced chi-squared =         1.8681 for     57 degrees of freedom 
 Null hypothesis probability =   7.780834e-05
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

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

Test statistic : Chi-Squared =         106.48 using 59 PHA bins.
 Reduced chi-squared =         1.8681 for     57 degrees of freedom 
 Null hypothesis probability =   7.780834e-05
 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
45.2467      137.795      -3      0.261284      0.698775
45.2462      0.364772     -4      0.260155      0.700400
==============================
 Variances and Principal Axes
                 3        4  
 9.4416E-04| -0.9685  -0.2491  
 6.5282E-02|  0.2491  -0.9685  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.936e-03  -1.552e-02
  -1.552e-02   6.129e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.00234248   -3      0.260092      0.700654
==============================
 Variances and Principal Axes
                 3        4  
 9.4162E-04| -0.9687  -0.2482  
 6.5533E-02|  0.2482  -0.9687  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.921e-03  -1.553e-02
  -1.553e-02   6.155e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
45.2462      0.000340275   2      0.260092      0.700654
==============================
 Variances and Principal Axes
                 3        4  
 9.4117E-04| -0.9687  -0.2482  
 6.5519E-02|  0.2482  -0.9687  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.919e-03  -1.553e-02
  -1.553e-02   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:20 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93083E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     0.157204     0.414511    (-0.102889,0.154418)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198426      1.11535    (-0.502228,0.414693)

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.635 for     56 degrees of freedom 
 Null hypothesis probability =   1.898123e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.607 for     57 degrees of freedom 
 Null hypothesis probability =   2.494992e-03
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
82.5625      11.2077       0      -7.85539       1.66413
61.2214      14.0535       0      -7.45319       1.67711
48.9295      7.25732      -1      -7.19135       1.05222
45.2573      10.5217      -2      -6.98620      0.728981
45.2465      0.22461      -3      -6.97788      0.705322
45.2462      0.0299444    -4      -6.97639      0.701421
==============================
 Variances and Principal Axes
                 3        4  
 2.4348E-03| -0.9351  -0.3544  
 6.9810E-02|  0.3544  -0.9351  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.090e-02  -2.233e-02
  -2.233e-02   6.135e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00464583   -3      -6.97617      0.700819
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 6.9985E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.237e-02
  -2.237e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000740116  -3      -6.97613      0.700723
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 7.0013E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.238e-02
  -2.238e-02   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:20 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93088E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.16412     -6.78831    (-0.187997,0.18781)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502277,0.414644)

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.635 for     56 degrees of freedom 
 Null hypothesis probability =   1.898123e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.607 for     57 degrees of freedom 
 Null hypothesis probability =   2.494992e-03
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
82.5625      11.2077       0      -7.85539       1.66413
61.2214      14.0535       0      -7.45319       1.67711
48.9295      7.25732      -1      -7.19135       1.05222
45.2573      10.5217      -2      -6.98620      0.728981
45.2465      0.22461      -3      -6.97788      0.705322
45.2462      0.0299444    -4      -6.97639      0.701421
==============================
 Variances and Principal Axes
                 3        4  
 2.4348E-03| -0.9351  -0.3544  
 6.9810E-02|  0.3544  -0.9351  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.090e-02  -2.233e-02
  -2.233e-02   6.135e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00464583   -3      -6.97617      0.700819
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 6.9985E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.237e-02
  -2.237e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000740116  -3      -6.97613      0.700723
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 7.0013E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.238e-02
  -2.238e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =         346.65 using 59 PHA bins.
 Reduced chi-squared =         6.0816 for     57 degrees of freedom 
 Null hypothesis probability =   4.078036e-43
 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
68.3259      513.621      -3      -7.26935      0.700542
45.89        72.3803      -4      -7.42883      0.700617
45.2476      8.37577      -5      -7.46728      0.700681
45.2462      0.365313     -6      -7.46928      0.700697
==============================
 Variances and Principal Axes
                 3        4  
 2.7387E-03| -0.9996  -0.0281  
 6.1022E-02|  0.0281  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.785e-03  -1.635e-03
  -1.635e-03   6.098e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00261814   -1      -7.46929      0.700699
==============================
 Variances and Principal Axes
                 3        4  
 2.7640E-03| -0.9996  -0.0281  
 6.1586E-02|  0.0281  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.810e-03  -1.650e-03
  -1.650e-03   6.154e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000250868   0      -7.46929      0.700699
==============================
 Variances and Principal Axes
                 3        4  
 2.7642E-03| -0.9996  -0.0281  
 6.1590E-02|  0.0281  -0.9996  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.811e-03  -1.650e-03
  -1.650e-03   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:21 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93088E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.56734     -7.38943    (-0.0980434,0.0798679)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502273,0.414649)

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.635 for     56 degrees of freedom 
 Null hypothesis probability =   1.898123e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.607 for     57 degrees of freedom 
 Null hypothesis probability =   2.494992e-03
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
82.5625      11.2077       0      -7.85539       1.66413
61.2214      14.0535       0      -7.45319       1.67711
48.9295      7.25732      -1      -7.19135       1.05222
45.2573      10.5217      -2      -6.98620      0.728981
45.2465      0.22461      -3      -6.97788      0.705322
45.2462      0.0299444    -4      -6.97639      0.701421
==============================
 Variances and Principal Axes
                 3        4  
 2.4348E-03| -0.9351  -0.3544  
 6.9810E-02|  0.3544  -0.9351  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.090e-02  -2.233e-02
  -2.233e-02   6.135e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00464583   -3      -6.97617      0.700819
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 6.9985E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.237e-02
  -2.237e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000740116  -3      -6.97613      0.700723
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 7.0013E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.238e-02
  -2.238e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =       255566.8 using 59 PHA bins.
 Reduced chi-squared =       4483.628 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
34199.3      345027       -3      -7.39824      0.705989
4431.78      47393.1      -4      -7.81182      0.706316
552.118      6553.2       -5      -8.19637      0.705840
89.0458      919.897      -6      -8.51332      0.704681
46.9528      130.583      -7      -8.70688      0.702815
45.2549      16.548       -8      -8.76694      0.701269
45.2462      1.03068      -9      -8.77205      0.700789
==============================
 Variances and Principal Axes
                 3        4  
 2.0261E-03| -0.8634   0.5045  
 7.9979E-02| -0.5045  -0.8634  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.187e-02   3.396e-02
   3.396e-02   6.014e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.0126248    -3      -8.77216      0.700711
==============================
 Variances and Principal Axes
                 3        4  
 2.0716E-03| -0.8634   0.5046  
 8.1820E-02| -0.5046  -0.8634  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.237e-02   3.474e-02
   3.474e-02   6.152e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000154605  -3      -8.77217      0.700696
==============================
 Variances and Principal Axes
                 3        4  
 2.0721E-03| -0.8634   0.5046  
 8.1849E-02| -0.5046  -0.8634  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.238e-02   3.475e-02
   3.475e-02   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:22 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93086E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -9.10131     -8.54601    (-0.329146,0.226159)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502268,0.414653)

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.635 for     56 degrees of freedom 
 Null hypothesis probability =   1.898123e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.607 for     57 degrees of freedom 
 Null hypothesis probability =   2.494992e-03
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
82.5625      11.2077       0      -7.85539       1.66413
61.2214      14.0535       0      -7.45319       1.67711
48.9295      7.25732      -1      -7.19135       1.05222
45.2573      10.5217      -2      -6.98620      0.728981
45.2465      0.22461      -3      -6.97788      0.705322
45.2462      0.0299444    -4      -6.97639      0.701421
==============================
 Variances and Principal Axes
                 3        4  
 2.4348E-03| -0.9351  -0.3544  
 6.9810E-02|  0.3544  -0.9351  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.090e-02  -2.233e-02
  -2.233e-02   6.135e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00464583   -3      -6.97617      0.700819
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 6.9985E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.237e-02
  -2.237e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000740116  -3      -6.97613      0.700723
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 7.0013E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.238e-02
  -2.238e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =       26398.30 using 59 PHA bins.
 Reduced chi-squared =       463.1281 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
3403.95      33383.5      -3      -7.38653      0.703410
424.069      4625.37      -4      -7.76504      0.703373
75.9034      650.089      -5      -8.06898      0.702722
46.2465      91.9255      -6      -8.24312      0.701701
45.2495      11.1295      -7      -8.29019      0.700944
45.2462      0.576589     -8      -8.29326      0.700736
==============================
 Variances and Principal Axes
                 3        4  
 2.4949E-03| -0.9557   0.2942  
 6.6188E-02| -0.2942  -0.9557  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.007e-03   1.791e-02
   1.791e-02   6.068e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00543765   -3      -8.29330      0.700704
==============================
 Variances and Principal Axes
                 3        4  
 2.5297E-03| -0.9557   0.2942  
 6.7125E-02| -0.2942  -0.9557  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.122e-03   1.816e-02
   1.816e-02   6.153e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      6.03628e-05   0      -8.29330      0.700704
==============================
 Variances and Principal Axes
                 3        4  
 2.5300E-03| -0.9557   0.2942  
 6.7136E-02| -0.2942  -0.9557  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.123e-03   1.817e-02
   1.817e-02   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:23 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93087E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -8.49221      -8.1613    (-0.19891,0.132003)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502278,0.414644)

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.635 for     56 degrees of freedom 
 Null hypothesis probability =   1.898123e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.607 for     57 degrees of freedom 
 Null hypothesis probability =   2.494992e-03
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
82.5625      11.2077       0      -7.85539       1.66413
61.2214      14.0535       0      -7.45319       1.67711
48.9295      7.25732      -1      -7.19135       1.05222
45.2573      10.5217      -2      -6.98620      0.728981
45.2465      0.22461      -3      -6.97788      0.705322
45.2462      0.0299444    -4      -6.97639      0.701421
==============================
 Variances and Principal Axes
                 3        4  
 2.4348E-03| -0.9351  -0.3544  
 6.9810E-02|  0.3544  -0.9351  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.090e-02  -2.233e-02
  -2.233e-02   6.135e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00464583   -3      -6.97617      0.700819
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 6.9985E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.237e-02
  -2.237e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000740116  -3      -6.97613      0.700723
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 7.0013E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.238e-02
  -2.238e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

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

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =        3776.44 using 59 PHA bins.
 Reduced chi-squared =        66.2533 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
470.456      4894.55      -3      -7.35691      0.700687
80.5122      687.892      -4      -7.66595      0.700687
46.4751      97.2827      -5      -7.84720      0.700693
45.2509      11.9669      -6      -7.89855      0.700698
45.2462      0.658924     -7      -7.90214      0.700700
==============================
 Variances and Principal Axes
                 3        4  
 2.7174E-03| -1.0000  -0.0042  
 6.0528E-02|  0.0042  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.718e-03  -2.422e-04
  -2.422e-04   6.053e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.0062616    -3      -7.90217      0.700700
==============================
 Variances and Principal Axes
                 3        4  
 2.7626E-03| -1.0000  -0.0042  
 6.1534E-02|  0.0042  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.764e-03  -2.463e-04
  -2.463e-04   6.153e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      4.09797e-05   0      -7.90217      0.700700
==============================
 Variances and Principal Axes
                 3        4  
 2.7630E-03| -1.0000  -0.0042  
 6.1544E-02|  0.0042  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.764e-03  -2.463e-04
  -2.463e-04   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:23 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93087E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.99922     -7.82297    (-0.0970542,0.0792002)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502273,0.414648)

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.635 for     56 degrees of freedom 
 Null hypothesis probability =   1.898123e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.607 for     57 degrees of freedom 
 Null hypothesis probability =   2.494992e-03
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
82.5625      11.2077       0      -7.85539       1.66413
61.2214      14.0535       0      -7.45319       1.67711
48.9295      7.25732      -1      -7.19135       1.05222
45.2573      10.5217      -2      -6.98620      0.728981
45.2465      0.22461      -3      -6.97788      0.705322
45.2462      0.0299444    -4      -6.97639      0.701421
==============================
 Variances and Principal Axes
                 3        4  
 2.4348E-03| -0.9351  -0.3544  
 6.9810E-02|  0.3544  -0.9351  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.090e-02  -2.233e-02
  -2.233e-02   6.135e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00464583   -3      -6.97617      0.700819
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 6.9985E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.237e-02
  -2.237e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000740116  -3      -6.97613      0.700723
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 7.0013E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.238e-02
  -2.238e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =        2657.15 using 59 PHA bins.
 Reduced chi-squared =        46.6166 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
333.007      3594.76      -3      -7.34787      0.698849
66.989       506.626      -4      -7.63911      0.699213
45.8353      71.2565      -5      -7.79571      0.700009
45.2474      8.18314      -6      -7.83274      0.700545
45.2462      0.349029     -7      -7.83464      0.700678
==============================
 Variances and Principal Axes
                 3        4  
 2.6001E-03| -0.9731  -0.2305  
 6.4295E-02|  0.2305  -0.9731  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.877e-03  -1.383e-02
  -1.383e-02   6.102e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00261867   -2      -7.83466      0.700697
==============================
 Variances and Principal Axes
                 3        4  
 2.6225E-03| -0.9731  -0.2305  
 6.4844E-02|  0.2305  -0.9731  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.928e-03  -1.395e-02
  -1.395e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      5.65258e-05   1      -7.83466      0.700697
==============================
 Variances and Principal Axes
                 3        4  
 2.6227E-03| -0.9731  -0.2305  
 6.4847E-02|  0.2305  -0.9731  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.928e-03  -1.396e-02
  -1.396e-02   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:23 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93087E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.98648     -7.71542    (-0.151819,0.119238)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.50227,0.414651)

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.635 for     56 degrees of freedom 
 Null hypothesis probability =   1.898123e-03
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =          91.57 using 59 PHA bins.
 Reduced chi-squared =          1.607 for     57 degrees of freedom 
 Null hypothesis probability =   2.494992e-03
 Current data and model not fit yet.

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
82.5625      11.2077       0      -7.85539       1.66413
61.2214      14.0535       0      -7.45319       1.67711
48.9295      7.25732      -1      -7.19135       1.05222
45.2573      10.5217      -2      -6.98620      0.728981
45.2465      0.22461      -3      -6.97788      0.705322
45.2462      0.0299444    -4      -6.97639      0.701421
==============================
 Variances and Principal Axes
                 3        4  
 2.4348E-03| -0.9351  -0.3544  
 6.9810E-02|  0.3544  -0.9351  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.090e-02  -2.233e-02
  -2.233e-02   6.135e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.00464583   -3      -6.97617      0.700819
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 6.9985E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.237e-02
  -2.237e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000740116  -3      -6.97613      0.700723
==============================
 Variances and Principal Axes
                 3        4  
 2.4345E-03| -0.9352  -0.3542  
 7.0013E-02|  0.3542  -0.9352  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.091e-02  -2.238e-02
  -2.238e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 350.0;

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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2738      23.6258      -3      -7.05468      0.699890
45.2462      1.77897      -4      -7.06356      0.700555
45.2462      0.0247381    -5      -7.06375      0.700681
==============================
 Variances and Principal Axes
                 3        4  
 2.2462E-03| -0.8977  -0.4406  
 7.5787E-02|  0.4406  -0.8977  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.652e-02  -2.909e-02
  -2.909e-02   6.151e-02
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      0.000174826  -3      -7.06376      0.700701
==============================
 Variances and Principal Axes
                 3        4  
 2.2475E-03| -0.8977  -0.4406  
 7.5825E-02|  0.4406  -0.8977  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.653e-02  -2.910e-02
  -2.910e-02   6.154e-02
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
45.2462      2.82045e-05  -3      -7.06376      0.700705
==============================
 Variances and Principal Axes
                 3        4  
 2.2475E-03| -0.8977  -0.4406  
 7.5824E-02|  0.4406  -0.8977  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.653e-02  -2.910e-02
  -2.910e-02   6.154e-02
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Sat Jan  9 13:55:24 2016
 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/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger352671/remake_spec_cflux/spec_T100/sw00352671000b_avg.rsp

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

 Spectral data counts: 0.372243
 Model predicted rate: 3.93087E-02


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      -7.3036     -6.83735    (-0.239844,0.226416)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4     0.198427      1.11535    (-0.502279,0.414643)

!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.700784     ( -0.502285   0.414635 )
Norm@50keV  : 2.78116E-03    ( -0.000785249   0.000705023 )
------------------------------------------------------------
#Fit statistic : Chi-Squared =          45.25 using 59 PHA bins.
# Reduced chi-squared =         0.7938 for     57 degrees of freedom 
# Null hypothesis probability =   8.693945e-01
 
Photon flux (15-150 keV)    in 9.049 sec: 0.321444 ( -0.07717  0.078715 ) ph/cm2/s
Energy fluence (15-150 keV)             : 3.07122e-07 ( -6.20688e-08  6.20004e-08 ) ergs/cm2