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/trigger436429/00436429000-results/pha/sw00436429000b_peak.pha

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

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

XSPEC12>model npow

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

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


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

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

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

Test statistic : Chi-Squared =         128.55 using 59 PHA bins.
 Reduced chi-squared =         2.2552 for     57 degrees of freedom 
 Null hypothesis probability =   1.918992e-07
 Current data and model not fit yet.
XSPEC12>fit
 renorm: no renormalization necessary
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
55.2903      88.8351      -3       1.06214     0.0826042
53.2772      287.501      -4       1.09730     0.0802475
53.2768      2.55946      -5       1.09641     0.0802228
==============================
 Variances and Principal Axes
                 1        3  
 2.1849E-03|  1.0000   0.0025  
 4.3916E-06| -0.0025   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.185e-03   5.501e-06
   5.501e-06   4.405e-06
------------------------

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


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

Test statistic : Chi-Squared =          53.28 using 59 PHA bins.
 Reduced chi-squared =         0.9347 for     57 degrees of freedom 
 Null hypothesis probability =   6.155339e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
53.2768      0.0110813    -3       1.09646     0.0802229
==============================
 Variances and Principal Axes
                 1        3  
 2.1862E-03|  1.0000   0.0026  
 4.3914E-06| -0.0026   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.186e-03   5.606e-06
   5.606e-06   4.406e-06
------------------------

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


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

Test statistic : Chi-Squared =          53.28 using 59 PHA bins.
 Reduced chi-squared =         0.9347 for     57 degrees of freedom 
 Null hypothesis probability =   6.155339e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
53.2768      0.000596634  -1       1.09646     0.0802229
==============================
 Variances and Principal Axes
                 1        3  
 2.1862E-03|  1.0000   0.0026  
 4.3914E-06| -0.0026   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.186e-03   5.600e-06
   5.600e-06   4.406e-06
------------------------

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


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

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

XSPEC version: 12.9.0c

Fri Dec 25 14:46:19 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Channels
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

Test statistic : Chi-Squared =          53.28 using 59 PHA bins.
 Reduced chi-squared =         0.9347 for     57 degrees of freedom 
 Null hypothesis probability =   6.155339e-01
 Weighting method: standard
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1      1.02143      1.17133    (-0.075028,0.0748746)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0767701    0.0836752    (-0.00345279,0.00345226)
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 =        1274.53 using 59 PHA bins.

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.7594 for     56 degrees of freedom 
 Null hypothesis probability =  8.670484e-230
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.3602 for     57 degrees of freedom 
 Null hypothesis probability =  4.158323e-229
 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
942.009      58.2415      -3       11.8232     -0.874203
703.724      90.0471      -1       5.65930       2.55654
676.993      88.2788      -2       9.05632    -0.0696629
513.946      134.181      -1       6.47592       2.15713
359.409      92.5288      -2       10.1311      0.395177
172.942      137.857      -3       9.56704       1.58498
66.1985      82.1755      -4       11.6647      0.990388
53.3913      37.1721      -5       12.1755       1.11175
53.2771      3.48132      -6       12.2394       1.09560
53.2768      0.21997      -7       12.2374       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.2468E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.243e-01  -6.945e-03
  -6.945e-03   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.0113674    -3       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000597683   0       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7930E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:19 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


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                12.2375      +/-  0.352436     
   4    2   npow       PhoIndex            1.09646      +/-  4.67588E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      11.6637      12.8179    (-0.573853,0.580372)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750249,0.0748778)

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.7594 for     56 degrees of freedom 
 Null hypothesis probability =  8.670484e-230
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.3602 for     57 degrees of freedom 
 Null hypothesis probability =  4.158323e-229
 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
