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


Performing analysis on: 4FGL_J0024.7+0349_daily_bin1885
RA = 6.1975, Dec = 3.8321
tmin = 727920001, tmax = 728179201
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='38913758', job_status='RUN', time_executed='2024-01-29 00:00:36.147070', time_epoch_executed='1706515236.15' WHERE source_name='4FGL J0024.7+0349' and cadence='daily' and bin_id='1885'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38913758

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38913758/ft1_4FGL_J0024.7+0349_daily_bin1885.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38913758/ft1_4FGL_J0024.7+0349_daily_bin1885.fits outfile=/lscratch/kocevski/38913758/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1885.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=727920001.0 tmax=728179201.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 2.44
user 2.15
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.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/38913758/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1885.fits evtable="EVENTS" outfile="/lscratch/kocevski/38913758/ft1_filtered_4FGL_J0024.7+0349_daily_bin1885.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.55
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 511

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38913758/ft1_filtered_4FGL_J0024.7+0349_daily_bin1885.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38913758/ltcube_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.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/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.fits
.....................!
real 14.07
user 13.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38913758/ft1_filtered_4FGL_J0024.7+0349_daily_bin1885.fits evtable="EVENTS" scfile=/lscratch/kocevski/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38913758/ltcube_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.fits outfile=/lscratch/kocevski/38913758/expmap_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.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/38913758/ltcube_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.fits
.....................!
real 77.29
user 72.42
sys 4.28

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/38913758/ft1_filtered_4FGL_J0024.7+0349_daily_bin1885.fits scfile=/lscratch/kocevski/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.fits outfile=/lscratch/kocevski/38913758/cmap_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.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.44
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38913758/ft1_filtered_4FGL_J0024.7+0349_daily_bin1885.fits scfile=/lscratch/kocevski/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.fits outfile=/lscratch/kocevski/38913758/cmap_HighResolution_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.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.50
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38913758/ft1_filtered_4FGL_J0024.7+0349_daily_bin1885.fits evtable="EVENTS" scfile=/lscratch/kocevski/38913758/ft2_4FGL_J0024.7+0349_daily_bin1885.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38913758/Model_4FGL_J0024.7+0349_daily_bin1885.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/38913758/ft1_filtered_4FGL_J0024.7+0349_daily_bin1885.fits.....................!
real 57.03
user 27.54
sys 1.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10692E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .21776       1.0000          .0000       .10000E+07
     3 'norm      '    .10044E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .17067E-02   1.0000          .0000       .10000E+07
     5 'norm      '    6.6632       1.0000          .0000       .10000E+07
     6 'norm      '    .61917E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29613E-03   1.0000          .0000       .10000E+07
     8 'norm      '    3.3790       1.0000          .0000       .10000E+07
     9 'norm      '    .14550E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.6617       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12912E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.9824       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57121E-04   1.0000          .0000       .10000E+07
    14 'norm      '    5.1694       1.0000          .0000       .10000E+07
    15 'Prefactor '    6.4173       1.0000          .0000       .10000E+07
    16 'norm      '    12.408       1.0000          .0000       .10000E+07
    17 'Prefactor '    .49474E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .12355       1.0000          .0000       .10000E+07
    19 'Normalizat'    .71367       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2006       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=   5589.458     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1214 TOTAL
                     EDM=   .75E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.0255       -.63402E-07** at limit **
   2  Prefactor     .74802        19.521       -.12921E-06   -.91198E-04
   3  norm           .0000        .83824        .48569E-07** at limit **
   4  Prefactor     .11102E-09    5.3361       -.14837E-06** at limit **
   5  norm          6.3704        5.9461       -.10818E-07   -.30583E-03
   6  norm           .0000        1.4540       -.45677E-07** at limit **
   7  Prefactor      .0000        4.3474       -.82968E-07** at limit **
   8  norm          3.4280        6.6635        .11966E-06   -.40034E-05
   9  norm          .55511E-10    5.3052        .13466E-08** at limit **
  10  Prefactor     5.5627        6.4538       -.73862E-07    .41865E-02
  11  Prefactor      .0000        2.0729       -.31909E-07** at limit **
  12  Prefactor     1.9843        1.8500       -.69131E-08    .48706E-03
  13  Prefactor     .72164E-09    5.2844        .50363E-07** at limit **
  14  norm          5.5109        3.5772        .29594E-07   -.18726E-02
  15  Prefactor     .75362        3131.7       -.53664E-05   -.13789E-04
  16  norm          12.473        3.0121        .44891E-07    .26620E-02
  17  Prefactor      .0000        54.096        .16447E-05** at limit **
  18  Prefactor      .0000        281.64        .19875E-06** at limit **
  19  Normalizat    .71591        .23132       -.29350E-06    .10833E-04
  20  Prefactor     1.1995        .17726        .78050E-06    .24106E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0.748025
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 6.37044
  norm       = 0
  Prefactor  = 0
  norm       = 3.428
  norm       = 5.55112e-11
  Prefactor  = 5.56274
  Prefactor  = 0
  Prefactor  = 1.98431
  Prefactor  = 7.21645e-10
  norm       = 5.51091
  Prefactor  = 0.753616
  norm       = 12.4728
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.71591
  Prefactor  = 1.19955
 **********
 **   18 **HESSE 
 **********

 FCN=   5589.458     FROM HESSE     STATUS=OK           335 CALLS     1549 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.0192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74802        27.875        .11468E-02   -1.5691    
   3  norm           .0000        .83684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    5.6176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3704        7.2590        .38850E-03   -1.5657    
   6  norm           .0000        1.4549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        4.3684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4280        6.6831        .55021E-03   -1.5671    
   9  norm          .55511E-10    5.7850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5627        12.569        .42193E-03   -1.5661    
  11  Prefactor      .0000        2.0811        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9843        1.8470        .73580E-03   -1.5680    
  13  Prefactor     .72164E-09    6.5756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5109        11.664        .44192E-03   -1.5661    
  15  Prefactor     .75362        3201.9        .39596E-03   -1.5691    
  16  norm          12.473        3.0118        .28412E-03   -1.5637    
  17  Prefactor      .0000        52.471        .15561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        11.171        .13336E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .71591        .20560        .72439E-01   -1.0327    
  20  Prefactor     1.1995        .15636        .34617E-01   -.86345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04606e-05
