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


Performing analysis on: 4FGL_J1117.0+2013_weekly_bin854
RA = 169.271, Dec = 20.2294
tmin = 755481601, tmax = 756086401
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='60351817', job_status='RUN', time_executed='2024-12-17 00:32:00.571828', time_epoch_executed='1734424320.57' WHERE source_name='4FGL J1117.0+2013' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351817

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60351817/ft1_4FGL_J1117.0+2013_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351817/ft1_4FGL_J1117.0+2013_weekly_bin854.fits outfile=/lscratch/kocevski/60351817/ft1_filteredMKT_4FGL_J1117.0+2013_weekly_bin854.fits ra=169.271 dec=20.2294 rad=12.0 tmin=755481601.0 tmax=756086401.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 4.80
user 4.39
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.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/60351817/ft1_filteredMKT_4FGL_J1117.0+2013_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.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.46
user 0.27
sys 0.15

Number of photons that the gtmktime cut: 1111

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351817/ltcube_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.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/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits
.....................!
real 18.74
user 18.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351817/ltcube_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.fits outfile=/lscratch/kocevski/60351817/expmap_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.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/60351817/ltcube_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.fits
.....................!
real 66.75
user 62.50
sys 3.77

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

Setting source of interest to:
4FGL J1117.0+2013 @ 169.271 20.2294

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits scfile=/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits outfile=/lscratch/kocevski/60351817/cmap_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.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=169.271 yref=20.2294 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.51
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits scfile=/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits outfile=/lscratch/kocevski/60351817/cmap_HighResolution_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.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=169.271 yref=20.2294 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.50
user 0.26
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351817/Model_4FGL_J1117.0+2013_weekly_bin854.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/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits.....................!
real 40.20
user 39.09
sys 0.69

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits', '/lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits', expMap='/lscratch/kocevski/60351817/expmap_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.fits', expCube='/lscratch/kocevski/60351817/ltcube_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351817/Model_4FGL_J1117.0+2013_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1117.0+2013'

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.413e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351817/ft1_filtered_4FGL_J1117.0+2013_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351817/ft2_4FGL_J1117.0+2013_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351817/expmap_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351817/ltcube_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351817/Model_4FGL_J1117.0+2013_weekly_bin854.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) = 12563.3176737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.726       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27707E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .28472E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.2116       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.2542       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.8918       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.2855       1.0000          .0000       .10000E+07
     8 'norm      '    1.9733       1.0000          .0000       .10000E+07
     9 'Prefactor '    .47862       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.3176       1.0000          .0000       .10000E+07
    11 'norm      '    .37091E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    14.178       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.717       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.5522       1.0000          .0000       .10000E+07
    15 'Prefactor '    .30552E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.5321       1.0000          .0000       .10000E+07
    17 'Prefactor '    .80184       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.5449       1.0000          .0000       .10000E+07
    19 'Normalizat'    .84127       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0640       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12563.32     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     2370 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.711        3.4303       -.13359E-09   -.71438E-01
   2  Prefactor     .35326E-01    5.9060        .17731E-06** at limit **
   3  Prefactor      .0000        1.6674       -.32885E-08** at limit **
   4  Prefactor     7.2042        2.7135        .26290E-07    .35292E-01
   5  Prefactor     8.2390        2.9216        .35953E-07    .39104E-01
   6  Prefactor     1.8882        2.0357       -.12853E-06    .28593E-02
   7  Prefactor     4.2797        2.6051        .50170E-07    .23257E-01
   8  norm          1.9729        .83875       -.15065E-07   -.35823E-02
   9  Prefactor     .47689        1.7872       -.25362E-06   -.32734E-02
  10  Prefactor     7.2827        3.0461        .14654E-07    .48461E-02
  11  norm          .55511E-10    2.0240        .22563E-06** at limit **
  12  Prefactor     14.210        5.4802        .67140E-07   -.94017E-01
  13  Prefactor     11.728        1.0962       -.61122E-08   -.28999E-02
  14  Prefactor     2.5323        2.2908        .13686E-07   -.32752E-01
  15  Prefactor     .94369E-09    9.9264       -.33710E-06** at limit **
  16  Prefactor     1.5229        4.3374       -.78058E-07   -.94023E-02
  17  Prefactor     .80168        .85886        .17771E-08   -.11452E-03
  18  Prefactor     2.5422        2.6160       -.34565E-07   -.24723E-02
  19  Normalizat    .84145        .13860        .11895E-05    .13169E-03
  20  Prefactor     1.0639        .14264        .48760E-07    .14272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.711
  Prefactor  = 0.0353263
  Prefactor  = 0
  Prefactor  = 7.20419
  Prefactor  = 8.23904
  Prefactor  = 1.88816
  Prefactor  = 4.27972
  norm       = 1.97293
  Prefactor  = 0.476892
  Prefactor  = 7.28271
  norm       = 5.55112e-11
  Prefactor  = 14.2103
  Prefactor  = 11.7283
  Prefactor  = 2.53234
  Prefactor  = 9.4369e-10
  Prefactor  = 1.5229
  Prefactor  = 0.801677
  Prefactor  = 2.54222
  Normalizat = 0.841454
  Prefactor  = 1.06392
 **********
 **   18 **HESSE 
 **********

 FCN=   12563.32     FROM HESSE     STATUS=OK           345 CALLS     2715 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.711        5.5101        .28054E-03   -1.5637    
   2  Prefactor     .35326E-01    .72609        .29372E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.6828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2042        6.9345        .37328E-03   -1.5654    
   5  Prefactor     8.2390        6.7049        .34871E-03   -1.5651    
   6  Prefactor     1.8882        9.5831        .75618E-03   -1.5680    
   7  Prefactor     4.2797        6.6407        .48643E-03   -1.5667    
   8  norm          1.9729        .84374        .73777E-03   -1.5680    
   9  Prefactor     .47689        2.8443        .80890E-03   -1.5694    
  10  Prefactor     7.2827        5.1813        .37054E-03   -1.5654    
  11  norm          .55511E-10    2.0250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.210        8.5936        .26575E-03   -1.5633    
  13  Prefactor     11.728        13.658        .29241E-03   -1.5639    
  14  Prefactor     2.5323        5.4451        .63885E-03   -1.5676    
  15  Prefactor     .94369E-09    9.9617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5229        4.4265        .86181E-03   -1.5683    
  17  Prefactor     .80168        .87341        .52798E-03   -1.5690    
  18  Prefactor     2.5422        2.6243        .63985E-03   -1.5676    
  19  Normalizat    .84145        .12331        .44146E-01   -.98549    
  20  Prefactor     1.0639        .12395        .39151E-01   -.90628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43394e-06
