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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1402
RA = 329.962, Dec = -47.8518
tmin = 602726401, tmax = 602985601
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='74694', job_status='RUN', time_executed='2021-09-27 23:07:00.827393', time_epoch_executed='1632809220.83' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74694/ft1_4FGL_J2159.8-4751_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74694/ft1_4FGL_J2159.8-4751_daily_bin1402.fits outfile=/scratch/kocevski/74694/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1402.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=602726401.0 tmax=602985601.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.15
user 2.91
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.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/74694/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.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.55
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/74694/ltcube_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.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/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits
.....................!
real 15.79
user 15.36
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/74694/ltcube_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.fits outfile=/scratch/kocevski/74694/expmap_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.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/74694/ltcube_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.fits
.....................!
real 192.83
user 187.72
sys 4.75

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2159.8-4751 @ 329.962 -47.8518

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits scfile=/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits outfile=/scratch/kocevski/74694/cmap_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.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=329.962 yref=-47.8518 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits scfile=/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits outfile=/scratch/kocevski/74694/cmap_HighResolution_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.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=329.962 yref=-47.8518 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.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74694/Model_4FGL_J2159.8-4751_daily_bin1402.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/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits......................!
real 18.37
user 16.98
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits', '/scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits', expMap='/scratch/kocevski/74694/expmap_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.fits', expCube='/scratch/kocevski/74694/ltcube_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74694/Model_4FGL_J2159.8-4751_daily_bin1402.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2159.8-4751'

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.682e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/74694/ft1_filtered_4FGL_J2159.8-4751_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/74694/ft2_4FGL_J2159.8-4751_daily_bin1402.fits
Exposure map: /scratch/kocevski/74694/expmap_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.fits
Exposure cube: /scratch/kocevski/74694/ltcube_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74694/Model_4FGL_J2159.8-4751_daily_bin1402.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) = 730.344432696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.741       1.0000         .10000E-03   10000.    
     2 'norm      '    12.683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13423E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7179.3       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7616.8       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97986E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13330E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    2947.4       1.0000         .10000E-03   10000.    
    16 'Prefactor '    325.89       1.0000         .10000E-03   10000.    
    17 'Prefactor '    153.76       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1559.7       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13981E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0566       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   725.6567     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3695 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.779        46.650       -.53892E-06   -.13858E-04
   2  norm          12.681        6.7717       -.93393E-07   -.41279E-04
   3  Prefactor     .10000E-03    92.181        .33094E-06** at limit **
   4  Prefactor     .10000E-03    13.279        .27439E-06** at limit **
   5  Prefactor     .10000E-03    110.51       -.34612E-06** at limit **
   6  Prefactor     .10000E-03    22.201        .17436E-06** at limit **
   7  Prefactor     .10000E-03    5.1650        .10378E-05** at limit **
   8  norm          .10000E-03    58.555       -.10726E-06** at limit **
   9  Prefactor     .10003E-03    9845.3       -.15845E-04** at limit **
  10  Prefactor     7174.1        7875.6       -.10767E-03   -.94399E-06
  11  Prefactor     7630.6        7884.5        .91941E-05   -.30482E-06
  12  Prefactor     .10000E-03    906.30        .10903E-04** at limit **
  13  Prefactor     .10000E-03    21.652       -.39018E-05** at limit **
  14  Prefactor     .10000E-03    7340.5        .12257E-05** at limit **
  15  norm          2942.2        2474.3       -.12149E-05   -.22766E-06
  16  Prefactor     325.69        194.67       -.80827E-06   -.37697E-05
  17  Prefactor     154.08        471.29        .62137E-06   -.31902E-06
  18  Prefactor     .10000E-03    136.80        .23284E-05** at limit **
  19  Prefactor     .10000E-03    54.932        .28585E-06** at limit **
  20  Prefactor     1564.1        2213.2       -.17235E-05   -.10819E-06
  21  Prefactor     .10000E-03    856.40        .88531E-05** at limit **
  22  Prefactor     .10000E-03    645.11        .11202E-05** at limit **
  23  Prefactor     .10000E-03    17.454       -.99962E-06** at limit **
  24  Prefactor     .10000E-03    85.839        .46907E-06** at limit **
  25  Normalizat    .10000E-01    .94693E-01    .41525E-05** at limit **
  26  Prefactor     1.0566        .26754        .71243E-06   -.39142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.779
  norm       = 12.6809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 7174.07
  Prefactor  = 7630.55
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2942.22
  Prefactor  = 325.687
  Prefactor  = 154.078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1564.13
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.05663
 **********
 **   18 **HESSE 
 **********

 FCN=   725.6567     FROM HESSE     STATUS=OK           434 CALLS     4129 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.779        46.891        .80534E-04   -1.4712    
   2  norm          12.681        6.7835        .48223E-04   -1.4996    
   3  Prefactor     .10000E-03    92.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.285        .95935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    110.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.202        .12404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1658        .59815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    58.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    9845.0        .22102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7174.1        7869.7        .44444E-04    .44983    
  11  Prefactor     7630.6        7895.0        .46942E-04    .55402    
  12  Prefactor     .10000E-03    904.98        .20776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.634        .12228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7340.1        .20561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2942.2        2478.2        .43867E-04   -.42416    
  16  Prefactor     325.69        194.64        .11264E-03   -1.2079    
  17  Prefactor     154.08        470.97        .16255E-03   -1.3219    
  18  Prefactor     .10000E-03    136.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1564.1        2212.8        .55123E-04   -.75759    
  21  Prefactor     .10000E-03    854.89        .18186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    644.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.530        .10990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    85.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .95876E-01    .25613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0566        .26930        .19787E-03   -.90865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81642e-11
