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


Performing analysis on: 4FGL_J0024.7+0349_weekly_bin910
RA = 6.1975, Dec = 3.8321
tmin = 789350401, tmax = 789955201
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='18859653', job_status='RUN', time_executed='2026-01-13 00:02:34.841518', time_epoch_executed='1768291354.84' WHERE source_name='4FGL J0024.7+0349' and cadence='weekly' and bin_id='910'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18859653

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18859653/ft1_4FGL_J0024.7+0349_weekly_bin910.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18859653/ft1_4FGL_J0024.7+0349_weekly_bin910.fits outfile=/lscratch/kocevski/18859653/ft1_filteredMKT_4FGL_J0024.7+0349_weekly_bin910.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=789350401.0 tmax=789955201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.96
user 2.84
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.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/18859653/ft1_filteredMKT_4FGL_J0024.7+0349_weekly_bin910.fits evtable="EVENTS" outfile="/lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.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 1.17
user 0.16
sys 0.18

Number of photons that the gtmktime cut: 1935

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18859653/ltcube_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.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/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits
.....................!
real 37.15
user 33.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18859653/ltcube_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.fits outfile=/lscratch/kocevski/18859653/expmap_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.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/18859653/ltcube_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.fits
.....................!
real 62.45
user 57.46
sys 3.37

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J0024.7+0349 @ 6.1975 3.8321

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits scfile=/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits outfile=/lscratch/kocevski/18859653/cmap_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.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=6.1975 yref=3.8321 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 2.10
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits scfile=/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits outfile=/lscratch/kocevski/18859653/cmap_HighResolution_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.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=6.1975 yref=3.8321 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 1.36
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits evtable="EVENTS" scfile=/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18859653/Model_4FGL_J0024.7+0349_weekly_bin910.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/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits.....................!
real 69.86
user 66.33
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits', '/lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits', expMap='/lscratch/kocevski/18859653/expmap_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.fits', expCube='/lscratch/kocevski/18859653/ltcube_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18859653/Model_4FGL_J0024.7+0349_weekly_bin910.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0024.7+0349'

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.144e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18859653/ft1_filtered_4FGL_J0024.7+0349_weekly_bin910.fits
Spacecraft file(s): /lscratch/kocevski/18859653/ft2_4FGL_J0024.7+0349_weekly_bin910.fits
Exposure map: /lscratch/kocevski/18859653/expmap_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.fits
Exposure cube: /lscratch/kocevski/18859653/ltcube_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18859653/Model_4FGL_J0024.7+0349_weekly_bin910.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) = 21491.0887791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.832       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.3247       1.0000          .0000       .10000E+07
     3 'norm      '    .15432E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9020       1.0000          .0000       .10000E+07
     5 'norm      '    .23377E-04   1.0000          .0000       .10000E+07
     6 'norm      '    5.2081       1.0000          .0000       .10000E+07
     7 'Prefactor '    .24248E-04   1.0000          .0000       .10000E+07
     8 'norm      '    6.9710       1.0000          .0000       .10000E+07
     9 'norm      '    9.1088       1.0000          .0000       .10000E+07
    10 'Prefactor '    25.826       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.1239       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57938       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12861E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .15526E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .75894E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .83280       1.0000          .0000       .10000E+07
    17 'Prefactor '    .72942E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    11.333       1.0000          .0000       .10000E+07
    19 'Normalizat'    .61984       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21491.07     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1196 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.801        2.6031        .29293E-06   -.11932    
   2  Prefactor     4.3325        2.6587        .26589E-06    .50728E-02
   3  norm          .55511E-10    .35235        .11985E-07** at limit **
   4  Prefactor     4.8876        5.8044       -.13004E-05   -.22158E-01
   5  norm          .33307E-09    1.1482        .57538E-06** at limit **
   6  norm          5.2068        1.8221        .58717E-07    .23228E-02
   7  Prefactor      .0000        1.4416       -.88465E-07** at limit **
   8  norm          6.9629        3.8453        .99958E-07    .37134E-02
   9  norm          9.1015        4.4240       -.63956E-06   -.98961E-02
  10  Prefactor     25.842        1.0581       -.39766E-07    .13495E-01
  11  Prefactor     3.1243        2.4672       -.64804E-07    .23813E-02
  12  Prefactor     .57951        .72205        .48102E-07    .51151E-02
  13  Prefactor     .55511E-10    1.2271        .11272E-06** at limit **
  14  norm          .66613E-09    2.6342       -.24032E-06** at limit **
  15  Prefactor     .12212E-08    17.834        .14004E-05** at limit **
  16  norm          .83289        .54341       -.17948E-07   -.45632E-01
  17  Prefactor      .0000        3.8510        .74163E-06** at limit **
  18  Prefactor     11.366        1.3287        .17098E-06   -.42681E-01
  19  Normalizat    .61991        .10504        .16480E-05   -.48188E-03
  20  Prefactor     1.1376        .83032E-01   -.48990E-06   -.56796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8012
  Prefactor  = 4.3325
  norm       = 5.55112e-11
  Prefactor  = 4.88759
  norm       = 3.33067e-10
  norm       = 5.20684
  Prefactor  = 0
  norm       = 6.96294
  norm       = 9.10148
  Prefactor  = 25.8418
  Prefactor  = 3.12425
  Prefactor  = 0.579507
  Prefactor  = 5.55112e-11
  norm       = 6.66134e-10
  Prefactor  = 1.22125e-09
  norm       = 0.832887
  Prefactor  = 0
  Prefactor  = 11.3655
  Normalizat = 0.619914
  Prefactor  = 1.13761
 **********
 **   18 **HESSE 
 **********

 FCN=   21491.07     FROM HESSE     STATUS=OK           339 CALLS     1535 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.801        8.0123        .19309E-03   -1.5604    
   2  Prefactor     4.3325        2.6893        .48415E-03   -1.5666    
   3  norm          .55511E-10    .35082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8876        6.1457        .45406E-03   -1.5664    
   5  norm          .33307E-09    1.1418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.2068        1.8222        .44024E-03   -1.5662    
   7  Prefactor      .0000        1.4391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9629        3.8515        .37973E-03   -1.5655    
   9  norm          9.1015        4.4502        .33184E-03   -1.5648    
  10  Prefactor     25.842        8.1046        .19682E-03   -1.5606    
  11  Prefactor     3.1243        2.5231        .57338E-03   -1.5673    
  12  Prefactor     .57951        .73570        .71095E-03   -1.5693    
  13  Prefactor     .55511E-10    .35071        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .66613E-09    2.6443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12212E-08    17.864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .83289        .54634        .50522E-03   -1.5690    
  17  Prefactor      .0000        3.8567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.366        10.171        .29734E-03   -1.5641    
  19  Normalizat    .61991        .95904E-01    .71331E-01   -1.0714    
  20  Prefactor     1.1376        .74163E-01    .36306E-01   -.88273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61724e-08