942.009      58.2415      -3       11.8232     -0.874203
703.724      90.0471      -1       5.65930       2.55654
676.993      88.2788      -2       9.05632    -0.0696629
513.946      134.181      -1       6.47592       2.15713
359.409      92.5288      -2       10.1311      0.395177
172.942      137.857      -3       9.56704       1.58498
66.1985      82.1755      -4       11.6647      0.990388
53.3913      37.1721      -5       12.1755       1.11175
53.2771      3.48132      -6       12.2394       1.09560
53.2768      0.21997      -7       12.2374       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.2468E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.243e-01  -6.945e-03
  -6.945e-03   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.0113674    -3       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000597683   0       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7930E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =         199.21 using 59 PHA bins.
 Reduced chi-squared =         3.4949 for     57 degrees of freedom 
 Null hypothesis probability =   1.186006e-17
 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
53.2769      46.0027      -3       9.30524       1.09656
53.2768      0.025942     -4       9.30215       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 6.2219E-02|  0.9991   0.0430  
 2.0734E-03| -0.0430   0.9991  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.211e-02   2.587e-03
   2.587e-03   2.185e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.00128879    3       9.30215       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 6.2218E-02|  0.9991   0.0431  
 2.0748E-03| -0.0431   0.9991  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.211e-02   2.588e-03
   2.588e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.00128879    4       9.30215       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 6.2218E-02|  0.9991   0.0431  
 2.0748E-03| -0.0431   0.9991  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.211e-02   2.588e-03
   2.588e-03   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:20 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


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                9.30215      +/-  0.249212     
   4    2   npow       PhoIndex            1.09645      +/-  4.67581E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      8.89287      9.71171    (-0.409272,0.409566)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750231,0.0748795)

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.7594 for     56 degrees of freedom 
 Null hypothesis probability =  8.670484e-230
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.3602 for     57 degrees of freedom 
 Null hypothesis probability =  4.158323e-229
 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
942.009      58.2415      -3       11.8232     -0.874203
703.724      90.0471      -1       5.65930       2.55654
676.993      88.2788      -2       9.05632    -0.0696629
513.946      134.181      -1       6.47592       2.15713
359.409      92.5288      -2       10.1311      0.395177
172.942      137.857      -3       9.56704       1.58498
66.1985      82.1755      -4       11.6647      0.990388
53.3913      37.1721      -5       12.1755       1.11175
53.2771      3.48132      -6       12.2394       1.09560
53.2768      0.21997      -7       12.2374       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.2468E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.243e-01  -6.945e-03
  -6.945e-03   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.0113674    -3       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000597683   0       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7930E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =       29068.32 using 59 PHA bins.
 Reduced chi-squared =       509.9705 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
53.6341      17520.8      -3       2.28624       1.09901
53.2768      11.8593      -4       2.24533       1.09637
53.2768      0.0150826    -5       2.24563       1.09647
==============================
 Variances and Principal Axes
                 3        4  
 1.5795E-02|  0.9425   0.3341  
 4.7617E-04| -0.3341   0.9425  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.408e-02   4.824e-03
   4.824e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.00133433    0       2.24563       1.09647
==============================
 Variances and Principal Axes
                 3        4  
 1.5796E-02| -0.9425  -0.3341  
 4.7619E-04|  0.3341  -0.9425  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.409e-02   4.824e-03
   4.824e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.00122305    8       2.24563       1.09647
==============================
 Variances and Principal Axes
                 3        4  
 1.5796E-02| -0.9425  -0.3341  
 4.7619E-04|  0.3341  -0.9425  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.409e-02   4.824e-03
   4.824e-03   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:20 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      2.05735      2.43987    (-0.188285,0.194231)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750357,0.0748668)

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.7594 for     56 degrees of freedom 
 Null hypothesis probability =  8.670484e-230
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.3602 for     57 degrees of freedom 
 Null hypothesis probability =  4.158323e-229
 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
942.009      58.2415      -3       11.8232     -0.874203
703.724      90.0471      -1       5.65930       2.55654
676.993      88.2788      -2       9.05632    -0.0696629
513.946      134.181      -1       6.47592       2.15713
359.409      92.5288      -2       10.1311      0.395177
172.942      137.857      -3       9.56704       1.58498
66.1985      82.1755      -4       11.6647      0.990388
53.3913      37.1721      -5       12.1755       1.11175
53.2771      3.48132      -6       12.2394       1.09560
53.2768      0.21997      -7       12.2374       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.2468E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.243e-01  -6.945e-03
  -6.945e-03   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.0113674    -3       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000597683   0       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7930E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =       15590.76 using 59 PHA bins.
 Reduced chi-squared =       273.5220 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
