XSPEC version: 12.13.0c
	Build Date/Time: Mon Dec 19 16:03:51 2022

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_reproc/trigger1150429/remake_spec_cflux/ 
spec_T100/sw01150429000b_avg.pha

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

XSPEC12>model npow

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

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


Fit statistic  : Chi-Squared              5.299365e+06     using 59 bins.

Test statistic : Chi-Squared              5.299365e+06     using 59 bins.
 Null hypothesis probability of 0.000000e+00 with 57 degrees of freedom
 Current data and model not fit yet.
XSPEC12>renorm

Fit statistic  : Chi-Squared                   46.18     using 59 bins.

Test statistic : Chi-Squared                   46.18     using 59 bins.
 Null hypothesis probability of 8.47e-01 with 57 degrees of freedom
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
30.3455      14.5202      -3       2.08853    0.00503451
29.7026      1085.68      -4       2.06112    0.00482100
29.7025      14.4604      -5       2.06195    0.00481528
==============================
 Variances and Principal Axes
                 1        3  
 1.3263E-07|  0.0023   1.0000  
 2.2461E-02|  1.0000  -0.0023  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.246e-02  -5.100e-05
  -5.100e-05   2.484e-07
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
29.7025      0.00152929   -3       2.06189    0.00481543
==============================
 Variances and Principal Axes
                 1        3  
 1.3253E-07|  0.0023   1.0000  
 2.2509E-02|  1.0000  -0.0023  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.251e-02  -5.110e-05
  -5.110e-05   2.485e-07
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl    1:PhoIndex        3:norm
29.7025      0.000125196  -3       2.06189    0.00481542
==============================
 Variances and Principal Axes
                 1        3  
 1.3254E-07|  0.0023   1.0000  
 2.2508E-02|  1.0000  -0.0023  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.251e-02  -5.109e-05
  -5.109e-05   2.485e-07
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
XSPEC12>log bat_spec.log
Logging to file:bat_spec.log
XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:53 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off

XSPEC12>error 1
 Parameter   Confidence Range (2.706)
     1       1.8317      2.30969    (-0.230193,0.2478)
XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3   0.00399873    0.0056097    (-0.000816691,0.000794275)
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                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.11e-01 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.48e-01 with 57 degrees of freedom
 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
30.8891      31.3823      -3      0.741329       1.96343
29.7115      7.54571      -4      0.784112       2.07558
29.7025      0.329048     -5      0.785682       2.06070
==============================
 Variances and Principal Axes
                 3        4  
 3.4960E-03|  0.9962   0.0870  
 2.2888E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.643e-03  -1.681e-03
  -1.681e-03   2.274e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.0291457    -3      0.785605       2.06200
==============================
 Variances and Principal Axes
                 3        4  
 3.5059E-03|  0.9962   0.0870  
 2.2643E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.651e-03  -1.659e-03
  -1.659e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00238112   -3      0.785613       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 3.5050E-03|  0.9962   0.0870  
 2.2660E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.650e-03  -1.660e-03
  -1.660e-03   2.252e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:53 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.686519     0.885169    (-0.0990933,0.0995563)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230198,0.247794)

!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                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.11e-01 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.48e-01 with 57 degrees of freedom
 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
30.8891      31.3823      -3      0.741329       1.96343
29.7115      7.54571      -4      0.784112       2.07558
29.7025      0.329048     -5      0.785682       2.06070
==============================
 Variances and Principal Axes
                 3        4  
 3.4960E-03|  0.9962   0.0870  
 2.2888E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.643e-03  -1.681e-03
  -1.681e-03   2.274e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.0291457    -3      0.785605       2.06200
==============================
 Variances and Principal Axes
                 3        4  
 3.5059E-03|  0.9962   0.0870  
 2.2643E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.651e-03  -1.659e-03
  -1.659e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00238112   -3      0.785613       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 3.5050E-03|  0.9962   0.0870  
 2.2660E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.650e-03  -1.660e-03
  -1.660e-03   2.252e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                   30.26     using 59 bins.

Test statistic : Chi-Squared                   30.26     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
 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
