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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin859
RA = 329.962, Dec = -47.8518
tmin = 461980801, tmax = 462240001
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='76203', job_status='RUN', time_executed='2021-09-27 23:07:09.283340', time_epoch_executed='1632809229.28' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76203/ft1_4FGL_J2159.8-4751_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76203/ft2_4FGL_J2159.8-4751_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76203/ft1_4FGL_J2159.8-4751_daily_bin859.fits outfile=/scratch/kocevski/76203/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin859.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=461980801.0 tmax=462240001.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.66
user 3.45
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76203/ft1_filtered_4FGL_J2159.8-4751_daily_bin859.fits" evtable="EVENTS" scfile=/scratch/kocevski/76203/ft2_4FGL_J2159.8-4751_daily_bin859.fits sctable="SC_DATA" outfile=/scratch/kocevski/76203/ltcube_461980801_462240001_4FGL_J2159.8-4751_daily_bin859.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/76203/ft2_4FGL_J2159.8-4751_daily_bin859.fits
.....................!
real 12.22
user 11.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76203/ft1_filtered_4FGL_J2159.8-4751_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/76203/ft2_4FGL_J2159.8-4751_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/76203/ltcube_461980801_462240001_4FGL_J2159.8-4751_daily_bin859.fits outfile=/scratch/kocevski/76203/expmap_461980801_462240001_4FGL_J2159.8-4751_daily_bin859.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/76203/ltcube_461980801_462240001_4FGL_J2159.8-4751_daily_bin859.fits
.....................!
real 190.39
user 185.60
sys 4.44

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/76203/ft1_filtered_4FGL_J2159.8-4751_daily_bin859.fits scfile=/scratch/kocevski/76203/ft2_4FGL_J2159.8-4751_daily_bin859.fits outfile=/scratch/kocevski/76203/cmap_461980801_462240001_4FGL_J2159.8-4751_daily_bin859.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76203/ft1_filtered_4FGL_J2159.8-4751_daily_bin859.fits scfile=/scratch/kocevski/76203/ft2_4FGL_J2159.8-4751_daily_bin859.fits outfile=/scratch/kocevski/76203/cmap_HighResolution_461980801_462240001_4FGL_J2159.8-4751_daily_bin859.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/76203/ft1_filtered_4FGL_J2159.8-4751_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/76203/ft2_4FGL_J2159.8-4751_daily_bin859.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/76203/Model_4FGL_J2159.8-4751_daily_bin859.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/76203/ft1_filtered_4FGL_J2159.8-4751_daily_bin859.fits.....................!
real 53.69
user 52.35
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9190       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16957E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17802E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3748       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0101       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.149       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2726       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.152       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43801E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.612       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0945       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8333       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .58203       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1164       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=   7260.588     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     2633 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.283       -.13405E-05** at limit **
   2  norm          1.9189        1.3319        .26279E-06    .35527E-03
   3  Prefactor     .10000E-03    22.894        .21638E-04** at limit **
   4  Prefactor     .10000E-03    176.52        .26163E-03** at limit **
   5  Prefactor     .10000E-03    6.7930       -.20323E-05** at limit **
   6  Prefactor     9.1799        1.8349       -.50836E-05   -.11041E-02
   7  Prefactor     .82108E-02    11.193        .44127E-04   -.36135E-03
   8  norm          8.3736        4.2022       -.76839E-08    .32861E-03
   9  Prefactor     3.0087        1.0536       -.14146E-06   -.40037E-03
  10  Prefactor     .10000E-03    3.2667       -.37704E-05** at limit **
  11  Prefactor     65.160        1.5132        .81088E-06   -.85889E-05
  12  Prefactor     1.4370        5.0039       -.29017E-05   -.48021E-04
  13  Prefactor     3.2723        3.4559       -.39012E-06   -.23747E-05
  14  Prefactor     33.154        1.0288        .16681E-06    .59474E-05
  15  norm          .10000E-03    1.9896       -.36836E-05** at limit **
  16  Prefactor     .10000E-03    1.2944       -.50260E-06** at limit **
  17  Prefactor     .10000E-03    9.7789       -.21044E-05** at limit **
  18  Prefactor     7.6035        2.6611        .44753E-05    .82863E-03
  19  Prefactor     .10008E-03    295.06       -.11847E-03** at limit **
  20  Prefactor     17.609        1.8404        .38949E-05    .19044E-02
  21  Prefactor     3.0950        1.0596       -.33777E-06   -.57261E-04
  22  Prefactor     .10000E-03    33.972       -.62155E-05** at limit **
  23  Prefactor     7.8326        4.8603       -.83983E-05    .26968E-03
  24  Prefactor     .10000E-03    10.748       -.27316E-06** at limit **
  25  Normalizat    .58217        .17179       -.11550E-04    .51508E-04
  26  Prefactor     1.1164        .13887        .20852E-05    .24118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.91895
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.17986
  Prefactor  = 0.00821082
  norm       = 8.37357
  Prefactor  = 3.00865
  Prefactor  = 0.0001
  Prefactor  = 65.1605
  Prefactor  = 1.43698
  Prefactor  = 3.2723
  Prefactor  = 33.1544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60353
  Prefactor  = 0.000100081
  Prefactor  = 17.6094
  Prefactor  = 3.09496
  Prefactor  = 0.0001
  Prefactor  = 7.83257
  Prefactor  = 0.0001
  Normalizat = 0.582174
  Prefactor  = 1.11641
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.588     FROM HESSE     STATUS=OK           528 CALLS     3161 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9189        1.3459        .74996E-02   -1.5431    
   3  Prefactor     .10000E-03    22.857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4939        .74507E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1799        19.004        .33076E-02   -1.5102    
   7  Prefactor     .82108E-02    1.4338        .67952E-01   -1.5690    
   8  norm          8.3736        4.2356        .34632E-02   -1.5129    
   9  Prefactor     3.0087        7.5490        .58484E-02   -1.5361    
  10  Prefactor     .10000E-03    3.2568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.160        38.245        .12430E-02   -1.4092    
  12  Prefactor     1.4370        5.3213        .89722E-02   -1.5468    
  13  Prefactor     3.2723        3.4964        .55961E-02   -1.5346    
  14  Prefactor     33.154        54.622        .17399E-02   -1.4556    
  15  norm          .10000E-03    1.9859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.7822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6035        5.5549        .36355E-02   -1.5156    
  19  Prefactor     .10008E-03    11.100        .92398E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.609        18.197        .23859E-02   -1.4868    
  21  Prefactor     3.0950        8.0692        .57635E-02   -1.5356    
  22  Prefactor     .10000E-03    33.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.8326        5.4815        .35817E-02   -1.5148    
  24  Prefactor     .10000E-03    10.749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .58217        .16406        .68642E-01   -1.0875    
  26  Prefactor     1.1164        .12275        .36993E-01   -.88944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82003e-07
