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


Performing analysis on: 4FGL_J0024.4+4647_weekly_bin771
RA = 6.1212, Dec = 46.797
tmin = 705283201, tmax = 705888001
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='17487511', job_status='RUN', time_executed='2023-05-16 00:56:09.764884', time_epoch_executed='1684223769.76' WHERE source_name='4FGL J0024.4+4647' and cadence='weekly' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17487511

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17487511/ft1_4FGL_J0024.4+4647_weekly_bin771.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17487511/ft1_4FGL_J0024.4+4647_weekly_bin771.fits outfile=/lscratch/kocevski/17487511/ft1_filteredMKT_4FGL_J0024.4+4647_weekly_bin771.fits ra=6.1212 dec=46.797 rad=12.0 tmin=705283201.0 tmax=705888001.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.27
user 3.00
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.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/17487511/ft1_filteredMKT_4FGL_J0024.4+4647_weekly_bin771.fits evtable="EVENTS" outfile="/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.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.35
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 1345

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17487511/ltcube_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.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/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits
.....................!
real 19.60
user 19.14
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17487511/ltcube_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.fits outfile=/lscratch/kocevski/17487511/expmap_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.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/17487511/ltcube_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.fits
.....................!
real 59.35
user 55.38
sys 3.61

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
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 170 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0024.4+4647 @ 6.1212 46.797

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits scfile=/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits outfile=/lscratch/kocevski/17487511/cmap_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.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.1212 yref=46.797 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.37
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits scfile=/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits outfile=/lscratch/kocevski/17487511/cmap_HighResolution_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.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.1212 yref=46.797 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.35
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits evtable="EVENTS" scfile=/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17487511/Model_4FGL_J0024.4+4647_weekly_bin771.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits.....................!
real 55.17
user 54.13
sys 0.66

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits', '/lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits', expMap='/lscratch/kocevski/17487511/expmap_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.fits', expCube='/lscratch/kocevski/17487511/ltcube_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17487511/Model_4FGL_J0024.4+4647_weekly_bin771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0024.4+4647'

4FGL J0024.4+4647
   Spectrum: PowerLaw
70     Prefactor:  1.757e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
71         Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
72         Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17487511/ft1_filtered_4FGL_J0024.4+4647_weekly_bin771.fits
Spacecraft file(s): /lscratch/kocevski/17487511/ft2_4FGL_J0024.4+4647_weekly_bin771.fits
Exposure map: /lscratch/kocevski/17487511/expmap_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.fits
Exposure cube: /lscratch/kocevski/17487511/ltcube_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17487511/Model_4FGL_J0024.4+4647_weekly_bin771.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) = 13828.2676764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3322       1.0000          .0000       .10000E+07
     2 'norm      '    16.262       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8763       1.0000          .0000       .10000E+07
     4 'norm      '    4.1347       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27756E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.405       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.6747       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.2248       1.0000          .0000       .10000E+07
     9 'norm      '    .13281E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.4322       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.524       1.0000          .0000       .10000E+07
    12 'norm      '    .11409E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .77710E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .36906E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .55484E-02   1.0000          .0000       .10000E+07
    16 'norm      '    7.2905       1.0000          .0000       .10000E+07
    17 'norm      '    .22565E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48078E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17757       1.0000          .0000       .10000E+07
    20 'Prefactor '    .86724E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3534       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13828.19     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1424 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2663        1.8609       -.54717E-07   -.98504E-03
   2  norm          16.468        13.732        .88315E-07    .31074E-02
   3  Prefactor     2.8685        3.0645       -.25852E-07   -.31622E-03
   4  norm          4.1367        1.8946       -.18692E-07    .10612E-02
   5  Prefactor      .0000        1.0026        .30191E-07** at limit **
   6  Prefactor     21.412        2.2616       -.15280E-07   -.93098E-02
   7  Prefactor     7.7014        1.3787        .31198E-07   -.38259E-02
   8  Prefactor     4.3343        2.3742       -.12486E-06    .92242E-02
   9  norm          .14988E-08    131.07        .49475E-05** at limit **
  10  Prefactor     6.4323        4.3672       -.25324E-07   -.41254E-04
  11  Prefactor     12.597        11.519        .67522E-06   -.11352E-02
  12  norm          .13878E-08    32.987        .87344E-06** at limit **
  13  Prefactor      .0000        14.691        .11498E-05** at limit **
  14  norm           .0000        2.7054        .92049E-07** at limit **
  15  Prefactor     .38858E-09    29.320       -.15608E-06** at limit **
  16  norm          7.3180        6.3458       -.63764E-07    .18030E-03
  17  norm          .38858E-09    9.6678       -.32989E-06** at limit **
  18  Prefactor     .15543E-08    9.9247       -.11666E-05** at limit **
  19  Prefactor     .32824E-06    6.6776       -.73943E-06** at limit **
  20  Prefactor     .15873        40.164       -.13207E-05** at limit **
  21  Normalizat    1.3523        .19380        .58894E-05   -.58345E-04
  22  Prefactor     .86436        .59885E-01   -.40287E-05   -.18006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26627
  norm       = 16.4678
  Prefactor  = 2.86846
  norm       = 4.13668
  Prefactor  = 0
  Prefactor  = 21.4115
  Prefactor  = 7.70137
  Prefactor  = 4.33431
  norm       = 1.4988e-09
  Prefactor  = 6.43235
  Prefactor  = 12.5973
  norm       = 1.38778e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.88578e-10
  norm       = 7.31797
  norm       = 3.88578e-10
  Prefactor  = 1.55431e-09
  Prefactor  = 3.28237e-07
  Prefactor  = 0.158727
  Normalizat = 1.35228
  Prefactor  = 0.86436
 **********
 **   18 **HESSE 
 **********

 FCN=   13828.19     FROM HESSE     STATUS=OK           396 CALLS     1820 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2663        24.946        .55424E-03   -1.5672    
   2  norm          16.468        14.373        .24810E-03   -1.5627    
   3  Prefactor     2.8685        3.0608        .59905E-03   -1.5674    
   4  norm          4.1367        1.8954        .49548E-03   -1.5667    
   5  Prefactor      .0000        1.0126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.412        16.043        .21620E-03   -1.5615    
   7  Prefactor     7.7014        16.756        .36174E-03   -1.5652    
   8  Prefactor     4.3343        72.932        .49001E-03   -1.5666    
   9  norm          .14988E-08    129.46        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4323        4.3729        .39550E-03   -1.5657    
  11  Prefactor     12.597        11.565        .28280E-03   -1.5637    
  12  norm          .13878E-08    33.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        14.652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.6993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .38858E-09    29.324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3180        6.3168        .37124E-03   -1.5654    
  17  norm          .38858E-09    9.6044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15543E-08    10.277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .32824E-06    87.202        .12189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .15873        2.2003        .98763E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3523        .18682        .86356E-01   -.82019    
  22  Prefactor     .86436        .54596E-01    .33498E-01   -.97398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06305e-08