Minuit parameter uncertainties:
  1  8.01233
  2  2.68927
  3  8.6019e-06
  4  6.14572
  5  3.75421e-05
  6  1.8222
  7  5.79426e-06
  8  3.8515
  9  4.4502
  10  8.1046
  11  2.52307
  12  0.735704
  13  7.78581e-06
  14  8.23775e-05
  15  0.000293097
  16  0.546342
  17  6.88882e-06
  18  10.1715
  19  0.0959302
  20  0.0741696
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  5.794e-06  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.138e+00  7.417e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  6.199e-01  9.593e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 6.197 3.832
Photon Flux Upper Limit: 2.20537671666e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.001703164007 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18859653/likelihoodResults_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.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) = 21491.0722816
delta logL = -0.00334705600471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21491.0689346
delta logL = -3.18214006256e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     2 'Index     '    1.7448       1.0000          .0000       10.000    
     3 'Normalizat'    .61989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   21491.07     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      233 TOTAL
                     EDM=   .81E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .59368        .42118E-03** at limit **
   2  Index         3.0092        1.2455       -.22989E-04     .0000    
   3  Normalizat    .61991        .95804       -.13102E-05   -.11414E-03
   4  Prefactor     1.1376        1.1276        .66896E-06   -.73971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00919
  Normalizat = 0.619914
  Prefactor  = 1.13761
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   21491.07     FROM HESSE     STATUS=FAILED         9 CALLS      242 TOTAL
                     EDM=   .81E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .59368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0235        2.0605       -.22989E-04   -.40951    
   3  Normalizat    .61991        .95804       -.13102E-05   -1.0714    
   4  Prefactor     1.1376        1.1276        .66896E-06   -.88273    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.11389e-12
Minuit parameter uncertainties:
  1  1.10855e-06
  2  1.26138
  3  0.985707
  4  1.15277
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) = 21491.0689346
delta logL = 5.45696821064e-11

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  1.109e-06  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  3.009e+00  1.261e+00  0.000e+00  1.000e+01 (-1.000e+00)
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.138e+00  1.153e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  6.199e-01  9.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 6.197 3.832

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/18859653/cmap_HighResolution_789350401_789955201_4FGL_J0024.7+0349_weekly_bin910.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-03', job_status='DONE', photon_flux_upper_limit='2.21e-08', time_completed='2026-01-13 00:18:14.272756', job_id='18859653', GAL2='1.14', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1768292294.27', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='5.46e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='910' AND source_name='4FGL J0024.7+0349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 13 00:18:14 PST 2026

