/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 65 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 = 7552
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0857.9-1949_daily_bin1299
RA = 134.491, Dec = -19.8175
tmin = 576028801, tmax = 576288001
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='882702', job_status='RUN', time_executed='2021-08-30 17:57:23.123943', time_epoch_executed='1630371443.12' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882702

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882702/ft1_4FGL_J0857.9-1949_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882702/ft1_4FGL_J0857.9-1949_daily_bin1299.fits outfile=/scratch/kocevski/882702/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin1299.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=576028801.0 tmax=576288001.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.82
user 3.39
sys 1.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.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/882702/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin1299.fits evtable="EVENTS" outfile="/scratch/kocevski/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.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 1.66
user 0.33
sys 1.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/882702/ltcube_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.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/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits
.....................!
real 13.61
user 11.94
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/882702/ltcube_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.fits outfile=/scratch/kocevski/882702/expmap_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.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/882702/ltcube_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.fits
.....................!
real 194.04
user 186.02
sys 6.78

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/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits scfile=/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits outfile=/scratch/kocevski/882702/cmap_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.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 1.58
user 0.37
sys 1.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits scfile=/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits outfile=/scratch/kocevski/882702/cmap_HighResolution_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.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 1.70
user 0.39
sys 1.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/882702/Model_4FGL_J0857.9-1949_daily_bin1299.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/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits.....................!
real 75.01
user 72.06
sys 2.68

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits', '/scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits', expMap='/scratch/kocevski/882702/expmap_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.fits', expCube='/scratch/kocevski/882702/ltcube_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/882702/Model_4FGL_J0857.9-1949_daily_bin1299.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/882702/ft1_filtered_4FGL_J0857.9-1949_daily_bin1299.fits
Spacecraft file(s): /scratch/kocevski/882702/ft2_4FGL_J0857.9-1949_daily_bin1299.fits
Exposure map: /scratch/kocevski/882702/expmap_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.fits
Exposure cube: /scratch/kocevski/882702/ltcube_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/882702/Model_4FGL_J0857.9-1949_daily_bin1299.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) = 6026.15665693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    48.025       1.0000         .10000E-03   10000.    
     3 'norm      '    .61117       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.887       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.9883       1.0000         .10000E-03   10000.    
     8 'norm      '    .63296E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7642       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.871       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2857       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92184       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=   6026.137     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1609 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5287       -.76645E-08** at limit **
   2  norm          48.017        31.957        .23239E-06    .10675E-03
   3  norm          .61054        3.9671       -.16483E-05    .21178E-03
   4  norm          .10000E-03    3.1625        .47404E-07** at limit **
   5  Prefactor     12.959        33.836       -.40351E-05   -.18815E-03
   6  Prefactor     .10000E-03    26.431        .67174E-06** at limit **
   7  norm          8.9710        10.534        .16743E-05    .44616E-03
   8  norm          .10001E-03    10.503        .76638E-05** at limit **
   9  Prefactor     .10000E-03    8.7263       -.22524E-06** at limit **
  10  Prefactor     7.7146        17.058        .28946E-05    .86689E-04
  11  Prefactor     .10000E-03    7.7911       -.11054E-06** at limit **
  12  Prefactor     23.539        20.654       -.38020E-06   -.10013E-04
  13  Prefactor     43.884        51.024       -.10334E-05   -.10787E-04
  14  Prefactor     .10000E-03    20.332       -.44877E-06** at limit **
  15  Prefactor     .10000E-03    14.175       -.17343E-06** at limit **
  16  Normalizat    1.2853        .26445       -.35863E-06    .51343E-04
  17  Prefactor     .92193        .10757        .13151E-05    .12066E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 48.0167
  norm       = 0.610538
  norm       = 0.0001
  Prefactor  = 12.9593
  Prefactor  = 0.0001
  norm       = 8.97101
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 7.71462
  Prefactor  = 0.0001
  Prefactor  = 23.5388
  Prefactor  = 43.8845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28532
  Prefactor  = 0.921926
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.137     FROM HESSE     STATUS=OK           219 CALLS     1828 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5300        .12056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          48.017        31.975        .57862E-04   -1.4321    
   3  norm          .61054        4.0305        .29718E-03   -1.5552    
   4  norm          .10000E-03    3.1701        .13478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.959        34.125        .11158E-03   -1.4988    
   6  Prefactor     .10000E-03    26.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.9710        10.550        .13369E-03   -1.5109    
   8  norm          .10001E-03    10.991        .21723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7146        16.826        .14391E-03   -1.5152    
  11  Prefactor     .10000E-03    7.8690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.539        20.689        .82560E-04   -1.4737    
  13  Prefactor     43.884        51.205        .60527E-04   -1.4382    
  14  Prefactor     .10000E-03    20.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2853        .29509        .34819E-03   -.84005    
  17  Prefactor     .92193        .12307        .17335E-03   -.95379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53224e-09
Minuit parameter uncertainties:
  1  4.35807e-06
  2  31.9869
  3  3.13741
  4  1.09417e-05
  5  34.1761
  6  0.000129418
  7  10.5522
  8  0.000588566
  9  0.000116092
  10  16.836
  11  2.96238e-05
  12  20.6954
  13  51.2562
  14  0.000119403
  15  7.05251e-05
  16  0.295472
  17  0.123112
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  1.161e-04  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:  9.219e-01  1.231e-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.285e+00  2.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 134.491 -19.817
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/882702/likelihoodResults_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.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) = 6026.13786044
delta logL = -0.00053584662146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6026.13732525
delta logL = -6.58552380628e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5370       1.0000          .0000       10.000    
     3 'Normalizat'    1.2851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92204       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=   6026.137     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0349        .90712E-02** at limit **
   2  Index         2.5520        6.2730        .50000       -.15247E-04
   3  Normalizat    1.2853        .23962        .78668E-01    .92496E-04
   4  Prefactor     .92192        .10364        .45285E-01    .15359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.55195
  Normalizat = 1.28534
  Prefactor  = 0.92192
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.137     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2069.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5520        7.4555        .50000       -.51164    
   3  Normalizat    1.2853        .25569        .34820E-03   -.84005    
   4  Prefactor     .92192        .11049        .17335E-03   -.95379    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31086e-08
Minuit parameter uncertainties:
  1  0.00229083
  2  68.4972
  3  0.255942
  4  0.110519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882702': 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) = 6026.13732448
delta logL = 1.05072103906e-07

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  2.291e-03  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  2.552e+00  6.850e+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:  9.219e-01  1.105e-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.285e+00  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/882702/cmap_HighResolution_576028801_576288001_4FGL_J0857.9-1949_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-08-30 18:06:50.878104', job_id='882702', GAL2='0.92', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630372010.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1299' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 18:06:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 882702: <4FGL_J0857.9-1949_daily_bin1299> in cluster <slac> Done

Job <4FGL_J0857.9-1949_daily_bin1299> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 17:55:46 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 17:55:47 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:55:47 2021
Terminated at Mon Aug 30 18:06:51 2021
Results reported at Mon Aug 30 18:06:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin1299 134.491 -19.8175 576028801 576288001 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 :                                   573.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            665 sec.

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