53.3058      3970.8       -3       2.88904       1.09739
53.2768      1.51497      -4       2.87526       1.09641
53.2768      0.0108743    -5       2.87532       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 9.1179E-03|  0.9448   0.3276  
 1.3525E-03| -0.3276   0.9448  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.284e-03   2.404e-03
   2.404e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000625578   1       2.87532       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 9.1177E-03|  0.9448   0.3276  
 1.3526E-03| -0.3276   0.9448  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.284e-03   2.404e-03
   2.404e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000625593   1       2.87532       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 9.1177E-03|  0.9448   0.3276  
 1.3526E-03| -0.3276   0.9448  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.284e-03   2.404e-03
   2.404e-03   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:20 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      2.72644      3.02339    (-0.148885,0.14807)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750315,0.0748711)

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.7594 for     56 degrees of freedom 
 Null hypothesis probability =  8.670484e-230
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.3602 for     57 degrees of freedom 
 Null hypothesis probability =  4.158323e-229
 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
942.009      58.2415      -3       11.8232     -0.874203
703.724      90.0471      -1       5.65930       2.55654
676.993      88.2788      -2       9.05632    -0.0696629
513.946      134.181      -1       6.47592       2.15713
359.409      92.5288      -2       10.1311      0.395177
172.942      137.857      -3       9.56704       1.58498
66.1985      82.1755      -4       11.6647      0.990388
53.3913      37.1721      -5       12.1755       1.11175
53.2771      3.48132      -6       12.2394       1.09560
53.2768      0.21997      -7       12.2374       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.2468E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.243e-01  -6.945e-03
  -6.945e-03   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.0113674    -3       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000597683   0       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7930E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

Test statistic : Chi-Squared =         812.10 using 59 PHA bins.
 Reduced chi-squared =         14.247 for     57 degrees of freedom 
 Null hypothesis probability =  4.591062e-134
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =       18525.19 using 59 PHA bins.
 Reduced chi-squared =       325.0034 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
53.3054      3803.39      -3       2.70190       1.09568
53.2768      1.44985      -4       2.68938       1.09650
53.2768      0.00926312   -5       2.68942       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 7.1367E-03|  0.9381  -0.3462  
 1.5118E-03|  0.3462   0.9381  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.462e-03  -1.827e-03
  -1.827e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.00053083    1       2.68942       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 7.1365E-03|  0.9381  -0.3462  
 1.5119E-03|  0.3462   0.9381  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.462e-03  -1.827e-03
  -1.827e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000530779   1       2.68942       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 7.1365E-03| -0.9381   0.3462  
 1.5119E-03| -0.3462  -0.9381  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.462e-03  -1.827e-03
  -1.827e-03   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:21 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


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                2.68942      +/-  8.03880E-02  
   4    2   npow       PhoIndex            1.09646      +/-  4.67565E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      2.55765      2.82051    (-0.131764,0.131097)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750248,0.0748778)

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.7594 for     56 degrees of freedom 
 Null hypothesis probability =  8.670484e-230
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.3602 for     57 degrees of freedom 
 Null hypothesis probability =  4.158323e-229
 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
942.009      58.2415      -3       11.8232     -0.874203
703.724      90.0471      -1       5.65930       2.55654
676.993      88.2788      -2       9.05632    -0.0696629
513.946      134.181      -1       6.47592       2.15713
359.409      92.5288      -2       10.1311      0.395177
172.942      137.857      -3       9.56704       1.58498
66.1985      82.1755      -4       11.6647      0.990388
53.3913      37.1721      -5       12.1755       1.11175
53.2771      3.48132      -6       12.2394       1.09560
53.2768      0.21997      -7       12.2374       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.2468E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.243e-01  -6.945e-03
  -6.945e-03   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.0113674    -3       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000597683   0       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7930E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =       76092.82 using 59 PHA bins.
 Reduced chi-squared =       1334.962 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
