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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin1817
RA = 164.342, Dec = -23.6889
tmin = 710294401, tmax = 710553601
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='18900933', job_status='RUN', time_executed='2023-07-10 11:14:21.921582', time_epoch_executed='1689012861.92' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='1817'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18900933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18900933/ft1_4FGL_J1057.3-2341_daily_bin1817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18900933/ft1_4FGL_J1057.3-2341_daily_bin1817.fits outfile=/lscratch/kocevski/18900933/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin1817.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=710294401.0 tmax=710553601.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.18
user 1.93
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.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/18900933/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin1817.fits evtable="EVENTS" outfile="/lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.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.36
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 925

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits sctable="SC_DATA" Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  0.000e+00  1.394e-06  0.000e+00  1.000e+06 ( 1.000e-12)
299        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.997e-01  9.493e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  9.250e-01  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 164.342 -23.689
Photon Flux Upper Limit: 5.49346890504e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00427421262463 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18899929/likelihoodResults_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.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) = 9834.54901441
delta logL = -0.00199592450554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9834.5470194
delta logL = -9.13016265258e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9834.547     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      242 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3606        .42118E-03** at limit **
   2  Index         2.4166        1.2310        .21503E-05     .0000    
   3  Normalizat    .92498        1.2592        .26779E-06    .62524E-05
   4  Prefactor     .99970        1.3387        .97398E-06   -.33469E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.41656
  Normalizat = 0.924976
  Prefactor  = 0.9997
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9834.547     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .65549        1.8702        .21503E-05   -.54298    
   3  Normalizat    .92498        1.2592        .26779E-06   -.95588    
   4  Prefactor     .99970        1.3387        .97398E-06   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.82257e-13
Minuit parameter uncertainties:
  1  8.15607e-07
  2  1.24858
  3  1.30312
  4  1.38766
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) = 9834.54701849
delta logL = 0.0

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  0.000e+00  8.156e-07  0.000e+00  1.000e+06 ( 1.000e-12)
299        Index:  2.417e+00  1.249e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.997e-01  1.388e+00  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  9.250e-01  1.303e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 164.342 -23.689

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/18899929/cmap_HighResolution_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2023-07-10 11:14:51.012329', job_id='18899929', GAL2='1.00', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689012891.01', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1817' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 11:14:51 PDT 2023

outfile=/lscratch/kocevski/18900933/ltcube_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.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/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits
.....................!
real 8.40
user 8.02
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits evtable="EVENTS" scfile=/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18900933/ltcube_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.fits outfile=/lscratch/kocevski/18900933/expmap_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.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/18900933/ltcube_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.fits
.....................!
real 69.87
user 65.29
sys 4.06

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