Minuit parameter uncertainties:
  1  1.79794e-05
  2  9.13264
  3  5.9379e-07
  4  4.58515e-05
  5  7.25902
  6  1.0387e-06
  7  8.74433e-06
  8  6.68309
  9  4.17718e-05
  10  12.5691
  11  3.35107e-06
  12  1.84696
  13  0.00013821
  14  11.6643
  15  98.2969
  16  3.01177
  17  5.48214e-05
  18  5.25817e-06
  19  0.205822
  20  0.156419
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  8.744e-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.200e+00  1.564e-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:  7.159e-01  2.058e-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: 6.66481136654e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.0051470874555 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38913758/likelihoodResults_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.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) = 5589.47144632
delta logL = -0.0130684023634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5589.45838133
delta logL = -3.415523679e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90500E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.5070       1.0000          .0000       10.000    
     3 'Normalizat'    .71590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1997       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=   5589.458     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      225 TOTAL
                     EDM=   .48E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4202        .42118E-03** at limit **
   2  Index         .68652        .58903       -.58879E-04     .0000    
   3  Normalizat    .71591        1.0556        .79110E-05   -.14032E-04
   4  Prefactor     1.1995        1.1030       -.49143E-05   -.29149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.686522
  Normalizat = 0.71591
  Prefactor  = 1.19955
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5589.458     FROM HESSE     STATUS=FAILED         9 CALLS      234 TOTAL
                     EDM=   .48E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .10221E-02    .80416       -.58879E-04   -1.0406    
   3  Normalizat    .71591        1.0556        .79110E-05   -1.0327    
   4  Prefactor     1.1995        1.1030       -.49143E-05   -.86345    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.81547e-13
Minuit parameter uncertainties:
  1  2.67862e-07
  2  0.594491
  3  1.08807
  4  1.12538
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) = 5589.45837792
delta logL = 0.0

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  2.679e-07  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  6.865e-01  5.945e-01  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.200e+00  1.125e+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:  7.159e-01  1.088e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38913758/cmap_HighResolution_727920001_728179201_4FGL_J0024.7+0349_daily_bin1885.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2024-01-29 00:05:49.794454', job_id='38913758', GAL2='1.20', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1706515549.79', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1885' AND source_name='4FGL J0024.7+0349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 29 00:05:49 PST 2024

