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


Performing analysis on: 4FGL_J0857.9-1949_daily_bin1002
RA = 134.491, Dec = -19.8175
tmin = 499046401, tmax = 499305601
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='880935', job_status='RUN', time_executed='2021-08-30 17:54:11.303125', time_epoch_executed='1630371251.3' WHERE source_name='4FGL J0857.9-1949' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880935/ft1_4FGL_J0857.9-1949_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880935/ft2_4FGL_J0857.9-1949_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880935/ft1_4FGL_J0857.9-1949_daily_bin1002.fits outfile=/scratch/kocevski/880935/ft1_filteredMKT_4FGL_J0857.9-1949_daily_bin1002.fits ra=134.491 dec=-19.8175 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.29
user 4.04
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880935/ft1_filtered_4FGL_J0857.9-1949_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/880935/ft2_4FGL_J0857.9-1949_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/880935/ltcube_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.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/880935/ft2_4FGL_J0857.9-1949_daily_bin1002.fits
.....................!
real 11.76
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880935/ft1_filtered_4FGL_J0857.9-1949_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/880935/ft2_4FGL_J0857.9-1949_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/880935/ltcube_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.fits outfile=/scratch/kocevski/880935/expmap_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.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/880935/ltcube_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.fits
.....................!
real 189.69
user 185.16
sys 4.05

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/880935/ft1_filtered_4FGL_J0857.9-1949_daily_bin1002.fits scfile=/scratch/kocevski/880935/ft2_4FGL_J0857.9-1949_daily_bin1002.fits outfile=/scratch/kocevski/880935/cmap_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880935/ft1_filtered_4FGL_J0857.9-1949_daily_bin1002.fits scfile=/scratch/kocevski/880935/ft2_4FGL_J0857.9-1949_daily_bin1002.fits outfile=/scratch/kocevski/880935/cmap_HighResolution_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.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.59
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880935/ft1_filtered_4FGL_J0857.9-1949_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/880935/ft2_4FGL_J0857.9-1949_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880935/Model_4FGL_J0857.9-1949_daily_bin1002.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/880935/ft1_filtered_4FGL_J0857.9-1949_daily_bin1002.fits.....................!
real 82.87
user 81.58
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .45371       1.0000         .10000E-03   10000.    
     3 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .88758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11384E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.604       1.0000         .10000E-03   10000.    
     7 'norm      '    .97424       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15130E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17099E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1555       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99949       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6964.777     FROM MIGRAD    STATUS=FAILED       726 CALLS     1864 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7918        .13609E-02** at limit **
   2  norm          .34302        41.116        .12818        .12977E-03
   3  norm          .10000E-03    6.1989        .24648E-02** at limit **
   4  norm          .93023        19.054        .32304E-02    .10734E-02
   5  Prefactor     .10002E-03    132.77        .18142E-02** at limit **
   6  Prefactor     46.557        43.418        .58734E-04   -.27912E-04
   7  norm          .96781        23.264        .44333E-02    .21240E-02
   8  norm          .10000E-03    1.9216        .11223E-02** at limit **
   9  Prefactor     .41050E-01    9.2066        .52723E-01    .36962E-03
  10  Prefactor     .10000E-03    30.270        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.9839        .16233E-02** at limit **
  12  Prefactor     .31736        143.56        .53167E-02    .83588E-03
  13  Prefactor     .10000E-03    7.5842        .18142E-02** at limit **
  14  Prefactor     .10297E-03    32.822        .13855    ** at limit **
  15  Prefactor     .10000E-03    10.863        .18142E-02** at limit **
  16  Normalizat    1.1562        .26148        .34611E-03    .33634E-03
  17  Prefactor     .99930        .11390        .16365E-03    .66917E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6964.777     FROM SIMPLEX   STATUS=UNCHANGED    822 CALLS     2686 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7918        .30842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .34302        41.116        .11351E-06   -1.5591    
   3  norm          .10000E-03    6.1989        .80970E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .93023        19.054        .11392E-06   -1.5515    
   5  Prefactor     .10002E-03    132.77        .93293E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.557        43.418        .10501E-06   -1.4342    
   7  norm          .96781        23.264        .11512E-06   -1.5511    
   8  norm          .10000E-03    1.9216        .45273E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41050E-01    9.2066        .12196E-06   -1.5667    
  10  Prefactor     .10000E-03    30.270        .20057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9839        .19434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31736        143.56        .11529E-06   -1.5595    
  13  Prefactor     .10000E-03    7.5842        .33040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10297E-03    32.822        .11130E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.863        .23708E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1562        .26148        .63474E-07   -.87966    
  17  Prefactor     .99930        .11390        .66930E-07   -.92753    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6964.777     FROM MIGRAD    STATUS=CONVERGED    244 CALLS     2930 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7918        .27217E-03** at limit **
   2  norm          .34305        39.258        .13172        .11793E-03
   3  norm          .10000E-03    6.2525        .49297E-03** at limit **
   4  norm          .92953        18.855        .12922E-03   -.50149E-05
   5  Prefactor     .10000E-03    132.84        .36285E-03** at limit **
   6  Prefactor     46.557        43.416        .11747E-04    .19356E-06
   7  norm          .96784        23.123        .88666E-03    .55519E-05
   8  norm          .10000E-03    1.9219        .22446E-03** at limit **
   9  Prefactor     .41051E-01    7.8681        .57720E-01    .31819E-03
  10  Prefactor     .10000E-03    30.289        .36285E-03** at limit **
  11  Prefactor     .10000E-03    3.9844        .32466E-03** at limit **
  12  Prefactor     .31744        148.30        .10633E-02    .33120E-04
  13  Prefactor     .10000E-03    7.5843        .36285E-03** at limit **
  14  Prefactor     .10264E-03    32.870        .13833    ** at limit **
  15  Prefactor     .10000E-03    10.866        .36285E-03** at limit **
  16  Normalizat    1.1562        .25962        .69222E-04    .74136E-04
  17  Prefactor     .99929        .11339        .32730E-04    .86143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.343053
  norm       = 0.0001
  norm       = 0.929528
  Prefactor  = 0.0001
  Prefactor  = 46.5568
  norm       = 0.96784
  norm       = 0.0001
  Prefactor  = 0.0410511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.317438
  Prefactor  = 0.0001
  Prefactor  = 0.000102644
  Prefactor  = 0.0001
  Normalizat = 1.15624
  Prefactor  = 0.999295
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.777     FROM HESSE     STATUS=OK           239 CALLS     3169 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7918        .54435E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .34305        39.927        .13035       -1.5591    
   3  norm          .10000E-03    6.2546        .98593E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .92953        18.833        .51687E-05   -1.5515    
   5  Prefactor     .10000E-03    132.84        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.557        43.430        .23494E-05   -1.4342    
   7  norm          .96784        23.059        .35466E-04   -1.5511    
   8  norm          .10000E-03    1.9219        .44892E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41051E-01    8.4366        .55407E-01   -1.5667    
  10  Prefactor     .10000E-03    30.290        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9844        .64933E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31744        148.16        .21267E-03   -1.5595    
  13  Prefactor     .10000E-03    7.5843        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10264E-03    32.851        .13839       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.866        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1562        .25935        .13844E-04   -.87966    
  17  Prefactor     .99929        .11332        .65459E-05   -.92753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37075e-10
