/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7627
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2347.9-5106_daily_bin1885
RA = 356.999, Dec = -51.1139
tmin = 727920001, tmax = 728179201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='38915904', job_status='RUN', time_executed='2024-01-29 00:55:51.798990', time_epoch_executed='1706518551.8' WHERE source_name='4FGL J2347.9-5106' and cadence='daily' and bin_id='1885'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38915904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38915904/ft1_4FGL_J2347.9-5106_daily_bin1885.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38915904/ft1_4FGL_J2347.9-5106_daily_bin1885.fits outfile=/lscratch/kocevski/38915904/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1885.fits ra=356.999 dec=-51.1139 rad=12.0 tmin=727920001.0 tmax=728179201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.41
user 2.08
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/38915904/ft1_filteredMKT_4FGL_J2347.9-5106_daily_bin1885.fits evtable="EVENTS" outfile="/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.41
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 390

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38915904/ltcube_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits
.....................!
real 9.28
user 8.94
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits evtable="EVENTS" scfile=/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38915904/ltcube_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits outfile=/lscratch/kocevski/38915904/expmap_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/38915904/ltcube_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits
.....................!
real 73.40
user 68.99
sys 3.95

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J2347.9-5106 @ 356.999 -51.1139

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits scfile=/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits outfile=/lscratch/kocevski/38915904/cmap_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=356.999 yref=-51.1139 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.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits scfile=/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits outfile=/lscratch/kocevski/38915904/cmap_HighResolution_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=356.999 yref=-51.1139 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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits evtable="EVENTS" scfile=/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38915904/Model_4FGL_J2347.9-5106_daily_bin1885.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits.....................!
real 16.98
user 15.20
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits', '/lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits', expMap='/lscratch/kocevski/38915904/expmap_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits', expCube='/lscratch/kocevski/38915904/ltcube_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38915904/Model_4FGL_J2347.9-5106_daily_bin1885.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2347.9-5106'

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  1.569e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
538        Index:  2.487e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38915904/ft1_filtered_4FGL_J2347.9-5106_daily_bin1885.fits
Spacecraft file(s): /lscratch/kocevski/38915904/ft2_4FGL_J2347.9-5106_daily_bin1885.fits
Exposure map: /lscratch/kocevski/38915904/expmap_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits
Exposure cube: /lscratch/kocevski/38915904/ltcube_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38915904/Model_4FGL_J2347.9-5106_daily_bin1885.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19101E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5322       1.0000          .0000       .10000E+07
     3 'Prefactor '    55.876       1.0000          .0000       .10000E+07
     4 'Prefactor '    16.082       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.8278       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.3260       1.0000          .0000       .10000E+07
     7 'Prefactor '    14.280       1.0000          .0000       .10000E+07
     8 'norm      '    .71630E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16312E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.0554       1.0000          .0000       .10000E+07
    11 'norm      '    5.2933       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.6193       1.0000          .0000       .10000E+07
    13 'Prefactor '    26.565       1.0000          .0000       .10000E+07
    14 'Prefactor '    .71165E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.870       1.0000          .0000       .10000E+07
    16 'norm      '    .14335E-02   1.0000          .0000       .10000E+07
    17 'norm      '    1.0424       1.0000          .0000       .10000E+07
    18 'norm      '    3.5529       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.049       1.0000          .0000       .10000E+07
    20 'Prefactor '    21.953       1.0000          .0000       .10000E+07
    21 'norm      '    .11494E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .12739E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .28089E-07   1.0000          .0000       .10000E+07
    24 'norm      '    .82198E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.3390       1.0000          .0000       .10000E+07
    26 'Prefactor '    .17517E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    29.992       1.0000          .0000       .10000E+07
    28 'norm      '    .45472E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    11.161       1.0000          .0000       .10000E+07
    30 'Prefactor '    .70426E-04   1.0000          .0000       .10000E+07
    31 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73835       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4254.700     FROM MIGRAD    STATUS=CONVERGED    214 CALLS     3152 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21875E-05    63.070        .24662E-05** at limit **
   2  Prefactor     2.6840        19.527       -.13450E-05   -.48613E-02
   3  Prefactor     56.372        9.3914        .20640E-06   -.35706E-02
   4  Prefactor     16.251        7.3432        .89182E-06    .56874E-02
   5  Prefactor     1.8837        7.1706        .23322E-05    .28802E-01
   6  Prefactor     1.2533        5.3751       -.53710E-06   -.28872E-03
   7  Prefactor     14.319        7.4168        .54756E-07   -.36768E-01
   8  norm          .32929E-06    8.3813        .90569E-06** at limit **
   9  Prefactor     .11102E-09    2.5271       -.16150E-06** at limit **
  10  Prefactor     9.3228        33.917        .23948E-05   -.25039E-01
  11  norm          5.3220        6.9023        .74985E-07    .18706E-03
  12  Prefactor     9.6624        7.9813        .29543E-06    .57265E-01
  13  Prefactor     26.924        3.7347       -.21990E-06   -.88738E-03
  14  Prefactor     .51048E-06    12.093        .97572E-06** at limit **
  15  Prefactor     13.264        6.6925        .45439E-06   -.81364E-01
  16  norm          .10394E-05    6.5296        .34385E-06** at limit **
  17  norm          .97822        12.686        .13338E-05    .17036E-02
  18  norm          3.5418        3.6007        .25470E-06    .18216E-03
  19  Prefactor     17.120        9.3421        .19842E-06    .81976E-02
  20  Prefactor     24.366        33.475       -.24888E-05   -.21848E-02
  21  norm          .28311E-08    2.7703        .20176E-06** at limit **
  22  Prefactor     .23037E-07    12.729       -.12157E-05** at limit **
  23  norm           .0000        .68782        .90186E-07** at limit **
  24  norm          .57732E-08    2.6730        .50546E-06** at limit **
  25  Prefactor     3.4887        6.6399        .14201E-05   -.19254E-01
  26  Prefactor      .0000        2.0840       -.79532E-06** at limit **
  27  Prefactor     30.025        5.7091       -.20706E-06   -.45669E-01
  28  norm          .62422E-06    21.216        .17167E-06** at limit **
  29  Prefactor     11.170        7.7377       -.32925E-06   -.74659E-02
  30  Prefactor     .27423E-07    2.1043       -.70335E-06** at limit **
  31  Normalizat    1.0140        .26188        .81707E-05   -.94821E-04
  32  Prefactor     .74076        .26424       -.90220E-05   -.80059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18747e-06
  Prefactor  = 2.684
  Prefactor  = 56.3717
  Prefactor  = 16.2509
  Prefactor  = 1.88369
  Prefactor  = 1.25331
  Prefactor  = 14.3191
  norm       = 3.29292e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 9.32279
  norm       = 5.32203
  Prefactor  = 9.66235
  Prefactor  = 26.924
  Prefactor  = 5.10481e-07
  Prefactor  = 13.264
  norm       = 1.03945e-06
  norm       = 0.978218
  norm       = 3.54176
  Prefactor  = 17.1197
  Prefactor  = 24.3664
  norm       = 2.83107e-09
  Prefactor  = 2.30371e-08
  norm       = 0
  norm       = 5.77316e-09
  Prefactor  = 3.48872
  Prefactor  = 0
  Prefactor  = 30.0253
  norm       = 6.24223e-07
  Prefactor  = 11.1701
  Prefactor  = 2.74225e-08
  Normalizat = 1.01399
  Prefactor  = 0.740759
 **********
 **   18 **HESSE 
 **********

 FCN=   4254.700     FROM HESSE     STATUS=OK           727 CALLS     3879 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21875E-05    84.698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6840        20.775        .64159E-03   -1.5675    
   3  Prefactor     56.372        45.050        .13379E-03   -1.5558    
   4  Prefactor     16.251        11.469        .24948E-03   -1.5627    
   5  Prefactor     1.8837        10.947        .77176E-03   -1.5681    
   6  Prefactor     1.2533        5.4748        .95416E-03   -1.5686    
   7  Prefactor     14.319        8.7541        .26479E-03   -1.5632    
   8  norm          .32929E-06    21.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    2.5384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3228        70.015        .35302E-03   -1.5647    
  11  norm          5.3220        6.9274        .43662E-03   -1.5662    
  12  Prefactor     9.6624        10.002        .32286E-03   -1.5646    
  13  Prefactor     26.924        30.280        .19406E-03   -1.5604    
  14  Prefactor     .51048E-06    21.196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.264        17.833        .27896E-03   -1.5635    
  16  norm          .10394E-05    25.873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .97822        13.301        .12232E-02   -1.5688    
  18  norm          3.5418        3.5933        .53597E-03   -1.5670    
  19  Prefactor     17.120        9.5846        .24229E-03   -1.5625    
  20  Prefactor     24.366        41.339        .21349E-03   -1.5609    
  21  norm          .28311E-08    3.2544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23037E-07    12.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .68293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .57732E-08    2.7159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4887        12.866        .55365E-03   -1.5671    
  26  Prefactor      .0000        2.0905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     30.025        27.322        .18263E-03   -1.5598    
  28  norm          .62422E-06    25.948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.170        8.1431        .29963E-03   -1.5641    
  30  Prefactor     .27423E-07    3.7763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0140        .21587        .43388E-01   -.92563    
  32  Prefactor     .74076        .21531        .61885E-01   -1.0195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53219e-07
