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


Performing analysis on: 4FGL_J0857.9-1949_daily_bin280
RA = 134.491, Dec = -19.8175
tmin = 311904001, tmax = 312163201
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='877180', job_status='RUN', time_executed='2021-08-30 17:44:25.087511', time_epoch_executed='1630370665.09' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877180/ft1_4FGL_J0857.9-1949_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877180/ft2_4FGL_J0857.9-1949_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877180/ft1_4FGL_J0857.9-1949_daily_bin280.fits outfile=/scratch/kocevski/877180/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin280.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=311904001.0 tmax=312163201.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.62
user 3.23
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877180/ft1_filtered_4FGL_J0857.9-1949_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/877180/ft2_4FGL_J0857.9-1949_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/877180/ltcube_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.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/877180/ft2_4FGL_J0857.9-1949_daily_bin280.fits
.....................!
real 12.46
user 11.84
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877180/ft1_filtered_4FGL_J0857.9-1949_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/877180/ft2_4FGL_J0857.9-1949_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/877180/ltcube_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.fits outfile=/scratch/kocevski/877180/expmap_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.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/877180/ltcube_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.fits
.....................!
real 192.39
user 187.38
sys 4.32

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/877180/ft1_filtered_4FGL_J0857.9-1949_daily_bin280.fits scfile=/scratch/kocevski/877180/ft2_4FGL_J0857.9-1949_daily_bin280.fits outfile=/scratch/kocevski/877180/cmap_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.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.72
user 0.39
sys 0.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/877180/ft1_filtered_4FGL_J0857.9-1949_daily_bin280.fits scfile=/scratch/kocevski/877180/ft2_4FGL_J0857.9-1949_daily_bin280.fits outfile=/scratch/kocevski/877180/cmap_HighResolution_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.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.72
user 0.39
sys 0.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877180/ft1_filtered_4FGL_J0857.9-1949_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/877180/ft2_4FGL_J0857.9-1949_daily_bin280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877180/Model_4FGL_J0857.9-1949_daily_bin280.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/877180/ft1_filtered_4FGL_J0857.9-1949_daily_bin280.fits.....................!
real 116.96
user 115.08
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8404       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1916       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12419E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.974       1.0000         .10000E-03   10000.    
     7 'norm      '    6.4795       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7213       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11151E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0471       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98989       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=   11194.11     FROM MIGRAD    STATUS=CONVERGED    331 CALLS     1368 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8406        4.5294       -.64471E-06   -.24948E-03
   2  norm          .10000E-03    8.1495       -.21115E-06** at limit **
   3  norm          4.1918        2.3877        .10643E-06    .15412E-03
   4  norm          1.8797        5.0414       -.35863E-05   -.43483E-03
   5  Prefactor     .10000E-03    50.602        .94456E-07** at limit **
   6  Prefactor     42.976        31.840        .46198E-06    .22603E-04
   7  norm          6.4813        7.0887       -.48658E-06   -.58371E-04
   8  norm          .10000E-03    1.2897       -.10560E-06** at limit **
   9  Prefactor     3.1079        2.1215        .81224E-06   -.22411E-02
  10  Prefactor     11.587        9.2381        .68598E-06    .94672E-04
  11  Prefactor     5.7215        6.1353        .53995E-06    .49308E-04
  12  Prefactor     .10000E-03    2.4239       -.16698E-06** at limit **
  13  Prefactor     .10000E-03    68.906       -.24182E-05** at limit **
  14  Prefactor     .10000E-03    11.084       -.13891E-06** at limit **
  15  Prefactor     .10000E-03    2.8448       -.16109E-06** at limit **
  16  Normalizat    1.0471        .16881        .51158E-06    .12332E-03
  17  Prefactor     .98987        .75511E-01    .14136E-06    .27033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84057
  norm       = 0.0001
  norm       = 4.19181
  norm       = 1.87966
  Prefactor  = 0.0001
  Prefactor  = 42.9756
  norm       = 6.48132
  norm       = 0.0001
  Prefactor  = 3.1079
  Prefactor  = 11.5868
  Prefactor  = 5.72151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04707
  Prefactor  = 0.989872
 **********
 **   18 **HESSE 
 **********

 FCN=   11194.11     FROM HESSE     STATUS=OK           221 CALLS     1589 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8406        4.5671        .30748E-03   -1.5437    
   2  norm          .10000E-03    8.1663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1918        2.3900        .11968E-03   -1.5298    
   4  norm          1.8797        5.2635        .30367E-03   -1.5434    
   5  Prefactor     .10000E-03    51.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.976        31.864        .61153E-04   -1.4396    
   7  norm          6.4813        7.1014        .15767E-03   -1.5199    
   8  norm          .10000E-03    1.3288        .23453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1079        3.2308        .93501E-03   -1.5355    
  10  Prefactor     11.587        9.2437        .11769E-03   -1.5027    
  11  Prefactor     5.7215        6.1345        .16793E-03   -1.5230    
  12  Prefactor     .10000E-03    2.4277        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    70.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8487        .17429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0471        .19676        .34296E-03   -.91470    
  17  Prefactor     .98987        .87991E-01    .16146E-03   -.93068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12295e-09