29.7025      6.62707      -3      0.743754       2.06190
29.7025      0.00662109   -4      0.743712       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 3.1612E-03|  1.0000  -0.0083  
 2.2511E-02|  0.0083   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.163e-03   1.614e-04
   1.614e-04   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      5.60187e-06   4      0.743712       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 3.1612E-03|  1.0000  -0.0083  
 2.2513E-02|  0.0083   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.163e-03   1.614e-04
   1.614e-04   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      5.60187e-06   6      0.743712       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 3.1612E-03|  1.0000  -0.0083  
 2.2513E-02|  0.0083   1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.163e-03   1.614e-04
   1.614e-04   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:54 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18662E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.651206     0.836221    (-0.0925069,0.0925081)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.2302,0.247792)

!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                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.11e-01 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.48e-01 with 57 degrees of freedom
 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
30.8891      31.3823      -3      0.741329       1.96343
29.7115      7.54571      -4      0.784112       2.07558
29.7025      0.329048     -5      0.785682       2.06070
==============================
 Variances and Principal Axes
                 3        4  
 3.4960E-03|  0.9962   0.0870  
 2.2888E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.643e-03  -1.681e-03
  -1.681e-03   2.274e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.0291457    -3      0.785605       2.06200
==============================
 Variances and Principal Axes
                 3        4  
 3.5059E-03|  0.9962   0.0870  
 2.2643E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.651e-03  -1.659e-03
  -1.659e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00238112   -3      0.785613       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 3.5050E-03|  0.9962   0.0870  
 2.2660E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.650e-03  -1.660e-03
  -1.660e-03   2.252e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                  327.28     using 59 bins.

Test statistic : Chi-Squared                  327.28     using 59 bins.
 Null hypothesis probability of 1.36e-39 with 57 degrees of freedom
 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
29.7033      359.538      -3      0.341835       2.06301
29.7025      0.52456      -4      0.340938       2.06182
==============================
 Variances and Principal Axes
                 3        4  
 6.4578E-04|  0.9849  -0.1732  
 2.3104E-02|  0.1732   0.9849  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.320e-03   3.832e-03
   3.832e-03   2.243e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00212442   -3      0.340955       2.06191
==============================
 Variances and Principal Axes
                 3        4  
 6.4506E-04|  0.9849  -0.1730  
 2.3178E-02|  0.1730   0.9849  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.319e-03   3.839e-03
   3.839e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.000175641  -2      0.340954       2.06191
==============================
 Variances and Principal Axes
                 3        4  
 6.4513E-04|  0.9849  -0.1730  
 2.3180E-02|  0.1730   0.9849  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.319e-03   3.839e-03
   3.839e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:54 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18662E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.283188      0.40021    (-0.0577656,0.0592559)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230208,0.247784)

!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                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.11e-01 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.48e-01 with 57 degrees of freedom
 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
30.8891      31.3823      -3      0.741329       1.96343
29.7115      7.54571      -4      0.784112       2.07558
29.7025      0.329048     -5      0.785682       2.06070
==============================
 Variances and Principal Axes
                 3        4  
 3.4960E-03|  0.9962   0.0870  
 2.2888E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.643e-03  -1.681e-03
  -1.681e-03   2.274e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.0291457    -3      0.785605       2.06200
==============================
 Variances and Principal Axes
                 3        4  
 3.5059E-03|  0.9962   0.0870  
 2.2643E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.651e-03  -1.659e-03
  -1.659e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00238112   -3      0.785613       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 3.5050E-03|  0.9962   0.0870  
 2.2660E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.650e-03  -1.660e-03
  -1.660e-03   2.252e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                  132.56     using 59 bins.

Test statistic : Chi-Squared                  132.56     using 59 bins.
 Null hypothesis probability of 5.88e-08 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                  865.36     using 59 bins.

Test statistic : Chi-Squared                  865.36     using 59 bins.
 Null hypothesis probability of 7.16e-145 with 57 degrees of freedom
 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
