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

 FCN=   7541.941     FROM HESSE     STATUS=OK           310 CALLS     1960 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6464        8.7098        .60205E-03   -1.5675    
   2  norm           .0000        .22983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    14.199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .13989E-07    7.9616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4926        14.058        .34342E-03   -1.5650    
   6  Prefactor      .0000        26.075        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24591E-07    8.3803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        9.5713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    5.0782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        7.6461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    2.0570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4496        10.654        .34532E-03   -1.5650    
  13  Prefactor     .38858E-09    11.246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42677        2.0551        .60781E-02   -1.5695    
  15  norm          7.0853        7.3703        .37610E-03   -1.5655    
  16  norm           .0000        42.607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     354.84        88.054        .53183E-04   -1.5331    
  18  Normalizat    1.0450        .27307        .10338       -.91536    
  19  Prefactor     .98366        .82292E-01    .33328E-01   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42878e-07
Minuit parameter uncertainties:
  1  8.70983
  2  7.34352e-07
  3  4.81402e-05
  4  0.000667276
  5  14.0582
  6  2.25218e-05
  7  0.000908254
  8  2.25813e-06
  9  2.88677e-05
  10  1.4826e-05
  11  3.27455e-05
  12  10.6536
  13  0.000129796
  14  1.87304
  15  7.37026
  16  4.09228e-05
  17  88.0546
  18  0.273439
  19  0.0823023
/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) = 7541.94144215

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  3.886e-10  1.298e-04  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.837e-01  8.230e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.045e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 49.972 18.753
Photon Flux Upper Limit: 6.58677531005e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478859371935 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31057604/likelihoodResults_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.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) = 7541.98419601
delta logL = -0.0427538537788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7541.9414487
delta logL = -6.5467929744e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7541.941     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      210 TOTAL
                     EDM=   .78E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.9999        .42118E-03** at limit **
   2  Index         1.9976        1.6692        .16180E-04     .0000    
   3  Normalizat    1.0450        1.2092        .29622E-05    .12095E-04
   4  Prefactor     .98366        1.3237       -.15582E-05    .22544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99755
  Normalizat = 1.04504
  Prefactor  = 0.98366
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7541.941     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .78E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.9999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42782        1.8439        .16180E-04   -.64411    
   3  Normalizat    1.0450        1.2092        .29622E-05   -.91536    
   4  Prefactor     .98366        1.3237       -.15582E-05   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.8011e-13
Minuit parameter uncertainties:
  1  1.24353e-05
  2  1.72192
  3  1.24353
  4  1.3717
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) = 7541.94144215
delta logL = 1.72803993337e-11

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  0.000e+00  1.244e-05  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.998e+00  1.722e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.837e-01  1.372e+00  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.045e+00  1.244e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 49.972 18.753

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/31057604/cmap_HighResolution_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2026-07-08 13:54:43.299957', job_id='31057604', GAL2='0.98', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1783544083.3', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.66' WHERE bin_id='2179' AND source_name='4FGL J0319.8+1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 13:54:43 PDT 2026

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


Performing analysis on: 4FGL_J0319.8+1845_daily_bin2179
RA = 49.9722, Dec = 18.7532
tmin = 804124801, tmax = 804384001
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='31057862', job_status='RUN', time_executed='2026-07-08 13:54:31.523315', time_epoch_executed='1783544071.52' WHERE source_name='4FGL J0319.8+1845' and cadence='daily' and bin_id='2179'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31057862

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31057862/ft1_4FGL_J0319.8+1845_daily_bin2179.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31057862/ft1_4FGL_J0319.8+1845_daily_bin2179.fits outfile=/lscratch/kocevski/31057862/ft1_filteredMKT_4FGL_J0319.8+1845_daily_bin2179.fits ra=49.9722 dec=18.7532 rad=12.0 tmin=804124801.0 tmax=804384001.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 1.99
user 1.48
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.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/31057862/ft1_filteredMKT_4FGL_J0319.8+1845_daily_bin2179.fits evtable="EVENTS" outfile="/lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.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.60
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 699

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits sctable="SC_DATA" outfile=/lscratch/kocevski/31057862/ltcube_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.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/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits
.....................!
real 9.49
user 8.92
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits evtable="EVENTS" scfile=/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31057862/ltcube_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.fits outfile=/lscratch/kocevski/31057862/expmap_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.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/31057862/ltcube_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.fits
.....................!
real 74.93
user 70.00
sys 4.28

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

