/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 226 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 = 7485
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1057.3-2341_daily_bin117
RA = 164.342, Dec = -23.6889
tmin = 269654401, tmax = 269913601
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='302445', job_status='RUN', time_executed='2021-09-02 21:05:42.443314', time_epoch_executed='1630641942.44' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302445/ft1_4FGL_J1057.3-2341_daily_bin117.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302445/ft2_4FGL_J1057.3-2341_daily_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302445/ft1_4FGL_J1057.3-2341_daily_bin117.fits outfile=/scratch/kocevski/302445/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin117.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=269654401.0 tmax=269913601.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.65
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302445/ft2_4FGL_J1057.3-2341_daily_bin117.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/302445/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin117.fits evtable="EVENTS" outfile="/scratch/kocevski/302445/ft1_filtered_4FGL_J1057.3-2341_daily_bin117.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302445/ft1_filtered_4FGL_J1057.3-2341_daily_bin117.fits" evtable="EVENTS" scfile=/scratch/kocevski/302445/ft2_4FGL_J1057.3-2341_daily_bin117.fits sctable="SC_DATA" outfile=/scratch/kocevski/302445/ltcube_269654401_269913601_4FGL_J1057.3-2341_daily_bin117.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/302445/ft2_4FGL_J1057.3-2341_daily_bin117.fits
.....................!
real 15.87
user 15.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302445/ft1_filtered_4FGL_J1057.3-2341_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/302445/ft2_4FGL_J1057.3-2341_daily_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/302445/ltcube_269654401_269913601_4FGL_J1057.3-2341_daily_bin117.fits outfile=/scratch/kocevski/302445/expmap_269654401_269913601_4FGL_J1057.3-2341_daily_bin117.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/302445/ltcube_269654401_269913601_4FGL_J1057.3-2341_daily_bin117.fits
.....................!
real 193.12
user 185.74
sys 4.45

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/302445/ft1_filtered_4FGL_J1057.3-2341_daily_bin117.fits scfile=/scratch/kocevski/302445/ft2_4FGL_J1057.3-2341_daily_bin117.fits outfile=/scratch/kocevski/302445/cmap_269654401_269913601_4FGL_J1057.3-2341_daily_bin117.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/302445/ft1_filtered_4FGL_J1057.3-2341_daily_bin117.fits scfile=/scratch/kocevski/302445/ft2_4FGL_J1057.3-2341_daily_bin117.fits outfile=/scratch/kocevski/302445/cmap_HighResolution_269654401_269913601_4FGL_J1057.3-2341_daily_bin117.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62367       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0816       1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.242       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6446       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12410E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2529       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    68.561       1.0000         .10000E-03   10000.    
    17 'norm      '    .73076       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.388       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6521       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87842       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=   8881.300     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     1899 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62359        1.5150       -.86215E-07   -.45928E-03
   2  norm          2.0824        2.9343        .14727E-07   -.30200E-02
   3  norm          .10000E-03    3.2016        .28494E-07** at limit **
   4  Prefactor     .10000E-03    5.7280        .31963E-06** at limit **
   5  Prefactor     1.2259        13.363       -.31524E-06   -.13220E-03
   6  Prefactor     22.203        18.058       -.10119E-04   -.40933E-03
   7  norm          1.6500        2.7690        .27814E-05    .35169E-03
   8  Prefactor     .10000E-03    3.4779       -.19845E-06** at limit **
   9  Prefactor     .10000E-03    2.4394        .32100E-06** at limit **
  10  Prefactor     4.2553        9.4641        .26062E-05   -.97999E-03
  11  Prefactor     11.206        5.7031       -.87292E-07   -.78275E-04
  12  Prefactor     .10000E-03    5.5296       -.32453E-06** at limit **
  13  Prefactor     .10000E-03    20.227       -.50267E-06** at limit **
  14  Prefactor     .10000E-03    45.681        .52666E-05** at limit **
  15  Prefactor     .10000E-03    3.7399        .15279E-06** at limit **
  16  Prefactor     68.564        36.618        .20459E-05    .42445E-04
  17  norm          .73107        .63650       -.53179E-07   -.21137E-03
  18  Prefactor     22.391        10.573       -.32181E-06   -.63773E-05
  19  Prefactor     1.6528        4.3623       -.19575E-06   -.28669E-03
  20  Normalizat    1.0848        .17750        .96197E-06   -.13439E-03
  21  Prefactor     .87862        .98870E-01   -.51995E-07   -.73184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.623588
  norm       = 2.08238
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22586
  Prefactor  = 22.2029
  norm       = 1.65004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.25527
  Prefactor  = 11.206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.5642
  norm       = 0.731072
  Prefactor  = 22.3912
  Prefactor  = 1.65281
  Normalizat = 1.08479
  Prefactor  = 0.878617
 **********
 **   18 **HESSE 
 **********

 FCN=   8881.300     FROM HESSE     STATUS=OK           317 CALLS     2216 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62359        1.5242        .17271E-03   -1.5550    
   2  norm          2.0824        5.3995        .14311E-02   -1.5419    
   3  norm          .10000E-03    3.2227        .16467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2259        13.477        .40652E-03   -1.5487    
   6  Prefactor     22.203        18.084        .84931E-04   -1.4765    
   7  norm          1.6500        2.7417        .17291E-03   -1.5451    
   8  Prefactor     .10000E-03    3.4822        .17161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5030        .28675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2553        10.118        .97690E-03   -1.5295    
  11  Prefactor     11.206        5.7140        .11968E-03   -1.5038    
  12  Prefactor     .10000E-03    5.5312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7600        .17795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     68.564        36.587        .48476E-04   -1.4050    
  17  norm          .73107        .62214        .67342E-04   -1.5537    
  18  Prefactor     22.391        10.595        .84653E-04   -1.4761    
  19  Prefactor     1.6528        4.3790        .30843E-03   -1.5451    
  20  Normalizat    1.0848        .21095        .29234E-03   -.90242    
  21  Prefactor     .87862        .11762        .18649E-03   -.96892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55826e-08
