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


Performing analysis on: 4FGL_J0024.7+0349_daily_bin2004
RA = 6.1975, Dec = 3.8321
tmin = 758764801, tmax = 759024001
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='62357796', job_status='RUN', time_executed='2025-01-20 00:02:04.614923', time_epoch_executed='1737360124.61' WHERE source_name='4FGL J0024.7+0349' and cadence='daily' and bin_id='2004'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62357796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62357796/ft1_4FGL_J0024.7+0349_daily_bin2004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62357796/ft1_4FGL_J0024.7+0349_daily_bin2004.fits outfile=/lscratch/kocevski/62357796/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin2004.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=758764801.0 tmax=759024001.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 1.54
user 1.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.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/62357796/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin2004.fits evtable="EVENTS" outfile="/lscratch/kocevski/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.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.58
user 0.22
sys 0.14

Number of photons that the gtmktime cut: 807

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62357796/ltcube_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.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/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits
.....................!
real 9.32
user 8.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits evtable="EVENTS" scfile=/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62357796/ltcube_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.fits outfile=/lscratch/kocevski/62357796/expmap_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.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/62357796/ltcube_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.fits
.....................!
real 59.09
user 55.32
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/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits scfile=/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits outfile=/lscratch/kocevski/62357796/cmap_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.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 0.42
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits scfile=/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits outfile=/lscratch/kocevski/62357796/cmap_HighResolution_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.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 0.45
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits evtable="EVENTS" scfile=/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62357796/Model_4FGL_J0024.7+0349_daily_bin2004.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/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits.....................!
real 31.36
user 29.46
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits', '/lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits', expMap='/lscratch/kocevski/62357796/expmap_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.fits', expCube='/lscratch/kocevski/62357796/ltcube_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62357796/Model_4FGL_J0024.7+0349_daily_bin2004.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/62357796/ft1_filtered_4FGL_J0024.7+0349_daily_bin2004.fits
Spacecraft file(s): /lscratch/kocevski/62357796/ft2_4FGL_J0024.7+0349_daily_bin2004.fits
Exposure map: /lscratch/kocevski/62357796/expmap_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.fits
Exposure cube: /lscratch/kocevski/62357796/ltcube_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62357796/Model_4FGL_J0024.7+0349_daily_bin2004.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) = 8873.3384425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.234       1.0000          .0000       .10000E+07
     2 'Prefactor '    .28612E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .12990E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .31416E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .22296       1.0000          .0000       .10000E+07
     6 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .69222E-07   1.0000          .0000       .10000E+07
     8 'norm      '    7.0115       1.0000          .0000       .10000E+07
     9 'norm      '    .20663E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    33.761       1.0000          .0000       .10000E+07
    11 'Prefactor '    .81646E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.7460       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.3018       1.0000          .0000       .10000E+07
    14 'norm      '    .36415E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    40.401       1.0000          .0000       .10000E+07
    16 'norm      '    .46563       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34442E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    24.430       1.0000          .0000       .10000E+07
    19 'Normalizat'    .83853       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0067       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=   8873.335     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     2419 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.226        9.5689        .12252E-05   -.23753E-03
   2  Prefactor     .11102E-09    4.4241       -.79230E-06** at limit **
   3  norm           .0000        .67328        .29237E-06** at limit **
   4  Prefactor     .83267E-09    19.759        .63409E-05** at limit **
   5  norm          .21840        7.0605       -.33376E-06** at limit **
   6  norm           .0000        .84184       -.49450E-06** at limit **
   7  Prefactor      .0000        1.5107        .59985E-06** at limit **
   8  norm          6.9345        5.5434        .14384E-06    .80481E-03
   9  norm           .0000        2.8179       -.11892E-05** at limit **
  10  Prefactor     33.681        6.0458        .20130E-06   -.18401E-01
  11  Prefactor     .14322E-07    23.753       -.39193E-05** at limit **
  12  Prefactor     2.7454        1.5363        .79929E-07   -.12565E-01
  13  Prefactor     2.3026        2.0944        .36272E-07    .31490E-03
  14  norm          .61062E-09    4.2608        .15856E-06** at limit **
  15  Prefactor     40.829        5.0815        .49158E-06   -.57680E-01
  16  norm          .46304        1.0333        .27285E-07   -.26117E-02
  17  Prefactor     .10919E-06    87.204       -.33109E-05** at limit **
  18  Prefactor     24.479        13.199        .10065E-05    .71635E-02
  19  Normalizat    .83853        .16962        .78159E-05   -.24647E-03
  20  Prefactor     1.0068        .12789       -.15450E-04   -.42147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2264
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 8.32667e-10
  norm       = 0.218404
  norm       = 0
  Prefactor  = 0
  norm       = 6.9345
  norm       = 0
  Prefactor  = 33.6815
  Prefactor  = 1.43219e-08
  Prefactor  = 2.74535
  Prefactor  = 2.30263
  norm       = 6.10623e-10
  Prefactor  = 40.8287
  norm       = 0.463042
  Prefactor  = 1.0919e-07
  Prefactor  = 24.4788
  Normalizat = 0.838526
  Prefactor  = 1.00677
 **********
 **   18 **HESSE 
 **********

 FCN=   8873.335     FROM HESSE     STATUS=OK           339 CALLS     2758 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.226        9.5710        .24831E-03   -1.5627    
   2  Prefactor     .11102E-09    4.4103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .67606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83267E-09    19.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .21840        1.2042        .60803E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .84514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.5100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9345        5.5486        .37862E-03   -1.5655    
   9  norm           .0000        2.8340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.681        13.986        .17213E-03   -1.5592    
  11  Prefactor     .14322E-07    23.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7454        1.5311        .61410E-03   -1.5675    
  13  Prefactor     2.3026        2.0953        .67613E-03   -1.5678    
  14  norm          .61062E-09    4.2751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.829        47.798        .15734E-03   -1.5580    
  16  norm          .46304        1.0918        .82245E-03   -1.5694    
  17  Prefactor     .10919E-06    87.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.479        14.237        .20236E-03   -1.5609    
  19  Normalizat    .83853        .14782        .63689E-01   -.98655    
  20  Prefactor     1.0068        .11064        .43865E-01   -.92504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01118e-07
