/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 7 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7389
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1057.3-2341_daily_bin1280
RA = 164.342, Dec = -23.6889
tmin = 571104001, tmax = 571363201
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='311303', job_status='RUN', time_executed='2021-09-02 21:28:12.534861', time_epoch_executed='1630643292.53' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311303

Creating custom pfile directory:
/scratch/kocevski/311303/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=571104001.0 && nMetStart<571363201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=571104001.0 && nMetStart<571363201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311303/ft1_4FGL_J1057.3-2341_daily_bin1280.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=571104001.0 && nMetStart<571363201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311303/ft1_4FGL_J1057.3-2341_daily_bin1280.fits outfile=/scratch/kocevski/311303/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin1280.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=571104001.0 tmax=571363201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.06
user 2.78
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/311303/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.60
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/311303/ltcube_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.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 /scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits
.....................!
real 15.25
user 14.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/311303/ltcube_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.fits outfile=/scratch/kocevski/311303/expmap_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.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 /scratch/kocevski/311303/ltcube_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.fits
.....................!
real 195.13
user 186.40
sys 4.22

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=/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits scfile=/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits outfile=/scratch/kocevski/311303/cmap_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits scfile=/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits outfile=/scratch/kocevski/311303/cmap_HighResolution_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311303/Model_4FGL_J1057.3-2341_daily_bin1280.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...
/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits.....................!
real 58.73
user 56.73
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits', '/scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits', expMap='/scratch/kocevski/311303/expmap_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.fits', expCube='/scratch/kocevski/311303/ltcube_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311303/Model_4FGL_J1057.3-2341_daily_bin1280.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/311303/ft1_filtered_4FGL_J1057.3-2341_daily_bin1280.fits
Spacecraft file(s): /scratch/kocevski/311303/ft2_4FGL_J1057.3-2341_daily_bin1280.fits
Exposure map: /scratch/kocevski/311303/expmap_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.fits
Exposure cube: /scratch/kocevski/311303/ltcube_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311303/Model_4FGL_J1057.3-2341_daily_bin1280.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) = 5339.47054451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2203       1.0000         .10000E-03   10000.    
     2 'norm      '    9.0256       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.398       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.985       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18972E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23218E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    68.967       1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8092       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6088       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6577       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70302       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5339.445     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2194 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2204        2.1010        .74039E-08   -.42347E-05
   2  norm          9.0242        10.008       -.77102E-06   -.14446E-03
   3  norm          1.0117        13.222        .54651E-05   -.44281E-04
   4  Prefactor     17.830        14.737        .61972E-07   -.12414E-05
   5  Prefactor     .10000E-03    7.6400        .59764E-07** at limit **
   6  Prefactor     16.398        13.747       -.15198E-06   -.33073E-04
   7  norm          .10000E-03    1.1703        .29191E-07** at limit **
   8  Prefactor     .10000E-03    7.8150        .43006E-07** at limit **
   9  Prefactor     .10000E-03    1.5162        .45461E-07** at limit **
  10  Prefactor     15.986        13.017       -.23213E-07   -.22427E-04
  11  Prefactor     .10000E-03    6.6983       -.13333E-07** at limit **
  12  Prefactor     .10000E-03    44.089       -.25570E-05** at limit **
  13  Prefactor     82.816        89.997       -.54680E-06   -.68820E-04
  14  Prefactor     .10000E-03    144.80        .58639E-06** at limit **
  15  Prefactor     .10000E-03    14.460        .88819E-07** at limit **
  16  Prefactor     68.972        55.163        .80508E-07    .79116E-05
  17  norm          .10000E-03    .44168       -.94603E-07** at limit **
  18  Prefactor     6.8095        14.665        .14007E-06    .22415E-05
  19  Prefactor     7.6087        7.6215        .78954E-07    .42397E-05
  20  Normalizat    1.6575        .26785        .59003E-06   -.83456E-04
  21  Prefactor     .70307        .13691       -.83067E-06   -.35671E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22043
  norm       = 9.02418
  norm       = 1.01169
  Prefactor  = 17.8302
  Prefactor  = 0.0001
  Prefactor  = 16.3979
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.8165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.9716
  norm       = 0.0001
  Prefactor  = 6.8095
  Prefactor  = 7.60866
  Normalizat = 1.65747
  Prefactor  = 0.703073
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.445     FROM HESSE     STATUS=OK           311 CALLS     2505 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2204        2.1028        .10009E-03   -1.5410    
   2  norm          9.0242        10.038        .13341E-03   -1.5107    
   3  norm          1.0117        13.284        .49384E-03   -1.5507    
   4  Prefactor     17.830        14.739        .94855E-04   -1.4863    
   5  Prefactor     .10000E-03    7.6660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.398        13.747        .98908E-04   -1.4898    
   7  norm          .10000E-03    1.1789        .77168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5230        .87811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.986        13.038        .10018E-03   -1.4908    
  11  Prefactor     .10000E-03    6.8885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.816        89.917        .22058E-03   -1.3885    
  14  Prefactor     .10000E-03    148.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     68.972        55.220        .48334E-04   -1.4045    
  17  norm          .10000E-03    .44513        .47368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.8095        14.666        .15376E-03   -1.5186    
  19  Prefactor     7.6087        7.6474        .14538E-03   -1.5156    
  20  Normalizat    1.6575        .31821        .28798E-03   -.73445    
  21  Prefactor     .70307        .16134        .21748E-03   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65628e-11