53.996       37517        -3       1.52796       1.09405
53.2768      17.4404      -4       1.49165       1.09653
53.2768      0.0257831    -5       1.49181       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 6.8392E-03| -0.8558   0.5174  
 4.8536E-04| -0.5174  -0.8558  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.138e-03  -2.813e-03
  -2.813e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000918935  -2       1.49181       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 6.8392E-03| -0.8558   0.5173  
 4.8537E-04| -0.5173  -0.8558  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.139e-03  -2.813e-03
  -2.813e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      1.44408e-05  -1       1.49181       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 6.8392E-03| -0.8558   0.5174  
 4.8537E-04| -0.5174  -0.8558  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.139e-03  -2.813e-03
  -2.813e-03   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:21 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


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                1.49181      +/-  7.16841E-02  
   4    2   npow       PhoIndex            1.09646      +/-  4.67546E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      1.37743       1.6088    (-0.114379,0.116994)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750252,0.0748774)

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.7594 for     56 degrees of freedom 
 Null hypothesis probability =  8.670484e-230
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1274.53 using 59 PHA bins.
 Reduced chi-squared =        22.3602 for     57 degrees of freedom 
 Null hypothesis probability =  4.158323e-229
 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
942.009      58.2415      -3       11.8232     -0.874203
703.724      90.0471      -1       5.65930       2.55654
676.993      88.2788      -2       9.05632    -0.0696629
513.946      134.181      -1       6.47592       2.15713
359.409      92.5288      -2       10.1311      0.395177
172.942      137.857      -3       9.56704       1.58498
66.1985      82.1755      -4       11.6647      0.990388
53.3913      37.1721      -5       12.1755       1.11175
53.2771      3.48132      -6       12.2394       1.09560
53.2768      0.21997      -7       12.2374       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.2468E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.243e-01  -6.945e-03
  -6.945e-03   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.0113674    -3       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7931E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.000597683   0       12.2375       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2460E-01| -0.9984   0.0566  
 1.7930E-03| -0.0566  -0.9984  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.242e-01  -6.939e-03
  -6.939e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

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

!XSPEC12>newpar 2 350.0;

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

Test statistic : Chi-Squared =        4614.43 using 59 PHA bins.
 Reduced chi-squared =        80.9549 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
53.3628      4565.27      -3       4.47514       1.09388
53.2768      6.56168      -4       4.42642       1.09657
53.2768      0.00497034   -5       4.42724       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 8.4841E-02| -0.9890   0.1476  
 3.4448E-04| -0.1476  -0.9890  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.300e-02  -1.234e-02
  -1.234e-02   2.186e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      0.00147317   -3       4.42720       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 8.4860E-02| -0.9890   0.1476  
 3.4449E-04| -0.1476  -0.9890  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.302e-02  -1.234e-02
  -1.234e-02   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
53.2768      2.94167e-05  -3       4.42720       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 8.4859E-02| -0.9890   0.1476  
 3.4449E-04| -0.1476  -0.9890  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.302e-02  -1.234e-02
  -1.234e-02   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:22 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


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                4.42720      +/-  0.288128     
   4    2   npow       PhoIndex            1.09646      +/-  4.67526E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      3.97844      4.90593    (-0.448762,0.478726)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750239,0.0748786)

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.7291 for     56 degrees of freedom 
 Null hypothesis probability =  3.534090e-276
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.2602 for     57 degrees of freedom 
 Null hypothesis probability =  1.836577e-275
 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
