/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 58 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 = 7589
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1057.3-2341_daily_bin437
RA = 164.342, Dec = -23.6889
tmin = 352598401, tmax = 352857601
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='305517', job_status='RUN', time_executed='2021-09-02 21:13:58.703839', time_epoch_executed='1630642438.7' WHERE source_name='4FGL J1057.3-2341' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305517

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305517/ft1_4FGL_J1057.3-2341_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305517/ft2_4FGL_J1057.3-2341_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305517/ft1_4FGL_J1057.3-2341_daily_bin437.fits outfile=/scratch/kocevski/305517/ft1_filteredMKT_4FGL_J1057.3-2341_daily_bin437.fits ra=164.342 dec=-23.6889 rad=12.0 tmin=352598401.0 tmax=352857601.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.19
user 3.94
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305517/ft1_filtered_4FGL_J1057.3-2341_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/305517/ft2_4FGL_J1057.3-2341_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/305517/ltcube_352598401_352857601_4FGL_J1057.3-2341_daily_bin437.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/305517/ft2_4FGL_J1057.3-2341_daily_bin437.fits
.....................!
real 16.57
user 16.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305517/ft1_filtered_4FGL_J1057.3-2341_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/305517/ft2_4FGL_J1057.3-2341_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/305517/ltcube_352598401_352857601_4FGL_J1057.3-2341_daily_bin437.fits outfile=/scratch/kocevski/305517/expmap_352598401_352857601_4FGL_J1057.3-2341_daily_bin437.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/305517/ltcube_352598401_352857601_4FGL_J1057.3-2341_daily_bin437.fits
.....................!
real 192.10
user 185.98
sys 5.44

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/305517/ft1_filtered_4FGL_J1057.3-2341_daily_bin437.fits scfile=/scratch/kocevski/305517/ft2_4FGL_J1057.3-2341_daily_bin437.fits outfile=/scratch/kocevski/305517/cmap_352598401_352857601_4FGL_J1057.3-2341_daily_bin437.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305517/ft1_filtered_4FGL_J1057.3-2341_daily_bin437.fits scfile=/scratch/kocevski/305517/ft2_4FGL_J1057.3-2341_daily_bin437.fits outfile=/scratch/kocevski/305517/cmap_HighResolution_352598401_352857601_4FGL_J1057.3-2341_daily_bin437.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.59
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305517/ft1_filtered_4FGL_J1057.3-2341_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/305517/ft2_4FGL_J1057.3-2341_daily_bin437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305517/Model_4FGL_J1057.3-2341_daily_bin437.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/305517/ft1_filtered_4FGL_J1057.3-2341_daily_bin437.fits.....................!
real 77.89
user 76.24
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71217       1.0000         .10000E-03   10000.    
     2 'norm      '    9.1048       1.0000         .10000E-03   10000.    
     3 'norm      '    4.6826       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5153       1.0000         .10000E-03   10000.    
     7 'norm      '    .13365E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3559       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43898E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.594       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1123       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1817       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90276       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98479       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=   8249.484     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1899 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71314        1.1346         .0000       -.57869E-03
   2  norm          9.1053        11.051         .0000        .20747E-03
   3  norm          4.6821        7.4949         .0000        .52772E-02
   4  Prefactor     2.7727        4.7917         .0000        .15308E-01
   5  Prefactor     .10000E-03    3.7073         .0000    ** at limit **
   6  Prefactor     1.5383        68.359         .0000        .41962E-02
   7  norm          .10116E-03    1.9766         .0000    ** at limit **
   8  Prefactor     .10000E-03    5.8611         .0000    ** at limit **
   9  Prefactor     4.3584        3.9290         .0000        .71729E-03
  10  Prefactor     6.9019        8.9128         .0000        .15887E-02
  11  Prefactor     7.8229        4.6554         .0000        .20616E-02
  12  Prefactor     .10010E-03    46.912         .0000    ** at limit **
  13  Prefactor     .10043E-03    56.932         .0000    ** at limit **
  14  Prefactor     .10004E-03    9.9948         .0000    ** at limit **
  15  Prefactor     15.593        9.8521         .0000       -.65943E-03
  16  Prefactor     .10003E-03    18.965         .0000    ** at limit **
  17  norm          4.1117        1.2620         .0000       -.61309E-03
  18  Prefactor     3.1801        9.1354         .0000        .58855E-02
  19  Prefactor     .10000E-03    4.6787         .0000    ** at limit **
  20  Normalizat    .90288        .18649         .0000       -.23977E-03
  21  Prefactor     .98477        .10451         .0000       -.43432E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.713145
  norm       = 9.10526
  norm       = 4.68207
  Prefactor  = 2.77269
  Prefactor  = 0.0001
  Prefactor  = 1.53832
  norm       = 0.000101156
  Prefactor  = 0.0001
  Prefactor  = 4.35843
  Prefactor  = 6.90194
  Prefactor  = 7.82287
  Prefactor  = 0.000100098
  Prefactor  = 0.000100431
  Prefactor  = 0.000100044
  Prefactor  = 15.5932
  Prefactor  = 0.00010003
  norm       = 4.11173
  Prefactor  = 3.18013
  Prefactor  = 0.0001
  Normalizat = 0.902882
  Prefactor  = 0.984771
 **********
 **   18 **HESSE 
 **********

 FCN=   8249.484     FROM HESSE     STATUS=OK           321 CALLS     2220 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71314        .91407        .11815E-02   -1.5539    
   2  norm          9.1053        10.997        .13283E-03   -1.5104    
   3  norm          4.6821        7.4491        .92985E-03   -1.5275    
   4  Prefactor     2.7727        4.7805        .12218E-02   -1.5375    
   5  Prefactor     .10000E-03    3.7145        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5383        44.557        .17364E-02   -1.5460    
   7  norm          .10116E-03    14.474        .19506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3584        3.8085        .14278E-03   -1.5290    
  10  Prefactor     6.9019        8.8719        .15255E-03   -1.5182    
  11  Prefactor     7.8229        4.6573        .14338E-03   -1.5149    
  12  Prefactor     .10010E-03    47.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10043E-03    57.030        .21220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    10.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.593        9.8631        .10142E-03   -1.4918    
  16  Prefactor     .10003E-03    18.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1117        1.2621        .53715E-04   -1.5302    
  18  Prefactor     3.1801        9.1424        .11359E-02   -1.5351    
  19  Prefactor     .10000E-03    4.9022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90288        .21880        .31788E-03   -.96359    
  21  Prefactor     .98477        .12363        .17997E-03   -.93239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93805e-08