Minuit parameter uncertainties:
  1  2.10289
  2  10.0397
  3  7.33348
  4  14.7421
  5  1.3869e-06
  6  13.75
  7  9.76772e-08
  8  8.8578e-08
  9  3.3262e-07
  10  13.0404
  11  4.7403e-06
  12  6.65692e-05
  13  90.0652
  14  0.000104983
  15  5.75042e-06
  16  55.2613
  17  3.39822e-07
  18  14.6738
  19  7.64834
  20  0.318598
  21  0.161442
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.740e-06  1.000e-04  1.000e+04 ( 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:  7.031e-01  1.614e-01  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:  1.657e+00  3.186e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311303/likelihoodResults_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.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) = 5339.44600742
delta logL = -0.000692621831149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5339.44531575
delta logL = -9.47174157773e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5222       1.0000          .0000       10.000    
     3 'Normalizat'    1.6571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70327       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5339.436     FROM MIGRAD    STATUS=FAILED       162 CALLS      320 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27852E-01    5.7563        .90569E-02   -.30186E-02
   2  Index         5.0866        3.4117        .50000       -.12245E-06
   3  Normalizat    1.6418        .45973E-01    .28798E-03   -.16819E-03
   4  Prefactor     .70820        .22699E-01    .21748E-03   -.75956E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5339.436     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      390 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27852E-01    5.7563        .13185E-03   -.30186E-02
   2  Index         5.0866        3.4117        .56166E-02   -.12245E-06
   3  Normalizat    1.6418        .45973E-01    .14290E-03   -.16819E-03
   4  Prefactor     .70820        .22699E-01    .42874E-04   -.75956E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5339.436     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      425 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27852E-01    .58921        .55538E-03   -.65170E-03
   2  Index         5.0867        7.1632        .86898E-02    .23497E-05
   3  Normalizat    1.6418        .32860        .57596E-04   -.12862E-03
   4  Prefactor     .70820        .16481        .86990E-05   -.49139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0278525
  Index      = 5.08665
  Normalizat = 1.64181
  Prefactor  = 0.708195
 **********
 **   18 **HESSE 
 **********

 FCN=   5339.436     FROM HESSE     STATUS=OK            27 CALLS      452 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27852E-01    1.7577        .22215E-04   -1.5741    
   2  Index         5.0867        7.5115        .34759E-03    .17331E-01
   3  Normalizat    1.6418        .32704        .11519E-04   -.73868    
   4  Prefactor     .70820        .16442        .17398E-05   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67436e-11
Minuit parameter uncertainties:
  1  0.441735
  2  8.73778
  3  0.327471
  4  0.164533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311303': No such file or directory
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) = 5339.43562361
delta logL = 0.00969119385081

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  2.785e-02  4.417e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  5.087e+00  8.738e+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:  7.082e-01  1.645e-01  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:  1.642e+00  3.275e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/311303/cmap_HighResolution_571104001_571363201_4FGL_J1057.3-2341_daily_bin1280.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/311303

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.29e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-02 21:38:45.354319', job_id='311303', GAL2='0.71', fit_tolerance='1e-08', EG2='1.64', EG='1.66', time_epoch_completed='1630643925.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='9.69e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1280' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 311303: <4FGL_J1057.3-2341_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin1280> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  2 21:26:05 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:27:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 21:27:48 2021
Terminated at Thu Sep  2 21:38:46 2021
Results reported at Thu Sep  2 21:38:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin1280 164.342 -23.6889 571104001 571363201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1057.3-2341 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   619.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            761 sec.

The output (if any) is above this job summary.

