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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin554
RA = 164.342, Dec = -23.6889
tmin = 382924801, tmax = 383184001
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='307149', job_status='RUN', time_executed='2021-09-02 21:19:02.695680', time_epoch_executed='1630642742.7' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307149

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307149/ft1_4FGL_J1057.3-2341_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307149/ft1_4FGL_J1057.3-2341_daily_bin554.fits outfile=/scratch/kocevski/307149/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin554.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=382924801.0 tmax=383184001.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 4.50
user 4.22
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.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/307149/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.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 0.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/307149/ltcube_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.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/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits
.....................!
real 16.36
user 15.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/307149/ltcube_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.fits outfile=/scratch/kocevski/307149/expmap_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.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/307149/ltcube_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.fits
.....................!
real 191.96
user 187.19
sys 4.25

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/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits scfile=/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits outfile=/scratch/kocevski/307149/cmap_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits scfile=/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits outfile=/scratch/kocevski/307149/cmap_HighResolution_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307149/Model_4FGL_J1057.3-2341_daily_bin554.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/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits.....................!
real 51.47
user 49.77
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits', '/scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits', expMap='/scratch/kocevski/307149/expmap_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.fits', expCube='/scratch/kocevski/307149/ltcube_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307149/Model_4FGL_J1057.3-2341_daily_bin554.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/307149/ft1_filtered_4FGL_J1057.3-2341_daily_bin554.fits
Spacecraft file(s): /scratch/kocevski/307149/ft2_4FGL_J1057.3-2341_daily_bin554.fits
Exposure map: /scratch/kocevski/307149/expmap_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.fits
Exposure cube: /scratch/kocevski/307149/ltcube_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307149/Model_4FGL_J1057.3-2341_daily_bin554.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) = 4978.52481723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.7032       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14907E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .63730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.774       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.333       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.173       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.925       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8017       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .64772       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1237       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.

 FCN=   4978.515     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2240 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .66596        .90712E-02** at limit **
   2  norm          8.7062        10.818        .33968E-02    .31395E-03
   3  norm          .10000E-03    11.196        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.8254        .90974E-01** at limit **
   5  Prefactor     .10000E-03    9.4137        .90712E-02** at limit **
   6  Prefactor     .10000E-03    6.4105        .90712E-02** at limit **
   7  norm          .63613        3.5480        .11819E-01    .12048E-02
   8  Prefactor     27.771        22.408        .19004E-02   -.11426E-03
   9  Prefactor     .10000E-03    2.5537        .90712E-02** at limit **
  10  Prefactor     13.333        14.923        .27424E-02   -.12510E-02
  11  Prefactor     .10000E-03    4.2797        .90712E-02** at limit **
  12  Prefactor     .10000E-03    17.627        .90712E-02** at limit **
  13  Prefactor     34.174        62.202        .17137E-02   -.25995E-03
  14  Prefactor     .10000E-03    76.735        .90712E-02** at limit **
  15  Prefactor     6.2456        18.559        .40130E-02    .23911E-03
  16  Prefactor     .10000E-03    25.175        .90712E-02** at limit **
  17  norm          12.925        2.5956        .27854E-02    .19997E-04
  18  Prefactor     15.718        13.046        .25256E-02   -.19230E-04
  19  Prefactor     1.8037        15.188        .77854E-02    .32240E-03
  20  Normalizat    .64771        .28906        .92537E-01    .24129E-04
  21  Prefactor     1.1238        .15895        .36748E-01   -.78959E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.70619
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.636131
  Prefactor  = 27.7706
  Prefactor  = 0.0001
  Prefactor  = 13.3334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1743
  Prefactor  = 0.000100001
  Prefactor  = 6.24563
  Prefactor  = 0.0001
  norm       = 12.9251
  Prefactor  = 15.7179
  Prefactor  = 1.80374
  Normalizat = 0.647705
  Prefactor  = 1.12377
 **********
 **   18 **HESSE 
 **********

 FCN=   4978.515     FROM HESSE     STATUS=OK           323 CALLS     2563 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .67058        .56221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.7062        10.807        .13587E-03   -1.5118    
   3  norm          .10000E-03    11.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3536        .60015E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4164        .17445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .63613        3.5424        .25419E-03   -1.5548    
   8  Prefactor     27.771        22.369        .76018E-04   -1.4654    
   9  Prefactor     .10000E-03    2.5710        .10994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.333        14.889        .10970E-03   -1.4978    
  11  Prefactor     .10000E-03    4.3682        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.174        62.188        .68550E-04   -1.4538    
  14  Prefactor     .10000E-03    76.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2456        18.484        .16052E-03   -1.5208    
  16  Prefactor     .10000E-03    25.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.925        2.5945        .48846E-04   -1.4989    
  18  Prefactor     15.718        13.042        .10102E-03   -1.4915    
  19  Prefactor     1.8037        15.111        .31142E-03   -1.5439    
  20  Normalizat    .64771        .32411        .41003E-03   -1.0600    
  21  Prefactor     1.1238        .18209        .18153E-03   -.88710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83792e-09
