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

 FCN=   5535.982     FROM HESSE     STATUS=OK           522 CALLS     2988 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9834        1.9411        .73570E-02   -1.5426    
   2  Prefactor     22.183        14.477        .21251E-03   -1.5614    
   3  Prefactor     .40079E-07    36.023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27756E-09    80.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95723E-02    .10699        .13128E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10658E-07    11.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .80343        25.748        .54484E-03   -1.5690    
   8  Prefactor     .94369E-09    8.0290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.516        82.667        .15386E-03   -1.5581    
  10  norm          2.0742        2.4066        .71632E-03   -1.5679    
  11  norm          11.914        11.381        .29060E-03   -1.5639    
  12  norm          .46629E-08    6.3246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .36701E-05    9.0142        .69789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.915        30.220        .24282E-03   -1.5626    
  15  Prefactor     .44520E-07    19.571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.808        24.371        .16812E-03   -1.5588    
  17  norm          .55511E-10    1.1658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .27756E-09    3.6974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.713        11.885        .19680E-03   -1.5607    
  20  Prefactor     33.532        21.511        .17306E-03   -1.5592    
  21  Prefactor     .11657E-08    14.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .38858E-09    2.3369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7554        6.6960        .35649E-03   -1.5652    
  24  norm          .10936E-07    7.1993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4548        .27781        .72158E-01   -.79056    
  26  Prefactor     .85824        .14528        .44473E-01   -.97616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-07
Minuit parameter uncertainties:
  1  1.94112
  2  14.4765
  3  0.0024037
  4  0.000304847
  5  0.0640043
  6  0.000701089
  7  9.09652
  8  0.000172389
  9  82.669
  10  2.40659
  11  11.3813
  12  0.00034378
  13  0.0115035
  14  30.2201
  15  0.00186708
  16  24.3714
  17  1.45955e-05
  18  6.62684e-05
  19  11.8855
  20  21.511
  21  0.000264359
  22  6.06065e-05
  23  6.69598
  24  0.000560695
  25  0.278105
  26  0.14535
/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).

_V02
Working on...
/lscratch/kocevski/31415445/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits.....................!
real 20.58
user 19.29
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31415445/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits', '/lscratch/kocevski/31415445/ft2_4FGL_J1318.7-1234_daily_bin2173.fits', expMap='/lscratch/kocevski/31415445/expmap_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits', expCube='/lscratch/kocevski/31415445/ltcube_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31415445/Model_4FGL_J1318.7-1234_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.7-1234'

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.941e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31415445/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31415445/ft2_4FGL_J1318.7-1234_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31415445/expmap_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31415445/ltcube_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31415445/Model_4FGL_J1318.7-1234_daily_bin2173.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) = 5535.992609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.156       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27414E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .71668E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .91045E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .86719E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .77939       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19859E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    42.248       1.0000          .0000       .10000E+07
    10 'norm      '    2.0772       1.0000          .0000       .10000E+07
    11 'norm      '    11.863       1.0000          .0000       .10000E+07
    12 'norm      '     .0000       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14357       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.976       1.0000          .0000       .10000E+07
    15 'Prefactor '    .68249E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.387       1.0000          .0000       .10000E+07
    17 'norm      '    .30259E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .10038E-02   1.0000          .0000       .10000E+07
    19 'norm      '    25.829       1.0000          .0000       .10000E+07
    20 'Prefactor '    33.396       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22374E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .16346E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    7.9007       1.0000          .0000       .10000E+07
    24 'norm      '    .56701E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.4533       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85843       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  3.670e-06  1.150e-02  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.582e-01  1.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.455e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 9.95724015257e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00754396049334 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31415420/likelihoodResults_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.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): 102
logL (Free Index) = 5535.99480778
delta logL = -0.013130288311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5535.79937508
delta logL = 0.18230241367

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5535.799     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76879        41.633        .55425E-03    .15389E-01
   2  Index         3.3141        3.7170        .13147        .17061E-03
   3  Normalizat    1.4139        .65313E-01    .72983E-01    .26047E-03
   4  Prefactor     .86846        .35517E-01    .44603E-01    .89406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.768786
  Index      = 3.31413
  Normalizat = 1.41388
  Prefactor  = 0.868465
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.799     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76879        120.35        .10982E-04   -1.5690    
   2  Index         3.3141        5.4796        .77426E-02   -.34391    
   3  Normalizat    1.4139        .30082        .32294E-03   -.80228    
   4  Prefactor     .86846        .16504        .21890E-03   -.97252    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99733e-09
