/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 = 17385
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1813.5+3144_weekly_bin801
RA = 273.387, Dec = 31.7497
tmin = 723427201, tmax = 724032001
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='35831445', job_status='RUN', time_executed='2023-12-12 02:10:57.947806', time_epoch_executed='1702375857.95' WHERE source_name='4FGL J1813.5+3144' and cadence='weekly' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/35831445

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/35831445/ft1_4FGL_J1813.5+3144_weekly_bin801.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/35831445/ft1_4FGL_J1813.5+3144_weekly_bin801.fits outfile=/lscratch/kocevski/35831445/ft1_filteredMKT_4FGL_J1813.5+3144_weekly_bin801.fits ra=273.387 dec=31.7497 rad=12.0 tmin=723427201.0 tmax=724032001.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.17
user 4.70
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.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/35831445/ft1_filteredMKT_4FGL_J1813.5+3144_weekly_bin801.fits evtable="EVENTS" outfile="/lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.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.45
user 0.24
sys 0.12

Number of photons that the gtmktime cut: 3291

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits" evtable="EVENTS" scfile=/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits sctable="SC_DATA" outfile=/lscratch/kocevski/35831445/ltcube_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.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/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits
.....................!
real 21.40
user 20.73
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits sctable="SC_DATA" expcube=/lscratch/kocevski/35831445/ltcube_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.fits outfile=/lscratch/kocevski/35831445/expmap_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.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/35831445/ltcube_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.fits
.....................!
real 77.30
user 72.22
sys 4.09

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1813.5+3144 @ 273.387 31.7497

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits scfile=/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits outfile=/lscratch/kocevski/35831445/cmap_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.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=273.387 yref=31.7497 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.48
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits scfile=/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits outfile=/lscratch/kocevski/35831445/cmap_HighResolution_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.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=273.387 yref=31.7497 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.44
user 0.26
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits evtable="EVENTS" scfile=/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/35831445/Model_4FGL_J1813.5+3144_weekly_bin801.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/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits.....................!
real 119.30
user 116.91
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits', '/lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits', expMap='/lscratch/kocevski/35831445/expmap_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.fits', expCube='/lscratch/kocevski/35831445/ltcube_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/35831445/Model_4FGL_J1813.5+3144_weekly_bin801.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1813.5+3144'

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.997e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.169e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/35831445/ft1_filtered_4FGL_J1813.5+3144_weekly_bin801.fits
Spacecraft file(s): /lscratch/kocevski/35831445/ft2_4FGL_J1813.5+3144_weekly_bin801.fits
Exposure map: /lscratch/kocevski/35831445/expmap_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.fits
Exposure cube: /lscratch/kocevski/35831445/ltcube_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/35831445/Model_4FGL_J1813.5+3144_weekly_bin801.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) = 34328.9540935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3718       1.0000          .0000       .10000E+07
     2 'Prefactor '    34.395       1.0000          .0000       .10000E+07
     3 'Prefactor '    .13802E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.9732       1.0000          .0000       .10000E+07
     5 'Prefactor '    .23204E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    24.531       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19018E-05   1.0000          .0000       .10000E+07
     8 'norm      '    1.2422       1.0000          .0000       .10000E+07
     9 'norm      '    17.437       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.9170       1.0000          .0000       .10000E+07
    11 'norm      '    13.489       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5028       1.0000          .0000       .10000E+07
    13 'Prefactor '    .67444E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.9100       1.0000          .0000       .10000E+07
    15 'norm      '    1.2863       1.0000          .0000       .10000E+07
    16 'norm      '    .11491E-07   1.0000          .0000       .10000E+07
    17 'norm      '    1.9697       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15642E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .36213E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .91643       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0614       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34328.95     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1662 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3742        2.0447        .37029E-07    .10864E-02
   2  Prefactor     34.210        4.6667       -.57111E-08   -.16205    
   3  Prefactor     .27867E-07    29.640        .21084E-06** at limit **
   4  Prefactor     2.0657        5.1850        .20996E-06    .15384E-02
   5  Prefactor      .0000        5.1878       -.24517E-07** at limit **
   6  Prefactor     24.534        1.2077       -.30221E-08   -.12729E-01
   7  Prefactor      .0000        2.4831       -.11321E-06** at limit **
   8  norm          1.2413        .81437       -.77103E-08   -.22824E-03
   9  norm          17.447        1.3473        .37542E-08   -.72518E-01
  10  Prefactor     5.9154        2.6727        .10791E-08    .45044E-03
  11  norm          13.455        4.8533       -.10968E-06   -.20795E-03
  12  Prefactor     1.5029        1.4137       -.66746E-07   -.21470E-03
  13  Prefactor     .29919E-05    104.66       -.21829E-06** at limit **
  14  Prefactor     4.9186        3.5803       -.61624E-07   -.90852E-03
  15  norm          1.3470        1.1537        .87319E-08   -.81213E-02
  16  norm           .0000        .40427       -.10965E-07** at limit **
  17  norm          1.9697        .90075        .96312E-08    .10901E-02
  18  Prefactor     .77716E-09    11.737       -.42402E-07** at limit **
  19  Prefactor     .55511E-10    6.1603       -.76890E-07** at limit **
  20  Normalizat    .91629        .12610        .45969E-06    .75588E-04
  21  Prefactor     1.0615        .49534E-01   -.42403E-06    .95872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37418
  Prefactor  = 34.2103
  Prefactor  = 2.78666e-08
  Prefactor  = 2.06567
  Prefactor  = 0
  Prefactor  = 24.5344
  Prefactor  = 0
  norm       = 1.24129
  norm       = 17.4474
  Prefactor  = 5.91541
  norm       = 13.4551
  Prefactor  = 1.50287
  Prefactor  = 2.99188e-06
  Prefactor  = 4.91858
  norm       = 1.34698
  norm       = 0
  norm       = 1.96966
  Prefactor  = 7.77156e-10
  Prefactor  = 5.55112e-11
  Normalizat = 0.916287
  Prefactor  = 1.06147
 **********
 **   18 **HESSE 
 **********

 FCN=   34328.95     FROM HESSE     STATUS=OK           371 CALLS     2033 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3742        2.2159        .93033E-03   -1.5685    
   2  Prefactor     34.210        35.521        .17053E-03   -1.5591    
   3  Prefactor     .27867E-07    30.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0657        5.3335        .73778E-03   -1.5679    
   5  Prefactor      .0000        5.2040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.534        23.310        .20195E-03   -1.5609    
   7  Prefactor      .0000        2.4668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2413        .83281        .10052E-02   -1.5686    
   9  norm          17.447        25.671        .23958E-03   -1.5624    
  10  Prefactor     5.9154        2.6718        .41259E-03   -1.5659    
  11  norm          13.455        5.0019        .27246E-03   -1.5635    
  12  Prefactor     1.5029        1.4270        .87294E-03   -1.5683    
  13  Prefactor     .29919E-05    6.2854        .81258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9186        3.5956        .45368E-03   -1.5664    
  15  norm          1.3470        36.648        .97698E-03   -1.5685    
  16  norm           .0000        .40344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9697        .90890        .73855E-03   -1.5680    
  18  Prefactor     .77716E-09    11.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    6.1999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91629        .11502        .93249E-01   -.95890    
  21  Prefactor     1.0615        .43833E-01    .39283E-01   -.90708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3371e-06