Minuit parameter uncertainties:
  1  46.9606
  2  6.78392
  3  5.04623e-06
  4  1.71907e-05
  5  7.18553e-05
  6  3.57732e-07
  7  1.85443e-06
  8  4.42505e-05
  9  0.0466279
  10  5599.9
  11  5264.02
  12  0.000537067
  13  3.65092e-06
  14  0.00111314
  15  2620.25
  16  195.036
  17  483.28
  18  3.74806e-05
  19  1.13301e-05
  20  2379.39
  21  0.000159591
  22  0.000262132
  23  9.52246e-06
  24  1.15826e-05
  25  4.72251e-07
  26  0.26965
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  7.631e+03  5.264e+03  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.524e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.057e+00  2.696e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.000e-02  4.723e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.91
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.96e-06 +/- 5.49e-06
Energy Flux (Fixed Index): 2.25e-03 +/- 1.55e-03

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) = 725.402499773
delta logL = 0.254173200669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 725.3962705
delta logL = 0.260402474361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4477.1       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1753       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+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=   725.3963     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      280 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4472.8        7214.4        .40221E-04    .83455E-05
   2  Index         3.1742        1.1332        .25364E-02    .48173E-04
   3  Normalizat    .10000E-01    .90126E-01    .24860E-02** at limit **
   4  Prefactor     1.0440        .23925        .19788E-03   -.80146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4472.81
  Index      = 3.17418
  Normalizat = 0.01
  Prefactor  = 1.04402
 **********
 **   18 **HESSE 
 **********

 FCN=   725.3963     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4472.8        7167.4        .80441E-05   -.10563    
   2  Index         3.1742        1.0475        .10145E-03   -.37381    
   3  Normalizat    .10000E-01    .90126E-01    .49720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0440        .23911        .79152E-05   -.91276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59764e-11
Minuit parameter uncertainties:
  1  6113.77
  2  1.05659
  3  2.20427e-07
  4  0.239356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74694': 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) = 725.396261544
delta logL = 0.260411429734

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  4.473e+03  6.114e+03  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  3.174e+00  1.057e+00  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  7.450e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.044e+00  2.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
583        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
584        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
581   Normalization:  1.000e-02  2.204e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 3.17 +/- 1.06
Photon Flux (Free Index): 1.21e-05 +/- 8.95e-06
Energy Flux (Free Index): 2.24e-03 +/- 1.37e-03

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/74694/cmap_HighResolution_602726401_602985601_4FGL_J2159.8-4751_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-06', energy_flux2='2.24e-03', photon_flux_error='5.49e-06', dlogl='2.60e-01', energy_flux='2.25e-03', photon_flux2='1.21e-05', job_status='DONE', time_completed='2021-09-27 23:13:38.600939', photon_index_error2='1.06', photon_index2='3.17', ts='5.91', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.37e-03', EG='0.01', time_epoch_completed='1632809618.6', return_code='0', job_id='74694', GAL2='1.04', EG2='0.01', return_code2='0', energy_flux_error='1.55e-03', photon_flux_error2='8.95e-06', ts2='6.62', photon_index='2.52' WHERE bin_id='1402' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:13:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 74694: <4FGL_J2159.8-4751_daily_bin1402> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1402> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 23:00:14 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 23:05:41 2021
Terminated at Mon Sep 27 23:13:39 2021
Results reported at Mon Sep 27 23:13:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1402 329.962 -47.8518 602726401 602985601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2159.8-4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   373.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   477 sec.
    Turnaround time :                            805 sec.

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

