XSPEC version: 12.9.1
	Build Date/Time: Thu Apr 20 23:34:29 2017

XSPEC12>query no
XSPEC12>data 1:1 /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_repro 
c/trigger867252/00867252000-results/pha/sw00867252000b_peak.pha

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

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

XSPEC12>model bremss

Input parameter value, delta, min, bot, top, and max values for ...
              7       0.05(      0.07)     0.0001     0.0001        100        200
1:bremss:kT>7.0000      5.00000E-02  1.00000E-04  1.00000E-04   100.00       200 
.00
              1       0.01(      0.01)          0          0      1e+20      1e+24
2:bremss:norm>1.0000      1.00000E-02   0.0000       0.0000      1.00000E+24  1. 
00000E+24

========================================================================
Model bremss<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   bremss     kT         keV      7.00000      +/-  0.0          
   2    1   bremss     norm                1.00000      +/-  0.0          
________________________________________________________________________


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

Test statistic : Chi-Squared =          71.60 using 59 PHA bins.
 Reduced chi-squared =          1.256 for     57 degrees of freedom 
 Null hypothesis probability =   9.232748e-02
 Current data and model not fit yet.
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl          1:kT        2:norm
65.2118      0.175654     -3       18.8431       11.8424
57.4425      0.671641     -4       38.8512       2.32526
51.4206      1.03907      -1       194.769       1.74560
46.5965      1.7973       -2       198.930       2.95996
46.5815      0.17695      -3       199.332       2.98026
46.5813      0.149452     -4       199.349       2.98055
==============================
 Variances and Principal Axes
                 1        2  
 1.3447E+05| -1.0000   0.0007  
 3.7450E-01| -0.0007  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.345e+05  -9.182e+01
  -9.182e+01   4.372e-01
------------------------

========================================================================
Model bremss<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   bremss     kT         keV      199.349      +/-  366.702      
   2    1   bremss     norm                2.98055      +/-  0.661209     
________________________________________________________________________


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

Test statistic : Chi-Squared =          46.58 using 59 PHA bins.
 Reduced chi-squared =         0.8172 for     57 degrees of freedom 
 Null hypothesis probability =   8.362190e-01
XSPEC12>fit
                                   Parameters
Chi-Squared  |beta|/N    Lvl          1:kT        2:norm
46.548       0.000626557   0       199.359       3.09139
==============================
 Variances and Principal Axes
                 1        2  
 1.2659E+05| -1.0000   0.0007  
 3.7449E-01| -0.0007  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.266e+05  -8.908e+01
  -8.908e+01   4.372e-01
------------------------

========================================================================
Model bremss<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   bremss     kT         keV      199.359      +/-  355.800      
   2    1   bremss     norm                3.09139      +/-  0.661192     
________________________________________________________________________


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

Test statistic : Chi-Squared =          46.55 using 59 PHA bins.
 Reduced chi-squared =         0.8166 for     57 degrees of freedom 
 Null hypothesis probability =   8.370996e-01
XSPEC12>fit 100
                                   Parameters
Chi-Squared  |beta|/N    Lvl          1:kT        2:norm
46.548       0.000624032   0       199.362       3.09138
==============================
 Variances and Principal Axes
                 1        2  
 1.2758E+05| -1.0000   0.0007  
 3.7449E-01| -0.0007  -1.0000  
------------------------------

========================
  Covariance Matrix
        1           2   
   1.276e+05  -8.943e+01
  -8.943e+01   4.372e-01
------------------------

========================================================================
Model bremss<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   bremss     kT         keV      199.362      +/-  357.186      
   2    1   bremss     norm                3.09138      +/-  0.661187     
________________________________________________________________________


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

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

XSPEC version: 12.9.1

Mon Dec 17 21:17:45 2018
 Auto-saving is done after every command.
 Fit statistic in use: Chi-Squared
 Minimization technique: Levenberg-Marquardt
    Convergence criterion = 0.01
    Parameter fit deltas: 0.01 * parValue
 Always calculate parameter derivatives using full (slower) numerical differentiation: No
 Querying disabled - will not continue fitting.
 Prefit-renorming enabled.
 Solar abundance table: angr
 Photoionization Cross-Section Table:
    bcmc:  Balucinska-Church and McCammon, 1998
 Cosmology in use: H0 = 70 q0 = 0 Lambda0 = 0.73
 Model data directory: /local/data/bat1/alien/heasoft_amytest_version/x86_64-unknown-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/trigger867252/remake_spec_cflux/spec_1speak/sw00867252000b_1speak.rsp associated with spectrum 1 source 1
      energies: 204 channels: 80
 Distinct RMF files: 
     /local/data/bat1/alien/Swift_3rdBATcatalog/event/batevent_reproc/trigger867252/remake_spec_cflux/spec_1speak/sw00867252000b_1speak.rsp

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

 Spectral data counts: 0.0848329
 Model predicted rate: 8.73679E-02


