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


Performing analysis on: 4FGL_J2005.5+7752_weekly_bin908
RA = 301.393, Dec = 77.8829
tmin = 788140801, tmax = 788745601
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='18161339', job_status='RUN', time_executed='2025-12-30 02:47:00.121222', time_epoch_executed='1767091620.12' WHERE source_name='4FGL J2005.5+7752' and cadence='weekly' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18161339

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18161339/ft1_4FGL_J2005.5+7752_weekly_bin908.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18161339/ft1_4FGL_J2005.5+7752_weekly_bin908.fits outfile=/lscratch/kocevski/18161339/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin908.fits ra=301.393 dec=77.8829 rad=12.0 tmin=788140801.0 tmax=788745601.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.15
user 4.31
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.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/18161339/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin908.fits evtable="EVENTS" outfile="/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.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.73
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 4053

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18161339/ltcube_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.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/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits
.....................!
real 18.98
user 18.00
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18161339/ltcube_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.fits outfile=/lscratch/kocevski/18161339/expmap_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.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/18161339/ltcube_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.fits
.....................!
real 70.87
user 65.82
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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 209 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 J2005.5+7752 @ 301.393 77.8829

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits scfile=/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits outfile=/lscratch/kocevski/18161339/cmap_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.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=301.393 yref=77.8829 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.76
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits scfile=/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits outfile=/lscratch/kocevski/18161339/cmap_HighResolution_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.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=301.393 yref=77.8829 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.85
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits evtable="EVENTS" scfile=/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18161339/Model_4FGL_J2005.5+7752_weekly_bin908.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits.....................!
real 210.39
user 207.49
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits', '/lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits', expMap='/lscratch/kocevski/18161339/expmap_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.fits', expCube='/lscratch/kocevski/18161339/ltcube_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18161339/Model_4FGL_J2005.5+7752_weekly_bin908.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.5+7752'

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.878e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18161339/ft1_filtered_4FGL_J2005.5+7752_weekly_bin908.fits
Spacecraft file(s): /lscratch/kocevski/18161339/ft2_4FGL_J2005.5+7752_weekly_bin908.fits
Exposure map: /lscratch/kocevski/18161339/expmap_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.fits
Exposure cube: /lscratch/kocevski/18161339/ltcube_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18161339/Model_4FGL_J2005.5+7752_weekly_bin908.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) = 40714.3699461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20500E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .89151E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.4856       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1459       1.0000          .0000       .10000E+07
     5 'norm      '    9.2425       1.0000          .0000       .10000E+07
     6 'norm      '    6.3322       1.0000          .0000       .10000E+07
     7 'norm      '    4.2087       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.3256       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16541E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8182       1.0000          .0000       .10000E+07
    11 'norm      '    9.1817       1.0000          .0000       .10000E+07
    12 'norm      '    4.0949       1.0000          .0000       .10000E+07
    13 'Prefactor '    .62209E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .14780       1.0000          .0000       .10000E+07
    15 'Prefactor '    9.7109       1.0000          .0000       .10000E+07
    16 'Prefactor '    17.431       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15393E-06   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0542       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99821       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   40714.37     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1422 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.5588        .15267E-06** at limit **
   2  Prefactor      .0000        .42472        .80867E-07** at limit **
   3  Prefactor     2.5249        7.6491        .81574E-07   -.94486E-03
   4  Prefactor     4.1161        18.694       -.79076E-07   -.14416E-02
   5  norm          9.2334        2.6795       -.95738E-08    .61229E-03
   6  norm          6.3317        .67345       -.14638E-07    .42910E-02
   7  norm          4.2153        2.3484       -.35248E-07    .69176E-03
   8  Prefactor     8.3135        5.6548       -.37138E-08    .29407E-03
   9  Prefactor      .0000        12.137       -.75303E-07** at limit **
  10  Prefactor     3.8201        2.9182        .31782E-07   -.42244E-03
  11  norm          9.1764        1.0306        .57342E-09    .48341E-02
  12  norm          4.0939        2.0285        .48265E-07   -.19963E-02
  13  Prefactor      .0000        6.4477        .27431E-06** at limit **
  14  norm          .14449        5.1005       -.69589E-07** at limit **
  15  Prefactor     9.7183        1.2522        .26006E-08    .33986E-01
  16  Prefactor     17.476        11.583        .24961E-07   -.72854E-02
  17  Prefactor      .0000        1.4768        .14097E-06** at limit **
  18  Normalizat    1.0542        .11613       -.16792E-06    .24359E-04
  19  Prefactor     .99820        .33356E-01   -.12860E-06    .65581E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.52491
  Prefactor  = 4.11611
  norm       = 9.23336
  norm       = 6.33169
  norm       = 4.21526
  Prefactor  = 8.31354
  Prefactor  = 0
  Prefactor  = 3.82006
  norm       = 9.17643
  norm       = 4.09392
  Prefactor  = 0
  norm       = 0.144494
  Prefactor  = 9.71827
  Prefactor  = 17.4757
  Prefactor  = 0
  Normalizat = 1.05424
  Prefactor  = 0.998195
 **********
 **   18 **HESSE 
 **********

 FCN=   40714.37     FROM HESSE     STATUS=OK           324 CALLS     1746 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.5576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .42226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5249        7.6782        .64812E-03   -1.5676    
   4  Prefactor     4.1161        26.767        .49479E-03   -1.5667    
   5  norm          9.2334        2.6771        .32942E-03   -1.5647    
   6  norm          6.3317        .67075        .39865E-03   -1.5658    
   7  norm          4.2153        2.3541        .49098E-03   -1.5667    
   8  Prefactor     8.3135        5.8398        .34720E-03   -1.5650    
   9  Prefactor      .0000        2.8857        .17276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8201        2.9572        .51629E-03   -1.5669    
  11  norm          9.1764        10.470        .33051E-03   -1.5647    
  12  norm          4.0939        2.0658        .49795E-03   -1.5667    
  13  Prefactor      .0000        6.4374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14449        .51223        .79273E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7183        7.8899        .32133E-03   -1.5646    
  16  Prefactor     17.476        21.796        .23962E-03   -1.5624    
  17  Prefactor      .0000        1.4749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0542        .11053        .10441       -.91235    
  19  Prefactor     .99820        .31707E-01    .32384E-01   -.92790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4238e-07
