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


Performing analysis on: 4FGL_J1057.3-2341_daily_bin297
RA = 164.342, Dec = -23.6889
tmin = 316310401, tmax = 316569601
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='304179', job_status='RUN', time_executed='2021-09-02 21:09:08.007631', time_epoch_executed='1630642148.01' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304179/ft1_4FGL_J1057.3-2341_daily_bin297.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304179/ft2_4FGL_J1057.3-2341_daily_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304179/ft1_4FGL_J1057.3-2341_daily_bin297.fits outfile=/scratch/kocevski/304179/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin297.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=316310401.0 tmax=316569601.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 3.54
user 3.31
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304179/ft2_4FGL_J1057.3-2341_daily_bin297.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/304179/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin297.fits evtable="EVENTS" outfile="/scratch/kocevski/304179/ft1_filtered_4FGL_J1057.3-2341_daily_bin297.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/304179/ft1_filtered_4FGL_J1057.3-2341_daily_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/304179/ft2_4FGL_J1057.3-2341_daily_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/304179/ltcube_316310401_316569601_4FGL_J1057.3-2341_daily_bin297.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/304179/ft2_4FGL_J1057.3-2341_daily_bin297.fits
.....................!
real 14.02
user 13.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304179/ft1_filtered_4FGL_J1057.3-2341_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/304179/ft2_4FGL_J1057.3-2341_daily_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/304179/ltcube_316310401_316569601_4FGL_J1057.3-2341_daily_bin297.fits outfile=/scratch/kocevski/304179/expmap_316310401_316569601_4FGL_J1057.3-2341_daily_bin297.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/304179/ltcube_316310401_316569601_4FGL_J1057.3-2341_daily_bin297.fits
.....................!
real 190.21
user 185.38
sys 4.28

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/304179/ft1_filtered_4FGL_J1057.3-2341_daily_bin297.fits scfile=/scratch/kocevski/304179/ft2_4FGL_J1057.3-2341_daily_bin297.fits outfile=/scratch/kocevski/304179/cmap_316310401_316569601_4FGL_J1057.3-2341_daily_bin297.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304179/ft1_filtered_4FGL_J1057.3-2341_daily_bin297.fits scfile=/scratch/kocevski/304179/ft2_4FGL_J1057.3-2341_daily_bin297.fits outfile=/scratch/kocevski/304179/cmap_HighResolution_316310401_316569601_4FGL_J1057.3-2341_daily_bin297.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304179/ft1_filtered_4FGL_J1057.3-2341_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/304179/ft2_4FGL_J1057.3-2341_daily_bin297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304179/Model_4FGL_J1057.3-2341_daily_bin297.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/304179/ft1_filtered_4FGL_J1057.3-2341_daily_bin297.fits.....................!
real 90.84
user 88.70
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7868       1.0000         .10000E-03   10000.    
     2 'norm      '    .11323E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.840       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6074       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.207       1.0000         .10000E-03   10000.    
     7 'norm      '    .10612E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8405       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.957       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2933       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0964       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82701       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10248.68     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2247 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7851        1.3506         .0000        .50825E-03
   2  norm          .10000E-03    2.2459         .0000    ** at limit **
   3  norm          15.832        7.0215         .0000        .28340E-03
   4  Prefactor     7.6147        4.9324         .0000        .20618E-02
   5  Prefactor     3.5788        6.7474         .0000        .27957E-03
   6  Prefactor     17.166        13.905         .0000        .35766E-04
   7  norm          .10000E-03    2.2711         .0000    ** at limit **
   8  Prefactor     .10000E-03    5.4238         .0000    ** at limit **
   9  Prefactor     4.9081        3.7124         .0000        .58663E-03
  10  Prefactor     2.5088        6.9366         .0000        .13041E-01
  11  Prefactor     9.7443        3.9894         .0000        .17772E-03
  12  Prefactor     22.000        23.946         .0000        .12171E-04
  13  Prefactor     2.2695        650.49         .0000        .11761E-03
  14  Prefactor     .10000E-03    6.9829         .0000    ** at limit **
  15  Prefactor     .10000E-03    2.3261         .0000    ** at limit **
  16  Prefactor     10.798        27.548         .0000        .14120E-04
  17  norm          4.9260        1.2728         .0000        .24109E-03
  18  Prefactor     1.2776        6.9862         .0000        .24907E-01
  19  Prefactor     .10000E-03    5.5038         .0000    ** at limit **
  20  Normalizat    1.0967        .16604         .0000        .33051E-04
  21  Prefactor     .82696        .93245E-01     .0000        .26805E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78508
  norm       = 0.0001
  norm       = 15.8315
  Prefactor  = 7.61466
  Prefactor  = 3.57882
  Prefactor  = 17.1655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.90808
  Prefactor  = 2.50877
  Prefactor  = 9.74432
  Prefactor  = 22.0003
  Prefactor  = 2.26948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7983
  norm       = 4.92601
  Prefactor  = 1.27759
  Prefactor  = 0.0001
  Normalizat = 1.09671
  Prefactor  = 0.826964
 **********
 **   18 **HESSE 
 **********

 FCN=   10248.68     FROM HESSE     STATUS=OK           327 CALLS     2574 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7851        1.3451        .98466E-04   -1.5441    
   2  norm          .10000E-03    2.2490        .14814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.832        7.0210        .50317E-03   -1.4912    
   4  Prefactor     7.6147        4.9322        .72625E-03   -1.5156    
   5  Prefactor     3.5788        6.7281        .21274E-03   -1.5330    
   6  Prefactor     17.166        13.795        .96554E-04   -1.4879    
   7  norm          .10000E-03    2.3387        .29529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9081        3.6779        .14522E-03   -1.5265    
  10  Prefactor     2.5088        6.8933        .12880E-02   -1.5391    
  11  Prefactor     9.7443        3.9914        .12406E-03   -1.5084    
  12  Prefactor     22.000        23.548        .85265E-04   -1.4770    
  13  Prefactor     2.2695        629.48        .12063E-02   -1.5407    
  14  Prefactor     .10000E-03    6.9864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3321        .15078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.798        27.535        .12103E-03   -1.5051    
  17  norm          4.9260        1.2710        .54278E-04   -1.5264    
  18  Prefactor     1.2776        6.9718        .19458E-02   -1.5482    
  19  Prefactor     .10000E-03    5.7233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0967        .19710        .29070E-03   -.89858    
  21  Prefactor     .82696        .11095        .19171E-03   -.98742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03518e-10