Current model list:

========================================================================
Model bremss<1> Source No.: 1   Active/On
Model Model Component  Parameter  Unit     Value
 par  comp
   1    1   bremss     kT         keV      199.362      +/-  357.186      
   2    1   bremss     norm                3.09138      +/-  0.661187     
________________________________________________________________________

   Using energies from responses.

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

Test statistic : Chi-Squared =          46.55 using 59 PHA bins.
 Reduced chi-squared =         0.8166 for     57 degrees of freedom 
 Null hypothesis probability =   8.370999e-01
 Weighting method: standard
XSPEC12>flux 15.0 25.0 err 500 90
Parameter distribution is derived from fit covariance matrix.
 Model Flux   0.24739 photons (7.6978e-09 ergs/cm^2/s) range (15.000 - 25.000 keV)
     Error range     0.000 - 0.3165    (0.000 - 9.849e-09)  (90.00% confidence)
XSPEC12>flux 25.0 50.0 err 500 90
Parameter distribution is derived from fit covariance matrix.
 Model Flux   0.26119 photons (1.4808e-08 ergs/cm^2/s) range (25.000 - 50.000 keV)
     Error range     0.000 - 0.3287    (0.000 - 1.863e-08)  (90.00% confidence)
XSPEC12>flux 50.0 150.0 err 500 90
Parameter distribution is derived from fit covariance matrix.
 Model Flux   0.24097 photons (3.2476e-08 ergs/cm^2/s) range (50.000 - 150.00 keV)
     Error range     0.000 - 0.2856    (0.000 - 3.848e-08)  (90.00% confidence)
XSPEC12>flux 15.0 150.0 err 500 90
Parameter distribution is derived from fit covariance matrix.
 Model Flux   0.74955 photons (5.4982e-08 ergs/cm^2/s) range (15.000 - 150.00 keV)
     Error range     0.000 - 0.9277    (0.000 - 6.807e-08)  (90.00% confidence)
XSPEC12>error 1
 Parameter   Confidence Range (2.706)
***Warning: Zero alpha-matrix diagonal element for parameter 2
 Parameter 2 is pegged at 3.09138 due to zero or negative pivot element, likely
 caused by the fit being insensitive to the parameter.

 Fit error occurred during lower bound error calculation.

***Warning: Number of trials exceeded before bracketing of delta fit-stat.
Last attempt: 3.08056e+08, with delta statistic: 0


*** Parameter upper bound is INVALID.

     1            0            0    (-199.363,-199.363)
XSPEC12>error 2
 Parameter   Confidence Range (2.706)
     2      2.08545      4.09939    (-1.00671,1.00723)
XSPEC12>log none
Log file closed
logging switched off
XSPEC12>setplot energy
XSPEC12>setplot command sc white
1
XSPEC12>setplot command cpd bat_spec_brems.gif/gif
2
XSPEC12>plot ldata delchi
XSPEC12>/*
XSPEC12>exit
 XSPEC: quit
 
 
Spectral model: thermal bremsstrahlung
------------------------------------------------------------
Parameters  : value         Lower 90%    Upper 90%
kT [keV]    : 199.362       (-199.363      -199.363)
Norm        : 3.09138       (-1.00671     1.00723)
------------------------------------------------------------
#Fit statistic : Chi-Squared =          46.55 using 59 PHA bins.
# Reduced chi-squared =         0.8166 for     57 degrees of freedom 
# Null hypothesis probability =   8.370999e-01
 
Energy  Fluence     90% Error
[keV]   [erg/cm2]   [erg/cm2]
15- 25  7.698e-09   4.924e-09
25- 50  1.481e-08   9.315e-09
50-150  3.248e-08   1.924e-08
15-150  5.498e-08   3.404e-08