Minuit parameter uncertainties:
  1  9.55544e-06
  2  8.91294e-07
  3  7.67824
  4  20.9931
  5  2.67709
  6  0.670745
  7  2.35415
  8  5.83982
  9  3.63928e-06
  10  2.95721
  11  10.4696
  12  2.06577
  13  2.22624e-05
  14  0.51223
  15  7.88987
  16  21.7959
  17  2.22119e-06
  18  0.110552
  19  0.0317079
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  4.094e+00  2.066e+00  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.982e-01  3.171e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.054e+00  1.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.98
Ra Dec: 301.393 77.883
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 8.52e-06

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) = 40714.184332
delta logL = 0.184008341945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 40713.7621633
delta logL = 0.606177011476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44539       1.0000          .0000       .10000E+07
     2 'alpha     '    .79044       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99827       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   40713.76     FROM MIGRAD    STATUS=FAILED       107 CALLS      316 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44445        6.1444        .15341E-03   -.36260    
   2  alpha         .78960        2.6656        .28693E-02   -.88752E-06
   3  Normalizat    1.0791        .10707        .45821E-03   -.17864E-05
   4  Prefactor     .99827        .32627E-01    .14316E-03    .63532E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   40713.76     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      396 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44445        6.1444        .89477E-05   -1.5695    
   2  alpha         .78960        2.6656        .25877E-02   -.75345    
   3  Normalizat    1.0791        .10707        .15855E-03   -.90427    
   4  Prefactor     .99827        .32627E-01    .46106E-04   -.92787    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   40713.76     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      424 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44445        1.0765        .30683E-04   -.14238E-01
   2  alpha         .78960        .81945        .11477E-03   -.47546E-06
   3  Normalizat    1.0791        .10707        .18329E-04   -.19849E-05
   4  Prefactor     .99827        .32588E-01    .57262E-05    .63532E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.444448
  alpha      = 0.789597
  Normalizat = 1.07907
  Prefactor  = 0.998271
 **********
 **   18 **HESSE 
 **********

 FCN=   40713.76     FROM HESSE     STATUS=OK            25 CALLS      449 TOTAL
                     EDM=   .21E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44445        .97974        .61366E-05   -1.5695    
   2  alpha         .78960        .75037        .22955E-04   -.75345    
   3  Normalizat    1.0791        .10702        .36657E-05   -.90427    
   4  Prefactor     .99827        .32579E-01    .57262E-05   -.92787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1159e-14
Minuit parameter uncertainties:
  1  0.979744
  2  0.773345
  3  0.107041
  4  0.0325795
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) = 40713.7621627
delta logL = 0.606177696143

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  4.444e-01  9.797e-01  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  7.896e-01  7.733e-01  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  9.983e-01  3.258e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  1.079e+00  1.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.15
Ra Dec: 301.393 77.883
Photon Index (Free Index): 0.79 +/- 0.77
Photon Flux (Free Index): 2.81e-09 +/- 3.26e-09
Energy Flux (Free Index): 4.19e-05 +/- 4.37e-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/18161339/cmap_HighResolution_788140801_788745601_4FGL_J2005.5+7752_weekly_bin908.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='4.19e-05', photon_flux_error='1.80e-08', dlogl='6.06e-01', energy_flux='1.69e-05', photon_flux2='2.81e-09', job_status='DONE', time_completed='2025-12-30 03:10:03.668129', photon_index_error2='0.77', photon_index2='0.79', ts='7.98', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='1.05', time_epoch_completed='1767093003.67', return_code='0', job_id='18161339', GAL2='1.00', EG2='1.08', return_code2='0', energy_flux_error='8.52e-06', photon_flux_error2='3.26e-09', ts2='9.15', photon_index='2.14' WHERE bin_id='908' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 30 03:10:03 PST 2025