29.7033      776.831      -3      0.247175       2.06167
29.7025      0.788529     -4      0.246622       2.06192
==============================
 Variances and Principal Axes
                 3        4  
 3.4751E-04|  0.9998   0.0207  
 2.2416E-02| -0.0207   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.570e-04  -4.567e-04
  -4.567e-04   2.241e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.000449698  -3      0.246622       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 3.4750E-04|  0.9998   0.0207  
 2.2519E-02| -0.0207   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.570e-04  -4.585e-04
  -4.585e-04   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      3.68346e-05  -3      0.246622       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 3.4750E-04|  0.9998   0.0207  
 2.2519E-02| -0.0207   0.9998  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.570e-04  -4.584e-04
  -4.584e-04   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:54 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18662E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     0.215521     0.277638    (-0.0311016,0.0310155)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230199,0.247793)

!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                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.11e-01 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.48e-01 with 57 degrees of freedom
 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
30.8891      31.3823      -3      0.741329       1.96343
29.7115      7.54571      -4      0.784112       2.07558
29.7025      0.329048     -5      0.785682       2.06070
==============================
 Variances and Principal Axes
                 3        4  
 3.4960E-03|  0.9962   0.0870  
 2.2888E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.643e-03  -1.681e-03
  -1.681e-03   2.274e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.0291457    -3      0.785605       2.06200
==============================
 Variances and Principal Axes
                 3        4  
 3.5059E-03|  0.9962   0.0870  
 2.2643E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.651e-03  -1.659e-03
  -1.659e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00238112   -3      0.785613       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 3.5050E-03|  0.9962   0.0870  
 2.2660E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.650e-03  -1.660e-03
  -1.660e-03   2.252e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                 1569.80     using 59 bins.

Test statistic : Chi-Squared                 1569.80     using 59 bins.
 Null hypothesis probability of 9.67e-291 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                 5614.46     using 59 bins.

Test statistic : Chi-Squared                 5614.46     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 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
29.7528      4899.21      -3      0.120376       2.05931
29.7025      12.5362      -4      0.118121       2.06205
29.7025      0.0264318    -5      0.118141       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 7.9088E-05|  0.9958   0.0916  
 2.2699E-02| -0.0916   0.9958  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.688e-04  -2.063e-03
  -2.063e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.000324505   4      0.118141       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 7.9110E-05|  0.9958   0.0916  
 2.2695E-02| -0.0916   0.9958  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.688e-04  -2.063e-03
  -2.063e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.000324505   2      0.118141       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 7.9110E-05|  0.9958   0.0916  
 2.2695E-02| -0.0916   0.9958  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.688e-04  -2.063e-03
  -2.063e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:54 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0923459      0.14462    (-0.0257954,0.0264785)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230176,0.247818)

!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                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.11e-01 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.48e-01 with 57 degrees of freedom
 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
30.8891      31.3823      -3      0.741329       1.96343
29.7115      7.54571      -4      0.784112       2.07558
29.7025      0.329048     -5      0.785682       2.06070
==============================
 Variances and Principal Axes
                 3        4  
 3.4960E-03|  0.9962   0.0870  
 2.2888E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.643e-03  -1.681e-03
  -1.681e-03   2.274e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.0291457    -3      0.785605       2.06200
==============================
 Variances and Principal Axes
                 3        4  
 3.5059E-03|  0.9962   0.0870  
 2.2643E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.651e-03  -1.659e-03
  -1.659e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00238112   -3      0.785613       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 3.5050E-03|  0.9962   0.0870  
 2.2660E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.650e-03  -1.660e-03
  -1.660e-03   2.252e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                13678.49     using 59 bins.

Test statistic : Chi-Squared                13678.49     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                67752.41     using 59 bins.

Test statistic : Chi-Squared                67752.41     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 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
33.7029      66096.5      -3     0.0440399       2.05690
29.7026      346.322      -4     0.0379830       2.06150
29.7025      2.18364      -5     0.0379983       2.06191
==============================
 Variances and Principal Axes
                 3        4  
 8.2400E-06|  0.9987   0.0513  
 2.2592E-02| -0.0513   0.9987  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.774e-05  -1.158e-03
  -1.158e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.000952717  -3     0.0380000       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 8.2310E-06|  0.9987   0.0514  
 2.2555E-02| -0.0514   0.9987  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.770e-05  -1.156e-03
  -1.156e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      6.1938e-05    1     0.0380000       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 8.2317E-06|  0.9987   0.0514  
 2.2555E-02| -0.0514   0.9987  
