/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

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


Performing analysis on: 4FGL_J0617.2+5701_weekly_bin907
RA = 94.3162, Dec = 57.0249
tmin = 787536001, tmax = 788140801
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='17771938', job_status='RUN', time_executed='2025-12-23 01:08:58.268554', time_epoch_executed='1766480938.27' WHERE source_name='4FGL J0617.2+5701' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17771938

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17771938/ft1_4FGL_J0617.2+5701_weekly_bin907.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17771938/ft1_4FGL_J0617.2+5701_weekly_bin907.fits outfile=/lscratch/kocevski/17771938/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin907.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=787536001.0 tmax=788140801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.00
user 3.85
sys 0.39

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.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/17771938/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.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 1.04
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 2934

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17771938/ltcube_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.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/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits
.....................!
real 17.64
user 16.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17771938/ltcube_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.fits outfile=/lscratch/kocevski/17771938/expmap_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.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/17771938/ltcube_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.fits
.....................!
real 61.68
user 56.85
sys 3.65

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Added 179 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0617.2+5701 @ 94.3162 57.0249

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits scfile=/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits outfile=/lscratch/kocevski/17771938/cmap_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.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=94.3162 yref=57.0249 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 1.00
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits scfile=/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits outfile=/lscratch/kocevski/17771938/cmap_HighResolution_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.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=94.3162 yref=57.0249 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 1.04
user 0.20
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17771938/Model_4FGL_J0617.2+5701_weekly_bin907.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits.....................!
real 149.77
user 147.22
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits', '/lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits', expMap='/lscratch/kocevski/17771938/expmap_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.fits', expCube='/lscratch/kocevski/17771938/ltcube_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17771938/Model_4FGL_J0617.2+5701_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0617.2+5701'

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  4.712e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17771938/ft1_filtered_4FGL_J0617.2+5701_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17771938/ft2_4FGL_J0617.2+5701_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17771938/expmap_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17771938/ltcube_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17771938/Model_4FGL_J0617.2+5701_weekly_bin907.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) = 30346.6961758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     2 'norm      '    .58374       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.0052       1.0000          .0000       .10000E+07
     4 'norm      '    2.7941       1.0000          .0000       .10000E+07
     5 'Prefactor '    .80805       1.0000          .0000       .10000E+07
     6 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .30476E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6718       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.927       1.0000          .0000       .10000E+07
    10 'norm      '    2.3654       1.0000          .0000       .10000E+07
    11 'norm      '    1.0498       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.7285       1.0000          .0000       .10000E+07
    13 'Prefactor '    25.010       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.0692       1.0000          .0000       .10000E+07
    15 'Prefactor '    33.480       1.0000          .0000       .10000E+07
    16 'Normalizat'    .94367       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0314       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30346.64     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     1155 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.2274       -.46908E-07** at limit **
   2  norm          .58378        .63120        .41908E-08    .40549E-03
   3  Prefactor     7.0048        1.1394        .31518E-07    .28427E-02
   4  norm          2.7941        1.3056       -.46577E-07   -.60698E-03
   5  Prefactor     .73315        78.379        .19196E-05    .48249E-02
   6  Prefactor      .0000        3.0962       -.82378E-07** at limit **
   7  Prefactor      .0000        1.4987        .42256E-07** at limit **
   8  Prefactor     1.6697        10.910       -.16471E-05   -.18365E-01
   9  Prefactor     15.926        4.5367       -.25128E-06   -.16785E-02
  10  norm          2.3655        2.4222       -.48564E-07   -.56913E-03
  11  norm          1.0493        1.5644       -.10418E-06   -.34193E-03
  12  Prefactor     4.7289        4.6974        .83720E-07    .17133E-02
  13  Prefactor     25.011        4.9312        .23326E-06    .32476E-01
  14  Prefactor     6.0660        9.9477       -.10553E-06   -.36945E-01
  15  Prefactor     33.475        10.861        .49132E-06   -.10546    
  16  Normalizat    .94373        .11967       -.30380E-05    .13618E-04
  17  Prefactor     1.0313        .40550E-01    .13076E-05    .76347E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0.583784
  Prefactor  = 7.00485
  norm       = 2.79408
  Prefactor  = 0.733146
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.66969
  Prefactor  = 15.9262
  norm       = 2.36549
  norm       = 1.04927
  Prefactor  = 4.72891
  Prefactor  = 25.0109
  Prefactor  = 6.06597
  Prefactor  = 33.4751
  Normalizat = 0.943727
  Prefactor  = 1.03135
 **********
 **   18 **HESSE 
 **********

 FCN=   30346.64     FROM HESSE     STATUS=OK           267 CALLS     1422 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.2276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .58378        .63516        .70697E-03   -1.5693    
   3  Prefactor     7.0048        11.480        .37880E-03   -1.5655    
   4  norm          2.7941        1.3050        .60841E-03   -1.5675    
   5  Prefactor     .73315        80.281        .52337E-03   -1.5691    
   6  Prefactor      .0000        3.0966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.4975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6697        20.063        .81494E-03   -1.5682    
   9  Prefactor     15.926        14.407        .25070E-03   -1.5628    
  10  norm          2.3655        2.4652        .66600E-03   -1.5677    
  11  norm          1.0493        1.8857        .60563E-02   -1.5687    
  12  Prefactor     4.7289        4.6988        .46250E-03   -1.5664    
  13  Prefactor     25.011        10.951        .20000E-03   -1.5608    
  14  Prefactor     6.0660        10.591        .40731E-03   -1.5659    
  15  Prefactor     33.475        17.290        .17285E-03   -1.5592    
  16  Normalizat    .94373        .11596        .97262E-01   -.94940    
  17  Prefactor     1.0313        .37659E-01    .41153E-01   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49057e-06
