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


Performing analysis on: 4FGL_J0857.9-1949_daily_bin334
RA = 134.491, Dec = -19.8175
tmin = 325900801, tmax = 326160001
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='877247', job_status='RUN', time_executed='2021-08-30 17:44:57.425010', time_epoch_executed='1630370697.43' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877247/ft1_4FGL_J0857.9-1949_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877247/ft2_4FGL_J0857.9-1949_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877247/ft1_4FGL_J0857.9-1949_daily_bin334.fits outfile=/scratch/kocevski/877247/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin334.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=325900801.0 tmax=326160001.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.51
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877247/ft2_4FGL_J0857.9-1949_daily_bin334.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/877247/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin334.fits evtable="EVENTS" outfile="/scratch/kocevski/877247/ft1_filtered_4FGL_J0857.9-1949_daily_bin334.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877247/ft1_filtered_4FGL_J0857.9-1949_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/877247/ft2_4FGL_J0857.9-1949_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/877247/ltcube_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.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/877247/ft2_4FGL_J0857.9-1949_daily_bin334.fits
.....................!
real 13.43
user 13.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877247/ft1_filtered_4FGL_J0857.9-1949_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/877247/ft2_4FGL_J0857.9-1949_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/877247/ltcube_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.fits outfile=/scratch/kocevski/877247/expmap_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.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/877247/ltcube_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.fits
.....................!
real 190.55
user 185.15
sys 5.00

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/877247/ft1_filtered_4FGL_J0857.9-1949_daily_bin334.fits scfile=/scratch/kocevski/877247/ft2_4FGL_J0857.9-1949_daily_bin334.fits outfile=/scratch/kocevski/877247/cmap_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877247/ft1_filtered_4FGL_J0857.9-1949_daily_bin334.fits scfile=/scratch/kocevski/877247/ft2_4FGL_J0857.9-1949_daily_bin334.fits outfile=/scratch/kocevski/877247/cmap_HighResolution_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877247/ft1_filtered_4FGL_J0857.9-1949_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/877247/ft2_4FGL_J0857.9-1949_daily_bin334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877247/Model_4FGL_J0857.9-1949_daily_bin334.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/877247/ft1_filtered_4FGL_J0857.9-1949_daily_bin334.fits.....................!
real 117.81
user 116.07
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4350       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.571       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.932       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5464       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.770       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1839       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .76984       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0253       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=   11058.73     FROM MIGRAD    STATUS=CONVERGED    303 CALLS     1580 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5121        .12142E-06** at limit **
   2  norm          .10000E-03    29.280        .44807E-06** at limit **
   3  norm          3.4349        2.6331        .33141E-07   -.39979E-04
   4  norm          3.3964        2.0820        .49250E-06   -.20233E-02
   5  Prefactor     17.570        20.576       -.10639E-05   -.92980E-06
   6  Prefactor     11.927        33.346       -.11481E-04   -.17664E-04
   7  norm          .10000E-03    2.0406        .15099E-06** at limit **
   8  norm          4.5464        2.6431        .53349E-07   -.36124E-03
   9  Prefactor     7.2147        5.3606       -.86526E-06   -.46457E-04
  10  Prefactor     6.0149        6.3311       -.32651E-06    .16502E-04
  11  Prefactor     3.1403        6.4546       -.21431E-05   -.71249E-04
  12  Prefactor     6.8984        9.6571        .46364E-08   -.28824E-03
  13  Prefactor     27.771        24.012        .14183E-05    .64566E-04
  14  Prefactor     14.132        25.195       -.23184E-05    .43065E-04
  15  Prefactor     1.1877        27.765       -.10214E-04   -.24401E-04
  16  Normalizat    .76976        .17198        .15336E-05    .13286E-03
  17  Prefactor     1.0254        .76174E-01    .21627E-06    .21489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.43492
  norm       = 3.39638
  Prefactor  = 17.5696
  Prefactor  = 11.9269
  norm       = 0.0001
  norm       = 4.54637
  Prefactor  = 7.21466
  Prefactor  = 6.01492
  Prefactor  = 3.14029
  Prefactor  = 6.89843
  Prefactor  = 27.7713
  Prefactor  = 14.1323
  Prefactor  = 1.18768
  Normalizat = 0.76976
  Prefactor  = 1.02535
 **********
 **   18 **HESSE 
 **********

 FCN=   11058.73     FROM HESSE     STATUS=OK           231 CALLS     1811 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5170        .12627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    29.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4349        2.6355        .14415E-03   -1.5337    
   4  norm          3.3964        5.1401        .10976E-02   -1.5339    
   5  Prefactor     17.570        20.613        .95549E-04   -1.4869    
   6  Prefactor     11.927        33.544        .11597E-03   -1.5017    
   7  norm          .10000E-03    2.0463        .14666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5464        2.6559        .62724E-03   -1.5281    
   9  Prefactor     7.2147        5.3647        .14934E-03   -1.5171    
  10  Prefactor     6.0149        6.3344        .16372E-03   -1.5217    
  11  Prefactor     3.1403        6.4696        .22877E-03   -1.5354    
  12  Prefactor     6.8984        9.8774        .76374E-03   -1.5183    
  13  Prefactor     27.771        24.079        .76023E-04   -1.4654    
  14  Prefactor     14.132        25.055        .10654E-03   -1.4956    
  15  Prefactor     1.1877        28.786        .41965E-03   -1.5490    
  16  Normalizat    .76976        .19643        .37620E-03   -1.0120    
  17  Prefactor     1.0254        .86790E-01    .15372E-03   -.91889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52349e-09