------------------------------

========================
  Covariance Matrix
        1           2   
   6.771e-05  -1.156e-03
  -1.156e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:54 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0260341    0.0521395    (-0.0119659,0.0141395)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230179,0.247816)

!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                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.11e-01 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                   57.72     using 59 bins.

Test statistic : Chi-Squared                   57.72     using 59 bins.
 Null hypothesis probability of 4.48e-01 with 57 degrees of freedom
 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
30.8891      31.3823      -3      0.741329       1.96343
29.7115      7.54571      -4      0.784112       2.07558
29.7025      0.329048     -5      0.785682       2.06070
==============================
 Variances and Principal Axes
                 3        4  
 3.4960E-03|  0.9962   0.0870  
 2.2888E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.643e-03  -1.681e-03
  -1.681e-03   2.274e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.0291457    -3      0.785605       2.06200
==============================
 Variances and Principal Axes
                 3        4  
 3.5059E-03|  0.9962   0.0870  
 2.2643E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.651e-03  -1.659e-03
  -1.659e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.00238112   -3      0.785613       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 3.5050E-03|  0.9962   0.0870  
 2.2660E-02| -0.0870   0.9962  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.650e-03  -1.660e-03
  -1.660e-03   2.252e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                13678.49     using 59 bins.

Test statistic : Chi-Squared                13678.49     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                13678.49     using 59 bins.

Test statistic : Chi-Squared                13678.49     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 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
31.1692      15869        -3     0.0880407       2.05617
29.7026      100.273      -4     0.0798465       2.06176
29.7025      0.979114     -5     0.0799009       2.06188
==============================
 Variances and Principal Axes
                 3        4  
 3.5877E-05|  0.9913   0.1313  
 2.2922E-02| -0.1313   0.9913  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.304e-04  -2.979e-03
  -2.979e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.000417587  -3     0.0799022       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 3.5861E-05|  0.9913   0.1314  
 2.2883E-02| -0.1314   0.9913  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.303e-04  -2.976e-03
  -2.976e-03   2.249e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl        3:Flux    4:PhoIndex
29.7025      0.000302238  -1     0.0799022       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 3.5862E-05|  0.9913   0.1314  
 2.2883E-02| -0.1314   0.9913  
------------------------------

========================
  Covariance Matrix
        1           2   
   4.303e-04  -2.976e-03
  -2.976e-03   2.249e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:54 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3    0.0511248     0.117325    (-0.0287773,0.0374226)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230176,0.247819)

!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                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.06e-13 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.87e-13 with 57 degrees of freedom
 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
100.571      19.7923       0      -7.70435       2.18273
41.4773      48.8916       0      -7.39938       2.61360
31.5424      11.3683      -1      -7.30205       2.17081
29.7116      16.1189      -2      -7.22223       2.04888
29.7025      0.675752     -3      -7.22602       2.06290
==============================
 Variances and Principal Axes
                 3        4  
 9.5549E-04|  0.9412   0.3378  
 2.5201E-02| -0.3378   0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.721e-03  -7.708e-03
  -7.708e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0245909    -3      -7.22564       2.06181
==============================
 Variances and Principal Axes
                 3        4  
 9.5200E-04|  0.9418   0.3361  
 2.5276E-02| -0.3361   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.701e-03
  -7.701e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00250963   -3      -7.22567       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 9.5193E-04|  0.9418   0.3363  
 2.5261E-02| -0.3363   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.698e-03
  -7.698e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:54 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.32656     -7.13062    (-0.100894,0.0950508)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230189,0.247803)

!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                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.06e-13 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.87e-13 with 57 degrees of freedom
 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
