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


Performing analysis on: 4FGL_J0024.7+0349_weekly_bin811
RA = 6.1975, Dec = 3.8321
tmin = 729475201, tmax = 730080001
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='44244504', job_status='RUN', time_executed='2024-04-19 11:40:58.162388', time_epoch_executed='1713552058.16' WHERE source_name='4FGL J0024.7+0349' and cadence='weekly' and bin_id='811'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44244504

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44244504/ft1_4FGL_J0024.7+0349_weekly_bin811.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44244504/ft2_4FGL_J0024.7+0349_weekly_bin811.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44244504/ft1_4FGL_J0024.7+0349_weekly_bin811.fits outfile=/lscratch/kocevski/44244504/ft1_filteredMKT_4FGL_J0024.7+0349_weekly_bin811.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=729475201.0 tmax=730080001.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 4.74
user 4.41
sys 0.23

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

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

Number of photons that the gtmktime cut: 1279

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44244504/ft1_filtered_4FGL_J0024.7+0349_weekly_bin811.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44244504/ft2_4FGL_J0024.7+0349_weekly_bin811.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44244504/ltcube_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.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/44244504/ft2_4FGL_J0024.7+0349_weekly_bin811.fits
.....................!
real 17.60
user 17.21
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44244504/ft1_filtered_4FGL_J0024.7+0349_weekly_bin811.fits evtable="EVENTS" scfile=/lscratch/kocevski/44244504/ft2_4FGL_J0024.7+0349_weekly_bin811.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44244504/ltcube_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.fits outfile=/lscratch/kocevski/44244504/expmap_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.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/44244504/ltcube_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.fits
.....................!
real 58.94
user 55.20
sys 3.34

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/44244504/ft1_filtered_4FGL_J0024.7+0349_weekly_bin811.fits scfile=/lscratch/kocevski/44244504/ft2_4FGL_J0024.7+0349_weekly_bin811.fits outfile=/lscratch/kocevski/44244504/cmap_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.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.39
user 0.21
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44244504/ft1_filtered_4FGL_J0024.7+0349_weekly_bin811.fits scfile=/lscratch/kocevski/44244504/ft2_4FGL_J0024.7+0349_weekly_bin811.fits outfile=/lscratch/kocevski/44244504/cmap_HighResolution_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.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.43
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44244504/ft1_filtered_4FGL_J0024.7+0349_weekly_bin811.fits evtable="EVENTS" scfile=/lscratch/kocevski/44244504/ft2_4FGL_J0024.7+0349_weekly_bin811.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44244504/Model_4FGL_J0024.7+0349_weekly_bin811.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/44244504/ft1_filtered_4FGL_J0024.7+0349_weekly_bin811.fits.....................!
real 46.31
user 45.02
sys 0.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96396E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16632E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .36121E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .26339E-03   1.0000          .0000       .10000E+07
     5 'norm      '    2.2107       1.0000          .0000       .10000E+07
     6 'norm      '    .69995E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .96068E-05   1.0000          .0000       .10000E+07
     8 'norm      '    2.7938       1.0000          .0000       .10000E+07
     9 'norm      '    7.0464       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.404       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.0717       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.6080       1.0000          .0000       .10000E+07
    13 'Prefactor '    .82572       1.0000          .0000       .10000E+07
    14 'norm      '    .56579E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .61734E-04   1.0000          .0000       .10000E+07
    16 'norm      '    8.1411       1.0000          .0000       .10000E+07
    17 'Prefactor '    .14028E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.517       1.0000          .0000       .10000E+07
    19 'Normalizat'    .81139       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0522       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=   14661.80     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1229 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66613E-09    4.0853       -.30976E-07** at limit **
   2  Prefactor     .55511E-10    2.2456        .12709E-05** at limit **
   3  norm          .27756E-09    3.0641        .80613E-06** at limit **
   4  Prefactor     .87708E-08    12.952        .36607E-05** at limit **
   5  norm          2.2099        1.8129        .11697E-05    .96992E-02
   6  norm           .0000        .77097       -.51781E-06** at limit **
   7  Prefactor      .0000        3.3787       -.17213E-05** at limit **
   8  norm          2.7506        3.7928       -.10558E-05    .12436E-01
   9  norm          7.0438        6.3321       -.84191E-06    .11863E-02
  10  Prefactor     12.443        1.2713        .66369E-07   -.24251E-01
  11  Prefactor     3.0641        3.1448        .54405E-06    .22536E-02
  12  Prefactor     2.6079        1.4201        .65174E-06    .95980E-03
  13  Prefactor     .80374        1.9476       -.40371E-05    .41502E-02
  14  norm          .55511E-10    6.8189        .69263E-06** at limit **
  15  Prefactor     .90378E-05    14.276       -.29377E-05** at limit **
  16  norm          8.1417        1.3897        .31193E-06   -.26992E-01
  17  Prefactor     .96295E-05    12.986       -.25098E-05** at limit **
  18  Prefactor     13.469        1.2921        .14141E-06    .94994E-01
  19  Normalizat    .81166        .14123        .10247E-04    .39248E-03
  20  Prefactor     1.0522        .10582        .91171E-05    .63680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66134e-10
  Prefactor  = 5.55112e-11
  norm       = 2.77556e-10
  Prefactor  = 8.77076e-09
  norm       = 2.20993
  norm       = 0
  Prefactor  = 0
  norm       = 2.75065
  norm       = 7.04376
  Prefactor  = 12.4434
  Prefactor  = 3.06412
  Prefactor  = 2.60791
  Prefactor  = 0.803738
  norm       = 5.55112e-11
  Prefactor  = 9.03777e-06
  norm       = 8.14165
  Prefactor  = 9.62946e-06
  Prefactor  = 13.4686
  Normalizat = 0.811662
  Prefactor  = 1.05217
 **********
 **   18 **HESSE 
 **********

 FCN=   14661.80     FROM HESSE     STATUS=OK           335 CALLS     1564 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66613E-09    4.0994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    2.2528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .27756E-09    .48661        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .87708E-08    12.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2099        1.8310        .69153E-03   -1.5678    
   6  norm           .0000        .77426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7506        3.8276        .60844E-03   -1.5675    
   9  norm          7.0438        6.3734        .37768E-03   -1.5655    
  10  Prefactor     12.443        9.3783        .28416E-03   -1.5637    
  11  Prefactor     3.0641        3.1966        .57851E-03   -1.5673    
  12  Prefactor     2.6079        1.4243        .63141E-03   -1.5676    
  13  Prefactor     .80374        1.9574        .51037E-03   -1.5690    
  14  norm          .55511E-10    6.8036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .90378E-05    27.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1417        1.3888        .35114E-03   -1.5651    
  17  Prefactor     .96295E-05    27.027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.469        14.672        .27219E-03   -1.5635    
  19  Normalizat    .81166        .12436        .68200E-01   -.99638    
  20  Prefactor     1.0522        .91608E-01    .39784E-01   -.91010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42771e-07