Minuit parameter uncertainties:
  1  2.21593
  2  35.521
  3  0.00185672
  4  5.33351
  5  1.1966e-05
  6  23.3105
  7  1.01548e-05
  8  0.832811
  9  25.6713
  10  2.67178
  11  5.00188
  12  1.42701
  13  0.00867297
  14  3.59562
  15  14.052
  16  8.38076e-07
  17  0.908897
  18  0.000189456
  19  3.38605e-05
  20  0.115047
  21  0.043835
Done.

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

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.503e+00  1.427e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  2.169e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  1.061e+00  4.383e-02  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  9.163e-01  1.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 273.387 31.750
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.12e-08 +/- 1.06e-08
Energy Flux (Fixed Index): 5.33e-06 +/- 5.06e-06

TS (Fixed Index): 3.52
Ra Dec: 273.387 31.750
Photon Flux Upper Limit: 3.88245590153e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00295109416739 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/35831445/likelihoodResults_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.txt

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) = 34326.5157653
delta logL = 2.43353838787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 34326.5144137
delta logL = 2.43488998638

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   34326.51     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5060        1.1781        .87195E-03   -.15852E-01
   2  Index         .89012        .38231        .44877       -.30138E-03
   3  Normalizat    .92131        .10907        .93003E-01    .12989E-03
   4  Prefactor     1.0616        .43309E-01    .39274E-01   -.30681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50599
  Index      = 0.890115
  Normalizat = 0.921306
  Prefactor  = 1.0616
 **********
 **   18 **HESSE 
 **********

 FCN=   34326.51     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5060        1.5729        .16444E-04   -1.5683    
   2  Index         .89012        .46894        .23023E-01   -.96487    
   3  Normalizat    .92131        .12284        .41195E-03   -.95715    
   4  Prefactor     1.0616        .48958E-01    .15284E-03   -.90703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00012e-08
Minuit parameter uncertainties:
  1  1.57293
  2  0.47109
  3  0.122881
  4  0.0489603
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) = 34326.5144136
delta logL = 2.43489005204

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.506e+00  1.573e+00  0.000e+00  1.000e+06 ( 1.000e-13)
346        Index:  8.901e-01  4.711e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  1.062e+00  4.896e-02  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  9.213e-01  1.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.39
Ra Dec: 273.387 31.750
Photon Index (Free Index): 0.89 +/- 0.47
Photon Flux (Free Index): 2.51e-09 +/- 2.09e-09
Energy Flux (Free Index): 4.66e-05 +/- 4.56e-05

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/35831445/cmap_HighResolution_723427201_724032001_4FGL_J1813.5+3144_weekly_bin801.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-03', comment='SUCCESS', photon_flux='1.12e-08', energy_flux2='4.66e-05', photon_flux_error='1.06e-08', dlogl='2.43e+00', energy_flux='5.33e-06', photon_flux2='2.51e-09', job_status='DONE', time_completed='2023-12-12 02:28:02.828115', photon_index_error2='0.47', photon_index2='0.89', ts='3.52', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='3.88e-08', energy_flux_error2='4.56e-05', EG='0.92', time_epoch_completed='1702376882.83', return_code='0', job_id='35831445', GAL2='1.06', EG2='0.92', return_code2='0', energy_flux_error='5.06e-06', photon_flux_error2='2.09e-09', ts2='8.39', photon_index='2.17' WHERE bin_id='801' AND source_name='4FGL J1813.5+3144' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 12 02:28:02 PST 2023

