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


Performing analysis on: 4FGL_J2025.2+0317_weekly_bin813
RA = 306.309, Dec = 3.2893
tmin = 730684801, tmax = 731289601
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='44694338', job_status='RUN', time_executed='2024-04-21 12:16:02.549999', time_epoch_executed='1713726962.55' WHERE source_name='4FGL J2025.2+0317' and cadence='weekly' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44694338

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44694338/ft1_4FGL_J2025.2+0317_weekly_bin813.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44694338/ft1_4FGL_J2025.2+0317_weekly_bin813.fits outfile=/lscratch/kocevski/44694338/ft1_filteredMKT_4FGL_J2025.2+0317_weekly_bin813.fits ra=306.309 dec=3.2893 rad=12.0 tmin=730684801.0 tmax=731289601.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.60
user 3.31
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.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/44694338/ft1_filteredMKT_4FGL_J2025.2+0317_weekly_bin813.fits evtable="EVENTS" outfile="/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.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.38
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 2700

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44694338/ltcube_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.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/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits
.....................!
real 15.38
user 15.04
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits evtable="EVENTS" scfile=/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44694338/ltcube_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.fits outfile=/lscratch/kocevski/44694338/expmap_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.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/44694338/ltcube_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.fits
.....................!
real 60.62
user 56.70
sys 3.49

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 HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Added 243 point sources and 3 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 J2025.2+0317 @ 306.309 3.2893

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits scfile=/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits outfile=/lscratch/kocevski/44694338/cmap_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.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=306.309 yref=3.2893 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.39
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits scfile=/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits outfile=/lscratch/kocevski/44694338/cmap_HighResolution_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.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=306.309 yref=3.2893 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.39
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits evtable="EVENTS" scfile=/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44694338/Model_4FGL_J2025.2+0317_weekly_bin813.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source W 51C
Working on...
/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits....................!
real 159.08
user 157.38
sys 0.66

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits', '/lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits', expMap='/lscratch/kocevski/44694338/expmap_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.fits', expCube='/lscratch/kocevski/44694338/ltcube_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44694338/Model_4FGL_J2025.2+0317_weekly_bin813.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2025.2+0317'

4FGL J2025.2+0317
   Spectrum: PowerLaw
516    Prefactor:  4.383e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
517        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
518        Scale:  1.558e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44694338/ft1_filtered_4FGL_J2025.2+0317_weekly_bin813.fits
Spacecraft file(s): /lscratch/kocevski/44694338/ft2_4FGL_J2025.2+0317_weekly_bin813.fits
Exposure map: /lscratch/kocevski/44694338/expmap_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.fits
Exposure cube: /lscratch/kocevski/44694338/ltcube_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44694338/Model_4FGL_J2025.2+0317_weekly_bin813.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) = 28940.8580544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.657       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.1364       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12491E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18646E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .85076       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81840E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .57371E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .97852E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .22551E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .80806E-05   1.0000          .0000       .10000E+07
    11 'norm      '    8.6410       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6969       1.0000          .0000       .10000E+07
    13 'Normalizat'    .89475       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .95419       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28940.80     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      952 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.641        5.2190        .79461E-06    .21274E-01
   2  Prefactor     9.1648        10.978       -.18123E-05    .91834E-02
   3  Prefactor     .55511E-10    11.884        .17079E-06** at limit **
   4  Prefactor      .0000        1.4250       -.31922E-06** at limit **
   5  norm          .85101        .64487       -.73306E-07    .19649E-02
   6  Prefactor      .0000        3.1703        .34174E-06** at limit **
   7  Prefactor      .0000        2.9761        .59512E-06** at limit **
   8  Prefactor     .55511E-10    44.520       -.17915E-05** at limit **
   9  norm           .0000        .51990        .60849E-07** at limit **
  10  Prefactor      .0000        9.7404       -.12039E-05** at limit **
  11  norm          8.6553        5.3732       -.43114E-06    .88819E-03
  12  Prefactor     3.6997        3.9336       -.57127E-06   -.11408E-02
  13  Normalizat    .89449        .17811        .21924E-04   -.27498E-05
  14  Prefactor     .95419        .46376E-01   -.19243E-05   -.16375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6415
  Prefactor  = 9.16483
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 0.851005
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  norm       = 8.65527
  Prefactor  = 3.69973
  Normalizat = 0.894492
  Prefactor  = 0.954189
 **********
 **   18 **HESSE 
 **********

 FCN=   28940.80     FROM HESSE     STATUS=OK           200 CALLS     1152 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.641        11.407        .30667E-03   -1.5643    
   2  Prefactor     9.1648        12.399        .33134E-03   -1.5647    
   3  Prefactor     .55511E-10    11.922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.4349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .85101        .64911        .49225E-03   -1.5690    
   6  Prefactor      .0000        3.1788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.0206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    43.066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .95770E-01    .28217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        9.7806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.6553        5.3893        .34076E-03   -1.5649    
  12  Prefactor     3.6997        3.9487        .52501E-03   -1.5669    
  13  Normalizat    .89449        .16397        .11721       -.96654    
  14  Prefactor     .95419        .42389E-01    .30440E-01   -.94272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91479e-07
