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


Performing analysis on: 4FGL_J2248.9+2106_weekly_bin871
RA = 342.246, Dec = 21.1159
tmin = 765763201, tmax = 766368001
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='3226864', job_status='RUN', time_executed='2025-04-15 04:15:31.382726', time_epoch_executed='1744715731.38' WHERE source_name='4FGL J2248.9+2106' and cadence='weekly' and bin_id='871'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/3226864

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/3226864/ft1_4FGL_J2248.9+2106_weekly_bin871.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/3226864/ft1_4FGL_J2248.9+2106_weekly_bin871.fits outfile=/lscratch/kocevski/3226864/ft1_filteredMKT_4FGL_J2248.9+2106_weekly_bin871.fits ra=342.246 dec=21.1159 rad=12.0 tmin=765763201.0 tmax=766368001.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 6.21
user 5.63
sys 0.40

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.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/3226864/ft1_filteredMKT_4FGL_J2248.9+2106_weekly_bin871.fits evtable="EVENTS" outfile="/lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.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.52
user 0.23
sys 0.14

Number of photons that the gtmktime cut: 1924

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits" evtable="EVENTS" scfile=/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits sctable="SC_DATA" outfile=/lscratch/kocevski/3226864/ltcube_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.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/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits
.....................!
real 19.43
user 18.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits evtable="EVENTS" scfile=/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits sctable="SC_DATA" expcube=/lscratch/kocevski/3226864/ltcube_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.fits outfile=/lscratch/kocevski/3226864/expmap_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.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/3226864/ltcube_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.fits
.....................!
real 73.18
user 68.31
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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2248.9+2106 @ 342.246 21.1159

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits scfile=/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits outfile=/lscratch/kocevski/3226864/cmap_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.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=342.246 yref=21.1159 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.56
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits scfile=/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits outfile=/lscratch/kocevski/3226864/cmap_HighResolution_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.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=342.246 yref=21.1159 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.56
user 0.24
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits evtable="EVENTS" scfile=/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/3226864/Model_4FGL_J2248.9+2106_weekly_bin871.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/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits.....................!
real 84.98
user 83.54
sys 0.80

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits', '/lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits', expMap='/lscratch/kocevski/3226864/expmap_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.fits', expCube='/lscratch/kocevski/3226864/ltcube_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/3226864/Model_4FGL_J2248.9+2106_weekly_bin871.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.9+2106'

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.757e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/3226864/ft1_filtered_4FGL_J2248.9+2106_weekly_bin871.fits
Spacecraft file(s): /lscratch/kocevski/3226864/ft2_4FGL_J2248.9+2106_weekly_bin871.fits
Exposure map: /lscratch/kocevski/3226864/expmap_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.fits
Exposure cube: /lscratch/kocevski/3226864/ltcube_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/3226864/Model_4FGL_J2248.9+2106_weekly_bin871.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) = 20984.6004219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39263E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .18909       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34792E-04   1.0000          .0000       .10000E+07
     4 'norm      '    38.812       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14762E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.1235       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.5287       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8350       1.0000          .0000       .10000E+07
    10 'norm      '    1.0330       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14277E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33306E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .97656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12224E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .31760E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    66.754       1.0000          .0000       .10000E+07
    17 'Prefactor '    15.323       1.0000          .0000       .10000E+07
    18 'Prefactor '    14.562       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20984.50     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1539 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24425E-08    11.412        .60383E-07** at limit **
   2  norm          .18983        .51381        .16632E-07** at limit **
   3  Prefactor      .0000        2.4471        .12055E-06** at limit **
   4  norm          38.786        5.6066        .11808E-07    .34495E-03
   5  Prefactor     .17064E-05    10.412        .26429E-06** at limit **
   6  Prefactor     9.1661        8.5628       -.11600E-08   -.20113E-02
   7  Prefactor     2.5294        .23286       -.32942E-07   -.34749E-03
   8  Prefactor     10.477        6.5435        .51766E-07    .39534E-04
   9  norm          1.8360        .68774        .12382E-07   -.59196E-03
  10  norm          1.0333        .78769        .22460E-07    .11635E-03
  11  Prefactor     .16653E-08    8.9187       -.27489E-08** at limit **
  12  Prefactor      .0000        2.1038       -.13511E-07** at limit **
  13  Prefactor     .97670        .13587        .16943E-07    .41471E-03
  14  Prefactor      .0000        4.3078        .11557E-06** at limit **
  15  Prefactor     .11695E-05    11.211        .25718E-06** at limit **
  16  Prefactor     67.446        24.310       -.11932E-07   -.49630E-01
  17  Prefactor     15.374        6.0703        .89145E-08   -.54937E-04
  18  Prefactor     14.598        1.8720        .45705E-08   -.32039E-02
  19  Normalizat    1.1301        .18464       -.82071E-06    .63800E-05
  20  Prefactor     .87657        .91466E-01    .63583E-07    .16924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44249e-09
  norm       = 0.189834
  Prefactor  = 0
  norm       = 38.786
  Prefactor  = 1.70641e-06
  Prefactor  = 9.1661
  Prefactor  = 2.52944
  Prefactor  = 10.4773
  norm       = 1.836
  norm       = 1.03329
  Prefactor  = 1.66533e-09
  Prefactor  = 0
  Prefactor  = 0.976702
  Prefactor  = 0
  Prefactor  = 1.16945e-06
  Prefactor  = 67.4456
  Prefactor  = 15.3741
  Prefactor  = 14.5984
  Normalizat = 1.13011
  Prefactor  = 0.876569
 **********
 **   18 **HESSE 
 **********

 FCN=   20984.50     FROM HESSE     STATUS=OK           335 CALLS     1874 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24425E-08    11.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .18983        .50603        .11973E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.4478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          38.786        5.6177        .16053E-03   -1.5583    
   5  Prefactor     .17064E-05    19.862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1661        8.5506        .33157E-03   -1.5647    
   7  Prefactor     2.5294        .23247        .45598E-02   -1.5390    
   8  Prefactor     10.477        6.5349        .30994E-02   -1.5060    
   9  norm          1.8360        .68938        .76995E-03   -1.5681    
  10  norm          1.0333        .78688        .12442E-02   -1.5688    
  11  Prefactor     .16653E-08    8.9324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.1014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .97670        .13570        .42426E-02   -1.5510    
  14  Prefactor      .0000        4.3035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11695E-05    17.845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     67.446        26.266        .12240E-03   -1.5544    
  17  Prefactor     15.374        6.9157        .25560E-03   -1.5630    
  18  Prefactor     14.598        18.400        .26221E-03   -1.5632    
  19  Normalizat    1.1301        .15751        .85275E-01   -.88791    
  20  Prefactor     .87657        .77608E-01    .44708E-01   -.96965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98149e-07
