/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17422
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1549.5+0236_weekly_bin802
RA = 237.385, Dec = 2.6084
tmin = 724032001, tmax = 724636801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='36607000', job_status='RUN', time_executed='2023-12-19 01:00:51.162863', time_epoch_executed='1702976451.16' WHERE source_name='4FGL J1549.5+0236' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36607000

Creating custom pfile directory:
/lscratch/kocevski/36607000/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36607000/ft1_4FGL_J1549.5+0236_weekly_bin802.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36607000/ft1_4FGL_J1549.5+0236_weekly_bin802.fits outfile=/lscratch/kocevski/36607000/ft1_filteredMKT_4FGL_J1549.5+0236_weekly_bin802.fits ra=237.385 dec=2.6084 rad=12.0 tmin=724032001.0 tmax=724636801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.02
user 4.60
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/36607000/ft1_filteredMKT_4FGL_J1549.5+0236_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.59
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 2227

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36607000/ltcube_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits
.....................!
real 21.66
user 20.90
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36607000/ltcube_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits outfile=/lscratch/kocevski/36607000/expmap_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/36607000/ltcube_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits
.....................!
real 75.33
user 70.84
sys 4.02

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J1549.5+0236 @ 237.385 2.6084

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits scfile=/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits outfile=/lscratch/kocevski/36607000/cmap_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=237.385 yref=2.6084 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.42
user 0.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits scfile=/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits outfile=/lscratch/kocevski/36607000/cmap_HighResolution_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=237.385 yref=2.6084 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.46
user 0.26
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36607000/Model_4FGL_J1549.5+0236_weekly_bin802.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits.....................!
real 74.29
user 72.95
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits', '/lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits', expMap='/lscratch/kocevski/36607000/expmap_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits', expCube='/lscratch/kocevski/36607000/ltcube_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36607000/Model_4FGL_J1549.5+0236_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1549.5+0236'

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  2.164e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
238        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  8.442e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36607000/ft1_filtered_4FGL_J1549.5+0236_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36607000/ft2_4FGL_J1549.5+0236_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36607000/expmap_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36607000/ltcube_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36607000/Model_4FGL_J1549.5+0236_weekly_bin802.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 24162.3228441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 24162.2887618

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1556       1.0000          .0000       .10000E+07
     2 'norm      '    2.2885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15209E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.797       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15736E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.6093       1.0000          .0000       .10000E+07
     7 'norm      '    .88017       1.0000          .0000       .10000E+07
     8 'Prefactor '    .48645E-01   1.0000          .0000       .10000E+07
     9 'norm      '    1.5315       1.0000          .0000       .10000E+07
    10 'norm      '    3.9731       1.0000          .0000       .10000E+07
    11 'norm      '    22.421       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18250E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .12941E-02   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.4335       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .95721       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24162.29     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      794 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1520        2.0386       -.29196E-07   -.87117E-02
   2  norm          2.2910        1.9450       -.60231E-07    .97835E-03
   3  Prefactor      .0000        2.0272       -.19379E-06** at limit **
   4  Prefactor     16.391        14.113        .57122E-06    .66093E-03
   5  Prefactor     .11657E-08    20.592       -.30804E-06** at limit **
   6  Prefactor     5.6166        2.9089       -.11427E-06    .32720E-02
   7  norm          .88130        1.4429       -.10421E-06   -.54384E-02
   8  Prefactor     .11102E-09    30.467       -.28902E-06** at limit **
   9  norm          1.5537        3.8014        .29096E-06   -.29197E-02
  10  norm          3.9724        1.1923        .33567E-07    .20849E-02
  11  norm          22.474        10.396       -.23765E-05   -.95862E-04
  12  Prefactor     .44409E-08    39.177        .19842E-05** at limit **
  13  Prefactor     .61062E-09    3.6059        .83120E-07** at limit **
  14  Normalizat    1.4334        .17856        .94579E-05   -.18032E-03
  15  Prefactor     .95728        .63070E-01   -.23324E-07   -.45221E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.15203
  norm       = 2.291
  Prefactor  = 0
  Prefactor  = 16.3912
  Prefactor  = 1.16573e-09
  Prefactor  = 5.61663
  norm       = 0.881301
  Prefactor  = 1.11022e-10
  norm       = 1.55367
  norm       = 3.97243
  norm       = 22.4737
  Prefactor  = 4.44089e-09
  Prefactor  = 6.10623e-10
  Normalizat = 1.43343
  Prefactor  = 0.957275
 **********
 **   18 **HESSE 
 **********

 FCN=   24162.29     FROM HESSE     STATUS=OK           216 CALLS     1010 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1520        2.0324        .35083E-03   -1.5651    
   2  norm          2.2910        1.9460        .67831E-03   -1.5678    
   3  Prefactor      .0000        1.9970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.391        14.118        .24411E-03   -1.5627    
   5  Prefactor     .11657E-08    20.204        .17335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6166        2.9144        .42393E-03   -1.5661    
   7  norm          .88130        1.4556        .47141E-03   -1.5689    
   8  Prefactor     .11102E-09    29.675        .15595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5537        3.8303        .86205E-03   -1.5683    
  10  norm          3.9724        1.1948        .50578E-03   -1.5668    
  11  norm          22.474        10.370        .21124E-03   -1.5613    
  12  Prefactor     .44409E-08    39.147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .61062E-09    3.6254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.4334        .15358        .89910E-01   -.79667    
  15  Prefactor     .95728        .54165E-01    .45730E-01   -.94168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72161e-06
