/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 230 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 = 7271
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1057.3-2341_daily_bin327
RA = 164.342, Dec = -23.6889
tmin = 324086401, tmax = 324345601
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='304240', job_status='RUN', time_executed='2021-09-02 21:11:38.840716', time_epoch_executed='1630642298.84' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304240/ft1_4FGL_J1057.3-2341_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304240/ft2_4FGL_J1057.3-2341_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304240/ft1_4FGL_J1057.3-2341_daily_bin327.fits outfile=/scratch/kocevski/304240/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin327.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=324086401.0 tmax=324345601.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.31
user 4.07
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304240/ft1_filtered_4FGL_J1057.3-2341_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/304240/ft2_4FGL_J1057.3-2341_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/304240/ltcube_324086401_324345601_4FGL_J1057.3-2341_daily_bin327.fits outfile=/scratch/kocevski/304240/expmap_324086401_324345601_4FGL_J1057.3-2341_daily_bin327.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/304240/ltcube_324086401_324345601_4FGL_J1057.3-2341_daily_bin327.fits
.....................!
real 193.43
user 186.92
sys 4.19

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/304240/ft1_filtered_4FGL_J1057.3-2341_daily_bin327.fits scfile=/scratch/kocevski/304240/ft2_4FGL_J1057.3-2341_daily_bin327.fits outfile=/scratch/kocevski/304240/cmap_324086401_324345601_4FGL_J1057.3-2341_daily_bin327.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304240/ft1_filtered_4FGL_J1057.3-2341_daily_bin327.fits scfile=/scratch/kocevski/304240/ft2_4FGL_J1057.3-2341_daily_bin327.fits outfile=/scratch/kocevski/304240/cmap_HighResolution_324086401_324345601_4FGL_J1057.3-2341_daily_bin327.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304240/ft1_filtered_4FGL_J1057.3-2341_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/304240/ft2_4FGL_J1057.3-2341_daily_bin327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304240/Model_4FGL_J1057.3-2341_daily_bin327.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/304240/ft1_filtered_4FGL_J1057.3-2341_daily_bin327.fits.....................!
real 55.62
user 54.25
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.8921       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1258       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3392       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.403       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    78.917       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.359       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21151E-02   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3206       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76327       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=   5468.922     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2181 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .51071        .25468E-08** at limit **
   2  norm          .10000E-03    6.7738       -.17852E-06** at limit **
   3  norm          3.8935        8.4656       -.14838E-05   -.32337E-05
   4  Prefactor     15.697        12.166       -.10915E-06    .52975E-05
   5  Prefactor     5.1238        14.346       -.11719E-05    .11120E-04
   6  Prefactor     .10000E-03    15.284       -.41055E-06** at limit **
   7  norm          2.6454        3.9168        .10183E-06    .91494E-04
   8  Prefactor     .10000E-03    12.405       -.36817E-06** at limit **
   9  Prefactor     2.3387        4.2783       -.12642E-06    .29752E-04
  10  Prefactor     14.403        11.674       -.14086E-07    .26050E-04
  11  Prefactor     5.0414        5.6038       -.61505E-07    .18637E-04
  12  Prefactor     78.916        43.057       -.13295E-06   -.13529E-05
  13  Prefactor     .10000E-03    43.862       -.15030E-07** at limit **
  14  Prefactor     65.406        47.112       -.52621E-07    .26097E-05
  15  Prefactor     .10000E-03    8.3152        .73763E-07** at limit **
  16  Prefactor     24.311        46.086       -.38100E-05   -.66331E-06
  17  norm          2.2036        1.3155        .40728E-07    .68665E-04
  18  Prefactor     .10000E-03    11.345        .38178E-06** at limit **
  19  Prefactor     .10000E-03    24.639        .75421E-05** at limit **
  20  Normalizat    1.3205        .24632        .67151E-06    .13762E-04
  21  Prefactor     .76329        .13335        .46868E-07    .13828E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.89353
  Prefactor  = 15.6974
  Prefactor  = 5.12376
  Prefactor  = 0.0001
  norm       = 2.64536
  Prefactor  = 0.0001
  Prefactor  = 2.33868
  Prefactor  = 14.403
  Prefactor  = 5.04142
  Prefactor  = 78.9157
  Prefactor  = 0.0001
  Prefactor  = 65.4061
  Prefactor  = 0.0001
  Prefactor  = 24.3106
  norm       = 2.20356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32046
  Prefactor  = 0.763287
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.922     FROM HESSE     STATUS=OK           319 CALLS     2500 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .51248        .51608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.7994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8935        8.4786        .10226E-02   -1.5313    
   4  Prefactor     15.697        12.172        .10109E-03   -1.4915    
   5  Prefactor     5.1238        14.324        .88790E-03   -1.5255    
   6  Prefactor     .10000E-03    15.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6454        3.8796        .16577E-03   -1.5383    
   8  Prefactor     .10000E-03    12.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3387        4.2251        .19044E-03   -1.5402    
  10  Prefactor     14.403        11.648        .10554E-03   -1.4949    
  11  Prefactor     5.0414        5.6024        .17663E-03   -1.5259    
  12  Prefactor     78.916        43.053        .45207E-04   -1.3929    
  13  Prefactor     .10000E-03    43.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     65.406        47.122        .49624E-04   -1.4089    
  15  Prefactor     .10000E-03    8.3421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.311        46.102        .81162E-04   -1.4721    
  17  norm          2.2036        1.3113        .62628E-04   -1.5411    
  18  Prefactor     .10000E-03    11.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.102        .31953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3205        .29185        .29498E-03   -.82958    
  21  Prefactor     .76329        .15852        .20652E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3645e-11
