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


Performing analysis on: 4FGL_J0024.7+0349_weekly_bin827
RA = 6.1975, Dec = 3.8321
tmin = 739152001, tmax = 739756801
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='50334241', job_status='RUN', time_executed='2024-06-11 00:16:30.358256', time_epoch_executed='1718090190.36' WHERE source_name='4FGL J0024.7+0349' and cadence='weekly' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/50334241

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/50334241/ft1_4FGL_J0024.7+0349_weekly_bin827.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/50334241/ft2_4FGL_J0024.7+0349_weekly_bin827.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/50334241/ft1_4FGL_J0024.7+0349_weekly_bin827.fits outfile=/lscratch/kocevski/50334241/ft1_filteredMKT_4FGL_J0024.7+0349_weekly_bin827.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=739152001.0 tmax=739756801.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 5.40
user 4.70
sys 0.25

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

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

Number of photons that the gtmktime cut: 1514

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/50334241/ft1_filtered_4FGL_J0024.7+0349_weekly_bin827.fits" evtable="EVENTS" scfile=/lscratch/kocevski/50334241/ft2_4FGL_J0024.7+0349_weekly_bin827.fits sctable="SC_DATA" outfile=/lscratch/kocevski/50334241/ltcube_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.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/50334241/ft2_4FGL_J0024.7+0349_weekly_bin827.fits
.....................!
real 35.61
user 34.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/50334241/ft1_filtered_4FGL_J0024.7+0349_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50334241/ft2_4FGL_J0024.7+0349_weekly_bin827.fits sctable="SC_DATA" expcube=/lscratch/kocevski/50334241/ltcube_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.fits outfile=/lscratch/kocevski/50334241/expmap_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.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/50334241/ltcube_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.fits
.....................!
real 73.64
user 69.30
sys 3.97

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/50334241/ft1_filtered_4FGL_J0024.7+0349_weekly_bin827.fits scfile=/lscratch/kocevski/50334241/ft2_4FGL_J0024.7+0349_weekly_bin827.fits outfile=/lscratch/kocevski/50334241/cmap_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.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.45
user 0.24
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/50334241/ft1_filtered_4FGL_J0024.7+0349_weekly_bin827.fits scfile=/lscratch/kocevski/50334241/ft2_4FGL_J0024.7+0349_weekly_bin827.fits outfile=/lscratch/kocevski/50334241/cmap_HighResolution_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.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.47
user 0.26
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/50334241/ft1_filtered_4FGL_J0024.7+0349_weekly_bin827.fits evtable="EVENTS" scfile=/lscratch/kocevski/50334241/ft2_4FGL_J0024.7+0349_weekly_bin827.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/50334241/Model_4FGL_J0024.7+0349_weekly_bin827.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/50334241/ft1_filtered_4FGL_J0024.7+0349_weekly_bin827.fits.....................!
real 65.37
user 63.76
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22183E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1595       1.0000          .0000       .10000E+07
     3 'norm      '    .78407       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.8772       1.0000          .0000       .10000E+07
     5 'norm      '    .95506E-05   1.0000          .0000       .10000E+07
     6 'norm      '    2.2612       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11067E-05   1.0000          .0000       .10000E+07
     8 'norm      '    3.2610       1.0000          .0000       .10000E+07
     9 'norm      '    9.8767       1.0000          .0000       .10000E+07
    10 'Prefactor '    .41551E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.3049       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3113       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24358       1.0000          .0000       .10000E+07
    14 'norm      '    .76188E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.2231       1.0000          .0000       .10000E+07
    16 'norm      '    1.7427       1.0000          .0000       .10000E+07
    17 'Prefactor '    .48694E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.9938       1.0000          .0000       .10000E+07
    19 'Normalizat'    .80447       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97979       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=   16912.18     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1252 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4037        .29995E-07** at limit **
   2  Prefactor     1.1549        1.8888       -.11591E-06    .82212E-03
   3  norm          .78174        1.0441       -.19746E-07   -.28914E-03
   4  Prefactor     3.8932        5.0280        .86028E-07   -.11121E-03
   5  norm           .0000        1.8632       -.94693E-07** at limit **
   6  norm          2.2602        1.7702       -.38211E-07    .41373E-03
   7  Prefactor      .0000        1.8057       -.13331E-07** at limit **
   8  norm          3.2551        3.1761        .29212E-07   -.47846E-03
   9  norm          9.8739        5.6739       -.10860E-06    .23509E-02
  10  Prefactor      .0000        4.7690       -.18090E-06** at limit **
  11  Prefactor     1.2959        2.4747       -.63600E-07    .12543E-03
  12  Prefactor     2.3115        1.1346        .67846E-08    .34940E-03
  13  Prefactor     .24697        1.9662        .24412E-07** at limit **
  14  norm           .0000        3.3157        .15517E-06** at limit **
  15  Prefactor     .79936E-08    1423.2        .98941E-06** at limit **
  16  norm          1.7572        .75907       -.23959E-07    .33590E-02
  17  Prefactor     .55511E-10    6.2657        .13218E-06** at limit **
  18  Prefactor     4.7985        11.880        .42321E-07   -.16619E-03
  19  Normalizat    .80538        .11860        .24140E-05   -.64154E-04
  20  Prefactor     .97969        .90483E-01   -.66310E-06   -.70954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.15494
  norm       = 0.781742
  Prefactor  = 3.89317
  norm       = 0
  norm       = 2.26023
  Prefactor  = 0
  norm       = 3.25506
  norm       = 9.87389
  Prefactor  = 0
  Prefactor  = 1.29588
  Prefactor  = 2.31152
  Prefactor  = 0.246973
  norm       = 0
  Prefactor  = 7.99361e-09
  norm       = 1.75715
  Prefactor  = 5.55112e-11
  Prefactor  = 4.7985
  Normalizat = 0.805377
  Prefactor  = 0.979693
 **********
 **   18 **HESSE 
 **********

 FCN=   16912.18     FROM HESSE     STATUS=OK           351 CALLS     1603 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1549        1.9996        .10702E-02   -1.5686    
   3  norm          .78174        1.0527        .54130E-03   -1.5690    
   4  Prefactor     3.8932        5.1169        .51221E-03   -1.5669    
   5  norm           .0000        .40990        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2602        1.7743        .68285E-03   -1.5678    
   7  Prefactor      .0000        1.8058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2551        3.1875        .56056E-03   -1.5672    
   9  norm          9.8739        5.7319        .31861E-03   -1.5645    
  10  Prefactor      .0000        4.8118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2959        2.5038        .96604E-03   -1.5685    
  12  Prefactor     2.3115        1.1376        .67457E-03   -1.5678    
  13  Prefactor     .24697        .74685        .51559E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        3.3581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .79936E-08    32.341        .13701E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7572        .79772        .79431E-03   -1.5681    
  17  Prefactor     .55511E-10    6.3547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7985        11.903        .44977E-03   -1.5664    
  19  Normalizat    .80538        .10478        .43669E-01   -.99870    
  20  Prefactor     .97969        .78246E-01    .46014E-01   -.93410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79987e-07
