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


Performing analysis on: 4FGL_J2025.2+0317_weekly_bin822
RA = 306.309, Dec = 3.2893
tmin = 736128001, tmax = 736732801
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='46711470', job_status='RUN', time_executed='2024-05-07 02:15:59.000676', time_epoch_executed='1715073359.0' WHERE source_name='4FGL J2025.2+0317' and cadence='weekly' and bin_id='822'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/46711470

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/46711470/ft1_4FGL_J2025.2+0317_weekly_bin822.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/46711470/ft1_4FGL_J2025.2+0317_weekly_bin822.fits outfile=/lscratch/kocevski/46711470/ft1_filteredMKT_4FGL_J2025.2+0317_weekly_bin822.fits ra=306.309 dec=3.2893 rad=12.0 tmin=736128001.0 tmax=736732801.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 4.04
user 3.46
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.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/46711470/ft1_filteredMKT_4FGL_J2025.2+0317_weekly_bin822.fits evtable="EVENTS" outfile="/lscratch/kocevski/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.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.55
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 3373

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits" evtable="EVENTS" scfile=/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits sctable="SC_DATA" outfile=/lscratch/kocevski/46711470/ltcube_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.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/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits
.....................!
real 19.62
user 18.96
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits evtable="EVENTS" scfile=/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits sctable="SC_DATA" expcube=/lscratch/kocevski/46711470/ltcube_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.fits outfile=/lscratch/kocevski/46711470/expmap_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.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/46711470/ltcube_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.fits
.....................!
real 70.95
user 66.31
sys 4.03

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/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits scfile=/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits outfile=/lscratch/kocevski/46711470/cmap_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.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.55
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits scfile=/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits outfile=/lscratch/kocevski/46711470/cmap_HighResolution_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.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.47
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits evtable="EVENTS" scfile=/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/46711470/Model_4FGL_J2025.2+0317_weekly_bin822.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/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits.....................!
real 225.98
user 221.72
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits', '/lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits', expMap='/lscratch/kocevski/46711470/expmap_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.fits', expCube='/lscratch/kocevski/46711470/ltcube_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/46711470/Model_4FGL_J2025.2+0317_weekly_bin822.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/46711470/ft1_filtered_4FGL_J2025.2+0317_weekly_bin822.fits
Spacecraft file(s): /lscratch/kocevski/46711470/ft2_4FGL_J2025.2+0317_weekly_bin822.fits
Exposure map: /lscratch/kocevski/46711470/expmap_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.fits
Exposure cube: /lscratch/kocevski/46711470/ltcube_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/46711470/Model_4FGL_J2025.2+0317_weekly_bin822.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) = 35173.2610759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14433E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .79940E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7825       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86969E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .24591E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.8526       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5876       1.0000          .0000       .10000E+07
     8 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
     9 'norm      '    .20025       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44197E-04   1.0000          .0000       .10000E+07
    11 'norm      '    8.0580       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11929E-06   1.0000          .0000       .10000E+07
    13 'Normalizat'    .98984       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .98704       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=   35173.20     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      764 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    9.8759       -.90101E-07** at limit **
   2  Prefactor     .16653E-09    17.183       -.41536E-07** at limit **
   3  Prefactor     1.6506        1.1726        .21304E-08   -.96255E-02
   4  Prefactor      .0000        3.4393       -.14164E-06** at limit **
   5  norm           .0000        .20813        .16628E-07** at limit **
   6  Prefactor     1.8654        5.3338        .58124E-07   -.13389E-03
   7  Prefactor     6.5216        4.4412        .50102E-07   -.23608E-03
   8  Prefactor      .0000        2.6540       -.95865E-07** at limit **
   9  norm          .20078        .21763       -.89413E-08** at limit **
  10  Prefactor      .0000        6.9616       -.10311E-06** at limit **
  11  norm          8.0167        4.1099        .22689E-07   -.28241E-03
  12  Prefactor      .0000        .89751       -.13329E-07** at limit **
  13  Normalizat    .99014        .14872       -.18098E-05   -.12496E-04
  14  Prefactor     .98704        .42745E-01   -.19351E-07   -.11142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 1.65059
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.86542
  Prefactor  = 6.52163
  Prefactor  = 0
  norm       = 0.200784
  Prefactor  = 0
  norm       = 8.01669
  Prefactor  = 0
  Normalizat = 0.990137
  Prefactor  = 0.98704
 **********
 **   18 **HESSE 
 **********

 FCN=   35173.20     FROM HESSE     STATUS=OK           192 CALLS      956 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    9.8680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    17.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6506        39.885        .78349E-03   -1.5682    
   4  Prefactor      .0000        3.4418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .20290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8654        5.3897        .76561E-03   -1.5681    
   7  Prefactor     6.5216        4.5353        .39075E-03   -1.5657    
   8  Prefactor      .0000        2.6604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .20078        .24309        .22200E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        6.9668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.0167        4.1208        .35296E-03   -1.5651    
  12  Prefactor      .0000        .89482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    .99014        .13543        .10750       -.93362    
  14  Prefactor     .98704        .38520E-01    .31379E-01   -.93163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57428e-07