Minuit parameter uncertainties:
  1  11.4073
  2  12.3987
  3  4.55001e-05
  4  2.96902e-06
  5  0.649106
  6  4.17477e-06
  7  6.00386e-06
  8  7.80752e-05
  9  2.55497e-07
  10  8.51556e-06
  11  5.3893
  12  3.94866
  13  0.164057
  14  0.0423904
Done.

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

Extracting fit parameters...

4FGL J2025.2+0317
   Spectrum: PowerLaw
516    Prefactor:  0.000e+00  2.969e-06  0.000e+00  1.000e+06 ( 1.000e-13)
517        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
518        Scale:  1.558e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
847    Prefactor:  9.542e-01  4.239e-02  0.000e+00  1.000e+01 ( 1.000e+00)
848        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
849        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
843   Normalization:  8.945e-01  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 306.309 3.289
Photon Flux Upper Limit: 2.49544949915e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00189792739318 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44694338/likelihoodResults_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.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) = 28940.8014006
delta logL = -0.000427908056736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28940.8009737
delta logL = -9.46940417634e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90239E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .93825       1.0000          .0000       10.000    
     3 'Normalizat'    .89435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   28940.80     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      251 TOTAL
                     EDM=   .55E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3817        .42118E-03** at limit **
   2  Index         2.2109        1.8233        .84213E-06     .0000    
   3  Normalizat    .89449        1.2300        .99472E-06   -.21909E-04
   4  Prefactor     .95419        1.2962        .24043E-06   -.36798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.21085
  Normalizat = 0.894492
  Prefactor  = 0.954189
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   28940.80     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .55E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .53996        1.9545        .84213E-06   -.59177    
   3  Normalizat    .89449        1.2300        .99472E-06   -.96654    
   4  Prefactor     .95419        1.2962        .24043E-06   -.94272    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.53051e-13
Minuit parameter uncertainties:
  1  1.07769e-06
  2  1.88776
  3  1.27222
  4  1.34241
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) = 28940.8009727
delta logL = 0.0

Extracting fit parameters...

4FGL J2025.2+0317
   Spectrum: PowerLaw
516    Prefactor:  0.000e+00  1.078e-06  0.000e+00  1.000e+06 ( 1.000e-13)
517        Index:  2.211e+00  1.888e+00  0.000e+00  1.000e+01 (-1.000e+00)
518        Scale:  1.558e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
847    Prefactor:  9.542e-01  1.342e+00  0.000e+00  1.000e+01 ( 1.000e+00)
848        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
849        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
843   Normalization:  8.945e-01  1.272e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 306.309 3.289

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/44694338/cmap_HighResolution_730684801_731289601_4FGL_J2025.2+0317_weekly_bin813.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-03', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2024-04-21 12:27:11.094468', job_id='44694338', GAL2='0.95', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1713727631.09', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='813' AND source_name='4FGL J2025.2+0317' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Apr 21 12:27:11 PDT 2024