Minuit parameter uncertainties:
  1  19.2382
  2  10.5453
  3  0.301198
  4  0.165138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5535.79937387
delta logL = 0.182303629818

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  7.688e-01  1.924e+01  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  3.314e+00  1.055e+01  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.685e-01  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.414e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.694 -12.581

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31415420/cmap_HighResolution_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2026-07-12 01:24:55.304082', job_id='31415420', GAL2='0.87', fit_tolerance='1e-08', EG2='1.41', EG='1.45', time_epoch_completed='1783844695.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.82e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='2173' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 01:24:55 PDT 2026

**********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5535.982     FROM MIGRAD    STATUS=CONVERGED    257 CALLS     2466 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9834        1.9337       -.81000E-06    .10747E-03
   2  Prefactor     22.183        11.203        .10037E-05   -.80099E-01
   3  Prefactor     .40079E-07    35.769       -.44403E-06** at limit **
   4  Prefactor     .27756E-09    80.385        .93690E-06** at limit **
   5  norm          .95723E-02    .65012       -.18140E-06** at limit **
   6  norm          .10658E-07    11.494       -.25118E-07** at limit **
   7  norm          .80343        2.2982        .61991E-06    .17544E-01
   8  Prefactor     .94369E-09    8.0172        .37681E-06** at limit **
   9  Prefactor     40.516        82.190       -.34752E-05    .10226E-02
  10  norm          2.0742        2.3944        .40606E-08   -.22106E-03
  11  norm          11.914        10.785       -.11416E-05   -.39675E-01
  12  norm          .46629E-08    6.2984        .60064E-06** at limit **
  13  Prefactor     .36701E-05    40.398       -.83882E-05** at limit **
  14  Prefactor     16.915        2.7159       -.42067E-06    .17077E-01
  15  Prefactor     .44520E-07    19.204       -.92210E-06** at limit **
  16  Prefactor     35.808        21.868       -.31745E-05    .35539E-01
  17  norm          .55511E-10    1.2004        .19087E-07** at limit **
  18  norm          .27756E-09    3.6998       -.90108E-07** at limit **
  19  norm          25.713        10.831       -.27331E-07   -.60847E-01
  20  Prefactor     33.532        5.2417       -.59004E-06   -.17204E-01
  21  Prefactor     .11657E-08    14.821        .11532E-05** at limit **
  22  norm          .38858E-09    2.3386        .33423E-06** at limit **
  23  Prefactor     7.7554        6.6691        .15585E-06    .72364E-02
  24  norm          .10936E-07    7.1488        .12412E-06** at limit **
  25  Normalizat    1.4548        .31858        .13135E-04    .80535E-04
  26  Prefactor     .85824        .16890       -.15413E-05    .24161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98337
  Prefactor  = 22.183
  Prefactor  = 4.00791e-08
  Prefactor  = 2.77556e-10
  norm       = 0.00957234
  norm       = 1.06581e-08
  norm       = 0.803434
  Prefactor  = 9.4369e-10
  Prefactor  = 40.5164
  norm       = 2.07418
  norm       = 11.9141
  norm       = 4.66294e-09
  Prefactor  = 3.67006e-06
  Prefactor  = 16.9147
  Prefactor  = 4.45199e-08
  Prefactor  = 35.8076
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 25.7131
  Prefactor  = 33.5322
  Prefactor  = 1.16573e-09
  norm       = 3.88578e-10
  Prefactor  = 7.75541
  norm       = 1.09357e-08
  Normalizat = 1.45482
  Prefactor  = 0.858241
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.982     FROM HESSE     STATUS=OK           522 CALLS     2988 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9834        1.9411        .73570E-02   -1.5426    
   2  Prefactor     22.183        14.477        .21251E-03   -1.5614    
   3  Prefactor     .40079E-07    36.023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27756E-09    80.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95723E-02    .10699        .13128E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10658E-07    11.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .80343        25.748        .54484E-03   -1.5690    
   8  Prefactor     .94369E-09    8.0290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.516        82.667        .15386E-03   -1.5581    
  10  norm          2.0742        2.4066        .71632E-03   -1.5679    
  11  norm          11.914        11.381        .29060E-03   -1.5639    
  12  norm          .46629E-08    6.3246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .36701E-05    9.0142        .69789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.915        30.220        .24282E-03   -1.5626    
  15  Prefactor     .44520E-07    19.571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.808        24.371        .16812E-03   -1.5588    
  17  norm          .55511E-10    1.1658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .27756E-09    3.6974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.713        11.885        .19680E-03   -1.5607    
  20  Prefactor     33.532        21.511        .17306E-03   -1.5592    
  21  Prefactor     .11657E-08    14.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .38858E-09    2.3369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7554        6.6960        .35649E-03   -1.5652    
  24  norm          .10936E-07    7.1993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4548        .27781        .72158E-01   -.79056    
  26  Prefactor     .85824        .14528        .44473E-01   -.97616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-07