Minuit parameter uncertainties:
  1  3.87435e-07
  2  10.8093
  3  2.5267e-06
  4  9.77521e-05
  5  5.29188e-07
  6  2.2252e-07
  7  3.00232
  8  22.376
  9  6.66207e-07
  10  14.8927
  11  1.2901e-06
  12  1.13586e-05
  13  62.3065
  14  0.000419598
  15  18.5009
  16  2.73012e-07
  17  2.59455
  18  13.0439
  19  10.445
  20  0.325072
  21  0.182192
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.290e-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:  1.124e+00  1.822e-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:  6.477e-01  3.251e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307149/likelihoodResults_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.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) = 4978.51655156
delta logL = -0.00109048456852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4978.51546116
delta logL = -8.36316758068e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5136       1.0000          .0000       10.000    
     3 'Normalizat'    .64761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1238       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=   4978.515     FROM MIGRAD    STATUS=FAILED        86 CALLS      238 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    171.95        .14276E-02** at limit **
   2  Index         2.5800        8.6534        .50000       -.12325E-04
   3  Normalizat    .64771        .42060E-01    .41003E-03    .29390E-04
   4  Prefactor     1.1238        .24156E-01    .18153E-03    .53320E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4978.515     FROM SIMPLEX   STATUS=PROGRESS     152 CALLS      390 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    171.95        .25478E-03** at limit **
   2  Index         2.5798        8.6534        .68830E-04   -.12325E-04
   3  Normalizat    .64770        .42060E-01    .95199E-06    .29390E-04
   4  Prefactor     1.1238        .24156E-01    .28922E-06    .53320E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4978.515     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      437 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    506.43        .28553E-03** at limit **
   2  Index         2.7918        8.4350        .50000       -.14782E-06
   3  Normalizat    .64770        .80651E-01    .16401E-04   -.14418E-04
   4  Prefactor     1.1238        .46257E-01    .36306E-04   -.41646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.79179
  Normalizat = 0.647705
  Prefactor  = 1.12377
 **********
 **   18 **HESSE 
 **********

 FCN=   4978.515     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5495        .57106E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7918        8.5980        .50000       -.45743    
   3  Normalizat    .64770        .31393        .32802E-05   -1.0600    
   4  Prefactor     1.1238        .18069        .72613E-05   -.88710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17453e-10
Minuit parameter uncertainties:
  1  0.000128472
  2  187.89
  3  0.314801
  4  0.180788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307149': 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) = 4978.51546053
delta logL = 5.47797753825e-07

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.285e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.792e+00  1.879e+02  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:  1.124e+00  1.808e-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:  6.477e-01  3.148e-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/307149/cmap_HighResolution_382924801_383184001_4FGL_J1057.3-2341_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-02 21:29:10.064827', job_id='307149', GAL2='1.12', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630643350.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='554' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 307149: <4FGL_J1057.3-2341_daily_bin554> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin554> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Sep  2 21:16:22 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:16:28 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:16:28 2021
Terminated at Thu Sep  2 21:29:11 2021
Results reported at Thu Sep  2 21:29:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin554 164.342 -23.6889 382924801 383184001 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 :                                   604.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            769 sec.

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

