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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1458
RA = 329.962, Dec = -47.8518
tmin = 617241601, tmax = 617500801
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='74776', job_status='RUN', time_executed='2021-09-27 23:07:44.977297', time_epoch_executed='1632809264.98' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74776

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74776/ft1_4FGL_J2159.8-4751_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74776/ft1_4FGL_J2159.8-4751_daily_bin1458.fits outfile=/scratch/kocevski/74776/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1458.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=617241601.0 tmax=617500801.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 2.99
user 2.74
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/74776/ltcube_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.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/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits
.....................!
real 13.97
user 13.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/74776/ltcube_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.fits outfile=/scratch/kocevski/74776/expmap_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.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/74776/ltcube_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.fits
.....................!
real 191.67
user 185.61
sys 5.39

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/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits scfile=/scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits outfile=/scratch/kocevski/74776/cmap_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits scfile=/scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits outfile=/scratch/kocevski/74776/cmap_HighResolution_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74776/Model_4FGL_J2159.8-4751_daily_bin1458.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/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits.....................!
real 23.07
user 21.67
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits', '/scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits', expMap='/scratch/kocevski/74776/expmap_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.fits', expCube='/scratch/kocevski/74776/ltcube_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74776/Model_4FGL_J2159.8-4751_daily_bin1458.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/74776/ft1_filtered_4FGL_J2159.8-4751_daily_bin1458.fits
Spacecraft file(s): /scratch/kocevski/74776/ft2_4FGL_J2159.8-4751_daily_bin1458.fits
Exposure map: /scratch/kocevski/74776/expmap_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.fits
Exposure cube: /scratch/kocevski/74776/ltcube_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74776/Model_4FGL_J2159.8-4751_daily_bin1458.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) = 1639.40483938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20890       1.0000         .10000E-03   10000.    
     2 'norm      '    25.597       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .68855E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    73.519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50091E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31066E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36387E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10326E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    271.71       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8515       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2230       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55688       1.0000         .10000E-03   10000.    
    15 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.879       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18647E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.825       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .89548E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.172       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16745E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18171E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.160       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3533       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60832       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1639.251     FROM MIGRAD    STATUS=CONVERGED    279 CALLS     2927 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    272.31        .12081E-03** at limit **
   2  norm          25.098        28.420       -.24527E-05   -.86432E-04
   3  Prefactor     .10000E-03    105.40        .15413E-04** at limit **
   4  Prefactor     .10000E-03    16.995       -.28043E-05** at limit **
   5  Prefactor     109.01        167.79        .61239E-04   -.23570E-04
   6  Prefactor     .10000E-03    45.472        .92875E-05** at limit **
   7  Prefactor     .10000E-03    9.0933        .39043E-06** at limit **
   8  norm          .10000E-03    152.57       -.10498E-03** at limit **
   9  Prefactor     .10000E-03    29.875        .50603E-05** at limit **
  10  Prefactor     .10001E-03    63.012        .24482E-04** at limit **
  11  Prefactor     280.72        145.48       -.17993E-04    .15728E-02
  12  Prefactor     6.9138        25.648       -.22275E-04   -.12410E-03
  13  Prefactor     2.3864        10.805       -.15375E-05   -.62314E-04
  14  Prefactor     .10001E-03    169.62       -.31349E-04** at limit **
  15  norm          .10000E-03    5.4042       -.86950E-06** at limit **
  16  Prefactor     .10000E-03    5.6408       -.64042E-06** at limit **
  17  Prefactor     61.094        107.24       -.40913E-05   -.19422E-02
  18  Prefactor     .10000E-03    16.012        .83195E-07** at limit **
  19  Prefactor     37.003        17.978       -.38910E-05   -.10434E-01
  20  Prefactor     .10000E-03    49.286       -.13352E-04** at limit **
  21  Prefactor     39.925        24.146        .98971E-05   -.28432E-03
  22  Prefactor     .10000E-03    58.705        .51336E-05** at limit **
  23  Prefactor     .10000E-03    10.315        .28796E-05** at limit **
  24  Prefactor     10.427        123.15       -.77252E-04    .24178E-03
  25  Normalizat    1.3443        .46131       -.18343E-04    .40117E-04
  26  Prefactor     .60754        .34820        .17940E-04    .54191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  norm       = 25.0978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 280.718
  Prefactor  = 6.91383
  Prefactor  = 2.38642
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.094
  Prefactor  = 0.0001
  Prefactor  = 37.0033
  Prefactor  = 0.0001
  Prefactor  = 39.9254
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.4273
  Normalizat = 1.34428
  Prefactor  = 0.607538
 **********
 **   18 **HESSE 
 **********

 FCN=   1639.251     FROM HESSE     STATUS=OK           502 CALLS     3429 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    271.53        .10018E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          25.098        28.422        .19795E-02   -1.4706    
   3  Prefactor     .10000E-03    104.84        .93631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     109.01        170.05        .11706E-02   -1.3616    
   6  Prefactor     .10000E-03    45.568        .92705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0181        .10688E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    149.57        .63214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.170        .92034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    61.164        .10371E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     280.72        147.08        .61507E-03   -1.2341    
  12  Prefactor     6.9138        26.023        .35775E-02   -1.5182    
  13  Prefactor     2.3864        11.192        .68948E-02   -1.5399    
  14  Prefactor     .10001E-03    168.99        .11501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.4008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.094        108.19        .13789E-02   -1.4143    
  18  Prefactor     .10000E-03    15.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.003        56.216        .16292E-02   -1.4491    
  20  Prefactor     .10000E-03    49.195        .91389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.925        24.017        .16010E-02   -1.4443    
  22  Prefactor     .10000E-03    58.425        .10191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.427        121.68        .31426E-02   -1.5062    
  25  Normalizat    1.3443        .39086        .56372E-01   -.82254    
  26  Prefactor     .60754        .29667        .63773E-01   -1.0727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02855e-06