Minuit parameter uncertainties:
  1  1.94112
  2  14.4765
  3  0.0024037
  4  0.000304847
  5  0.0640043
  6  0.000701089
  7  9.09652
  8  0.000172389
  9  82.669
  10  2.40659
  11  11.3813
  12  0.00034378
  13  0.0115035
  14  30.2201
  15  0.00186708
  16  24.3714
  17  1.45955e-05
  18  6.62684e-05
  19  11.8855
  20  21.511
  21  0.000264359
  22  6.06065e-05
  23  6.69598
  24  0.000560695
  25  0.278105
  26  0.14535
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  3.670e-06  1.150e-02  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.582e-01  1.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.455e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 9.95724015257e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00754396049334 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31415445/likelihoodResults_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.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): 102
logL (Free Index) = 5535.99480778
delta logL = -0.013130288311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5535.79937508
delta logL = 0.18230241367

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5535.799     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76879        41.633        .55425E-03    .15389E-01
   2  Index         3.3141        3.7170        .13147        .17061E-03
   3  Normalizat    1.4139        .65313E-01    .72983E-01    .26047E-03
   4  Prefactor     .86846        .35517E-01    .44603E-01    .89406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.768786
  Index      = 3.31413
  Normalizat = 1.41388
  Prefactor  = 0.868465
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.799     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76879        120.35        .10982E-04   -1.5690    
   2  Index         3.3141        5.4796        .77426E-02   -.34391    
   3  Normalizat    1.4139        .30082        .32294E-03   -.80228    
   4  Prefactor     .86846        .16504        .21890E-03   -.97252    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99733e-09
Minuit parameter uncertainties:
  1  19.2382
  2  10.5453
  3  0.301198
  4  0.165138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5535.79937387
delta logL = 0.182303629818

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  7.688e-01  1.924e+01  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  3.314e+00  1.055e+01  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.685e-01  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.414e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.694 -12.581

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31415445/cmap_HighResolution_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2026-07-12 01:25:41.817621', job_id='31415445', GAL2='0.87', fit_tolerance='1e-08', EG2='1.41', EG='1.45', time_epoch_completed='1783844741.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.82e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='2173' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 01:25:42 PDT 2026

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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin2173
RA = 199.694, Dec = -12.581
tmin = 802569601, tmax = 802828801
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='31415733', job_status='RUN', time_executed='2026-07-12 01:24:35.545325', time_epoch_executed='1783844675.55' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='2173'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31415733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31415733/ft1_4FGL_J1318.7-1234_daily_bin2173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31415733/ft1_4FGL_J1318.7-1234_daily_bin2173.fits outfile=/lscratch/kocevski/31415733/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin2173.fits ra=199.694 dec=-12.581 rad=12.0 tmin=802569601.0 tmax=802828801.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.34
user 2.79
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.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/31415733/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin2173.fits evtable="EVENTS" outfile="/lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.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.72
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 490

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31415733/ltcube_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.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/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits
.....................!
real 8.89
user 8.25
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31415733/ltcube_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits outfile=/lscratch/kocevski/31415733/expmap_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.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/31415733/ltcube_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits
.....................!
real 73.15
user 68.22
sys 4.25

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

