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


Performing analysis on: 4FGL_J0857.9-1949_daily_bin4
RA = 134.491, Dec = -19.8175
tmin = 240364801, tmax = 240624001
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='875630', job_status='RUN', time_executed='2021-08-30 17:38:14.749691', time_epoch_executed='1630370294.75' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875630/ft1_4FGL_J0857.9-1949_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875630/ft1_4FGL_J0857.9-1949_daily_bin4.fits outfile=/scratch/kocevski/875630/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin4.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=240364801.0 tmax=240624001.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.75
user 1.26
sys 1.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.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/875630/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.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 3.31
user 0.34
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/875630/ltcube_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.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/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits
.....................!
real 15.44
user 12.33
sys 1.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/875630/ltcube_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.fits outfile=/scratch/kocevski/875630/expmap_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.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/875630/ltcube_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.fits
.....................!
real 199.22
user 185.48
sys 6.86

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J0857.9-1949 @ 134.491 -19.8175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits scfile=/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits outfile=/scratch/kocevski/875630/cmap_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.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=134.491 yref=-19.8175 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 2.18
user 0.37
sys 1.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits scfile=/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits outfile=/scratch/kocevski/875630/cmap_HighResolution_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.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=134.491 yref=-19.8175 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 2.10
user 0.38
sys 1.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875630/Model_4FGL_J0857.9-1949_daily_bin4.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/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits.....................!
real 103.27
user 96.41
sys 2.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits', '/scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits', expMap='/scratch/kocevski/875630/expmap_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.fits', expCube='/scratch/kocevski/875630/ltcube_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875630/Model_4FGL_J0857.9-1949_daily_bin4.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0857.9-1949'

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  2.397e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  6.951e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875630/ft1_filtered_4FGL_J0857.9-1949_daily_bin4.fits
Spacecraft file(s): /scratch/kocevski/875630/ft2_4FGL_J0857.9-1949_daily_bin4.fits
Exposure map: /scratch/kocevski/875630/expmap_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.fits
Exposure cube: /scratch/kocevski/875630/ltcube_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875630/Model_4FGL_J0857.9-1949_daily_bin4.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) = 9093.4849292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3960       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.468       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0145       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8844       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97398       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.319       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49578E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18349E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0483       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9092.490     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1429 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9881        .96135E-07** at limit **
   2  norm          .10000E-03    10.089        .72767E-07** at limit **
   3  norm          2.3959        2.2399       -.35332E-07   -.61229E-04
   4  norm          1.4991        6.4271        .21447E-05   -.23788E-04
   5  Prefactor     .10000E-03    9.9531        .30120E-07** at limit **
   6  Prefactor     17.417        37.468       -.11589E-05   -.16417E-03
   7  norm          6.0174        8.7129        .35093E-06    .30604E-04
   8  norm          1.8849        2.4135        .23927E-06   -.12507E-04
   9  Prefactor     .97445        6.2473        .45207E-05   -.95436E-04
  10  Prefactor     .10000E-03    4.5631        .40128E-07** at limit **
  11  Prefactor     2.7232        4.3605        .28331E-06   -.67859E-04
  12  Prefactor     10.319        16.163        .26098E-06   -.86439E-05
  13  Prefactor     .10000E-03    59.133        .16045E-05** at limit **
  14  Prefactor     .10000E-03    111.68        .75651E-06** at limit **
  15  Prefactor     .10000E-03    36.807        .27017E-06** at limit **
  16  Normalizat    1.0479        .20734       -.24271E-05   -.15798E-03
  17  Prefactor     1.0632        .91635E-01    .30310E-06   -.48631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.39588
  norm       = 1.49906
  Prefactor  = 0.0001
  Prefactor  = 17.4168
  norm       = 6.01737
  norm       = 1.88487
  Prefactor  = 0.974446
  Prefactor  = 0.0001
  Prefactor  = 2.72318
  Prefactor  = 10.3195
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04786
  Prefactor  = 1.06323
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.490     FROM HESSE     STATUS=OK           221 CALLS     1650 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3959        2.2436        .13385E-03   -1.5398    
   4  norm          1.4991        6.3442        .35029E-03   -1.5463    
   5  Prefactor     .10000E-03    9.9676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.417        37.605        .95829E-04   -1.4873    
   7  norm          6.0174        8.6939        .16372E-03   -1.5217    
   8  norm          1.8849        2.3875        .15970E-03   -1.5433    
   9  Prefactor     .97445        6.2540        .44142E-03   -1.5511    
  10  Prefactor     .10000E-03    4.5725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7232        4.3460        .24549E-03   -1.5378    
  12  Prefactor     10.319        16.192        .12473E-03   -1.5065    
  13  Prefactor     .10000E-03    60.321        .21162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    113.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.958        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0479        .23557        .36745E-03   -.91444    
  17  Prefactor     1.0632        .10524        .16386E-03   -.90650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18753e-10
Minuit parameter uncertainties:
  1  7.10104e-06
  2  8.9902e-06
  3  2.24367
  4  6.16866
  5  1.2874e-06
  6  37.6566
  7  8.69573
  8  2.38764
  9  4.93779
  10  3.19891e-07
  11  4.34647
  12  16.1987
  13  0.000701345
  14  0.000373148
  15  7.14835e-05
  16  0.235809
  17  0.105264
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  9.744e-01  4.938e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  6.951e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.063e+00  1.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.048e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 134.491 -19.817
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875630/likelihoodResults_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9092.23004245
delta logL = 0.259822443077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9092.21447029
delta logL = 0.275394599601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45692E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4277       1.0000          .0000       10.000    
     3 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0739       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9092.214     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45484E-01    .80155        .63569E-02    .70136E-02
   2  Index         5.4314        2.7945        .20214        .14182E-03
   3  Normalizat    1.0096        .31487E-01    .84377E-01    .42940E-04
   4  Prefactor     1.0739        .14192E-01    .38675E-01    .88209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0454836
  Index      = 5.43135
  Normalizat = 1.00959
  Prefactor  = 1.0739
 **********
 **   18 **HESSE 
 **********

 FCN=   9092.214     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      291 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45484E-01    4.5737        .29523E-03   -1.5665    
   2  Index         5.4314        7.3406        .98205E-02    .86378E-01
   3  Normalizat    1.0096        .15077        .37354E-03   -.92710    
   4  Prefactor     1.0739        .67077E-01    .16312E-03   -.90305    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42552e-11
Minuit parameter uncertainties:
  1  0.911268
  2  11.019
  3  0.150838
  4  0.0670827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875630': 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): 102
logL (Free Index) = 9092.21446909
delta logL = 0.27539580677

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  4.548e-02  9.113e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  5.431e+00  1.102e+01  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  6.951e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.074e+00  6.708e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.010e+00  1.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 134.491 -19.817

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/875630/cmap_HighResolution_240364801_240624001_4FGL_J0857.9-1949_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-08-30 17:49:18.428055', job_id='875630', GAL2='1.07', fit_tolerance='1e-08', EG2='1.01', EG='1.05', time_epoch_completed='1630370958.43', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.75e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='4' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 17:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 875630: <4FGL_J0857.9-1949_daily_bin4> in cluster <slac> Done

Job <4FGL_J0857.9-1949_daily_bin4> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 30 17:36:20 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 17:36:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 17:36:21 2021
Terminated at Mon Aug 30 17:49:19 2021
Results reported at Mon Aug 30 17:49:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin4 134.491 -19.8175 240364801 240624001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0857.9-1949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