100.571      19.7923       0      -7.70435       2.18273
41.4773      48.8916       0      -7.39938       2.61360
31.5424      11.3683      -1      -7.30205       2.17081
29.7116      16.1189      -2      -7.22223       2.04888
29.7025      0.675752     -3      -7.22602       2.06290
==============================
 Variances and Principal Axes
                 3        4  
 9.5549E-04|  0.9412   0.3378  
 2.5201E-02| -0.3378   0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.721e-03  -7.708e-03
  -7.708e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0245909    -3      -7.22564       2.06181
==============================
 Variances and Principal Axes
                 3        4  
 9.5200E-04|  0.9418   0.3361  
 2.5276E-02| -0.3361   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.701e-03
  -7.701e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00250963   -3      -7.22567       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 9.5193E-04|  0.9418   0.3363  
 2.5261E-02| -0.3363   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.698e-03
  -7.698e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                   49.17     using 59 bins.

Test statistic : Chi-Squared                   49.17     using 59 bins.
 Null hypothesis probability of 7.60e-01 with 57 degrees of freedom
 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
29.981       91.2941      -3      -7.33363       2.06151
29.7026      8.51495      -4      -7.35028       2.06190
29.7025      0.193621     -5      -7.35068       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 1.0348E-03|  0.9847   0.1745  
 2.3144E-02| -0.1745   0.9847  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.708e-03  -3.800e-03
  -3.800e-03   2.247e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00101191   -1      -7.35068       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 1.0367E-03|  0.9847   0.1745  
 2.3187E-02| -0.1745   0.9847  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.712e-03  -3.807e-03
  -3.807e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      9.05499e-05  -1      -7.35068       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 1.0367E-03|  0.9847   0.1745  
 2.3188E-02| -0.1745   0.9847  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.712e-03  -3.807e-03
  -3.807e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:55 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.42274     -7.28732    (-0.0720513,0.0633652)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230194,0.247798)

!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                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.06e-13 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.87e-13 with 57 degrees of freedom
 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
100.571      19.7923       0      -7.70435       2.18273
41.4773      48.8916       0      -7.39938       2.61360
31.5424      11.3683      -1      -7.30205       2.17081
29.7116      16.1189      -2      -7.22223       2.04888
29.7025      0.675752     -3      -7.22602       2.06290
==============================
 Variances and Principal Axes
                 3        4  
 9.5549E-04|  0.9412   0.3378  
 2.5201E-02| -0.3378   0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.721e-03  -7.708e-03
  -7.708e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0245909    -3      -7.22564       2.06181
==============================
 Variances and Principal Axes
                 3        4  
 9.5200E-04|  0.9418   0.3361  
 2.5276E-02| -0.3361   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.701e-03
  -7.701e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00250963   -3      -7.22567       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 9.5193E-04|  0.9418   0.3363  
 2.5261E-02| -0.3363   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.698e-03
  -7.698e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 15.0

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 25.0

Fit statistic  : Chi-Squared                 3879.99     using 59 bins.

Test statistic : Chi-Squared                 3879.99     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 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
427.232      5517.05      -3      -7.58133       2.06344
54.7976      781.294      -4      -7.84118       2.06289
30.1247      107.976      -5      -7.95999       2.06212
29.7028      10.6596      -6      -7.98026       2.06190
29.7025      0.28893      -7      -7.98086       2.06191
==============================
 Variances and Principal Axes
                 3        4  
 1.0175E-03|  0.9773  -0.2116  
 2.3448E-02|  0.2116   0.9773  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.022e-03   4.640e-03
   4.640e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00180579    2      -7.98086       2.06191
==============================
 Variances and Principal Axes
                 3        4  
 1.0203E-03|  0.9773  -0.2116  
 2.3513E-02|  0.2116   0.9773  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.028e-03   4.652e-03
   4.652e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00180399    2      -7.98086       2.06191
==============================
 Variances and Principal Axes
                 3        4  
 1.0203E-03|  0.9773  -0.2116  
 2.3513E-02|  0.2116   0.9773  
------------------------------

========================
  Covariance Matrix
        1           2   
   2.028e-03   4.652e-03
   4.652e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:55 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18670E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -8.05995     -7.91277    (-0.0790848,0.0680926)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230209,0.247783)