Setting source of interest to:
4FGL J1318.7-1234 @ 199.694 -12.581

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits scfile=/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits outfile=/lscratch/kocevski/31415733/cmap_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.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=199.694 yref=-12.581 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.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits scfile=/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits outfile=/lscratch/kocevski/31415733/cmap_HighResolution_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.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=199.694 yref=-12.581 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.79
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31415733/Model_4FGL_J1318.7-1234_daily_bin2173.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/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits.....................!
real 20.65
user 19.09
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits', '/lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits', expMap='/lscratch/kocevski/31415733/expmap_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits', expCube='/lscratch/kocevski/31415733/ltcube_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31415733/Model_4FGL_J1318.7-1234_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.7-1234'

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.941e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31415733/ft1_filtered_4FGL_J1318.7-1234_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31415733/ft2_4FGL_J1318.7-1234_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31415733/expmap_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31415733/ltcube_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31415733/Model_4FGL_J1318.7-1234_daily_bin2173.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) = 5535.992609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.156       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27414E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .71668E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .91045E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .86719E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .77939       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19859E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    42.248       1.0000          .0000       .10000E+07
    10 'norm      '    2.0772       1.0000          .0000       .10000E+07
    11 'norm      '    11.863       1.0000          .0000       .10000E+07
    12 'norm      '     .0000       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14357       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.976       1.0000          .0000       .10000E+07
    15 'Prefactor '    .68249E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.387       1.0000          .0000       .10000E+07
    17 'norm      '    .30259E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .10038E-02   1.0000          .0000       .10000E+07
    19 'norm      '    25.829       1.0000          .0000       .10000E+07
    20 'Prefactor '    33.396       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22374E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .16346E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    7.9007       1.0000          .0000       .10000E+07
    24 'norm      '    .56701E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.4533       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85843       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5535.982     FROM MIGRAD    STATUS=CONVERGED    257 CALLS     2466 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9834        1.9337       -.81000E-06    .10747E-03
   2  Prefactor     22.183        11.203        .10037E-05   -.80099E-01
   3  Prefactor     .40079E-07    35.769       -.44403E-06** at limit **
   4  Prefactor     .27756E-09    80.385        .93690E-06** at limit **
   5  norm          .95723E-02    .65012       -.18140E-06** at limit **
   6  norm          .10658E-07    11.494       -.25118E-07** at limit **
   7  norm          .80343        2.2982        .61991E-06    .17544E-01
   8  Prefactor     .94369E-09    8.0172        .37681E-06** at limit **
   9  Prefactor     40.516        82.190       -.34752E-05    .10226E-02
  10  norm          2.0742        2.3944        .40606E-08   -.22106E-03
  11  norm          11.914        10.785       -.11416E-05   -.39675E-01
  12  norm          .46629E-08    6.2984        .60064E-06** at limit **
  13  Prefactor     .36701E-05    40.398       -.83882E-05** at limit **
  14  Prefactor     16.915        2.7159       -.42067E-06    .17077E-01
  15  Prefactor     .44520E-07    19.204       -.92210E-06** at limit **
  16  Prefactor     35.808        21.868       -.31745E-05    .35539E-01
  17  norm          .55511E-10    1.2004        .19087E-07** at limit **
  18  norm          .27756E-09    3.6998       -.90108E-07** at limit **
  19  norm          25.713        10.831       -.27331E-07   -.60847E-01
  20  Prefactor     33.532        5.2417       -.59004E-06   -.17204E-01
  21  Prefactor     .11657E-08    14.821        .11532E-05** at limit **
  22  norm          .38858E-09    2.3386        .33423E-06** at limit **
  23  Prefactor     7.7554        6.6691        .15585E-06    .72364E-02
  24  norm          .10936E-07    7.1488        .12412E-06** at limit **
  25  Normalizat    1.4548        .31858        .13135E-04    .80535E-04
  26  Prefactor     .85824        .16890       -.15413E-05    .24161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98337
  Prefactor  = 22.183
  Prefactor  = 4.00791e-08
  Prefactor  = 2.77556e-10
  norm       = 0.00957234
  norm       = 1.06581e-08
  norm       = 0.803434
  Prefactor  = 9.4369e-10
  Prefactor  = 40.5164
  norm       = 2.07418
  norm       = 11.9141
  norm       = 4.66294e-09
  Prefactor  = 3.67006e-06
  Prefactor  = 16.9147
  Prefactor  = 4.45199e-08
  Prefactor  = 35.8076
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 25.7131
  Prefactor  = 33.5322
  Prefactor  = 1.16573e-09
  norm       = 3.88578e-10
  Prefactor  = 7.75541
  norm       = 1.09357e-08
  Normalizat = 1.45482
  Prefactor  = 0.858241
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.982     FROM HESSE     STATUS=OK           522 CALLS     2988 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9834        1.9411        .73570E-02   -1.5426    
   2  Prefactor     22.183        14.477        .21251E-03   -1.5614    
   3  Prefactor     .40079E-07    36.023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27756E-09    80.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95723E-02    .10699        .13128E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10658E-07    11.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .80343        25.748        .54484E-03   -1.5690    
   8  Prefactor     .94369E-09    8.0290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.516        82.667        .15386E-03   -1.5581    
  10  norm          2.0742        2.4066        .71632E-03   -1.5679    
  11  norm          11.914        11.381        .29060E-03   -1.5639    
  12  norm          .46629E-08    6.3246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .36701E-05    9.0142        .69789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.915        30.220        .24282E-03   -1.5626    
  15  Prefactor     .44520E-07    19.571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.808        24.371        .16812E-03   -1.5588    
  17  norm          .55511E-10    1.1658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .27756E-09    3.6974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.713        11.885        .19680E-03   -1.5607    
  20  Prefactor     33.532        21.511        .17306E-03   -1.5592    
  21  Prefactor     .11657E-08    14.877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .38858E-09    2.3369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7554        6.6960        .35649E-03   -1.5652    
  24  norm          .10936E-07    7.1993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4548        .27781        .72158E-01   -.79056    
  26  Prefactor     .85824        .14528        .44473E-01   -.97616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09078e-07