Minuit parameter uncertainties:
  1  1.34514
  2  1.23064e-07
  3  7.02135
  4  4.93247
  5  6.72952
  6  13.798
  7  5.83303e-08
  8  4.87236e-08
  9  3.67809
  10  6.89551
  11  3.99146
  12  23.5579
  13  76.4169
  14  1.38082e-07
  15  1.68052e-08
  16  27.5678
  17  1.27104
  18  5.96979
  19  4.27298e-07
  20  0.197234
  21  0.110984
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  9.744e+00  3.991e+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:  8.270e-01  1.110e-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.097e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.56
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 8.31e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 9.82e-06

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) = 10246.8491887
delta logL = 1.83392162661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10246.6965374
delta logL = 1.98657301175

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.852       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8872       1.0000          .0000       10.000    
     3 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81213       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=   10246.70     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.852        6.2520        .27933E-02    .11069E-03
   2  Index         1.8872        .29424        .16021       -.29847E-04
   3  Normalizat    1.1348        .15957        .64753E-01    .71497E-04
   4  Prefactor     .81213        .92885E-01    .43875E-01    .87247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8517
  Index      = 1.88715
  Normalizat = 1.13475
  Prefactor  = 0.812126
 **********
 **   18 **HESSE 
 **********

 FCN=   10246.70     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.852        5.5120        .11173E-03   -1.4991    
   2  Index         1.8872        .28587        .64167E-02   -.67202    
   3  Normalizat    1.1348        .18955        .28645E-03   -.88644    
   4  Prefactor     .81213        .11036        .19321E-03   -.99283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7202e-11
Minuit parameter uncertainties:
  1  5.51222
  2  0.286127
  3  0.189659
  4  0.110386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304179': 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) = 10246.6965373
delta logL = 1.98657303267

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.285e+01  5.512e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.887e+00  2.861e-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:  8.121e-01  1.104e-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.135e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.50
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 1.89 +/- 0.29
Photon Flux (Free Index): 5.60e-08 +/- 2.92e-08
Energy Flux (Free Index): 5.21e-05 +/- 3.39e-05

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 /scratch/kocevski/304179/cmap_HighResolution_316310401_316569601_4FGL_J1057.3-2341_daily_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.31e-08', energy_flux2='5.21e-05', photon_flux_error='3.40e-08', dlogl='1.99e+00', energy_flux='2.40e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-02 21:22:26.915937', photon_index_error2='0.29', photon_index2='1.89', ts='16.56', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.39e-05', EG='1.10', time_epoch_completed='1630642946.92', return_code='0', job_id='304179', GAL2='0.81', EG2='1.13', return_code2='0', energy_flux_error='9.82e-06', photon_flux_error2='2.92e-08', ts2='20.50', photon_index='2.51' WHERE bin_id='297' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 304179: <4FGL_J1057.3-2341_daily_bin297> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin297 164.342 -23.6889 316310401 316569601 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 :                                   796.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            971 sec.

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