!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                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.06e-13 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.87e-13 with 57 degrees of freedom
 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
100.571      19.7923       0      -7.70435       2.18273
41.4773      48.8916       0      -7.39938       2.61360
31.5424      11.3683      -1      -7.30205       2.17081
29.7116      16.1189      -2      -7.22223       2.04888
29.7025      0.675752     -3      -7.22602       2.06290
==============================
 Variances and Principal Axes
                 3        4  
 9.5549E-04|  0.9412   0.3378  
 2.5201E-02| -0.3378   0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.721e-03  -7.708e-03
  -7.708e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0245909    -3      -7.22564       2.06181
==============================
 Variances and Principal Axes
                 3        4  
 9.5200E-04|  0.9418   0.3361  
 2.5276E-02| -0.3361   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.701e-03
  -7.701e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00250963   -3      -7.22567       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 9.5193E-04|  0.9418   0.3363  
 2.5261E-02| -0.3363   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.698e-03
  -7.698e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 25.0

Fit statistic  : Chi-Squared                   37.65     using 59 bins.

Test statistic : Chi-Squared                   37.65     using 59 bins.
 Null hypothesis probability of 9.78e-01 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 50.0

Fit statistic  : Chi-Squared                 1997.44     using 59 bins.

Test statistic : Chi-Squared                 1997.44     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 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
213.114      2958.66      -3      -7.55832       2.06152
38.4416      420.089      -4      -7.77691       2.06170
29.774       55.4507      -5      -7.85583       2.06187
29.7025      4.18336      -6      -7.86439       2.06190
29.7025      0.0622339    -7      -7.86452       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 1.0626E-03|  0.9985   0.0553  
 2.2561E-02| -0.0553   0.9985  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.128e-03  -1.188e-03
  -1.188e-03   2.250e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.000352743  -3      -7.86452       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 1.0632E-03|  0.9985   0.0553  
 2.2575E-02| -0.0553   0.9985  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.129e-03  -1.188e-03
  -1.188e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      2.18144e-06  -3      -7.86452       2.06190
==============================
 Variances and Principal Axes
                 3        4  
 1.0632E-03|  0.9985   0.0553  
 2.2575E-02| -0.0553   0.9985  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.129e-03  -1.188e-03
  -1.188e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:55 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18662E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.92409     -7.81246    (-0.0595623,0.0520656)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230198,0.247794)

!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                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.06e-13 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.87e-13 with 57 degrees of freedom
 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
100.571      19.7923       0      -7.70435       2.18273
41.4773      48.8916       0      -7.39938       2.61360
31.5424      11.3683      -1      -7.30205       2.17081
29.7116      16.1189      -2      -7.22223       2.04888
29.7025      0.675752     -3      -7.22602       2.06290
==============================
 Variances and Principal Axes
                 3        4  
 9.5549E-04|  0.9412   0.3378  
 2.5201E-02| -0.3378   0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.721e-03  -7.708e-03
  -7.708e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0245909    -3      -7.22564       2.06181
==============================
 Variances and Principal Axes
                 3        4  
 9.5200E-04|  0.9418   0.3361  
 2.5276E-02| -0.3361   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.701e-03
  -7.701e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00250963   -3      -7.22567       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 9.5193E-04|  0.9418   0.3363  
 2.5261E-02| -0.3363   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.698e-03
  -7.698e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 50.0

Fit statistic  : Chi-Squared                  111.03     using 59 bins.

Test statistic : Chi-Squared                  111.03     using 59 bins.
 Null hypothesis probability of 2.43e-05 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 100.0

Fit statistic  : Chi-Squared                 2227.54     using 59 bins.

Test statistic : Chi-Squared                 2227.54     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 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
238.464      3455.82      -3      -7.56162       2.05940
40.1795      490.459      -4      -7.78758       2.06052
29.8002      65.3776      -5      -7.87293       2.06170
29.7025      5.1933       -6      -7.88297       2.06190
29.7025      0.085516     -7      -7.88313       2.06188
==============================
 Variances and Principal Axes
                 3        4  
 9.4331E-04|  0.9386   0.3450  
 2.5399E-02| -0.3450   0.9386  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.855e-03  -7.920e-03
  -7.920e-03   2.249e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00045791   -1      -7.88314       2.06188