Setting source of interest to:
4FGL J0319.8+1845 @ 49.9722 18.7532

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits scfile=/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits outfile=/lscratch/kocevski/31057862/cmap_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.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=49.9722 yref=18.7532 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.24
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits scfile=/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits outfile=/lscratch/kocevski/31057862/cmap_HighResolution_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.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=49.9722 yref=18.7532 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.49
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits evtable="EVENTS" scfile=/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31057862/Model_4FGL_J0319.8+1845_daily_bin2179.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/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits.....................!
real 49.72
user 48.06
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits', '/lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits', expMap='/lscratch/kocevski/31057862/expmap_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.fits', expCube='/lscratch/kocevski/31057862/ltcube_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31057862/Model_4FGL_J0319.8+1845_daily_bin2179.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0319.8+1845'

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  1.356e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31057862/ft1_filtered_4FGL_J0319.8+1845_daily_bin2179.fits
Spacecraft file(s): /lscratch/kocevski/31057862/ft2_4FGL_J0319.8+1845_daily_bin2179.fits
Exposure map: /lscratch/kocevski/31057862/expmap_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.fits
Exposure cube: /lscratch/kocevski/31057862/ltcube_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31057862/Model_4FGL_J0319.8+1845_daily_bin2179.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) = 7541.95091913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8495       1.0000          .0000       .10000E+07
     2 'norm      '    .19190E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .40321E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .13195E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.5085       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10088       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12333E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10104E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .86709E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .90492E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .19207E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4159       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24720E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .45999       1.0000          .0000       .10000E+07
    15 'norm      '    7.1051       1.0000          .0000       .10000E+07
    16 'norm      '    .70575E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    353.68       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0435       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98389       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7541.941     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1650 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6464        8.3499       -.51832E-06   -.14548E-03
   2  norm           .0000        .23412        .13265E-06** at limit **
   3  Prefactor     .55511E-10    14.212       -.15894E-05** at limit **
   4  norm          .13989E-07    4.4885        .42756E-05** at limit **
   5  Prefactor     8.4926        1.7464        .70861E-07    .13530E-02
   6  Prefactor      .0000        26.173       -.96701E-06** at limit **
   7  Prefactor     .24591E-07    3.7729        .29231E-05** at limit **
   8  Prefactor      .0000        9.5531       -.50085E-05** at limit **
   9  norm          .55511E-10    5.0699       -.69967E-06** at limit **
  10  norm           .0000        7.6556       -.11507E-05** at limit **
  11  Prefactor     .11102E-09    2.0373       -.50685E-08** at limit **
  12  Prefactor     8.4496        10.507        .15872E-05   -.41408E-03
  13  Prefactor     .38858E-09    11.207        .88438E-05** at limit **
  14  norm          .42677        8.2586       -.29701E-05   -.96163E-03
  15  norm          7.0853        7.3758       -.11284E-05    .23123E-03
  16  norm           .0000        42.696       -.53432E-06** at limit **
  17  Prefactor     354.84        88.044        .15438E-05   -.33022E-03
  18  Normalizat    1.0450        .29521        .33878E-04    .23314E-04
  19  Prefactor     .98366        .90554E-01    .17230E-05    .74071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64643
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 1.39888e-08
  Prefactor  = 8.49257
  Prefactor  = 0
  Prefactor  = 2.45914e-08
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 8.44965
  Prefactor  = 3.88578e-10
  norm       = 0.426769
  norm       = 7.08528
  norm       = 0
  Prefactor  = 354.838
  Normalizat = 1.04504
  Prefactor  = 0.98366
 **********
 **   18 **HESSE 
 **********

 FCN=   7541.941     FROM HESSE     STATUS=OK           310 CALLS     1960 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6464        8.7098        .60205E-03   -1.5675    
   2  norm           .0000        .22983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    14.199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .13989E-07    7.9616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4926        14.058        .34342E-03   -1.5650    
   6  Prefactor      .0000        26.075        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24591E-07    8.3803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        9.5713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    5.0782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        7.6461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    2.0570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4496        10.654        .34532E-03   -1.5650    
  13  Prefactor     .38858E-09    11.246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42677        2.0551        .60781E-02   -1.5695    
  15  norm          7.0853        7.3703        .37610E-03   -1.5655    
  16  norm           .0000        42.607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     354.84        88.054        .53183E-04   -1.5331    
  18  Normalizat    1.0450        .27307        .10338       -.91536    
  19  Prefactor     .98366        .82292E-01    .33328E-01   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42878e-07
Minuit parameter uncertainties:
  1  8.70983
  2  7.34352e-07
  3  4.81402e-05
  4  0.000667276
  5  14.0582
  6  2.25218e-05
  7  0.000908254
  8  2.25813e-06
  9  2.88677e-05
  10  1.4826e-05
  11  3.27455e-05
  12  10.6536
  13  0.000129796
  14  1.87304
  15  7.37026
  16  4.09228e-05
  17  88.0546
  18  0.273439
  19  0.0823023
Done.

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

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  3.886e-10  1.298e-04  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.837e-01  8.230e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.045e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 49.972 18.753
Photon Flux Upper Limit: 6.58677531005e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00478859371935 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31057862/likelihoodResults_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.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) = 7541.98419601
delta logL = -0.0427538537788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7541.9414487
delta logL = -6.5467929744e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7541.941     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      210 TOTAL
                     EDM=   .78E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.9999        .42118E-03** at limit **
   2  Index         1.9976        1.6692        .16180E-04     .0000    
   3  Normalizat    1.0450        1.2092        .29622E-05    .12095E-04
   4  Prefactor     .98366        1.3237       -.15582E-05    .22544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99755
  Normalizat = 1.04504
  Prefactor  = 0.98366
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7541.941     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .78E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.9999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42782        1.8439        .16180E-04   -.64411    
   3  Normalizat    1.0450        1.2092        .29622E-05   -.91536    
   4  Prefactor     .98366        1.3237       -.15582E-05   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.8011e-13
Minuit parameter uncertainties:
  1  1.24353e-05
  2  1.72192
  3  1.24353
  4  1.3717
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) = 7541.94144215
delta logL = 1.72803993337e-11

Extracting fit parameters...

4FGL J0319.8+1845
   Spectrum: PowerLaw
297    Prefactor:  0.000e+00  1.244e-05  0.000e+00  1.000e+06 ( 1.000e-14)
298        Index:  1.998e+00  1.722e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  6.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  9.837e-01  1.372e+00  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  1.045e+00  1.244e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 49.972 18.753

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/31057862/cmap_HighResolution_804124801_804384001_4FGL_J0319.8+1845_daily_bin2179.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2026-07-08 13:59:21.474714', job_id='31057862', GAL2='0.98', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1783544361.47', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.66' WHERE bin_id='2179' AND source_name='4FGL J0319.8+1845' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul  8 13:59:21 PDT 2026