1392.08      13.5345       1      -7.46882       2.32584
1087.67      72.0669       0      -6.94542       2.99648
751.929      184.932       0      -6.56551       2.33493
302.649      277.59       -1      -5.77831      0.758465
111.186      432.939      -2      -5.75627       1.32848
53.448       342.148      -3      -5.71934       1.11526
53.2773      5.10872      -4      -5.71100       1.09546
53.2768      0.355069     -5      -5.71142       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.0686E-04| -0.9099  -0.4148  
 2.6189E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.391e-04  -9.481e-04
  -9.481e-04   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0159868    -3      -5.71139       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000923974  -2      -5.71140       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:22 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


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      -5.71140     +/-  2.32173E-02  
   4    2   npow       PhoIndex            1.09646      +/-  4.67556E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -5.74941     -5.67432    (-0.0380163,0.037078)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750248,0.0748778)

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.7291 for     56 degrees of freedom 
 Null hypothesis probability =  3.534090e-276
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.2602 for     57 degrees of freedom 
 Null hypothesis probability =  1.836577e-275
 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
1392.08      13.5345       1      -7.46882       2.32584
1087.67      72.0669       0      -6.94542       2.99648
751.929      184.932       0      -6.56551       2.33493
302.649      277.59       -1      -5.77831      0.758465
111.186      432.939      -2      -5.75627       1.32848
53.448       342.148      -3      -5.71934       1.11526
53.2773      5.10872      -4      -5.71100       1.09546
53.2768      0.355069     -5      -5.71142       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.0686E-04| -0.9099  -0.4148  
 2.6189E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.391e-04  -9.481e-04
  -9.481e-04   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0159868    -3      -5.71139       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000923974  -2      -5.71140       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =        2585.09 using 59 PHA bins.
 Reduced chi-squared =        45.3524 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
198.189      5187.33      -3      -5.95702       1.09593
55.1325      704.991      -4      -6.06063       1.09633
53.2775      62.8587      -5      -6.07552       1.09646
53.2768      1.22278      -6      -6.07583       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2560E-04| -0.9913  -0.1313  
 2.2192E-03|  0.1313  -0.9913  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.617e-04  -2.726e-04
  -2.726e-04   2.183e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0044181    -2      -6.07583       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2578E-04| -0.9913  -0.1313  
 2.2224E-03|  0.1313  -0.9913  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.619e-04  -2.730e-04
  -2.730e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      3.03868e-05   0      -6.07583       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2578E-04| -0.9913  -0.1313  
 2.2224E-03|  0.1313  -0.9913  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.619e-04  -2.730e-04
  -2.730e-04   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:23 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.09719      -6.0554    (-0.0213644,0.0204247)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.075027,0.0748756)

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.7291 for     56 degrees of freedom 
 Null hypothesis probability =  3.534090e-276
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.2602 for     57 degrees of freedom 
 Null hypothesis probability =  1.836577e-275
 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
1392.08      13.5345       1      -7.46882       2.32584
1087.67      72.0669       0      -6.94542       2.99648
751.929      184.932       0      -6.56551       2.33493
302.649      277.59       -1      -5.77831      0.758465
111.186      432.939      -2      -5.75627       1.32848
53.448       342.148      -3      -5.71934       1.11526
53.2773      5.10872      -4      -5.71100       1.09546
53.2768      0.355069     -5      -5.71142       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.0686E-04| -0.9099  -0.4148  
 2.6189E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.391e-04  -9.481e-04
  -9.481e-04   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0159868    -3      -5.71139       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000923974  -2      -5.71140       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 15.0;

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

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

!XSPEC12>newpar 2 25.0;

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

Test statistic : Chi-Squared =   1.041102e+06 using 59 PHA bins.
 Reduced chi-squared =       18264.95 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
134744       1.35079e+06  -3      -6.12714       1.09940
15952.1      186028       -4      -6.51908       1.09939
1517.55      25930.4      -5      -6.85126       1.09869
121.304      3665.97      -6      -7.06795       1.09752
53.7955      480.404      -7      -7.14498       1.09660
53.2769      35.1651      -8      -7.15302       1.09646
53.2768      0.471089     -9      -7.15313       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0789E-04| -0.9163   0.4005  
 2.5816E-03| -0.4005  -0.9163  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.046e-04   9.078e-04
   9.078e-04   2.185e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.00211613   -1      -7.15313       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0794E-04| -0.9163   0.4005  
 2.5829E-03| -0.4005  -0.9163  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.049e-04   9.082e-04
   9.082e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000193891   0      -7.15313       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0794E-04| -0.9163   0.4005  
 2.5829E-03| -0.4005  -0.9163  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.049e-04   9.082e-04
   9.082e-04   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:24 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -7.19054      -7.1177    (-0.0374102,0.0354243)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750307,0.0748718)

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.7291 for     56 degrees of freedom 
 Null hypothesis probability =  3.534090e-276
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.2602 for     57 degrees of freedom 
 Null hypothesis probability =  1.836577e-275
 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
