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


Performing analysis on: 4FGL_J0857.9-1949_daily_bin215
RA = 134.491, Dec = -19.8175
tmin = 295056001, tmax = 295315201
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='877086', job_status='RUN', time_executed='2021-08-30 17:44:05.470424', time_epoch_executed='1630370645.47' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877086/ft1_4FGL_J0857.9-1949_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877086/ft2_4FGL_J0857.9-1949_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877086/ft1_4FGL_J0857.9-1949_daily_bin215.fits outfile=/scratch/kocevski/877086/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin215.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=295056001.0 tmax=295315201.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 6.59
user 2.39
sys 4.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877086/ft1_filtered_4FGL_J0857.9-1949_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/877086/ft2_4FGL_J0857.9-1949_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/877086/ltcube_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.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/877086/ft2_4FGL_J0857.9-1949_daily_bin215.fits
.....................!
real 17.01
user 12.15
sys 4.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877086/ft1_filtered_4FGL_J0857.9-1949_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/877086/ft2_4FGL_J0857.9-1949_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/877086/ltcube_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.fits outfile=/scratch/kocevski/877086/expmap_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.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/877086/ltcube_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.fits
.....................!
real 197.34
user 185.94
sys 10.84

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/877086/ft1_filtered_4FGL_J0857.9-1949_daily_bin215.fits scfile=/scratch/kocevski/877086/ft2_4FGL_J0857.9-1949_daily_bin215.fits outfile=/scratch/kocevski/877086/cmap_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.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 4.52
user 0.38
sys 4.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877086/ft1_filtered_4FGL_J0857.9-1949_daily_bin215.fits scfile=/scratch/kocevski/877086/ft2_4FGL_J0857.9-1949_daily_bin215.fits outfile=/scratch/kocevski/877086/cmap_HighResolution_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.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 4.45
user 0.41
sys 3.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877086/ft1_filtered_4FGL_J0857.9-1949_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/877086/ft2_4FGL_J0857.9-1949_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877086/Model_4FGL_J0857.9-1949_daily_bin215.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/877086/ft1_filtered_4FGL_J0857.9-1949_daily_bin215.fits.....................!
real 119.92
user 113.05
sys 6.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    12.728       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    56.397       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.693       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.955       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.611       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.310       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26318E-02   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0272       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0430       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=   10071.81     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1400 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2403        .21416E-07** at limit **
   2  norm          12.740        29.326        .17993E-05    .97151E-04
   3  norm          .10000E-03    1.0623        .11150E-06** at limit **
   4  norm          .10000E-03    2.5315        .10445E-06** at limit **
   5  Prefactor     .10000E-03    22.551       -.25786E-07** at limit **
   6  Prefactor     .10000E-03    16.347       -.27609E-07** at limit **
   7  norm          56.394        14.483       -.21920E-06    .10023E-03
   8  norm          4.4235        3.2088        .14527E-05   -.30265E-03
   9  Prefactor     5.1675        4.1328        .31141E-06    .31470E-03
  10  Prefactor     6.7940        18.326       -.24655E-05   -.10396E-03
  11  Prefactor     10.692        8.6004       -.13277E-06    .50823E-06
  12  Prefactor     24.959        15.348        .62061E-07   -.48538E-05
  13  Prefactor     37.596        31.005       -.13749E-05   -.24399E-03
  14  Prefactor     28.295        27.849       -.11840E-05   -.22435E-03
  15  Prefactor     .10002E-03    10.094        .75936E-06** at limit **
  16  Normalizat    1.0275        .21518        .22601E-05   -.12091E-03
  17  Prefactor     1.0428        .91028E-01   -.82891E-06    .11105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.7399
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 56.3939
  norm       = 4.42345
  Prefactor  = 5.16749
  Prefactor  = 6.79401
  Prefactor  = 10.6917
  Prefactor  = 24.9585
  Prefactor  = 37.5958
  Prefactor  = 28.2953
  Prefactor  = 0.000100018
  Normalizat = 1.0275
  Prefactor  = 1.04282
 **********
 **   18 **HESSE 
 **********

 FCN=   10071.81     FROM HESSE     STATUS=OK           221 CALLS     1621 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.740        29.565        .11228E-03   -1.4994    
   3  norm          .10000E-03    1.0681        .10095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.5549        .15585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          56.394        14.508        .53417E-04   -1.4205    
   8  norm          4.4235        3.2763        .72979E-03   -1.5287    
   9  Prefactor     5.1675        4.1506        .17643E-03   -1.5253    
  10  Prefactor     6.7940        18.350        .15372E-03   -1.5187    
  11  Prefactor     10.692        8.5998        .12252E-03   -1.5054    
  12  Prefactor     24.959        15.365        .80189E-04   -1.4708    
  13  Prefactor     37.596        31.580        .65352E-04   -1.4481    
  14  Prefactor     28.295        28.245        .75296E-04   -1.4644    
  15  Prefactor     .10002E-03    47.249        .60625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0275        .23936        .38684E-03   -.92115    
  17  Prefactor     1.0428        .10282        .17009E-03   -.91316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81586e-10