Minuit parameter uncertainties:
  1  0.0272237
  2  14.9345
  3  45.0503
  4  11.4693
  5  9.08209
  6  5.23895
  7  8.75413
  8  0.00536196
  9  3.05205e-05
  10  51.0983
  11  6.92737
  12  10.0024
  13  30.2798
  14  0.00657891
  15  17.833
  16  0.0103718
  17  7.21429
  18  3.59326
  19  9.58465
  20  41.3392
  21  0.000191712
  22  0.00109193
  23  1.19484e-07
  24  0.00025072
  25  12.8657
  26  6.86345e-06
  27  27.3224
  28  0.0080493
  29  8.14309
  30  0.000643428
  31  0.216056
  32  0.215556
Done.

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

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  0.000e+00  6.863e-06  0.000e+00  1.000e+06 ( 1.000e-12)
538        Index:  2.487e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  7.408e-01  2.156e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.014e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 356.999 -51.114
Photon Flux Upper Limit: 8.20854053417e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00637907430882 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38915904/likelihoodResults_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4254.70072218
delta logL = -0.00116738304769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 4254.69955479
delta logL = -8.54015524965e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4254.700     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      213 TOTAL
                     EDM=   .80E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .40772        .23885E-02** at limit **
   2  Index         3.8451        1.8333        .59356E-05     .0000    
   3  Normalizat    1.0140        1.2913        .78499E-07   -.92546E-04
   4  Prefactor     .74076        1.0904        .59203E-05   -.55860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.84509
  Normalizat = 1.01399
  Prefactor  = 0.740759
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4254.700     FROM HESSE     STATUS=FAILED         9 CALLS      222 TOTAL
                     EDM=   .80E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .40772        .23885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6172        2.3131        .59356E-05   -.23309    
   3  Normalizat    1.0140        1.2913        .78499E-07   -.92563    
   4  Prefactor     .74076        1.0904        .59203E-05   -1.0195    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.96536e-12
Minuit parameter uncertainties:
  1  5.64346e-07
  2  1.8797
  3  1.33475
  4  1.1246
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) = 4254.69955479
delta logL = 0.0

Extracting fit parameters...

4FGL J2347.9-5106
   Spectrum: PowerLaw
537    Prefactor:  0.000e+00  5.643e-07  0.000e+00  1.000e+06 ( 1.000e-12)
538        Index:  3.845e+00  1.880e+00  0.000e+00  1.000e+01 (-1.000e+00)
539        Scale:  7.443e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  7.408e-01  1.125e+00  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.014e+00  1.335e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 356.999 -51.114

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/38915904/cmap_HighResolution_727920001_728179201_4FGL_J2347.9-5106_daily_bin1885.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2024-01-29 01:01:16.064553', job_id='38915904', GAL2='0.74', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1706518876.06', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1885' AND source_name='4FGL J2347.9-5106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 29 01:01:16 PST 2024

