/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_J2252.0+4031_weekly_bin907
RA = 343.01, Dec = 40.5232
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='17776843', job_status='RUN', time_executed='2025-12-23 02:37:45.029032', time_epoch_executed='1766486265.03' WHERE source_name='4FGL J2252.0+4031' and cadence='weekly' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17776843

Creating custom pfile directory:
/lscratch/kocevski/17776843/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/17776843/ft1_4FGL_J2252.0+4031_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/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17776843/ft1_4FGL_J2252.0+4031_weekly_bin907.fits outfile=/lscratch/kocevski/17776843/ft1_filteredMKT_4FGL_J2252.0+4031_weekly_bin907.fits ra=343.01 dec=40.5232 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.07
user 4.58
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_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/17776843/ft1_filteredMKT_4FGL_J2252.0+4031_weekly_bin907.fits evtable="EVENTS" outfile="/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_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 0.60
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 2996

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17776843/ltcube_787536001_788140801_4FGL_J2252.0+4031_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/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits
.....................!
real 19.84
user 19.21
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17776843/ltcube_787536001_788140801_4FGL_J2252.0+4031_weekly_bin907.fits outfile=/lscratch/kocevski/17776843/expmap_787536001_788140801_4FGL_J2252.0+4031_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/17776843/ltcube_787536001_788140801_4FGL_J2252.0+4031_weekly_bin907.fits
.....................!
real 71.61
user 66.76
sys 4.16

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 173 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 J2252.0+4031 @ 343.01 40.5232

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits scfile=/lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits outfile=/lscratch/kocevski/17776843/cmap_787536001_788140801_4FGL_J2252.0+4031_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=343.01 yref=40.5232 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.53
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits scfile=/lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits outfile=/lscratch/kocevski/17776843/cmap_HighResolution_787536001_788140801_4FGL_J2252.0+4031_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=343.01 yref=40.5232 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.50
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits evtable="EVENTS" scfile=/lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17776843/Model_4FGL_J2252.0+4031_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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits.....................!
real 141.31
user 139.24
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits', '/lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits', expMap='/lscratch/kocevski/17776843/expmap_787536001_788140801_4FGL_J2252.0+4031_weekly_bin907.fits', expCube='/lscratch/kocevski/17776843/ltcube_787536001_788140801_4FGL_J2252.0+4031_weekly_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17776843/Model_4FGL_J2252.0+4031_weekly_bin907.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2252.0+4031'

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  2.093e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17776843/ft1_filtered_4FGL_J2252.0+4031_weekly_bin907.fits
Spacecraft file(s): /lscratch/kocevski/17776843/ft2_4FGL_J2252.0+4031_weekly_bin907.fits
Exposure map: /lscratch/kocevski/17776843/expmap_787536001_788140801_4FGL_J2252.0+4031_weekly_bin907.fits
Exposure cube: /lscratch/kocevski/17776843/ltcube_787536001_788140801_4FGL_J2252.0+4031_weekly_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17776843/Model_4FGL_J2252.0+4031_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) = 30663.8474236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2561       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38691E-07   1.0000          .0000       .10000E+07
     3 'norm      '    1.4455       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84255E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.7651       1.0000          .0000       .10000E+07
     6 'Prefactor '    .24946E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .41493       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4228       1.0000          .0000       .10000E+07
     9 'norm      '    4.2300       1.0000          .0000       .10000E+07
    10 'norm      '    7.5396       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13998       1.0000          .0000       .10000E+07
    12 'norm      '    .58287E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .79756E-01   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .93432       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30663.11     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      815 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2557        .51388        .25561E-08    .34321E-02
   2  Prefactor      .0000        2.9664       -.33588E-07** at limit **
   3  norm          1.4448        1.7709        .25592E-06   -.44065E-03
   4  Prefactor      .0000        4.2338        .38965E-06** at limit **
   5  Prefactor     6.7631        3.5487        .75641E-08    .42894E-04
   6  Prefactor      .0000        13.890       -.10472E-06** at limit **
   7  norm          .41496        .69259       -.12759E-06    .76881E-03
   8  Prefactor     3.4064        6.6213       -.11306E-07    .43052E-04
   9  norm          4.2443        2.6247        .31381E-07    .80956E-03
  10  norm          7.4660        4.1149        .40713E-07   -.50491E-03
  11  Prefactor     .13933E-07    36.449        .38930E-06** at limit **
  12  norm           .0000        .48819       -.64251E-07** at limit **
  13  Prefactor     .27756E-07    26.886        .32331E-06** at limit **
  14  Normalizat    1.0515        .14485        .24027E-05    .65939E-05
  15  Prefactor     .93429        .45986E-01   -.12980E-05   -.15761E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25575
  Prefactor  = 0
  norm       = 1.44478
  Prefactor  = 0
  Prefactor  = 6.76311
  Prefactor  = 0
  norm       = 0.414959
  Prefactor  = 3.4064
  norm       = 4.24432
  norm       = 7.46596
  Prefactor  = 1.39333e-08
  norm       = 0
  Prefactor  = 2.77556e-08
  Normalizat = 1.05148
  Prefactor  = 0.934286
 **********
 **   18 **HESSE 
 **********

 FCN=   30663.11     FROM HESSE     STATUS=OK           220 CALLS     1035 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2557        .51387        .56100E-03   -1.5672    
   2  Prefactor      .0000        2.9634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4448        1.7949        .89637E-03   -1.5684    
   4  Prefactor      .0000        4.2246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7631        3.5726        .38553E-03   -1.5656    
   6  Prefactor      .0000        13.839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .41496        .70133        .87777E-03   -1.5695    
   8  Prefactor     3.4064        6.6360        .54651E-03   -1.5671    
   9  norm          4.2443        2.7737        .48970E-03   -1.5667    
  10  norm          7.4660        4.1149        .36500E-03   -1.5653    
  11  Prefactor     .13933E-07    3.8797        .12960E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .48050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .27756E-07    68.830        .14509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.0515        .13169        .95490E-01   -.91325    
  15  Prefactor     .93429        .41052E-01    .32821E-01   -.94953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32833e-08