Minuit parameter uncertainties:
  1  1.00083e-06
  2  1.99956
  3  1.05275
  4  5.11695
  5  1.15142e-06
  6  1.77432
  7  1.635e-06
  8  3.18753
  9  5.73191
  10  2.01021e-05
  11  2.50375
  12  1.13764
  13  0.746848
  14  1.7201e-05
  15  0.00101804
  16  0.797715
  17  2.92776e-05
  18  11.9027
  19  0.104807
  20  0.078255
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  1.635e-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:  9.797e-01  7.826e-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.054e-01  1.048e-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.71182727364e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00209428465023 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/50334241/likelihoodResults_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.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) = 16912.1852045
delta logL = -0.00282562719804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16912.182382
delta logL = -3.17726153298e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69132E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.3715       1.0000          .0000       10.000    
     3 'Normalizat'    .80526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97981       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=   16912.18     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      228 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.7400        .42118E-03** at limit **
   2  Index         2.4404        1.3294       -.17831E-04     .0000    
   3  Normalizat    .80538        1.1440       -.10754E-04    .50053E-04
   4  Prefactor     .97969        1.3201        .62342E-05    .46569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.44038
  Normalizat = 0.805377
  Prefactor  = 0.979693
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16912.18     FROM HESSE     STATUS=FAILED         9 CALLS      237 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.7400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66931        1.8968       -.17831E-04   -.53742    
   3  Normalizat    .80538        1.1440       -.10754E-04   -.99870    
   4  Prefactor     .97969        1.3201        .62342E-05   -.93410    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.77282e-12
Minuit parameter uncertainties:
  1  1.19778e-05
  2  1.35158
  3  1.18121
  4  1.36788
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) = 16912.1823789
delta logL = 0.0

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  0.000e+00  1.198e-05  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  2.440e+00  1.352e+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:  9.797e-01  1.368e+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.054e-01  1.181e+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/50334241/cmap_HighResolution_739152001_739756801_4FGL_J0024.7+0349_weekly_bin827.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-03', job_status='DONE', photon_flux_upper_limit='2.71e-08', time_completed='2024-06-11 00:37:30.594059', job_id='50334241', GAL2='0.98', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1718091450.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='827' AND source_name='4FGL J0024.7+0349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 11 00:37:30 PDT 2024