1392.08      13.5345       1      -7.46882       2.32584
1087.67      72.0669       0      -6.94542       2.99648
751.929      184.932       0      -6.56551       2.33493
302.649      277.59       -1      -5.77831      0.758465
111.186      432.939      -2      -5.75627       1.32848
53.448       342.148      -3      -5.71934       1.11526
53.2773      5.10872      -4      -5.71100       1.09546
53.2768      0.355069     -5      -5.71142       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.0686E-04| -0.9099  -0.4148  
 2.6189E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.391e-04  -9.481e-04
  -9.481e-04   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0159868    -3      -5.71139       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000923974  -2      -5.71140       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 25.0;

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

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

!XSPEC12>newpar 2 50.0;

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

Test statistic : Chi-Squared =       169172.8 using 59 PHA bins.
 Reduced chi-squared =       2967.944 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
20338.9      215781       -3      -6.10702       1.09746
1998.35      30053.6      -4      -6.44817       1.09732
154.23       4244.21      -5      -6.67987       1.09691
54.2924      567.368      -6      -6.76986       1.09653
53.2771      46.2683      -7      -6.78096       1.09646
53.2768      0.751366     -8      -6.78115       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2464E-04| -0.9879   0.1552  
 2.2351E-03| -0.1552  -0.9879  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.755e-04   3.237e-04
   3.237e-04   2.184e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.00314733   -3      -6.78115       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2475E-04| -0.9879   0.1552  
 2.2371E-03| -0.1552  -0.9879  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.757e-04   3.240e-04
   3.240e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      4.15709e-05   0      -6.78115       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2475E-04| -0.9879   0.1552  
 2.2371E-03| -0.1552  -0.9879  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.757e-04   3.240e-04
   3.240e-04   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:24 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3      -6.8035        -6.76    (-0.0223469,0.0211508)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750289,0.0748737)

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.7291 for     56 degrees of freedom 
 Null hypothesis probability =  3.534090e-276
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.2602 for     57 degrees of freedom 
 Null hypothesis probability =  1.836577e-275
 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
1392.08      13.5345       1      -7.46882       2.32584
1087.67      72.0669       0      -6.94542       2.99648
751.929      184.932       0      -6.56551       2.33493
302.649      277.59       -1      -5.77831      0.758465
111.186      432.939      -2      -5.75627       1.32848
53.448       342.148      -3      -5.71934       1.11526
53.2773      5.10872      -4      -5.71100       1.09546
53.2768      0.355069     -5      -5.71142       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.0686E-04| -0.9099  -0.4148  
 2.6189E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.391e-04  -9.481e-04
  -9.481e-04   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0159868    -3      -5.71139       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000923974  -2      -5.71140       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 50.0;

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

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

!XSPEC12>newpar 2 100.0;

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

Test statistic : Chi-Squared =       40864.16 using 59 PHA bins.
 Reduced chi-squared =       716.9152 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
4372.92      56692.3      -3      -6.07495       1.09552
346.422      7985.57      -4      -6.34851       1.09581
59.219       1108.48      -5      -6.48231       1.09628
53.2832      116.008      -6      -6.50824       1.09646
53.2768      3.58906      -7      -6.50915       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2418E-04| -0.9873  -0.1588  
 2.2302E-03|  0.1588  -0.9873  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.773e-04  -3.302e-04
  -3.302e-04   2.177e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0171225    -3      -6.50915       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2470E-04| -0.9873  -0.1588  
 2.2395E-03|  0.1588  -0.9873  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.780e-04  -3.316e-04
  -3.316e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      7.92447e-05  -3      -6.50915       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.2470E-04| -0.9873  -0.1588  
 2.2395E-03|  0.1588  -0.9873  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.780e-04  -3.316e-04
  -3.316e-04   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:25 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.53163     -6.48787    (-0.0224809,0.0212833)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750267,0.0748758)

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.7291 for     56 degrees of freedom 
 Null hypothesis probability =  3.534090e-276
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.2602 for     57 degrees of freedom 
 Null hypothesis probability =  1.836577e-275
 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