==============================
 Variances and Principal Axes
                 3        4  
 9.4406E-04|  0.9386   0.3450  
 2.5419E-02| -0.3450   0.9386  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.858e-03  -7.926e-03
  -7.926e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      3.53256e-05   0      -7.88314       2.06188
==============================
 Variances and Principal Axes
                 3        4  
 9.4406E-04|  0.9386   0.3450  
 2.5419E-02| -0.3450   0.9386  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.858e-03  -7.926e-03
  -7.926e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:55 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.99395     -7.79228    (-0.110811,0.0908577)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.230187,0.247806)

!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                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.06e-13 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.87e-13 with 57 degrees of freedom
 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
100.571      19.7923       0      -7.70435       2.18273
41.4773      48.8916       0      -7.39938       2.61360
31.5424      11.3683      -1      -7.30205       2.17081
29.7116      16.1189      -2      -7.22223       2.04888
29.7025      0.675752     -3      -7.22602       2.06290
==============================
 Variances and Principal Axes
                 3        4  
 9.5549E-04|  0.9412   0.3378  
 2.5201E-02| -0.3378   0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.721e-03  -7.708e-03
  -7.708e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0245909    -3      -7.22564       2.06181
==============================
 Variances and Principal Axes
                 3        4  
 9.5200E-04|  0.9418   0.3361  
 2.5276E-02| -0.3361   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.701e-03
  -7.701e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00250963   -3      -7.22567       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 9.5193E-04|  0.9418   0.3363  
 2.5261E-02| -0.3363   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.698e-03
  -7.698e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  517.59     using 59 bins.

Test statistic : Chi-Squared                  517.59     using 59 bins.
 Null hypothesis probability of 1.79e-75 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 150.0

Fit statistic  : Chi-Squared                 8695.78     using 59 bins.

Test statistic : Chi-Squared                 8695.78     using 59 bins.
 Null hypothesis probability of 0.00e+00 with 57 degrees of freedom
 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
1008.35      13295.8      -3      -7.60107       2.05726
108.811      1870.16      -4      -7.90538       2.05837
32.2746      264.323      -5      -8.08036       2.06062
29.711       31.9578      -6      -8.12777       2.06183
29.7025      1.64827      -7      -8.13078       2.06188
==============================
 Variances and Principal Axes
                 3        4  
 7.7231E-04|  0.8532   0.5216  
 3.0186E-02| -0.5216   0.8532  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.774e-03  -1.309e-02
  -1.309e-02   2.218e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0152414    -3      -8.13080       2.06188
==============================
 Variances and Principal Axes
                 3        4  
 7.8299E-04|  0.8532   0.5216  
 3.0605E-02| -0.5216   0.8532  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.896e-03  -1.327e-02
  -1.327e-02   2.249e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.000125312  -1      -8.13081       2.06188
==============================
 Variances and Principal Axes
                 3        4  
 7.8309E-04|  0.8532   0.5216  
 3.0609E-02| -0.5216   0.8532  
------------------------------

========================
  Covariance Matrix
        1           2   
   8.897e-03  -1.327e-02
  -1.327e-02   2.249e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:55 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18663E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -8.29649     -7.99231    (-0.165683,0.138494)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4       1.8317      2.30969    (-0.23018,0.247814)

!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                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.06e-13 with 56 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>freeze 6

Fit statistic  : Chi-Squared                  171.88     using 59 bins.

Test statistic : Chi-Squared                  171.88     using 59 bins.
 Null hypothesis probability of 1.87e-13 with 57 degrees of freedom
 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
100.571      19.7923       0      -7.70435       2.18273
41.4773      48.8916       0      -7.39938       2.61360
31.5424      11.3683      -1      -7.30205       2.17081
29.7116      16.1189      -2      -7.22223       2.04888
29.7025      0.675752     -3      -7.22602       2.06290
==============================
 Variances and Principal Axes
                 3        4  
 9.5549E-04|  0.9412   0.3378  
 2.5201E-02| -0.3378   0.9412  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.721e-03  -7.708e-03
  -7.708e-03   2.244e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.0245909    -3      -7.22564       2.06181