Minuit parameter uncertainties:
  1  9.79752e-06
  2  0.635156
  3  11.4803
  4  1.30502
  5  15.344
  6  1.44294e-05
  7  6.00576e-07
  8  11.5756
  9  14.4075
  10  2.46518
  11  1.88567
  12  4.69875
  13  10.9506
  14  10.5909
  15  17.2903
  16  0.115992
  17  0.0376599
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  0.000e+00  6.006e-07  0.000e+00  1.000e+06 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.031e+00  3.766e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.437e-01  1.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 94.316 57.025
Photon Flux Upper Limit: 2.17599403271e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.001643886792 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17771938/likelihoodResults_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.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) = 30346.6453785
delta logL = -0.000452019572549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 30346.6449265
delta logL = -1.74331944436e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37748E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.2741       1.0000          .0000       10.000    
     3 'Normalizat'    .94373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   30346.64     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      228 TOTAL
                     EDM=   .42E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.7140        .42118E-03** at limit **
   2  Index         1.8306        1.2559        .52087E-06     .0000    
   3  Normalizat    .94373        1.2768       -.16484E-05    .20445E-04
   4  Prefactor     1.0313        1.2166        .68115E-07    .85061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.83063
  Normalizat = 0.943727
  Prefactor  = 1.03135
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   30346.64     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .42E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.7140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .34608        1.6564        .52087E-06   -.68655    
   3  Normalizat    .94373        1.2768       -.16484E-05   -.94940    
   4  Prefactor     1.0313        1.2166        .68115E-07   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.23691e-13
Minuit parameter uncertainties:
  1  1.17795e-06
  2  1.27914
  3  1.32189
  4  1.25164
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) = 30346.6449265
delta logL = 0.0

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  0.000e+00  1.178e-06  0.000e+00  1.000e+06 ( 1.000e-13)
246        Index:  1.831e+00  1.279e+00  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.031e+00  1.252e+00  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.437e-01  1.322e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 94.316 57.025

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/17771938/cmap_HighResolution_787536001_788140801_4FGL_J0617.2+5701_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-03', job_status='DONE', photon_flux_upper_limit='2.18e-08', time_completed='2025-12-23 01:28:40.677793', job_id='17771938', GAL2='1.03', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1766482120.68', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='907' AND source_name='4FGL J0617.2+5701' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 01:28:40 PST 2025