Minuit parameter uncertainties:
  1  7.30878e-05
  2  0.000109782
  3  16.2277
  4  1.80799e-06
  5  1.69529e-07
  6  5.38971
  7  4.53526
  8  2.3388e-07
  9  0.243093
  10  1.76736e-05
  11  4.12076
  12  6.23633e-07
  13  0.135477
  14  0.0385213
Done.

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

Extracting fit parameters...

4FGL J2025.2+0317
   Spectrum: PowerLaw
516    Prefactor:  0.000e+00  1.808e-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.870e-01  3.852e-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:  9.901e-01  1.355e-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: 3.57973711101e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00272258810514 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/46711470/likelihoodResults_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.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) = 35173.1987392
delta logL = -0.000443743614596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 35172.5687065
delta logL = 0.629588972261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27197E-04   1.0000          .0000       .10000E+07
     2 'Index     '    7.4767       1.0000          .0000       10.000    
     3 'Normalizat'    .94820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99380       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=   35173.20     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      406 TOTAL
                     EDM=   .27E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .48221        .42118E-03** at limit **
   2  Index         .78861        .62636       -.59797E-07     .0000    
   3  Normalizat    .99014        1.3063        .18046E-05    .32824E-04
   4  Prefactor     .98704        1.3292       -.44010E-06    .40026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.788609
  Normalizat = 0.990138
  Prefactor  = 0.98704
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   35173.20     FROM HESSE     STATUS=FAILED         9 CALLS      415 TOTAL
                     EDM=   .27E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .48221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .87888E-02    .89512       -.59797E-07   -7.2847    
   3  Normalizat    .99014        1.3063        .18046E-05   -.93362    
   4  Prefactor     .98704        1.3292       -.44010E-06   -.93163    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.73283e-12
Minuit parameter uncertainties:
  1  1.96541e-07
  2  0.632137
  3  1.35255
  4  1.37767
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) = 35173.1982955
delta logL = 0.0

Extracting fit parameters...

4FGL J2025.2+0317
   Spectrum: PowerLaw
516    Prefactor:  0.000e+00  1.965e-07  0.000e+00  1.000e+06 ( 1.000e-13)
517        Index:  7.886e-01  6.321e-01  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.870e-01  1.378e+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:  9.901e-01  1.353e+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/46711470/cmap_HighResolution_736128001_736732801_4FGL_J2025.2+0317_weekly_bin822.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2024-05-07 02:31:09.743963', job_id='46711470', GAL2='0.99', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1715074269.74', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='822' AND source_name='4FGL J2025.2+0317' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  7 02:31:09 PDT 2024

