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


Performing analysis on: 4FGL_J0857.9-1949_daily_bin287
RA = 134.491, Dec = -19.8175
tmin = 313718401, tmax = 313977601
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='877190', job_status='RUN', time_executed='2021-08-30 17:41:14.596291', time_epoch_executed='1630370474.6' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877190/ft1_4FGL_J0857.9-1949_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877190/ft2_4FGL_J0857.9-1949_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877190/ft1_4FGL_J0857.9-1949_daily_bin287.fits outfile=/scratch/kocevski/877190/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin287.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=313718401.0 tmax=313977601.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.39
user 3.13
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877190/ft2_4FGL_J0857.9-1949_daily_bin287.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/877190/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin287.fits evtable="EVENTS" outfile="/scratch/kocevski/877190/ft1_filtered_4FGL_J0857.9-1949_daily_bin287.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.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877190/ft1_filtered_4FGL_J0857.9-1949_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/877190/ft2_4FGL_J0857.9-1949_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/877190/ltcube_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.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/877190/ft2_4FGL_J0857.9-1949_daily_bin287.fits
.....................!
real 11.85
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877190/ft1_filtered_4FGL_J0857.9-1949_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/877190/ft2_4FGL_J0857.9-1949_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/877190/ltcube_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.fits outfile=/scratch/kocevski/877190/expmap_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.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/877190/ltcube_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.fits
.....................!
real 190.40
user 185.65
sys 4.07

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/877190/ft1_filtered_4FGL_J0857.9-1949_daily_bin287.fits scfile=/scratch/kocevski/877190/ft2_4FGL_J0857.9-1949_daily_bin287.fits outfile=/scratch/kocevski/877190/cmap_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.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 0.60
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877190/ft1_filtered_4FGL_J0857.9-1949_daily_bin287.fits scfile=/scratch/kocevski/877190/ft2_4FGL_J0857.9-1949_daily_bin287.fits outfile=/scratch/kocevski/877190/cmap_HighResolution_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.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 0.57
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877190/ft1_filtered_4FGL_J0857.9-1949_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/877190/ft2_4FGL_J0857.9-1949_daily_bin287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877190/Model_4FGL_J0857.9-1949_daily_bin287.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/877190/ft1_filtered_4FGL_J0857.9-1949_daily_bin287.fits.....................!
real 79.78
user 77.94
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.0649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.732       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1390       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0301       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9398       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.191       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2526       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94203       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=   6781.371     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1581 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9540        .13471E-06** at limit **
   2  norm          .10000E-03    25.889        .27330E-06** at limit **
   3  norm          .10000E-03    3.1783        .27499E-06** at limit **
   4  norm          4.0644        8.1740        .25845E-06   -.36881E-04
   5  Prefactor     .10000E-03    36.391        .33081E-06** at limit **
   6  Prefactor     27.645        45.273       -.11557E-04   -.38237E-03
   7  norm          3.1384        8.1959        .11232E-04   -.45238E-03
   8  norm          7.0304        4.3848       -.98061E-06   -.91714E-04
   9  Prefactor     .10000E-03    8.8436        .42256E-06** at limit **
  10  Prefactor     .10000E-03    21.094       -.17442E-05** at limit **
  11  Prefactor     4.9369        10.594        .28609E-07   -.20170E-04
  12  Prefactor     .10000E-03    17.658        .99495E-06** at limit **
  13  Prefactor     9.0210        71.487       -.77511E-05   -.79674E-04
  14  Prefactor     .10000E-03    31.757        .13433E-05** at limit **
  15  Prefactor     12.189        18.330        .23700E-06   -.71966E-05
  16  Normalizat    1.2530        .24334       -.19915E-05    .23598E-04
  17  Prefactor     .94190        .98935E-01    .71074E-06   -.23262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.06439
  Prefactor  = 0.0001
  Prefactor  = 27.6448
  norm       = 3.13844
  norm       = 7.03042
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.93695
  Prefactor  = 0.0001
  Prefactor  = 9.02104
  Prefactor  = 0.0001
  Prefactor  = 12.1891
  Normalizat = 1.25302
  Prefactor  = 0.941899
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.371     FROM HESSE     STATUS=OK           221 CALLS     1802 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9633        .13822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.2445        .14326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.0644        8.1636        .19998E-03   -1.5305    
   5  Prefactor     .10000E-03    36.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.645        47.336        .38038E-03   -1.4656    
   7  norm          3.1384        8.3554        .11440E-02   -1.5354    
   8  norm          7.0304        4.3876        .12816E-03   -1.5178    
   9  Prefactor     .10000E-03    9.2545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9369        10.614        .18096E-03   -1.5264    
  12  Prefactor     .10000E-03    17.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0210        73.625        .13317E-03   -1.5107    
  14  Prefactor     .10000E-03    31.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.189        18.350        .11473E-03   -1.5010    
  16  Normalizat    1.2530        .28296        .35167E-03   -.84980    
  17  Prefactor     .94190        .11499        .16962E-03   -.94692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04447e-09
Minuit parameter uncertainties:
  1  5.37005e-07
  2  2.59378e-05
  3  3.02707e-06
  4  8.16585
  5  4.99242e-05
  6  47.4002
  7  8.35847
  8  4.38777
  9  1.22532e-05
  10  0.000300172
  11  10.6178
  12  9.2625e-05
  13  51.6298
  14  0.000166558
  15  18.3585
  16  0.283311
  17  0.115018
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  1.225e-05  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.419e-01  1.150e-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.253e+00  2.833e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877190/likelihoodResults_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.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) = 6781.37122894
delta logL = -0.000516112699188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6781.37071107
delta logL = 1.75923742063e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13199E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4099       1.0000          .0000       10.000    
     3 'Normalizat'    1.2530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94188       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=   6781.234     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      309 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6867        3.9671        .90712E-02    .54549E-03
   2  Index         1.5560        .68640        .23866       -.65340E-04
   3  Normalizat    1.2606        .22913        .79253E-01   -.97728E-05
   4  Prefactor     .93615        .98157E-01    .45537E-01   -.23623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68672
  Index      = 1.55605
  Normalizat = 1.2606
  Prefactor  = 0.936148
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.234     FROM HESSE     STATUS=OK            31 CALLS      340 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6867        4.1704        .23854E-03   -1.5448    
   2  Index         1.5560        .91169        .14927E-01   -.75982    
   3  Normalizat    1.2606        .26455        .35080E-03   -.84750    
   4  Prefactor     .93615        .11352        .17006E-03   -.94889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82789e-09
Minuit parameter uncertainties:
  1  4.17115
  2  0.921586
  3  0.264832
  4  0.113547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877190': 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) = 6781.2341992
delta logL = 0.136513629504

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  1.687e+00  4.171e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  1.556e+00  9.216e-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.361e-01  1.135e-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.261e+00  2.648e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/877190/cmap_HighResolution_313718401_313977601_4FGL_J0857.9-1949_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.53e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-30 17:50:40.212541', job_id='877190', GAL2='0.94', fit_tolerance='1e-08', EG2='1.26', EG='1.25', time_epoch_completed='1630371040.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.37e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='287' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 17:50:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 877190: <4FGL_J0857.9-1949_daily_bin287> in cluster <slac> Done

Job <4FGL_J0857.9-1949_daily_bin287> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 17:40:54 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 17:40:55 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:40:55 2021
Terminated at Mon Aug 30 17:50:40 2021
Results reported at Mon Aug 30 17:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin287 134.491 -19.8175 313718401 313977601 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 :                                   557.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            586 sec.

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