Minuit parameter uncertainties:
  1  0.000183129
  2  1.34593
  3  1.94032e-06
  4  9.33711e-05
  5  1.61708e-05
  6  19.0167
  7  0.21568
  8  4.23578
  9  7.55136
  10  1.94257e-05
  11  38.259
  12  5.32304
  13  3.49658
  14  54.7049
  15  6.30978e-06
  16  5.69078e-06
  17  3.31266e-05
  18  5.55527
  19  0.0019024
  20  18.2022
  21  8.07199
  22  5.19792e-05
  23  5.48181
  24  1.04447e-05
  25  0.1642
  26  0.122786
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  6.516e+01  3.826e+01  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.116e+00  1.228e-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:  5.822e-01  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.80e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.13e-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) = 7260.46765577
delta logL = 0.120771902391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7260.45943492
delta logL = 0.128992757785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.503       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8039       1.0000          .0000       10.000    
     3 'Normalizat'    .56732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1245       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=   7260.459     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      281 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.508        46.936        .56431E-04   -.13627E-03
   2  Index         2.8040        .63575        .55399E-02   -.92538E-04
   3  Normalizat    .56729        .17537        .30750E-03    .36953E-03
   4  Prefactor     1.1245        .13941        .18083E-03    .69252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.5084
  Index      = 2.80401
  Normalizat = 0.567293
  Prefactor  = 1.12449
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.459     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.508        43.107        .11286E-04   -1.4285    
   2  Index         2.8040        .58347        .22159E-03   -.45471    
   3  Normalizat    .56729        .17532        .12300E-04   -1.0939    
   4  Prefactor     1.1245        .13935        .36166E-04   -.88688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87462e-10
Minuit parameter uncertainties:
  1  43.1332
  2  0.585123
  3  0.175492
  4  0.139394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76203': 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) = 7260.45943467
delta logL = 0.128993002934

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.051e+01  4.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.804e+00  5.851e-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:  1.124e+00  1.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:  5.673e-01  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 2.80 +/- 0.59
Photon Flux (Free Index): 7.82e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.01e-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/76203/cmap_HighResolution_461980801_462240001_4FGL_J2159.8-4751_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.80e-08', energy_flux2='1.75e-05', photon_flux_error='3.99e-08', dlogl='1.29e-01', energy_flux='1.92e-05', photon_flux2='7.82e-08', job_status='DONE', time_completed='2021-09-27 23:18:35.132074', photon_index_error2='0.59', photon_index2='2.80', ts='4.52', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='0.58', time_epoch_completed='1632809915.13', return_code='0', job_id='76203', GAL2='1.12', EG2='0.57', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.55e-08', ts2='4.82', photon_index='2.52' WHERE bin_id='859' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:18:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 76203: <4FGL_J2159.8-4751_daily_bin859> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin859> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:05:14 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:06:50 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:06:50 2021
Terminated at Mon Sep 27 23:18:35 2021
Results reported at Mon Sep 27 23:18:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin859 329.962 -47.8518 461980801 462240001 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 :                                   673.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            801 sec.

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