Setting source of interest to:
4FGL J1057.3-2341 @ 164.342 -23.6889

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits scfile=/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits outfile=/lscratch/kocevski/18900933/cmap_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.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=164.342 yref=-23.6889 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.38
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits scfile=/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits outfile=/lscratch/kocevski/18900933/cmap_HighResolution_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.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=164.342 yref=-23.6889 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.38
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits evtable="EVENTS" scfile=/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18900933/Model_4FGL_J1057.3-2341_daily_bin1817.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/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits.....................!
real 36.53
user 34.75
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits', '/lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits', expMap='/lscratch/kocevski/18900933/expmap_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.fits', expCube='/lscratch/kocevski/18900933/ltcube_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18900933/Model_4FGL_J1057.3-2341_daily_bin1817.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1057.3-2341'

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.450e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18900933/ft1_filtered_4FGL_J1057.3-2341_daily_bin1817.fits
Spacecraft file(s): /lscratch/kocevski/18900933/ft2_4FGL_J1057.3-2341_daily_bin1817.fits
Exposure map: /lscratch/kocevski/18900933/expmap_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.fits
Exposure cube: /lscratch/kocevski/18900933/ltcube_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18900933/Model_4FGL_J1057.3-2341_daily_bin1817.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) = 9834.56151414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24101E-03   1.0000          .0000       .10000E+07
     2 'norm      '    7.9791       1.0000          .0000       .10000E+07
     3 'norm      '    7.6006       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.7623       1.0000          .0000       .10000E+07
     5 'Prefactor '    .37437E-06   1.0000          .0000       .10000E+07
     6 'norm      '    .77816E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    15.333       1.0000          .0000       .10000E+07
     8 'Prefactor '    .80150E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .81277E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .24159E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.930       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18925E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34640E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .44521       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4877       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.9231       1.0000          .0000       .10000E+07
    17 'Normalizat'    .92463       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9834.547     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1350 TOTAL
                     EDM=   .10E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.4510       -.11381E-06** at limit **
   2  norm          8.0142        6.9284        .11378E-07    .34195E-04
   3  norm          7.6160        6.7012       -.21978E-07    .42345E-04
   4  Prefactor     5.7208        4.7468        .13025E-07   -.45258E-03
   5  Prefactor      .0000        3.3614       -.84943E-07** at limit **
   6  norm           .0000        .55138        .51591E-07** at limit **
   7  Prefactor     15.220        12.074       -.47813E-07   -.64547E-04
   8  Prefactor      .0000        1.5253        .10756E-08** at limit **
   9  Prefactor      .0000        95.190       -.15402E-05** at limit **
  10  Prefactor      .0000        2.3710       -.16785E-06** at limit **
  11  Prefactor     15.808        17.499       -.77641E-07    .38468E-04
  12  Prefactor      .0000        21.601       -.58974E-06** at limit **
  13  Prefactor      .0000        38.678       -.27502E-06** at limit **
  14  norm          .44542        .58810       -.35918E-07    .49334E-03
  15  Prefactor     3.4849        4.9912       -.81854E-07    .12450E-03
  16  Prefactor     7.9491        5.1179        .45827E-07   -.13479E-03
  17  Normalizat    .92498        .19302        .14617E-05    .44062E-05
  18  Prefactor     .99970        .11423        .61031E-06    .12316E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 8.01424
  norm       = 7.61603
  Prefactor  = 5.72075
  Prefactor  = 0
  norm       = 0
  Prefactor  = 15.2201
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 15.8081
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.445419
  Prefactor  = 3.48495
  Prefactor  = 7.94913
  Normalizat = 0.924976
  Prefactor  = 0.9997
 **********
 **   18 **HESSE 
 **********

 FCN=   9834.547     FROM HESSE     STATUS=OK           298 CALLS     1648 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .51798        .25973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0142        6.9383        .35472E-03   -1.5651    
   3  norm          7.6160        6.7152        .36352E-03   -1.5653    
   4  Prefactor     5.7208        4.7525        .41817E-03   -1.5660    
   5  Prefactor      .0000        3.3649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .55221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.220        12.082        .25552E-03   -1.5630    
   8  Prefactor      .0000        1.5161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        6.2759        .59009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.3503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.808        17.523        .25067E-03   -1.5628    
  12  Prefactor      .0000        21.635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        37.549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .44542        .69595        .19790E-02   -1.5695    
  15  Prefactor     3.4849        5.0115        .54117E-03   -1.5671    
  16  Prefactor     7.9491        5.1211        .35598E-03   -1.5652    
  17  Normalizat    .92498        .16297        .68847E-01   -.95588    
  18  Prefactor     .99970        .94913E-01    .46264E-01   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47318e-08
Minuit parameter uncertainties:
  1  3.49214e-07
  2  6.93829
  3  6.71517
  4  4.75255
  5  1.50025e-06
  6  5.66117e-07
  7  12.0817
  8  4.38401e-07
  9  8.02831e-06
  10  1.39393e-06
  11  17.5231
  12  1.95526e-05
  13  1.26624e-05
  14  0.695953
  15  5.01155
  16  5.12112
  17  0.163056
  18  0.0949291
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  0.000e+00  1.394e-06  0.000e+00  1.000e+06 ( 1.000e-12)
299        Index:  2.506e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.997e-01  9.493e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  9.250e-01  1.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 164.342 -23.689
Photon Flux Upper Limit: 5.49346890504e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00427421262463 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18900933/likelihoodResults_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.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) = 9834.54901441
delta logL = -0.00199592450554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9834.5470194
delta logL = -9.13016265258e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   9834.547     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      242 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3606        .42118E-03** at limit **
   2  Index         2.4166        1.2310        .21503E-05     .0000    
   3  Normalizat    .92498        1.2592        .26779E-06    .62524E-05
   4  Prefactor     .99970        1.3387        .97398E-06   -.33469E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.41656
  Normalizat = 0.924976
  Prefactor  = 0.9997
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9834.547     FROM HESSE     STATUS=FAILED         9 CALLS      251 TOTAL
                     EDM=   .18E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .65549        1.8702        .21503E-05   -.54298    
   3  Normalizat    .92498        1.2592        .26779E-06   -.95588    
   4  Prefactor     .99970        1.3387        .97398E-06   -.92740    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.82257e-13
Minuit parameter uncertainties:
  1  8.15607e-07
  2  1.24858
  3  1.30312
  4  1.38766
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) = 9834.54701849
delta logL = 0.0

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  0.000e+00  8.156e-07  0.000e+00  1.000e+06 ( 1.000e-12)
299        Index:  2.417e+00  1.249e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  6.941e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.997e-01  1.388e+00  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
618   Normalization:  9.250e-01  1.303e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 164.342 -23.689

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/18900933/cmap_HighResolution_710294401_710553601_4FGL_J1057.3-2341_daily_bin1817.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2023-07-10 11:19:23.660323', job_id='18900933', GAL2='1.00', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689013163.66', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1817' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 10 11:19:23 PDT 2023