Minuit parameter uncertainties:
  1  1.08644e-06
  2  6.39995e-05
  3  2.63562
  4  5.14072
  5  20.6209
  6  33.597
  7  6.33221e-07
  8  2.65593
  9  5.3651
  10  6.33508
  11  6.47107
  12  9.87976
  13  24.0872
  14  25.0741
  15  11.7001
  16  0.196613
  17  0.0868022
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  7.215e+00  5.365e+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.025e+00  8.680e-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:  7.698e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 134.491 -19.817
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/877247/likelihoodResults_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.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) = 11054.0511226
delta logL = 4.67478473064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11053.966912
delta logL = 4.75899538635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51093E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.1824       1.0000          .0000       10.000    
     3 'Normalizat'    .62948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0690       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=   11053.97     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      276 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50900E-01    .19926        .18326E-02   -.48909E-02
   2  Index         6.1846        1.9712        .92775E-01    .83786E-04
   3  Normalizat    .62973        .58614E-01    .92897E-01    .31575E-05
   4  Prefactor     1.0689        .27295E-01    .38904E-01   -.80511E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0509
  Index      = 6.18461
  Normalizat = 0.629733
  Prefactor  = 1.06893
 **********
 **   18 **HESSE 
 **********

 FCN=   11053.97     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50900E-01    .32478        .81891E-05   -1.5663    
   2  Index         6.1846        2.6616        .38686E-02    .23920    
   3  Normalizat    .62973        .16849        .41161E-03   -1.0674    
   4  Prefactor     1.0689        .77661E-01    .15067E-03   -.90466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.00955e-10
Minuit parameter uncertainties:
  1  0.256898
  2  2.81687
  3  0.168629
  4  0.077669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877247': 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) = 11053.9669102
delta logL = 4.75899717741

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  5.090e-02  2.569e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  6.185e+00  2.817e+00  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.069e+00  7.767e-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:  6.297e-01  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.69
Ra Dec: 134.491 -19.817
Photon Index (Free Index): 6.18 +/- 2.82
Photon Flux (Free Index): 1.60e-07 +/- 5.95e-08
Energy Flux (Free Index): 1.98e-05 +/- 8.51e-06

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/877247/cmap_HighResolution_325900801_326160001_4FGL_J0857.9-1949_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='1.98e-05', photon_flux_error='4.68e-08', dlogl='4.76e+00', energy_flux='1.79e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-08-30 17:57:11.466088', photon_index_error2='2.82', photon_index2='6.18', ts='2.29', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='8.51e-06', EG='0.77', time_epoch_completed='1630371431.47', return_code='0', job_id='877247', GAL2='1.07', EG2='0.63', return_code2='102', energy_flux_error='1.33e-05', photon_flux_error2='5.95e-08', ts2='12.69', photon_index='2.52' WHERE bin_id='334' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 17:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 877247: <4FGL_J0857.9-1949_daily_bin334> in cluster <slac> Done

Job <4FGL_J0857.9-1949_daily_bin334> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 17:40:59 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 17:41:00 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:41:00 2021
Terminated at Mon Aug 30 17:57:12 2021
Results reported at Mon Aug 30 17:57:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin334 134.491 -19.8175 325900801 326160001 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 :                                   729.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