Minuit parameter uncertainties:
  1  5.5101
  2  0.320312
  3  5.04732e-06
  4  6.93452
  5  6.70488
  6  8.50754
  7  6.64066
  8  0.843743
  9  2.32932
  10  5.18134
  11  2.58099e-05
  12  8.59356
  13  13.6584
  14  5.44515
  15  0.000192897
  16  4.42653
  17  0.873411
  18  2.62426
  19  0.123347
  20  0.123987
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  7.283e+00  5.181e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.064e+00  1.240e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.415e-01  1.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.48
Ra Dec: 169.271 20.229
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.34e-05

TS (Fixed Index): 3.48
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 6.08178427732e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00454467207499 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60351817/likelihoodResults_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.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) = 12562.6548989
delta logL = 0.660225792633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12562.6450456
delta logL = 0.670079067813

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12562.65     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      243 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1000        36.323        .49764E-03    .45164E-02
   2  Index         2.5662        2.3192        .10226        .26982E-03
   3  Normalizat    .80727        .46004E-01    .43705E-01    .21294E-03
   4  Prefactor     1.0856        .42271E-01    .38159E-01    .16039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09998
  Index      = 2.56623
  Normalizat = 0.807273
  Prefactor  = 1.08564
 **********
 **   18 **HESSE 
 **********

 FCN=   12562.65     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1000        6.3060        .11755E-04   -1.5667    
   2  Index         2.5662        .77979        .54396E-02   -.50837    
   3  Normalizat    .80727        .13925        .25728E-03   -.99799    
   4  Prefactor     1.0856        .14521        .23921E-03   -.89927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69247e-08
Minuit parameter uncertainties:
  1  6.30604
  2  0.783993
  3  0.139309
  4  0.145258
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) = 12562.6450456
delta logL = 0.67007906835

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  4.100e+00  6.306e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.566e+00  7.840e-01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.086e+00  1.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.073e-01  1.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 169.271 20.229
Photon Index (Free Index): 2.57 +/- 0.78
Photon Flux (Free Index): 5.09e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.38e-05 +/- 9.33e-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/60351817/cmap_HighResolution_755481601_756086401_4FGL_J1117.0+2013_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='1.38e-05', photon_flux_error='1.74e-08', dlogl='6.70e-01', energy_flux='1.89e-05', photon_flux2='5.09e-08', job_status='DONE', time_completed='2024-12-17 00:40:00.869095', photon_index_error2='0.78', photon_index2='2.57', ts='3.48', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='9.33e-06', EG='0.84', time_epoch_completed='1734424800.87', return_code='0', job_id='60351817', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='3.38e-08', ts2='4.88', photon_index='1.96' WHERE bin_id='854' AND source_name='4FGL J1117.0+2013' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:40:00 PST 2024