Minuit parameter uncertainties:
  1  1.94112
  2  14.4765
  3  0.0024037
  4  0.000304847
  5  0.0640043
  6  0.000701089
  7  9.09652
  8  0.000172389
  9  82.669
  10  2.40659
  11  11.3813
  12  0.00034378
  13  0.0115035
  14  30.2201
  15  0.00186708
  16  24.3714
  17  1.45955e-05
  18  6.62684e-05
  19  11.8855
  20  21.511
  21  0.000264359
  22  6.06065e-05
  23  6.69598
  24  0.000560695
  25  0.278105
  26  0.14535
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  3.670e-06  1.150e-02  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.582e-01  1.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.455e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 9.95724015257e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00754396049334 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31415733/likelihoodResults_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.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): 102
logL (Free Index) = 5535.99480778
delta logL = -0.013130288311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5535.79937508
delta logL = 0.18230241367

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5535.799     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76879        41.633        .55425E-03    .15389E-01
   2  Index         3.3141        3.7170        .13147        .17061E-03
   3  Normalizat    1.4139        .65313E-01    .72983E-01    .26047E-03
   4  Prefactor     .86846        .35517E-01    .44603E-01    .89406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.768786
  Index      = 3.31413
  Normalizat = 1.41388
  Prefactor  = 0.868465
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.799     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76879        120.35        .10982E-04   -1.5690    
   2  Index         3.3141        5.4796        .77426E-02   -.34391    
   3  Normalizat    1.4139        .30082        .32294E-03   -.80228    
   4  Prefactor     .86846        .16504        .21890E-03   -.97252    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99733e-09
Minuit parameter uncertainties:
  1  19.2382
  2  10.5453
  3  0.301198
  4  0.165138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5535.79937387
delta logL = 0.182303629818

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  7.688e-01  1.924e+01  0.000e+00  1.000e+06 ( 1.000e-13)
322        Index:  3.314e+00  1.055e+01  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  8.685e-01  1.651e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.414e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.694 -12.581

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/31415733/cmap_HighResolution_802569601_802828801_4FGL_J1318.7-1234_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.96e-08', time_completed='2026-07-12 01:31:03.275489', job_id='31415733', GAL2='0.87', fit_tolerance='1e-08', EG2='1.41', EG='1.45', time_epoch_completed='1783845063.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.82e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='2173' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jul 12 01:31:03 PDT 2026

