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


Performing analysis on: 4FGL_J1047.2-5517_daily_bin1872
RA = 161.8, Dec = -55.2931
tmin = 724550401, tmax = 724809601
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='36684668', job_status='RUN', time_executed='2023-12-21 00:20:45.171946', time_epoch_executed='1703146845.17' WHERE source_name='4FGL J1047.2-5517' and cadence='daily' and bin_id='1872'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36684668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36684668/ft1_4FGL_J1047.2-5517_daily_bin1872.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36684668/ft1_4FGL_J1047.2-5517_daily_bin1872.fits outfile=/lscratch/kocevski/36684668/ft1_filteredMKT_4FGL_J1047.2-5517_daily_bin1872.fits ra=161.8 dec=-55.2931 rad=12.0 tmin=724550401.0 tmax=724809601.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.20
user 1.96
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.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/36684668/ft1_filteredMKT_4FGL_J1047.2-5517_daily_bin1872.fits evtable="EVENTS" outfile="/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 4462

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36684668/ltcube_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.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/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits
.....................!
real 13.59
user 13.22
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits evtable="EVENTS" scfile=/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36684668/ltcube_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.fits outfile=/lscratch/kocevski/36684668/expmap_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.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/36684668/ltcube_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.fits
.....................!
real 69.67
user 65.36
sys 4.01

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 Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Added 269 point sources and 7 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 J1047.2-5517 @ 161.8 -55.2931

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits scfile=/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits outfile=/lscratch/kocevski/36684668/cmap_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.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=161.8 yref=-55.2931 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.25
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits scfile=/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits outfile=/lscratch/kocevski/36684668/cmap_HighResolution_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.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=161.8 yref=-55.2931 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.36
user 0.22
sys 0.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits evtable="EVENTS" scfile=/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36684668/Model_4FGL_J1047.2-5517_daily_bin1872.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 FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source FGES J1213.3-6240
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source Vela Junior
adding source Westerlund 2
Working on...
/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits.....................!
real 272.61
user 268.88
sys 2.60

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits', '/lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits', expMap='/lscratch/kocevski/36684668/expmap_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.fits', expCube='/lscratch/kocevski/36684668/ltcube_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36684668/Model_4FGL_J1047.2-5517_daily_bin1872.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1047.2-5517'

4FGL J1047.2-5517
   Spectrum: PowerLaw
407    Prefactor:  5.418e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
408        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
409        Scale:  1.100e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36684668/ft1_filtered_4FGL_J1047.2-5517_daily_bin1872.fits
Spacecraft file(s): /lscratch/kocevski/36684668/ft2_4FGL_J1047.2-5517_daily_bin1872.fits
Exposure map: /lscratch/kocevski/36684668/expmap_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.fits
Exposure cube: /lscratch/kocevski/36684668/ltcube_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36684668/Model_4FGL_J1047.2-5517_daily_bin1872.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) = 39731.7641463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13421E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    13.839       1.0000          .0000       .10000E+07
     3 'Prefactor '    26.604       1.0000          .0000       .10000E+07
     4 'norm      '    13.542       1.0000          .0000       .10000E+07
     5 'norm      '    3.3626       1.0000          .0000       .10000E+07
     6 'Prefactor '    .86594E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3346       1.0000          .0000       .10000E+07
     8 'norm      '    3.2984       1.0000          .0000       .10000E+07
     9 'norm      '    1.7011       1.0000          .0000       .10000E+07
    10 'Prefactor '    .21649E-08   1.0000          .0000       .10000E+07
    11 'norm      '    21.134       1.0000          .0000       .10000E+07
    12 'Prefactor '    22.775       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25664E-04   1.0000          .0000       .10000E+07
    14 'Normalizat'    1.3178       1.0000         .10000E-01   10.000    
    15 'norm      '    2.7337       1.0000          .0000       .10000E+07
    16 'Prefactor '    .94901       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   39731.76     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1103 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.1436       -.16284E-06** at limit **
   2  Prefactor     13.827        4.9514        .10617E-05    .31249E-01
   3  Prefactor     35.872        111.72        .41157E-05    .15975E-03
   4  norm          13.586        16.691       -.18713E-05    .72331E-02
   5  norm          3.3630        1.7928       -.15686E-06    .22854E-02
   6  Prefactor     .55511E-10    10.768       -.28866E-05** at limit **
   7  Prefactor     4.3242        2.4140        .29748E-06   -.99154E-03
   8  norm          3.3001        2.4226        .22085E-06   -.18397E-02
   9  norm          1.7052        1.8507        .25221E-06   -.91848E-03
  10  Prefactor      .0000        2.6051       -.34151E-06** at limit **
  11  norm          21.140        1.9670        .59001E-07    .14406E-01
  12  Prefactor     22.727        27.426        .47088E-05   -.45879E-02
  13  Prefactor     .55511E-10    11.091        .42703E-05** at limit **
  14  Normalizat    1.3158        .25174        .10474E-04    .33191E-04
  15  norm          2.7341        1.1995        .17749E-06    .25804E-03
  16  Prefactor     .94903        .28892E-01   -.32906E-05    .34319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 13.8271
  Prefactor  = 35.8718
  norm       = 13.5862
  norm       = 3.36297
  Prefactor  = 5.55112e-11
  Prefactor  = 4.32422
  norm       = 3.30013
  norm       = 1.70521
  Prefactor  = 0
  norm       = 21.1403
  Prefactor  = 22.7267
  Prefactor  = 5.55112e-11
  Normalizat = 1.31578
  norm       = 2.73412
  Prefactor  = 0.949025
 **********
 **   18 **HESSE 
 **********

 FCN=   39731.76     FROM HESSE     STATUS=OK           241 CALLS     1344 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.1442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.827        17.807        .26899E-03   -1.5634    
   3  Prefactor     35.872        111.63        .19391E-03   -1.5588    
   4  norm          13.586        17.268        .27193E-03   -1.5634    
   5  norm          3.3630        1.8260        .55161E-03   -1.5671    
   6  Prefactor     .55511E-10    10.772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3242        2.4281        .48359E-03   -1.5666    
   8  norm          3.3001        2.4236        .55721E-03   -1.5672    
   9  norm          1.7052        1.8693        .80619E-03   -1.5682    
  10  Prefactor      .0000        2.6046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          21.140        15.505        .21759E-03   -1.5616    
  12  Prefactor     22.727        27.631        .20960E-03   -1.5613    
  13  Prefactor     .55511E-10    11.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.3158        .25443        .22785       -.83096    
  15  norm          2.7341        1.2191        .61558E-03   -1.5675    
  16  Prefactor     .94903        .28392E-01    .29135E-01   -.94448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24301e-07