Minuit parameter uncertainties:
  1  0.00385813
  2  28.4375
  3  0.000300476
  4  1.06932e-05
  5  170.819
  6  0.000119626
  7  2.64039e-05
  8  0.000770722
  9  0.000142629
  10  0.00122692
  11  147.277
  12  26.0652
  13  10.3392
  14  0.00308935
  15  4.19215e-05
  16  6.99897e-06
  17  108.541
  18  0.000110934
  19  56.2969
  20  0.000178376
  21  24.0225
  22  0.000516224
  23  3.72523e-05
  24  71.4216
  25  0.391728
  26  0.297442
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  2.807e+02  1.473e+02  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:  6.075e-01  2.974e-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.344e+00  3.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.67
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 2.93e-07 +/- 1.54e-07
Energy Flux (Fixed Index): 8.29e-05 +/- 4.35e-05

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) = 1638.93186308
delta logL = 0.319065455999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1638.93136973
delta logL = 0.31955880179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    393.43       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0960       1.0000          .0000       10.000    
     3 'Normalizat'    1.3889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57266       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=   1638.931     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      257 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     393.78        206.80        .10288E-03   -.87612E-04
   2  Index         2.0973        .46054        .38316E-02   -.60527E-04
   3  Normalizat    1.3886        .43329        .24588E-03   -.42135E-03
   4  Prefactor     .57272        .34107        .28922E-03   -.48719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 393.784
  Index      = 2.09732
  Normalizat = 1.38865
  Prefactor  = 0.572725
 **********
 **   18 **HESSE 
 **********

 FCN=   1638.931     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     393.78        205.09        .20575E-04   -1.1713    
   2  Index         2.0973        .45666        .15326E-03   -.61939    
   3  Normalizat    1.3886        .43356        .49175E-04   -.80958    
   4  Prefactor     .57272        .34125        .57844E-04   -1.0875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36885e-09
Minuit parameter uncertainties:
  1  205.471
  2  0.457626
  3  0.434709
  4  0.342486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74776': 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) = 1638.9313611
delta logL = 0.319567441499

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.938e+02  2.055e+02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.097e+00  4.576e-01  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:  5.727e-01  3.425e-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.389e+00  4.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.29
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 2.10 +/- 0.46
Photon Flux (Free Index): 2.42e-07 +/- 1.38e-07
Energy Flux (Free Index): 1.34e-04 +/- 1.12e-04

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/74776/cmap_HighResolution_617241601_617500801_4FGL_J2159.8-4751_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.93e-07', energy_flux2='1.34e-04', photon_flux_error='1.54e-07', dlogl='3.20e-01', energy_flux='8.29e-05', photon_flux2='2.42e-07', job_status='DONE', time_completed='2021-09-27 23:15:09.935700', photon_index_error2='0.46', photon_index2='2.10', ts='7.67', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.12e-04', EG='1.34', time_epoch_completed='1632809709.94', return_code='0', job_id='74776', GAL2='0.57', EG2='1.39', return_code2='0', energy_flux_error='4.35e-05', photon_flux_error2='1.38e-07', ts2='8.29', photon_index='2.52' WHERE bin_id='1458' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 74776: <4FGL_J2159.8-4751_daily_bin1458> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1458> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 23:00:19 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:05:53 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:53 2021
Terminated at Mon Sep 27 23:15:10 2021
Results reported at Mon Sep 27 23:15:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1458 329.962 -47.8518 617241601 617500801 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 :                                   403.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            891 sec.

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

