 **********
 **   18 **HESSE 
 **********

 FCN=   16747.01     FROM HESSE     STATUS=OK           520 CALLS     2321 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2565        2.4438        .40108E-03   -1.5658    
   2  Prefactor     18.087        17.072        .23520E-03   -1.5623    
   3  norm           .0000        2.0394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5290        1.9257        .86305E-03   -1.5683    
   5  Prefactor      .0000        32.375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.6136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6640        6.2799        .52917E-03   -1.5670    
   8  Prefactor      .0000        11.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26812E-07    48.982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .98141        197.46        .87174E-03   -1.5688    
  11  Prefactor     18.532        14.743        .23219E-03   -1.5622    
  12  Prefactor     .11113E-06    67.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.3780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .97039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8336        2.8669        .51932E-03   -1.5669    
  16  Prefactor      .0000        5.1361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .74942E-05    21.736        .14857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2429        .51661        .56254E-03   -1.5672    
  19  Prefactor     2.5581        3.4784        .63766E-03   -1.5676    
  20  norm          8.2637        1.4105        .34847E-03   -1.5650    
  21  Prefactor      .0000        1.1108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5874        15.461        .36367E-03   -1.5653    
  23  norm          13.219        10.787        .27605E-03   -1.5635    
  24  norm          .44453        .12001        .50198E-03   -1.5695    
  25  Normalizat    1.2051        .14499        .68598E-01   -.86446    
  26  Prefactor     1.0219        .10499        .41963E-01   -.92002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81208e-07
Minuit parameter uncertainties:
  1  2.44376
  2  17.0724
  3  7.71035e-07
  4  1.92567
  5  2.07195e-05
  6  4.26136e-06
  7  6.27995
  8  2.32875e-06
  9  0.00229164
  10  27.8428
  11  14.7435
  12  0.00547607
  13  2.26153e-06
  14  8.53895e-08
  15  2.86688
  16  1.22958e-05
  17  0.025526
  18  0.516609
  19  3.47837
  20  1.41049
  21  7.41179e-07
  22  15.4614
  23  10.7865
  24  0.120013
  25  0.145042
  26  0.105013
/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).

Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  2.262e-06  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.022e+00  1.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.205e+00  1.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 3.68957473217e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00283573775495 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34161961/likelihoodResults_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.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) = 16747.0061448
delta logL = -0.000490348873427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16747.0056577
delta logL = -3.21110201185e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16747.01     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      263 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1486        .42118E-03** at limit **
   2  Index         3.0018        1.6188       -.11989E-04     .0000    
   3  Normalizat    1.2051        1.1043        .61145E-06   -.11070E-03
   4  Prefactor     1.0219        1.2345        .31615E-05   -.14887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00177
  Normalizat = 1.20508
  Prefactor  = 1.02194
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16747.01     FROM HESSE     STATUS=FAILED         9 CALLS      272 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0186        2.1120       -.11989E-04   -.41113    
   3  Normalizat    1.2051        1.1043        .61145E-06   -.86446    
   4  Prefactor     1.0219        1.2345        .31615E-05   -.92002    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.05097e-11
Minuit parameter uncertainties:
  1  6.91664e-06
  2  1.6545
  3  1.1269
  4  1.27152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 16747.0056545
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  3.002e+00  1.654e+00  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.022e+00  1.272e+00  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.205e+00  1.127e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 184.514 -0.483

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/34161961/cmap_HighResolution_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-03', job_status='DONE', photon_flux_upper_limit='3.69e-08', time_completed='2026-08-04 09:58:03.221431', job_id='34161961', GAL2='1.02', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1785862683.22', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='939' AND source_name='4FGL J1218.0-0028' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 09:58:03 PDT 2026

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


Performing analysis on: 4FGL_J1218.0-0028_weekly_bin939
RA = 184.514, Dec = -0.4832
tmin = 806889601, tmax = 807494401
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='34162610', job_status='RUN', time_executed='2026-08-04 09:56:59.690512', time_epoch_executed='1785862619.69' WHERE source_name='4FGL J1218.0-0028' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34162610

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34162610/ft1_4FGL_J1218.0-0028_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/34162610/ft1_4FGL_J1218.0-0028_weekly_bin939.fits outfile=/lscratch/kocevski/34162610/ft1_filteredMKT_4FGL_J1218.0-0028_weekly_bin939.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=806889601.0 tmax=807494401.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 3.84
user 3.11
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.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/34162610/ft1_filteredMKT_4FGL_J1218.0-0028_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.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.71
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1555

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34162610/ltcube_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.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/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits
.....................!
real 16.53
user 15.75
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34162610/ltcube_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.fits outfile=/lscratch/kocevski/34162610/expmap_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.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/34162610/ltcube_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.fits
.....................!
real 59.93
user 55.37
sys 3.68

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