Minuit parameter uncertainties:
  1  9.57099
  2  4.41862e-05
  3  5.63741e-06
  4  0.000260162
  5  1.02568
  6  2.00125e-06
  7  4.51367e-06
  8  5.54865
  9  4.76202e-06
  10  13.9865
  11  0.00115111
  12  1.53107
  13  2.09534
  14  0.000101818
  15  47.7985
  16  1.09179
  17  0.00619116
  18  14.2366
  19  0.147887
  20  0.110666
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  4.514e-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.007e+00  1.107e-01  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:  8.385e-01  1.479e-01  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.96301794831e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.002288273692 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/62357796/likelihoodResults_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.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) = 8873.33764992
delta logL = -0.00291070738422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8873.33474239
delta logL = -3.18378806696e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .66875       1.0000          .0000       10.000    
     3 'Normalizat'    .83876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0065       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=   8873.335     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      239 TOTAL
                     EDM=   .91E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4537        .42118E-03** at limit **
   2  Index         1.3547        1.3949        .47190E-05     .0000    
   3  Normalizat    .83853        1.1763       -.17695E-05   -.37274E-04
   4  Prefactor     1.0068        1.2788        .57834E-06   -.36420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.35466
  Normalizat = 0.838526
  Prefactor  = 1.00677
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8873.335     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .91E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .14791        1.5233        .47190E-05   -.81696    
   3  Normalizat    .83853        1.1763       -.17695E-05   -.98655    
   4  Prefactor     1.0068        1.2788        .57834E-06   -.92504    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.12279e-13
Minuit parameter uncertainties:
  1  4.84243e-07
  2  1.43677
  3  1.21538
  4  1.32086
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) = 8873.33473921
delta logL = 4.18367562816e-11

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  4.842e-07  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  1.355e+00  1.437e+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.007e+00  1.321e+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:  8.385e-01  1.215e+00  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/62357796/cmap_HighResolution_758764801_759024001_4FGL_J0024.7+0349_daily_bin2004.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-03', job_status='DONE', photon_flux_upper_limit='2.96e-08', time_completed='2025-01-20 00:07:00.928393', job_id='62357796', GAL2='1.01', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1737360420.93', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='2004' AND source_name='4FGL J0024.7+0349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 20 00:07:00 PST 2025

