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


Performing analysis on: 4FGL_J0024.7+0349_weekly_bin805
RA = 6.1975, Dec = 3.8321
tmin = 725846401, tmax = 726451201
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='38388398', job_status='RUN', time_executed='2024-01-18 11:06:06.600138', time_epoch_executed='1705604766.6' WHERE source_name='4FGL J0024.7+0349' and cadence='weekly' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38388398

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

Retrieving the FT1 file...

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

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

Retrieving 103 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38388398/ft1_4FGL_J0024.7+0349_weekly_bin805.fits


Retrieving the FT1 file...

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

Retrieving 103 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38388398/ft2_4FGL_J0024.7+0349_weekly_bin805.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38388398/ft1_4FGL_J0024.7+0349_weekly_bin805.fits outfile=/lscratch/kocevski/38388398/ft1_filteredMKT_4FGL_J0024.7+0349_weekly_bin805.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=725846401.0 tmax=726451201.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.86
user 3.48
sys 0.17

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

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

Number of photons that the gtmktime cut: 1971

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38388398/ft1_filtered_4FGL_J0024.7+0349_weekly_bin805.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38388398/ft2_4FGL_J0024.7+0349_weekly_bin805.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38388398/ltcube_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.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/38388398/ft2_4FGL_J0024.7+0349_weekly_bin805.fits
.....................!
real 24.36
user 23.72
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38388398/ft1_filtered_4FGL_J0024.7+0349_weekly_bin805.fits evtable="EVENTS" scfile=/lscratch/kocevski/38388398/ft2_4FGL_J0024.7+0349_weekly_bin805.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38388398/ltcube_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.fits outfile=/lscratch/kocevski/38388398/expmap_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.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/38388398/ltcube_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.fits
.....................!
real 74.24
user 69.21
sys 4.13

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/38388398/ft1_filtered_4FGL_J0024.7+0349_weekly_bin805.fits scfile=/lscratch/kocevski/38388398/ft2_4FGL_J0024.7+0349_weekly_bin805.fits outfile=/lscratch/kocevski/38388398/cmap_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.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.47
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38388398/ft1_filtered_4FGL_J0024.7+0349_weekly_bin805.fits scfile=/lscratch/kocevski/38388398/ft2_4FGL_J0024.7+0349_weekly_bin805.fits outfile=/lscratch/kocevski/38388398/cmap_HighResolution_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.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.49
user 0.25
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38388398/ft1_filtered_4FGL_J0024.7+0349_weekly_bin805.fits evtable="EVENTS" scfile=/lscratch/kocevski/38388398/ft2_4FGL_J0024.7+0349_weekly_bin805.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38388398/Model_4FGL_J0024.7+0349_weekly_bin805.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/38388398/ft1_filtered_4FGL_J0024.7+0349_weekly_bin805.fits.....................!
real 81.64
user 80.39
sys 0.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.199       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47129E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .48850E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .57527E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .30531E-08   1.0000          .0000       .10000E+07
     6 'norm      '    2.1609       1.0000          .0000       .10000E+07
     7 'Prefactor '    .21483E-07   1.0000          .0000       .10000E+07
     8 'norm      '    6.3707       1.0000          .0000       .10000E+07
     9 'norm      '    8.6270       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.5064       1.0000          .0000       .10000E+07
    11 'Prefactor '    .44715E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .88996       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.2642       1.0000          .0000       .10000E+07
    14 'norm      '    11.254       1.0000          .0000       .10000E+07
    15 'Prefactor '    22.653       1.0000          .0000       .10000E+07
    16 'norm      '    10.043       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.2185       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.9762       1.0000          .0000       .10000E+07
    19 'Normalizat'    .56817       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1469       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=   21797.54     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1193 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.209        6.3440        .15678E-06    .70133E-02
   2  Prefactor      .0000        .79096       -.37951E-07** at limit **
   3  norm           .0000        .24411       -.47579E-07** at limit **
   4  Prefactor      .0000        3.6432       -.48382E-07** at limit **
   5  norm           .0000        .56767        .67236E-07** at limit **
   6  norm          2.1597        1.3372        .16225E-07    .92914E-04
   7  Prefactor      .0000        1.1417        .61080E-07** at limit **
   8  norm          6.3594        3.6179        .21147E-08    .47353E-03
   9  norm          8.6272        4.8805       -.30399E-08   -.22496E-02
  10  Prefactor     8.4838        4.9019        .11302E-06    .12999E-02
  11  Prefactor      .0000        2.3874        .22715E-06** at limit **
  12  Prefactor     .88932        .68597        .10165E-07    .37483E-03
  13  Prefactor     3.2608        1.7318        .40963E-07    .17471E-02
  14  norm          11.267        2.0362       -.11783E-08    .84675E-01
  15  Prefactor     22.165        28.523       -.19440E-06    .96116E-03
  16  norm          10.046        1.2130        .89199E-08    .64717E-03
  17  Prefactor     .40892        158.72       -.16787E-05   -.44449E-03
  18  Prefactor     2.9771        8.5497        .23934E-06   -.86091E-02
  19  Normalizat    .56883        .10766       -.65436E-06    .80049E-04
  20  Prefactor     1.1468        .83599E-01    .12608E-05    .15588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2089
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 2.15972
  Prefactor  = 0
  norm       = 6.35943
  norm       = 8.62717
  Prefactor  = 8.48378
  Prefactor  = 0
  Prefactor  = 0.889323
  Prefactor  = 3.26082
  norm       = 11.2675
  Prefactor  = 22.1648
  norm       = 10.0463
  Prefactor  = 0.408921
  Prefactor  = 2.97708
  Normalizat = 0.568832
  Prefactor  = 1.14681
 **********
 **   18 **HESSE 
 **********

 FCN=   21797.54     FROM HESSE     STATUS=OK           343 CALLS     1536 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.209        6.3626        .31350E-03   -1.5644    
   2  Prefactor      .0000        .79085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .24549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.6456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .56356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1597        1.3381        .70044E-03   -1.5679    
   7  Prefactor      .0000        1.1432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3594        3.6222        .39743E-03   -1.5658    
   9  norm          8.6272        4.8743        .34104E-03   -1.5649    
  10  Prefactor     8.4838        4.9179        .34347E-03   -1.5650    
  11  Prefactor      .0000        2.3455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .88932        .68664        .46456E-03   -1.5689    
  13  Prefactor     3.2608        1.7382        .56026E-03   -1.5672    
  14  norm          11.267        6.1808        .29839E-03   -1.5641    
  15  Prefactor     22.165        28.517        .21016E-03   -1.5614    
  16  norm          10.046        1.2143        .31594E-03   -1.5645    
  17  Prefactor     .40892        8.4464        .13721E-01   -1.5695    
  18  Prefactor     2.9771        8.8717        .58827E-03   -1.5673    
  19  Normalizat    .56883        .96866E-01    .74326E-01   -1.0932    
  20  Prefactor     1.1468        .74614E-01    .36028E-01   -.87984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64435e-08