Minuit parameter uncertainties:
  1  2.03238
  2  1.94596
  3  5.6515e-06
  4  14.1181
  5  0.000306713
  6  2.91438
  7  1.45564
  8  0.000126291
  9  3.83034
  10  1.19484
  11  10.3698
  12  0.000833165
  13  9.39301e-05
  14  0.153631
  15  0.054168
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 24162.2869495

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  5.617e+00  2.914e+00  0.000e+00  1.000e+06 ( 1.000e-12)
238        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
239        Scale:  8.442e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  9.573e-01  5.417e-02  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.433e+00  1.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.97
Ra Dec: 237.385 2.608
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.86e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.14e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24161.942749
delta logL = 0.344200522271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24161.9384053
delta logL = 0.348544175278

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1513       1.0000          .0000       .10000E+07
     2 'Index     '    2.8393       1.0000          .0000       10.000    
     3 'Normalizat'    1.4003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96437       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   24161.94     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      308 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1515        3.9460        .13661E-04    .64077E-02
   2  Index         2.8392        .69275        .83537E-02    .12871E-03
   3  Normalizat    1.4003        .17901        .40204E-03    .12759E-03
   4  Prefactor     .96436        .63816E-01    .17248E-03    .73317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1515
  Index      = 2.83919
  Normalizat = 1.40029
  Prefactor  = 0.964355
 **********
 **   18 **HESSE 
 **********

 FCN=   24161.94     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1515        3.1565        .54646E-06   -1.5667    
   2  Index         2.8392        .55379        .33415E-03   -.44689    
   3  Normalizat    1.4003        .17766        .16082E-04   -.80620    
   4  Prefactor     .96436        .63463E-01    .34496E-04   -.93927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46441e-10
Minuit parameter uncertainties:
  1  3.15652
  2  0.55519
  3  0.177735
  4  0.063468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24161.9384052
delta logL = 0.348544264165

Extracting fit parameters...

4FGL J1549.5+0236
   Spectrum: PowerLaw
237    Prefactor:  4.151e+00  3.157e+00  0.000e+00  1.000e+06 ( 1.000e-12)
238        Index:  2.839e+00  5.552e-01  0.000e+00  1.000e+01 (-1.000e+00)
239        Scale:  8.442e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  9.644e-01  6.347e-02  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  1.400e+00  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.74
Ra Dec: 237.385 2.608
Photon Index (Free Index): 2.84 +/- 0.56
Photon Flux (Free Index): 9.65e-08 +/- 5.17e-08
Energy Flux (Free Index): 2.11e-05 +/- 9.79e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/36607000/cmap_HighResolution_724032001_724636801_4FGL_J1549.5+0236_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.86e-08', energy_flux2='2.11e-05', photon_flux_error='3.55e-08', dlogl='3.49e-01', energy_flux='2.20e-05', photon_flux2='9.65e-08', job_status='DONE', time_completed='2023-12-19 01:07:45.469983', photon_index_error2='0.56', photon_index2='2.84', ts='5.97', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='9.79e-06', EG='1.43', time_epoch_completed='1702976865.47', return_code='0', job_id='36607000', GAL2='0.96', EG2='1.40', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.17e-08', ts2='6.74', photon_index='2.41' WHERE bin_id='802' AND source_name='4FGL J1549.5+0236' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:07:45 PST 2023