Minuit parameter uncertainties:
  1  0.513874
  2  2.95704e-06
  3  1.79494
  4  1.91423e-05
  5  3.5726
  6  3.57905e-05
  7  0.701327
  8  6.63599
  9  2.77373
  10  4.1149
  11  0.000465352
  12  4.53237e-07
  13  0.00276379
  14  0.131727
  15  0.0410538
Done.

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

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  6.763e+00  3.573e+00  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.343e-01  4.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.051e+00  1.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.46
Ra Dec: 343.010 40.523
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.16e-05

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) = 30663.1031789
delta logL = 0.00324988397915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30663.1007513
delta logL = 0.0056774631521

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   30663.10     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      234 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0703        68.459        .37703E-03    .25394E-01
   2  Index         1.9902        3.2656        .12525        .57818E-03
   3  Normalizat    1.0543        .94756E-01    .95380E-01    .98870E-04
   4  Prefactor     .93399        .19354E-01    .32827E-01   -.18322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.07025
  Index      = 1.99024
  Normalizat = 1.05427
  Prefactor  = 0.933992
 **********
 **   18 **HESSE 
 **********

 FCN=   30663.10     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0703        5.2290        .15081E-04   -1.5655    
   2  Index         1.9902        .66273        .13570E-01   -.64594    
   3  Normalizat    1.0543        .14177        .42254E-03   -.91234    
   4  Prefactor     .93399        .45368E-01    .14505E-03   -.94963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27494e-07
Minuit parameter uncertainties:
  1  5.22899
  2  0.665811
  3  0.141816
  4  0.0453698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30663.1007512
delta logL = 0.0056775657431

Extracting fit parameters...

4FGL J2252.0+4031
   Spectrum: PowerLaw
404    Prefactor:  7.070e+00  5.229e+00  0.000e+00  1.000e+06 ( 1.000e-13)
405        Index:  1.990e+00  6.658e-01  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.340e-01  4.537e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.054e+00  1.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.47
Ra Dec: 343.010 40.523
Photon Index (Free Index): 1.99 +/- 0.67
Photon Flux (Free Index): 3.29e-08 +/- 3.34e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.22e-05

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/17776843/cmap_HighResolution_787536001_788140801_4FGL_J2252.0+4031_weekly_bin907.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='2.33e-05', photon_flux_error='1.89e-08', dlogl='5.68e-03', energy_flux='2.19e-05', photon_flux2='3.29e-08', job_status='DONE', time_completed='2025-12-23 02:48:41.348186', photon_index_error2='0.67', photon_index2='1.99', ts='9.46', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.05', time_epoch_completed='1766486921.35', return_code='0', job_id='17776843', GAL2='0.93', EG2='1.05', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.34e-08', ts2='9.47', photon_index='2.05' WHERE bin_id='907' AND source_name='4FGL J2252.0+4031' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 23 02:48:41 PST 2025