Minuit parameter uncertainties:
  1  1.52433
  2  5.40073
  3  1.75366e-05
  4  1.05197e-05
  5  8.13108
  6  18.0881
  7  2.74191
  8  6.74586e-07
  9  8.43545e-05
  10  10.1221
  11  5.7143
  12  4.5425e-06
  13  1.60475e-05
  14  9.94514e-06
  15  5.17589e-06
  16  36.5989
  17  0.622144
  18  10.5955
  19  4.37985
  20  0.211118
  21  0.117658
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.121e+01  5.714e+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.786e-01  1.177e-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.085e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 9.56e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.41e-05

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) = 8881.26478048
delta logL = 0.0352530186992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8881.25943402
delta logL = 0.040599480466

Fit tolerance = 1e-08

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

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

 FCN=   8881.259     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.382        7.4069        .11384E-03    .91977E-03
   2  Index         2.3873        .41152        .62340E-02    .21561E-03
   3  Normalizat    1.0935        .20410        .29133E-03    .94438E-04
   4  Prefactor     .87444        .11799        .18686E-03    .10136E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3817
  Index      = 2.38729
  Normalizat = 1.09346
  Prefactor  = 0.874436
 **********
 **   18 **HESSE 
 **********

 FCN=   8881.259     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.382        7.2189        .45536E-05   -1.5004    
   2  Index         2.3873        .40084        .24936E-03   -.54983    
   3  Normalizat    1.0935        .20420        .11653E-04   -.89962    
   4  Prefactor     .87444        .11802        .74746E-05   -.97040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38397e-10
Minuit parameter uncertainties:
  1  7.21939
  2  0.401436
  3  0.204345
  4  0.118054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302445': 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) = 8881.259434
delta logL = 0.0405994969933

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  1.238e+01  7.219e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.387e+00  4.014e-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.744e-01  1.181e-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.093e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.39 +/- 0.40
Photon Flux (Free Index): 9.11e-08 +/- 4.96e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.86e-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/302445/cmap_HighResolution_269654401_269913601_4FGL_J1057.3-2341_daily_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.56e-08', energy_flux2='3.04e-05', photon_flux_error='4.87e-08', dlogl='4.06e-02', energy_flux='2.76e-05', photon_flux2='9.11e-08', job_status='DONE', time_completed='2021-09-02 21:17:20.157607', photon_index_error2='0.40', photon_index2='2.39', ts='5.13', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.08', time_epoch_completed='1630642640.16', return_code='0', job_id='302445', GAL2='0.87', EG2='1.09', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.96e-08', ts2='5.17', photon_index='2.51' WHERE bin_id='117' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:17:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 302445: <4FGL_J1057.3-2341_daily_bin117> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin117> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 21:00:58 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:01:47 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:01:47 2021
Terminated at Thu Sep  2 21:17:20 2021
Results reported at Thu Sep  2 21:17:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin117 164.342 -23.6889 269654401 269913601 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            982 sec.

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