Minuit parameter uncertainties:
  1  0.000333895
  2  0.506035
  3  2.05131e-06
  4  5.6177
  5  0.0116434
  6  8.55066
  7  0.232471
  8  6.53534
  9  0.689381
  10  0.786882
  11  0.000244923
  12  2.46314e-07
  13  0.135704
  14  1.17235e-05
  15  0.00913655
  16  26.2663
  17  6.91573
  18  18.3999
  19  0.157574
  20  0.0776179
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  0.000e+00  2.463e-07  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.766e-01  7.762e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.130e+00  1.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 3.3495881956e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00257025534136 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/3226864/likelihoodResults_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.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) = 20984.5001399
delta logL = -0.000481154602312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20984.4996589
delta logL = -1.7624188331e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   20984.50     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      244 TOTAL
                     EDM=   .99E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8807        .42118E-03** at limit **
   2  Index         2.3945        1.8994        .57029E-05     .0000    
   3  Normalizat    1.1301        1.1365       -.11681E-05   -.41865E-05
   4  Prefactor     .87657        1.2226       -.12219E-06    .55061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.39448
  Normalizat = 1.13011
  Prefactor  = 0.876569
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20984.50     FROM HESSE     STATUS=FAILED         9 CALLS      253 TOTAL
                     EDM=   .99E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .64276        2.0240        .57029E-05   -.54815    
   3  Normalizat    1.1301        1.1365       -.11681E-05   -.88791    
   4  Prefactor     .87657        1.2226       -.12219E-06   -.96965    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.94627e-14
Minuit parameter uncertainties:
  1  3.76369e-07
  2  1.96846
  3  1.16268
  4  1.26425
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) = 20984.4996587
delta logL = 0.0

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  0.000e+00  3.764e-07  0.000e+00  1.000e+06 ( 1.000e-13)
308        Index:  2.394e+00  1.968e+00  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.766e-01  1.264e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.130e+00  1.163e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 342.246 21.116

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/3226864/cmap_HighResolution_765763201_766368001_4FGL_J2248.9+2106_weekly_bin871.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.35e-08', time_completed='2025-04-15 04:25:27.804574', job_id='3226864', GAL2='0.88', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1744716327.8', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='871' AND source_name='4FGL J2248.9+2106' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 15 04:25:27 PDT 2025

