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


Performing analysis on: 4FGL_J0857.9-1949_daily_bin1056
RA = 134.491, Dec = -19.8175
tmin = 513043201, tmax = 513302401
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='882343', job_status='RUN', time_executed='2021-08-30 17:56:05.002947', time_epoch_executed='1630371365.0' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882343

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882343/ft1_4FGL_J0857.9-1949_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882343/ft1_4FGL_J0857.9-1949_daily_bin1056.fits outfile=/scratch/kocevski/882343/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin1056.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=513043201.0 tmax=513302401.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 7.12
user 6.12
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.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/882343/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/882343/ft1_filtered_4FGL_J0857.9-1949_daily_bin1056.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.16
user 0.33
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/882343/ft1_filtered_4FGL_J0857.9-1949_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/882343/ltcube_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.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/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.fits
.....................!
real 12.98
user 11.80
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882343/ft1_filtered_4FGL_J0857.9-1949_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/882343/ltcube_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.fits outfile=/scratch/kocevski/882343/expmap_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.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/882343/ltcube_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.fits
.....................!
real 191.64
user 185.56
sys 5.45

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/882343/ft1_filtered_4FGL_J0857.9-1949_daily_bin1056.fits scfile=/scratch/kocevski/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.fits outfile=/scratch/kocevski/882343/cmap_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=134.491 yref=-19.8175 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.26
user 0.38
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/882343/ft1_filtered_4FGL_J0857.9-1949_daily_bin1056.fits scfile=/scratch/kocevski/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.fits outfile=/scratch/kocevski/882343/cmap_HighResolution_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=134.491 yref=-19.8175 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.20
user 0.38
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/882343/ft1_filtered_4FGL_J0857.9-1949_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/882343/ft2_4FGL_J0857.9-1949_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/882343/Model_4FGL_J0857.9-1949_daily_bin1056.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/882343/ft1_filtered_4FGL_J0857.9-1949_daily_bin1056.fits.....................!
real 115.49
user 110.44
sys 1.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    24.823       1.0000         .10000E-03   10000.    
     3 'norm      '    9.2145       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12865E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    14.814       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3150       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10657E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .97403       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1135       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=   10451.14     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1641 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.003       -.14753E-05** at limit **
   2  norm          24.824        25.885        .80510E-07    .22241E-04
   3  norm          9.2147        4.2281        .52098E-08    .89864E-04
   4  norm          6.4196        8.0569       -.20541E-06    .61556E-04
   5  Prefactor     26.330        24.654       -.25241E-06    .62941E-04
   6  Prefactor     .10058E-03    1365.4       -.85199E-06** at limit **
   7  norm          14.813        7.9952       -.11305E-06    .23480E-03
   8  norm          .10000E-03    .81606       -.16144E-06** at limit **
   9  Prefactor     7.3121        7.4346       -.34647E-06    .16409E-03
  10  Prefactor     .10000E-03    6.1393       -.52368E-06** at limit **
  11  Prefactor     .10000E-03    2.9806       -.14676E-05** at limit **
  12  Prefactor     .10003E-03    34.376        .15684E-04** at limit **
  13  Prefactor     .10005E-03    112.60       -.60724E-05** at limit **
  14  Prefactor     .10000E-03    23.859       -.80325E-06** at limit **
  15  Prefactor     .10000E-03    3.2362       -.29104E-06** at limit **
  16  Normalizat    .97405        .18626        .44606E-05    .70275E-03
  17  Prefactor     1.1134        .89136E-01   -.97239E-06    .15917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 24.8243
  norm       = 9.21465
  norm       = 6.41963
  Prefactor  = 26.3296
  Prefactor  = 0.00010058
  norm       = 14.8127
  norm       = 0.0001
  Prefactor  = 7.31212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.000100048
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.974049
  Prefactor  = 1.11341
 **********
 **   18 **HESSE 
 **********

 FCN=   10451.14     FROM HESSE     STATUS=OK           219 CALLS     1860 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          24.824        25.907        .80401E-04   -1.4711    
   3  norm          9.2147        4.2278        .13203E-03   -1.5101    
   4  norm          6.4196        8.0437        .15835E-03   -1.5201    
   5  Prefactor     26.330        24.672        .78068E-04   -1.4681    
   6  Prefactor     .10058E-03    1359.6        .36349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.813        7.9977        .10406E-03   -1.4938    
   8  norm          .10000E-03    .82287        .90273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3121        7.4419        .14830E-03   -1.5167    
  10  Prefactor     .10000E-03    6.1988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.407        .33381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    36.277        .51215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    119.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2547        .17980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .97405        .21708        .38306E-03   -.93905    
  17  Prefactor     1.1134        .10080        .17023E-03   -.89039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22078e-09