Minuit parameter uncertainties:
  1  4.568
  2  5.98837e-06
  3  2.39
  4  5.26482
  5  2.86723e-05
  6  31.8766
  7  7.10228
  8  3.50853e-06
  9  3.23102
  10  9.24489
  11  6.13517
  12  3.08272e-06
  13  0.000248007
  14  8.02402e-06
  15  3.69239e-06
  16  0.1969
  17  0.0880038
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  3.108e+00  3.231e+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:  9.899e-01  8.800e-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.047e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 134.491 -19.817
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 7.70e-06 +/- 8.00e-06

TS (Fixed Index): 1.72
Ra Dec: 134.491 -19.817
Photon Flux Upper Limit: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/877180/likelihoodResults_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.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) = 11192.7428265
delta logL = 1.36421034049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11192.6932596
delta logL = 1.41377727286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9531       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3753       1.0000          .0000       10.000    
     3 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98904       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=   11192.69     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9542        1.9653        .74229E-02   -.35968E-03
   2  Index         1.3757        .33912        .27653       -.10586E-03
   3  Normalizat    1.0613        .16264        .77023E-01    .30291E-04
   4  Prefactor     .98901        .75079E-01    .46130E-01   -.13910E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95422
  Index      = 1.37574
  Normalizat = 1.06127
  Prefactor  = 0.989014
 **********
 **   18 **HESSE 
 **********

 FCN=   11192.69     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9542        3.0885        .14340E-03   -1.5428    
   2  Index         1.3757        .64264        .10063E-01   -.81082    
   3  Normalizat    1.0613        .18824        .34091E-03   -.91005    
   4  Prefactor     .98901        .87104E-01    .16149E-03   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01173e-11
Minuit parameter uncertainties:
  1  3.08872
  2  0.646429
  3  0.188357
  4  0.0871165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877180': 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) = 11192.6932591
delta logL = 1.41377771196

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  1.954e+00  3.089e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  1.376e+00  6.464e-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.890e-01  8.712e-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.061e+00  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 134.491 -19.817
Photon Index (Free Index): 1.38 +/- 0.65
Photon Flux (Free Index): 6.93e-09 +/- 1.04e-08
Energy Flux (Free Index): 3.32e-05 +/- 4.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/877180/cmap_HighResolution_311904001_312163201_4FGL_J0857.9-1949_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-03', comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='3.32e-05', photon_flux_error='2.82e-08', dlogl='1.41e+00', energy_flux='7.70e-06', photon_flux2='6.93e-09', job_status='DONE', time_completed='2021-08-30 17:56:17.776578', photon_index_error2='0.65', photon_index2='1.38', ts='1.72', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.56e-08', energy_flux_error2='4.72e-05', EG='1.05', time_epoch_completed='1630371377.78', return_code='0', job_id='877180', GAL2='0.99', EG2='1.06', return_code2='0', energy_flux_error='8.00e-06', photon_flux_error2='1.04e-08', ts2='4.55', photon_index='2.52' WHERE bin_id='280' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 17:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 877180: <4FGL_J0857.9-1949_daily_bin280> in cluster <slac> Done

Job <4FGL_J0857.9-1949_daily_bin280> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 17:40:53 2021
Job was executed on host(s) <bullet0041>, 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:56:18 2021
Results reported at Mon Aug 30 17:56:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin280 134.491 -19.8175 311904001 312163201 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 :                                   710.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