Minuit parameter uncertainties:
  1  18.0534
  2  14.3727
  3  3.06076
  4  1.89544
  5  2.04321e-06
  6  16.0427
  7  16.7557
  8  35.5595
  9  0.00088602
  10  4.37288
  11  11.5648
  12  0.000430463
  13  1.72097e-05
  14  3.28607e-06
  15  0.000209536
  16  6.31676
  17  0.000120538
  18  0.000253247
  19  0.0107004
  20  1.18193
  21  0.186918
  22  0.0545993
Done.

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

Extracting fit parameters...

4FGL J0024.4+4647
   Spectrum: PowerLaw
70     Prefactor:  2.141e+01  1.604e+01  0.000e+00  1.000e+06 ( 1.000e-13)
71         Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
72         Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.644e-01  5.460e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.352e+00  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 6.121 46.797
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 5.17e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.08e-05

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) = 13827.7117089
delta logL = 0.479698074467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13827.7033381
delta logL = 0.48806888195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.459       1.0000          .0000       .10000E+07
     2 'Index     '    1.8590       1.0000          .0000       10.000    
     3 'Normalizat'    1.3864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13827.70     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      289 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.488        23.711        .80898E-05   -.47668E-03
   2  Index         1.8601        .69128        .13298E-01   -.16804E-04
   3  Normalizat    1.3864        .18783        .37833E-03    .67672E-04
   4  Prefactor     .85932        .59328E-01    .14841E-03   -.94654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4878
  Index      = 1.86006
  Normalizat = 1.38639
  Prefactor  = 0.859317
 **********
 **   18 **HESSE 
 **********

 FCN=   13827.70     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.488        24.273        .16180E-05   -1.5609    
   2  Index         1.8601        .70748        .53191E-03   -.67897    
   3  Normalizat    1.3864        .18795        .15133E-04   -.81023    
   4  Prefactor     .85932        .59351E-01    .29681E-04   -.97577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42751e-11
Minuit parameter uncertainties:
  1  24.2727
  2  0.711442
  3  0.188041
  4  0.0593551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13827.7033369
delta logL = 0.48807014161

Extracting fit parameters...

4FGL J0024.4+4647
   Spectrum: PowerLaw
70     Prefactor:  2.449e+01  2.427e+01  0.000e+00  1.000e+06 ( 1.000e-13)
71         Index:  1.860e+00  7.114e-01  0.000e+00  1.000e+01 (-1.000e+00)
72         Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.593e-01  5.936e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.386e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 6.121 46.797
Photon Index (Free Index): 1.86 +/- 0.71
Photon Flux (Free Index): 2.16e-08 +/- 3.40e-08
Energy Flux (Free Index): 2.17e-05 +/- 2.48e-05

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/17487511/cmap_HighResolution_705283201_705888001_4FGL_J0024.4+4647_weekly_bin771.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.17e-08', energy_flux2='2.17e-05', photon_flux_error='3.87e-08', dlogl='4.88e-01', energy_flux='1.44e-05', photon_flux2='2.16e-08', job_status='DONE', time_completed='2023-05-16 01:02:22.636112', photon_index_error2='0.71', photon_index2='1.86', ts='4.32', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.48e-05', EG='1.35', time_epoch_completed='1684224142.64', return_code='0', job_id='17487511', GAL2='0.86', EG2='1.39', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.40e-08', ts2='5.25', photon_index='2.54' WHERE bin_id='771' AND source_name='4FGL J0024.4+4647' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 16 01:02:22 PDT 2023