Minuit parameter uncertainties:
  1  1.71272e-06
  2  29.5987
  3  9.61519e-07
  4  3.78818e-06
  5  3.34939e-05
  6  5.93573e-06
  7  14.5093
  8  3.27646
  9  4.15083
  10  18.3651
  11  8.60084
  12  15.3678
  13  31.5943
  14  28.2579
  15  0.00183528
  16  0.239611
  17  0.102836
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  5.167e+00  4.151e+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.043e+00  1.028e-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.028e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 134.491 -19.817
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/877086/likelihoodResults_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.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): 0
logL (Free Index) = 10071.3100531
delta logL = 0.502185712559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10071.2967728
delta logL = 0.515466045632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8278       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8945       1.0000          .0000       10.000    
     3 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0383       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=   10071.30     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8301        6.1676        .41591E-02    .25656E-04
   2  Index         1.8950        .55576        .26434       -.62003E-04
   3  Normalizat    1.0481        .19763        .86589E-01    .64808E-04
   4  Prefactor     1.0383        .87597E-01    .40649E-01   -.26380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.83013
  Index      = 1.89497
  Normalizat = 1.04813
  Prefactor  = 1.03829
 **********
 **   18 **HESSE 
 **********

 FCN=   10071.30     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8301        4.8365        .16636E-03   -1.5225    
   2  Index         1.8950        .56150        .10386E-01   -.67003    
   3  Normalizat    1.0481        .22340        .38343E-03   -.91435    
   4  Prefactor     1.0383        .99538E-01    .17038E-03   -.91464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68191e-11
Minuit parameter uncertainties:
  1  4.83687
  2  0.563435
  3  0.223596
  4  0.0995554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877086': 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) = 10071.2967724
delta logL = 0.515466370622

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  5.830e+00  4.837e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  1.895e+00  5.634e-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.038e+00  9.956e-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.048e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 134.491 -19.817
Photon Index (Free Index): 1.89 +/- 0.56
Photon Flux (Free Index): 2.56e-08 +/- 2.73e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/877086/cmap_HighResolution_295056001_295315201_4FGL_J0857.9-1949_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='2.33e-05', photon_flux_error='3.62e-08', dlogl='5.15e-01', energy_flux='1.28e-05', photon_flux2='2.56e-08', job_status='DONE', time_completed='2021-08-30 17:56:25.733295', photon_index_error2='0.56', photon_index2='1.89', ts='3.11', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='2.72e-05', EG='1.03', time_epoch_completed='1630371385.73', return_code='0', job_id='877086', GAL2='1.04', EG2='1.05', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.73e-08', ts2='4.14', photon_index='2.52' WHERE bin_id='215' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 17:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 877086: <4FGL_J0857.9-1949_daily_bin215> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin215 134.491 -19.8175 295056001 295315201 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 :                                   795.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