Minuit parameter uncertainties:
  1  6.36258
  2  6.20395e-07
  3  3.52822e-07
  4  8.6063e-06
  5  1.02504e-06
  6  1.33809
  7  2.6237e-06
  8  3.62222
  9  4.87427
  10  4.91792
  11  4.8724e-06
  12  0.68664
  13  1.73815
  14  6.18078
  15  28.5167
  16  1.21433
  17  3.71694
  18  8.87178
  19  0.0968952
  20  0.0746208
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  2.624e-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.147e+00  7.462e-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:  5.688e-01  9.690e-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.09314505204e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00161648995709 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38388398/likelihoodResults_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.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) = 21797.5396705
delta logL = -0.00265748914171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21797.5370131
delta logL = -5.33036654815e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.7037       1.0000          .0000       10.000    
     3 'Normalizat'    .56881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1468       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=   21797.54     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      231 TOTAL
                     EDM=   .69E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0095        .42118E-03** at limit **
   2  Index         2.5416        1.1962        .16053E-05     .0000    
   3  Normalizat    .56883        .90479        .32002E-05    .54037E-05
   4  Prefactor     1.1468        1.1233       -.13731E-05   -.33462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.54155
  Normalizat = 0.568832
  Prefactor  = 1.14681
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   21797.54     FROM HESSE     STATUS=FAILED         9 CALLS      240 TOTAL
                     EDM=   .69E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .72895        1.9072        .16053E-05   -.51403    
   3  Normalizat    .56883        .90479        .32002E-05   -1.0932    
   4  Prefactor     1.1468        1.1233       -.13731E-05   -.87984    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.94965e-13
Minuit parameter uncertainties:
  1  2.52909e-08
  2  1.21179
  3  0.930024
  4  1.14802
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) = 21797.5370131
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  2.529e-08  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.542e+00  1.212e+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.147e+00  1.148e+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:  5.688e-01  9.300e-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/38388398/cmap_HighResolution_725846401_726451201_4FGL_J0024.7+0349_weekly_bin805.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-03', job_status='DONE', photon_flux_upper_limit='2.09e-08', time_completed='2024-01-18 11:15:00.071400', job_id='38388398', GAL2='1.15', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1705605300.07', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='805' AND source_name='4FGL J0024.7+0349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jan 18 11:15:00 PST 2024