Minuit parameter uncertainties:
  1  0.000106458
  2  1.70635e-05
  3  2.21921e-05
  4  0.00067378
  5  1.83098
  6  5.11486e-06
  7  1.32745e-05
  8  3.82765
  9  6.37342
  10  9.37828
  11  3.19658
  12  1.42426
  13  1.95738
  14  3.27714e-05
  15  0.0315303
  16  1.38881
  17  0.0322649
  18  14.6719
  19  0.124402
  20  0.0916213
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  1.327e-05  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.052e+00  9.162e-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:  8.117e-01  1.244e-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: 4.29304989678e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00331542815758 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44244504/likelihoodResults_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.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) = 14661.8005635
delta logL = -0.000435152331193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14661.8001284
delta logL = -4.77848516311e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51514E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .72358       1.0000          .0000       10.000    
     3 'Normalizat'    .81166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0522       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=   14661.80     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      243 TOTAL
                     EDM=   .35E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8120        .31278E-06** at limit **
   2  Index         2.7081        2.3979       -.26707E-04     .0000    
   3  Normalizat    .81166        .13685        .89112E-05   -.61999E-05
   4  Prefactor     1.0522        .10496       -.62001E-05   -.25382E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.70808
  Normalizat = 0.811662
  Prefactor  = 1.05217
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14661.80     FROM HESSE     STATUS=FAILED        11 CALLS      254 TOTAL
                     EDM=   .35E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.7951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .83039        2.0836       -.26707E-04   -.47618    
   3  Normalizat    .81166        1.1502        .89112E-05   -.99638    
   4  Prefactor     1.0522        1.1888       -.62001E-05   -.91010    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.48803e-13
Minuit parameter uncertainties:
  1  2.75248e-06
  2  1.89813
  3  1.18772
  4  1.22071
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) = 14661.8001284
delta logL = 6.18456397206e-11

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  2.752e-06  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.708e+00  1.898e+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.052e+00  1.221e+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.117e-01  1.188e+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/44244504/cmap_HighResolution_729475201_730080001_4FGL_J0024.7+0349_weekly_bin811.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', job_status='DONE', photon_flux_upper_limit='4.29e-08', time_completed='2024-04-19 11:46:51.213146', job_id='44244504', GAL2='1.05', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1713552411.21', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='6.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='811' AND source_name='4FGL J0024.7+0349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Apr 19 11:46:51 PDT 2024