Minuit parameter uncertainties:
  1  2.57202e-08
  2  7.40593
  3  8.82671e-06
  4  8.37056
  5  2.28908e-05
  6  43.4593
  7  9.45178
  8  2.20679e-07
  9  1.17573
  10  5.77093e-06
  11  2.52856e-07
  12  13.7482
  13  1.20218e-07
  14  0.018651
  15  5.50431e-08
  16  0.259638
  17  0.113349
Done.

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

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  4.105e-02  1.176e+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.993e-01  1.133e-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.156e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/880935/likelihoodResults_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.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) = 6964.77618564
delta logL = 0.000932032982746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6964.26662676
delta logL = 0.510490912958

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 'Index     '    9.2658       1.0000          .0000       10.000    
     3 'Normalizat'    1.0759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0202       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6964.267     FROM MIGRAD    STATUS=CONVERGED    190 CALLS      522 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24011E-01    .18391E-03** at limit **
   2  Index         9.2660        9.5628        .20215E-01    .25549E-04
   3  Normalizat    1.0760        .12075        .35717E-03    .25859E-03
   4  Prefactor     1.0201        .52831E-01    .16213E-03   -.64344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.26604
  Normalizat = 1.07597
  Prefactor  = 1.02008
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.267     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      557 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .15154E-01    .23519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.2660        9.6060        .80860E-03    1.0221    
   3  Normalizat    1.0760        .10969        .14287E-04   -.90527    
   4  Prefactor     1.0201        .48215E-01    .32425E-04   -.92063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.46476e-10
Minuit parameter uncertainties:
  1  4.93439e-10
  2  7.146
  3  0.109709
  4  0.0482168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880935': 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) = 6964.26662575
delta logL = 0.510491922326

Extracting fit parameters...

4FGL J0857.9-1949
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  4.934e-10  1.000e-04  1.000e+04 ( 1.000e-12)
291        Index:  9.266e+00  7.146e+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.020e+00  4.822e-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.076e+00  1.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 134.491 -19.817
Photon Index (Free Index): 9.27 +/- 7.15
Photon Flux (Free Index): 7.89e-08 +/- 9.97e-07
Energy Flux (Free Index): 8.92e-06 +/- 1.12e-04

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/880935/cmap_HighResolution_499046401_499305601_4FGL_J0857.9-1949_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='8.92e-06', dlogl='5.10e-01', photon_flux2='7.89e-08', job_status='DONE', time_completed='2021-08-30 18:05:49.074603', photon_index_error2='7.15', photon_index2='9.27', ts='0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.12e-04', EG='1.16', time_epoch_completed='1630371949.07', return_code='0', job_id='880935', GAL2='1.02', EG2='1.08', return_code2='102', photon_flux_error2='9.97e-07', ts2='1.11', photon_index='2.52' WHERE bin_id='1002' AND source_name='4FGL J0857.9-1949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 18:05:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 880935: <4FGL_J0857.9-1949_daily_bin1002> in cluster <slac> Done

Job <4FGL_J0857.9-1949_daily_bin1002> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 17:50:51 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 17:50:52 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:50:52 2021
Terminated at Mon Aug 30 18:05:49 2021
Results reported at Mon Aug 30 18:05:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0857.9-1949_daily_bin1002 134.491 -19.8175 499046401 499305601 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 :                                   688.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            898 sec.

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