Minuit parameter uncertainties:
  1  0.000396999
  2  25.9191
  3  4.22793
  4  8.04508
  5  24.6817
  6  0.0575407
  7  7.99825
  8  1.07746e-05
  9  7.4428
  10  9.736e-05
  11  4.32498e-05
  12  0.00224146
  13  0.00479835
  14  0.0002979
  15  3.90061e-05
  16  0.217276
  17  0.10082
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  7.312e+00  7.443e+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.113e+00  1.008e-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:  9.740e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 134.491 -19.817
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.39e-08 +/- 6.50e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.84e-05

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

Saving results to:
/scratch/kocevski/882343/likelihoodResults_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.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) = 10446.5480974
delta logL = 4.59039079585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10446.3355209
delta logL = 4.80296726793

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21408       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5761       1.0000          .0000       10.000    
     3 'Normalizat'    .80326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1630       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=   10446.34     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21339        .88164        .38102E-02    .19618E-02
   2  Index         5.5780        2.0479        .93139E-01    .25018E-03
   3  Normalizat    .80321        .67326E-01    .93943E-01    .48404E-04
   4  Prefactor     1.1631        .31885E-01    .35570E-01   -.12304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.21339
  Index      = 5.578
  Normalizat = 0.803207
  Prefactor  = 1.16305
 **********
 **   18 **HESSE 
 **********

 FCN=   10446.34     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21339        1.4795        .17058E-04   -1.5616    
   2  Index         5.5780        2.7820        .38601E-02    .11586    
   3  Normalizat    .80321        .19937        .41621E-03   -.99950    
   4  Prefactor     1.1631        .92755E-01    .16669E-03   -.87476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.56887e-07
Minuit parameter uncertainties:
  1  1.12354
  2  2.9529
  3  0.199555
  4  0.0927677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882343': 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) = 10446.3355201
delta logL = 4.80296810412

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  2.134e-01  1.124e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  5.578e+00  2.953e+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.163e+00  9.277e-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:  8.032e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.54
Ra Dec: 134.491 -19.817
Photon Index (Free Index): 5.58 +/- 2.95
Photon Flux (Free Index): 2.34e-07 +/- 9.61e-08
Energy Flux (Free Index): 2.98e-05 +/- 1.53e-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/882343/cmap_HighResolution_513043201_513302401_4FGL_J0857.9-1949_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='6.39e-08', energy_flux2='2.98e-05', photon_flux_error='6.50e-08', dlogl='4.80e+00', energy_flux='1.81e-05', photon_flux2='2.34e-07', job_status='DONE', time_completed='2021-08-30 18:08:34.016741', photon_index_error2='2.95', photon_index2='5.58', ts='1.13', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.53e-05', EG='0.97', time_epoch_completed='1630372114.02', return_code='0', job_id='882343', GAL2='1.16', EG2='0.80', return_code2='102', energy_flux_error='1.84e-05', photon_flux_error2='9.61e-08', ts2='11.54', photon_index='2.52' WHERE bin_id='1056' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 18:08:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 882343: <4FGL_J0857.9-1949_daily_bin1056> in cluster <slac> Done

Job <4FGL_J0857.9-1949_daily_bin1056> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 17:55:19 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 17:55:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 17:55:20 2021
Terminated at Mon Aug 30 18:08:34 2021
Results reported at Mon Aug 30 18:08:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin1056 134.491 -19.8175 513043201 513302401 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 :                                   741.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