1392.08      13.5345       1      -7.46882       2.32584
1087.67      72.0669       0      -6.94542       2.99648
751.929      184.932       0      -6.56551       2.33493
302.649      277.59       -1      -5.77831      0.758465
111.186      432.939      -2      -5.75627       1.32848
53.448       342.148      -3      -5.71934       1.11526
53.2773      5.10872      -4      -5.71100       1.09546
53.2768      0.355069     -5      -5.71142       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.0686E-04| -0.9099  -0.4148  
 2.6189E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.391e-04  -9.481e-04
  -9.481e-04   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0159868    -3      -5.71139       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000923974  -2      -5.71140       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         276.31 using 59 PHA bins.
 Reduced chi-squared =         4.8476 for     57 degrees of freedom 
 Null hypothesis probability =   1.571085e-30
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0;

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

Test statistic : Chi-Squared =       46060.73 using 59 PHA bins.
 Reduced chi-squared =       808.0830 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
4991.14      66957.6      -3      -6.07759       1.09409
401.538      9420.63      -4      -6.35805       1.09479
61.1044      1312.72      -5      -6.50031       1.09596
53.2874      141.99       -6      -6.52996       1.09645
53.2768      4.88304      -7      -6.53113       1.09646
53.2768      0.0248616    -8      -6.53113       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.1093E-04| -0.9287  -0.3709  
 2.5170E-03|  0.3709  -0.9287  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.420e-04  -8.288e-04
  -8.288e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000205102  -3      -6.53113       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.1093E-04| -0.9287  -0.3709  
 2.5170E-03|  0.3709  -0.9287  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.420e-04  -8.288e-04
  -8.288e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000184288  -1      -6.53113       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.1093E-04| -0.9287  -0.3709  
 2.5170E-03|  0.3709  -0.9287  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.420e-04  -8.288e-04
  -8.288e-04   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:25 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10926


Current model list:

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

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -6.56614     -6.49798    (-0.0350078,0.0331518)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750252,0.0748774)

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.7291 for     56 degrees of freedom 
 Null hypothesis probability =  3.534090e-276
 Current data and model not fit yet.

!XSPEC12>freeze 6;

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

Test statistic : Chi-Squared =        1496.83 using 59 PHA bins.
 Reduced chi-squared =        26.2602 for     57 degrees of freedom 
 Null hypothesis probability =  1.836577e-275
 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
1392.08      13.5345       1      -7.46882       2.32584
1087.67      72.0669       0      -6.94542       2.99648
751.929      184.932       0      -6.56551       2.33493
302.649      277.59       -1      -5.77831      0.758465
111.186      432.939      -2      -5.75627       1.32848
53.448       342.148      -3      -5.71934       1.11526
53.2773      5.10872      -4      -5.71100       1.09546
53.2768      0.355069     -5      -5.71142       1.09651
==============================
 Variances and Principal Axes
                 3        4  
 1.0686E-04| -0.9099  -0.4148  
 2.6189E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.391e-04  -9.481e-04
  -9.481e-04   2.187e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0159868    -3      -5.71139       1.09645
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.000923974  -2      -5.71140       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 1.0684E-04| -0.9099  -0.4148  
 2.6183E-03|  0.4148  -0.9099  
------------------------------

========================
  Covariance Matrix
        1           2   
   5.390e-04  -9.480e-04
  -9.480e-04   2.186e-03
------------------------

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


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

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

!XSPEC12>newpar 1 100.0;

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