Minuit parameter uncertainties:
  1  0.914088
  2  10.9998
  3  7.4506
  4  4.78112
  5  1.46775e-05
  6  16.5712
  7  0.00818141
  8  2.82818e-05
  9  3.80875
  10  8.87359
  11  4.65752
  12  0.00433353
  13  0.00993052
  14  0.00132576
  15  9.86412
  16  0.00152192
  17  1.26211
  18  9.14643
  19  5.18124e-05
  20  0.219016
  21  0.123663
Done.

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

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  7.823e+00  4.658e+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:  9.848e-01  1.237e-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:  9.029e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 164.342 -23.689
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.67e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.15e-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) = 8249.47500326
delta logL = 0.00862495703586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8249.47095039
delta logL = 0.0126778221766

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8249.471     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      258 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3129        5.9031        .69509E-03    .19590E-03
   2  Index         2.4199        .54566        .72265E-02    .27437E-03
   3  Normalizat    .90810        .21062        .31705E-03   -.43029E-06
   4  Prefactor     .98254        .12340        .18015E-03   -.15146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.31292
  Index      = 2.41993
  Normalizat = 0.908099
  Prefactor  = 0.982539
 **********
 **   18 **HESSE 
 **********

 FCN=   8249.471     FROM HESSE     STATUS=OK            27 CALLS      285 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3129        5.7362        .13902E-03   -1.5131    
   2  Index         2.4199        .53003        .14453E-02   -.54219    
   3  Normalizat    .90810        .21070        .12682E-04   -.96176    
   4  Prefactor     .98254        .12344        .72060E-05   -.93314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8052e-12
Minuit parameter uncertainties:
  1  5.73659
  2  0.531392
  3  0.210892
  4  0.123475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305517': 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) = 8249.47094633
delta logL = 0.0126818837034

Extracting fit parameters...

4FGL J1057.3-2341
   Spectrum: PowerLaw
298    Prefactor:  8.313e+00  5.737e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.420e+00  5.314e-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:  9.825e-01  1.235e-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:  9.081e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.16
Ra Dec: 164.342 -23.689
Photon Index (Free Index): 2.42 +/- 0.53
Photon Flux (Free Index): 6.37e-08 +/- 4.28e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.43e-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/305517/cmap_HighResolution_352598401_352857601_4FGL_J1057.3-2341_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.67e-08', energy_flux2='2.03e-05', photon_flux_error='3.97e-08', dlogl='1.27e-02', energy_flux='1.93e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2021-09-02 21:25:19.814090', photon_index_error2='0.53', photon_index2='2.42', ts='5.16', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='0.90', time_epoch_completed='1630643119.81', return_code='0', job_id='305517', GAL2='0.98', EG2='0.91', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.28e-08', ts2='5.16', photon_index='2.51' WHERE bin_id='437' AND source_name='4FGL J1057.3-2341' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 21:25:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 305517: <4FGL_J1057.3-2341_daily_bin437> in cluster <slac> Done

Job <4FGL_J1057.3-2341_daily_bin437> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 21:11:02 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 21:12:15 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:12:15 2021
Terminated at Thu Sep  2 21:25:20 2021
Results reported at Thu Sep  2 21:25:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.3-2341_daily_bin437 164.342 -23.6889 352598401 352857601 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 :                                   677.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            858 sec.

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