Setting source of interest to:
4FGL J1218.0-0028 @ 184.514 -0.4832

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits scfile=/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits outfile=/lscratch/kocevski/34162610/cmap_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.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=184.514 yref=-0.4832 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.73
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits scfile=/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits outfile=/lscratch/kocevski/34162610/cmap_HighResolution_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.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=184.514 yref=-0.4832 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.80
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34162610/Model_4FGL_J1218.0-0028_weekly_bin939.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/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits.....................!
real 43.10
user 41.21
sys 0.88

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits', '/lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits', expMap='/lscratch/kocevski/34162610/expmap_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.fits', expCube='/lscratch/kocevski/34162610/ltcube_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34162610/Model_4FGL_J1218.0-0028_weekly_bin939.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.0-0028'

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.373e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/34162610/ft1_filtered_4FGL_J1218.0-0028_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34162610/ft2_4FGL_J1218.0-0028_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34162610/expmap_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34162610/ltcube_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34162610/Model_4FGL_J1218.0-0028_weekly_bin939.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) = 16747.0974969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2568       1.0000          .0000       .10000E+07
     2 'Prefactor '    18.091       1.0000          .0000       .10000E+07
     3 'norm      '    .49252E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5288       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11412E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17314E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.6412       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23107E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12832E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.5059       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.563       1.0000          .0000       .10000E+07
    12 'Prefactor '    .23095E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .35276E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .49294E-07   1.0000          .0000       .10000E+07
    15 'norm      '    3.7753       1.0000          .0000       .10000E+07
    16 'Prefactor '    .10004E-02   1.0000          .0000       .10000E+07
    17 'norm      '    1.2661       1.0000          .0000       .10000E+07
    18 'norm      '    3.2391       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.5610       1.0000          .0000       .10000E+07
    20 'norm      '    8.2653       1.0000          .0000       .10000E+07
    21 'Prefactor '    .13883E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    7.5942       1.0000          .0000       .10000E+07
    23 'norm      '    13.142       1.0000          .0000       .10000E+07
    24 'norm      '    .44468       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2050       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16747.01     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1801 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2565        2.4392        .54114E-08   -.16358E-03
   2  Prefactor     18.087        1.3539        .13558E-08   -.29821E-01
   3  norm           .0000        2.0470        .17869E-07** at limit **
   4  Prefactor     1.5290        1.9086       -.31051E-07   -.97141E-04
   5  Prefactor      .0000        32.232       -.19382E-06** at limit **
   6  Prefactor      .0000        3.6077       -.74401E-07** at limit **
   7  Prefactor     3.6640        6.0144        .16647E-06   -.62223E-03
   8  Prefactor      .0000        11.739        .27313E-07** at limit **
   9  Prefactor     .26812E-07    48.380        .97286E-07** at limit **
  10  Prefactor     .98141        5.4156       -.28569E-07    .31063E-02
  11  Prefactor     18.532        14.327        .17486E-07    .14710E-01
  12  Prefactor     .11113E-06    58.262        .41353E-06** at limit **
  13  Prefactor      .0000        2.3754        .18246E-07** at limit **
  14  norm           .0000        .99837       -.13104E-07** at limit **
  15  norm          3.8336        2.6091        .42552E-07   -.55204E-04
  16  Prefactor      .0000        5.1156       -.35669E-07** at limit **
  17  norm          .74942E-05    59.801        .38450E-06** at limit **
  18  norm          3.2429        .50960        .56288E-08   -.89812E-03
  19  Prefactor     2.5581        3.4691        .14488E-07   -.51424E-04
  20  norm          8.2637        1.4082        .14429E-08   -.78012E-03
  21  Prefactor      .0000        1.1104       -.30716E-07** at limit **
  22  Prefactor     7.5874        4.1947        .11559E-07   -.30778E-01
  23  norm          13.219        10.779        .21342E-07    .12821E-02
  24  norm          .44453        .11766        .56034E-08    .79552E-03
  25  Normalizat    1.2051        .16602       -.28995E-05   -.56592E-05
  26  Prefactor     1.0219        .12187        .64507E-06   -.17557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.25655
  Prefactor  = 18.0873
  norm       = 0
  Prefactor  = 1.52901
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.66404
  Prefactor  = 0
  Prefactor  = 2.68119e-08
  Prefactor  = 0.981406
  Prefactor  = 18.532
  Prefactor  = 1.11133e-07
  Prefactor  = 0
  norm       = 0
  norm       = 3.83356
  Prefactor  = 0
  norm       = 7.49423e-06
  norm       = 3.24285
  Prefactor  = 2.55812
  norm       = 8.26374
  Prefactor  = 0
  Prefactor  = 7.58735
  norm       = 13.2187
  norm       = 0.444535
  Normalizat = 1.20508
  Prefactor  = 1.02194
 **********
 **   18 **HESSE 
 **********

 FCN=   16747.01     FROM HESSE     STATUS=OK           520 CALLS     2321 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2565        2.4438        .40108E-03   -1.5658    
   2  Prefactor     18.087        17.072        .23520E-03   -1.5623    
   3  norm           .0000        2.0394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5290        1.9257        .86305E-03   -1.5683    
   5  Prefactor      .0000        32.375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.6136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6640        6.2799        .52917E-03   -1.5670    
   8  Prefactor      .0000        11.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26812E-07    48.982        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .98141        197.46        .87174E-03   -1.5688    
  11  Prefactor     18.532        14.743        .23219E-03   -1.5622    
  12  Prefactor     .11113E-06    67.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.3780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .97039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8336        2.8669        .51932E-03   -1.5669    
  16  Prefactor      .0000        5.1361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .74942E-05    21.736        .14857E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2429        .51661        .56254E-03   -1.5672    
  19  Prefactor     2.5581        3.4784        .63766E-03   -1.5676    
  20  norm          8.2637        1.4105        .34847E-03   -1.5650    
  21  Prefactor      .0000        1.1108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5874        15.461        .36367E-03   -1.5653    
  23  norm          13.219        10.787        .27605E-03   -1.5635    
  24  norm          .44453        .12001        .50198E-03   -1.5695    
  25  Normalizat    1.2051        .14499        .68598E-01   -.86446    
  26  Prefactor     1.0219        .10499        .41963E-01   -.92002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81208e-07