Minuit parameter uncertainties:
  1  1.64369e-07
  2  1.17146e-06
  3  8.48124
  4  12.1735
  5  14.3331
  6  6.10508e-06
  7  3.87993
  8  5.67698e-07
  9  4.22567
  10  11.6502
  11  5.60295
  12  43.0699
  13  2.58808e-05
  14  47.1493
  15  1.00895e-05
  16  46.1696
  17  1.31132
  18  6.3302e-06
  19  3.06264e-06
  20  0.292211
  21  0.158618
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  5.041e+00  5.603e+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

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  7.633e-01  1.586e-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.320e+00  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.30e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.38e-05

TS (Fixed Index): 1.36
Ra Dec: 164.342 -23.689
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304240/likelihoodResults_324086401_324345601_4FGL_J1057.3-2341_daily_bin327.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5468.77098311
delta logL = 0.151252985884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5468.75791275
delta logL = 0.164323346086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8970       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7242       1.0000          .0000       10.000    
     3 'Normalizat'    1.3487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75205       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=   5468.758     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8970        6.2221        .41342E-02   -.13235E-02
   2  Index         1.7245        .60126        .21244       -.66493E-04
   3  Normalizat    1.3488        .23983        .66075E-01    .61967E-05
   4  Prefactor     .75203        .13200        .43090E-01    .10999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.89699
  Index      = 1.72455
  Normalizat = 1.34879
  Prefactor  = 0.75203
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.758     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8970        6.5885        .16537E-03   -1.5222    
   2  Index         1.7245        .98527        .11245E-01   -.71430    
   3  Normalizat    1.3488        .28533        .29230E-03   -.82122    
   4  Prefactor     .75203        .15714        .20783E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60587e-09
Minuit parameter uncertainties:
  1  6.5893
  2  0.996792
  3  0.28567
  4  0.157236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304240': 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) = 5468.75791266
delta logL = 0.164323430342

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  5.897e+00  6.589e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.725e+00  9.968e-01  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.520e-01  1.572e-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.349e+00  2.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 1.72 +/- 1.00
Photon Flux (Free Index): 2.28e-08 +/- 3.33e-08
Energy Flux (Free Index): 3.45e-05 +/- 8.12e-05

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/304240/cmap_HighResolution_324086401_324345601_4FGL_J1057.3-2341_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='4.30e-08', energy_flux2='3.45e-05', photon_flux_error='4.78e-08', dlogl='1.64e-01', energy_flux='1.24e-05', photon_flux2='2.28e-08', job_status='DONE', time_completed='2021-09-02 21:22:01.119174', photon_index_error2='1.00', photon_index2='1.72', ts='1.36', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='8.12e-05', EG='1.32', time_epoch_completed='1630642921.12', return_code='0', job_id='304240', GAL2='0.75', EG2='1.35', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.33e-08', ts2='1.69', photon_index='2.51' WHERE bin_id='327' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 304240: <4FGL_J1057.3-2341_daily_bin327> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin327> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 21:06:20 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:07:37 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:07:37 2021
Terminated at Thu Sep  2 21:22:01 2021
Results reported at Thu Sep  2 21:22:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin327 164.342 -23.6889 324086401 324345601 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            941 sec.

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