Test statistic : Chi-Squared =         276.31 using 59 PHA bins.
 Reduced chi-squared =         4.8476 for     57 degrees of freedom 
 Null hypothesis probability =   1.571085e-30
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0;

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

Test statistic : Chi-Squared =         276.31 using 59 PHA bins.
 Reduced chi-squared =         4.8476 for     57 degrees of freedom 
 Null hypothesis probability =   1.571085e-30
 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
57.1035      1073.8       -3      -5.83205       1.09521
53.2796      106.173      -4      -5.85384       1.09644
53.2768      2.7307       -5      -5.85444       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 9.2077E-05| -0.8444  -0.5357  
 3.0199E-03|  0.5357  -0.8444  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.323e-04  -1.324e-03
  -1.324e-03   2.180e-03
------------------------

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


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

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

!XSPEC12>fit;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0104623     1      -5.85444       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 9.2329E-05| -0.8444  -0.5357  
 3.0282E-03|  0.5357  -0.8444  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.349e-04  -1.328e-03
  -1.328e-03   2.186e-03
------------------------

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


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

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

!XSPEC12>fit 100;
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
53.2768      0.0103603     1      -5.85444       1.09646
==============================
 Variances and Principal Axes
                 3        4  
 9.2329E-05| -0.8444  -0.5357  
 3.0282E-03|  0.5357  -0.8444  
------------------------------

========================
  Covariance Matrix
        1           2   
   9.349e-04  -1.328e-03
  -1.328e-03   2.186e-03
------------------------

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


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

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

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

!XSPEC12>show;

XSPEC version: 12.9.0c

Fri Dec 25 14:46:25 2015
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /software/lheasoft/release/x86_64-unknown-linux-gnu-libc2.12/../spectral/modelData/
 Plot settings:
   Showing of individual additive components is OFF.
   Showing of background spectra is OFF.
   Effective area normalization is OFF.
   Current unit settings:
      Energy     = keV
      Wavelength = angstrom, with Y-Axis displayed per Hz
   X-Axis data display mode: Energy
   Spectra plots will be shifted to source frame by redshift value z: 0
   Device: /null
   Plotting of line IDs is OFF.
   Splashpage is ON.
   xlog for data plots is ON.
   ylog for data plots is OFF.

   Default plot rebin settings for all plot groups:
   Min. Signif.   Max. # Bins   Error Type
        0.00000             1         quad

 Responses read: 
   /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger436429/remake_spec_cflux/spec_1speak/sw00436429000b_1speak.rsp

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

 Spectral data counts: 1.11171
 Model predicted rate: 1.10927


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      -5.85444     +/-  3.05759E-02  
   4    2   npow       PhoIndex            1.09646      +/-  4.67514E-02  
   5    2   npow       enorm      keV      50.0000      frozen
   6    2   npow       norm                1.00000      frozen
________________________________________________________________________

   Using energies from responses.

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

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

!XSPEC12>error 3;
 Parameter   Confidence Range (2.706)
     3     -5.90472     -5.80607    (-0.0502778,0.0483744)

!XSPEC12>error 4;
 Parameter   Confidence Range (2.706)
     4      1.02143      1.17133    (-0.0750245,0.0748781)

!XSPEC12>log none;
Log file closed
logging switched off
XSPEC12>/*
XSPEC12>exit
 XSPEC: quit
 
 
Spectral model in power-law:
------------------------------------------------------------
Parameters  : value       lower 90%   higher 90%
Photon index: 1.09646     ( -0.075028   0.0748746 )
Norm@50keV  : 8.02229E-02    ( -0.00345279   0.00345226 )
------------------------------------------------------------
#Fit statistic : Chi-Squared =          53.28 using 59 PHA bins.
# Reduced chi-squared =         0.9347 for     57 degrees of freedom 
# Null hypothesis probability =   6.155339e-01
 
Photon flux (15-150 keV)    in 1 sec: 9.30215 ( -0.40928  0.40956 ) ph/cm2/s
Energy fluence (15-150 keV)             : 8.39789e-07 ( -4.03046e-08  4.04488e-08 ) ergs/cm2