Minuit parameter uncertainties:
  1  2.44376
  2  17.0724
  3  7.71035e-07
  4  1.92567
  5  2.07195e-05
  6  4.26136e-06
  7  6.27995
  8  2.32875e-06
  9  0.00229164
  10  27.8428
  11  14.7435
  12  0.00547607
  13  2.26153e-06
  14  8.53895e-08
  15  2.86688
  16  1.22958e-05
  17  0.025526
  18  0.516609
  19  3.47837
  20  1.41049
  21  7.41179e-07
  22  15.4614
  23  10.7865
  24  0.120013
  25  0.145042
  26  0.105013
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  2.262e-06  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.022e+00  1.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.205e+00  1.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 3.68957473217e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00283573775495 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/34162610/likelihoodResults_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.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) = 16747.0061448
delta logL = -0.000490348873427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16747.0056577
delta logL = -3.21110201185e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16747.01     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      263 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1486        .42118E-03** at limit **
   2  Index         3.0018        1.6188       -.11989E-04     .0000    
   3  Normalizat    1.2051        1.1043        .61145E-06   -.11070E-03
   4  Prefactor     1.0219        1.2345        .31615E-05   -.14887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00177
  Normalizat = 1.20508
  Prefactor  = 1.02194
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16747.01     FROM HESSE     STATUS=FAILED         9 CALLS      272 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0186        2.1120       -.11989E-04   -.41113    
   3  Normalizat    1.2051        1.1043        .61145E-06   -.86446    
   4  Prefactor     1.0219        1.2345        .31615E-05   -.92002    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.05097e-11
Minuit parameter uncertainties:
  1  6.91664e-06
  2  1.6545
  3  1.1269
  4  1.27152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 16747.0056545
delta logL = -3.63797880709e-12

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  6.917e-06  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  3.002e+00  1.654e+00  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.022e+00  1.272e+00  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.205e+00  1.127e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 184.514 -0.483

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/34162610/cmap_HighResolution_806889601_807494401_4FGL_J1218.0-0028_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-03', job_status='DONE', photon_flux_upper_limit='3.69e-08', time_completed='2026-08-04 10:08:08.055566', job_id='34162610', GAL2='1.02', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1785863288.06', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='939' AND source_name='4FGL J1218.0-0028' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 10:08:08 PDT 2026