==============================
 Variances and Principal Axes
                 3        4  
 9.5200E-04|  0.9418   0.3361  
 2.5276E-02| -0.3361   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.701e-03
  -7.701e-03   2.253e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00250963   -3      -7.22567       2.06189
==============================
 Variances and Principal Axes
                 3        4  
 9.5193E-04|  0.9418   0.3363  
 2.5261E-02| -0.3363   0.9418  
------------------------------

========================
  Covariance Matrix
        1           2   
   3.701e-03  -7.698e-03
  -7.698e-03   2.251e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>newpar 1 100.0

Fit statistic  : Chi-Squared                  517.59     using 59 bins.

Test statistic : Chi-Squared                  517.59     using 59 bins.
 Null hypothesis probability of 1.79e-75 with 57 degrees of freedom
 Current data and model not fit yet.

!XSPEC12>newpar 2 350.0

Fit statistic  : Chi-Squared                  517.59     using 59 bins.

Test statistic : Chi-Squared                  517.59     using 59 bins.
 Null hypothesis probability of 1.79e-75 with 57 degrees of freedom
 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
62.5677      1139.16      -3      -7.49249       2.05761
30.3543      158.616      -4      -7.62545       2.06061
29.7032      16.5297      -5      -7.65129       2.06189
29.7025      0.519966     -6      -7.65214       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 6.5940E-04|  0.7832   0.6217  
 3.6089E-02| -0.6217   0.7832  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.435e-02  -1.725e-02
  -1.725e-02   2.239e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00315141    1      -7.65214       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 6.6206E-04|  0.7832   0.6217  
 3.6234E-02| -0.6217   0.7832  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.441e-02  -1.732e-02
  -1.732e-02   2.248e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

!XSPEC12>fit 100
 Warning: renorm - no variable model to allow  renormalization
                                   Parameters
Chi-Squared  |beta|/N    Lvl    3:lg10Flux    4:PhoIndex
29.7025      0.00312041    1      -7.65214       2.06187
==============================
 Variances and Principal Axes
                 3        4  
 6.6206E-04|  0.7832   0.6217  
 3.6234E-02| -0.6217   0.7832  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.441e-02  -1.732e-02
  -1.732e-02   2.248e-02
------------------------

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


Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

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

!XSPEC12>show

XSPEC version: 12.13.0c

Thu Jun 15 15:38:55 2023
 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
Using chain rule to calculate statistic derivatives (faster method).
 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-pc-linux-gnu-libc2.12/../spectral/manager/../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/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100//local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger1150429/remake_spec_cflux/spec_T100/sw01150429000b_avg.rsp

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

 Spectral data counts: 0.551781
 Model predicted rate: 9.18675E-02


Current model list:

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

   Using energies from responses.

Fit statistic  : Chi-Squared                   29.70     using 59 bins.

Test statistic : Chi-Squared                   29.70     using 59 bins.
 Null hypothesis probability of 9.99e-01 with 57 degrees of freedom

Bayes is off


!XSPEC12>error 3
 Parameter   Confidence Range (2.706)
     3     -7.85936     -7.47344    (-0.207215,0.178704)

!XSPEC12>error 4
 Parameter   Confidence Range (2.706)
     4      1.83169      2.30969    (-0.230171,0.247825)

!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: 2.06189     ( -0.230193   0.2478 )
Norm@50keV  : 4.81542E-03    ( -0.000816691   0.000794275 )
------------------------------------------------------------
#Fit statistic  : Chi-Squared                   29.70     using 59 bins.
 Reduced chi-squared = 0.521053
# Null hypothesis probability of 9.99e-01 with 57 degrees of freedom
 
Photon flux (15-150 keV)    in 5.996 sec: 0.743712 ( -0.092506  0.092509 ) ph/cm2/s
Energy fluence (15-150 keV)             : 2.67413e-07 ( -4.08847e-08  4.20026e-08 ) ergs/cm2