Minuit parameter uncertainties:
  1  1.28501e-06
  2  17.8074
  3  111.633
  4  17.2684
  5  1.82602
  6  4.94079e-05
  7  2.42809
  8  2.42359
  9  1.8693
  10  4.19357e-06
  11  15.5047
  12  27.6308
  13  6.06015e-05
  14  0.254674
  15  1.21909
  16  0.0283924
Done.

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

Extracting fit parameters...

4FGL J1047.2-5517
   Spectrum: PowerLaw
407    Prefactor:  5.551e-11  4.941e-05  0.000e+00  1.000e+06 ( 1.000e-13)
408        Index:  2.628e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
409        Scale:  1.100e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
974    Prefactor:  9.490e-01  2.839e-02  0.000e+00  1.000e+01 ( 1.000e+00)
975        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
976        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
959   Normalization:  1.316e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 161.800 -55.293
Photon Flux Upper Limit: 1.16162326011e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00910647060873 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36684668/likelihoodResults_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.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) = 39731.8031272
delta logL = -0.0450165274597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 39731.758111
delta logL = -3.539462341e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   39731.76     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .35773        .42118E-02** at limit **
   2  Index         4.2101        1.3929        .44342E-04     .0000    
   3  Normalizat    1.3158        1.0761        .28806E-05   -.40669E-04
   4  Prefactor     .94902        1.2913        .55694E-06   -.29664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.2101
  Normalizat = 1.31578
  Prefactor  = 0.949025
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   39731.76     FROM HESSE     STATUS=FAILED         9 CALLS      230 TOTAL
                     EDM=   .45E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .35773        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9004        2.3418        .44342E-04   -.15865    
   3  Normalizat    1.3158        1.0761        .28806E-05   -.83096    
   4  Prefactor     .94902        1.2913        .55694E-06   -.94448    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.52071e-12
Minuit parameter uncertainties:
  1  5.51031e-07
  2  1.41203
  3  1.09535
  4  1.33723
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) = 39731.7581106
delta logL = 0.0

Extracting fit parameters...

4FGL J1047.2-5517
   Spectrum: PowerLaw
407    Prefactor:  0.000e+00  5.510e-07  0.000e+00  1.000e+06 ( 1.000e-13)
408        Index:  4.210e+00  1.412e+00  0.000e+00  1.000e+01 (-1.000e+00)
409        Scale:  1.100e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
974    Prefactor:  9.490e-01  1.337e+00  0.000e+00  1.000e+01 ( 1.000e+00)
975        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
976        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
959   Normalization:  1.316e+00  1.095e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 161.800 -55.293

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/36684668/cmap_HighResolution_724550401_724809601_4FGL_J1047.2-5517_daily_bin1872.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2023-12-21 00:41:29.738860', job_id='36684668', GAL2='0.95', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1703148089.74', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1872' AND source_name='4FGL J1047.2-5517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 21 00:41:29 PST 2023

