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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1625
RA = 329.962, Dec = -47.8518
tmin = 660528001, tmax = 660787201
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='107307', job_status='RUN', time_executed='2021-12-10 00:42:02.293924', time_epoch_executed='1639125722.29' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107307/ft1_4FGL_J2159.8-4751_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107307/ft1_4FGL_J2159.8-4751_daily_bin1625.fits outfile=/scratch/kocevski/107307/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1625.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=660528001.0 tmax=660787201.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.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/107307/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1625.fits evtable="EVENTS" outfile="/scratch/kocevski/107307/ft1_filtered_4FGL_J2159.8-4751_daily_bin1625.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107307/ft1_filtered_4FGL_J2159.8-4751_daily_bin1625.fits" evtable="EVENTS" scfile=/scratch/kocevski/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.fits sctable="SC_DATA" outfile=/scratch/kocevski/107307/ltcube_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.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/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.fits
.....................!
real 11.92
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107307/ft1_filtered_4FGL_J2159.8-4751_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/107307/ltcube_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.fits outfile=/scratch/kocevski/107307/expmap_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.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/107307/ltcube_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.fits
.....................!
real 190.72
user 184.98
sys 5.40

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/107307/ft1_filtered_4FGL_J2159.8-4751_daily_bin1625.fits scfile=/scratch/kocevski/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.fits outfile=/scratch/kocevski/107307/cmap_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107307/ft1_filtered_4FGL_J2159.8-4751_daily_bin1625.fits scfile=/scratch/kocevski/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.fits outfile=/scratch/kocevski/107307/cmap_HighResolution_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107307/ft1_filtered_4FGL_J2159.8-4751_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107307/ft2_4FGL_J2159.8-4751_daily_bin1625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107307/Model_4FGL_J2159.8-4751_daily_bin1625.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/107307/ft1_filtered_4FGL_J2159.8-4751_daily_bin1625.fits.....................!
real 42.53
user 41.23
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7524       1.0000         .10000E-03   10000.    
     2 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18657E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .75535E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9502       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7132       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    66.122       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6141       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0148       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0502       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=   5218.435     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3148 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7566        20.248        .48403E-06    .45313E-06
   2  norm          .10000E-03    1.2350        .32544E-07** at limit **
   3  Prefactor     .10000E-03    105.61       -.10938E-05** at limit **
   4  Prefactor     .10000E-03    12.124        .53529E-06** at limit **
   5  Prefactor     37.765        40.623       -.58071E-05   -.22470E-03
   6  Prefactor     12.574        24.131        .32100E-06    .80987E-05
   7  Prefactor     .10000E-03    5.1369       -.27914E-06** at limit **
   8  norm          .10016E-03    4.4334        .18698E-05** at limit **
   9  Prefactor     .10000E-03    8.8469        .38872E-06** at limit **
  10  Prefactor     1.9695        21.968        .68339E-05   -.71683E-04
  11  Prefactor     5.6878        113.12        .30648E-05   -.28797E-04
  12  Prefactor     .10000E-03    5.7031       -.46024E-06** at limit **
  13  Prefactor     6.5089        4.4459       -.28853E-08    .64072E-04
  14  Prefactor     .10000E-03    36.864        .24651E-06** at limit **
  15  norm          .10000E-03    3.1105       -.20102E-07** at limit **
  16  Prefactor     .45009        3.2076       -.24014E-06   -.17979E-04
  17  Prefactor     .10000E-03    20.220       -.70431E-06** at limit **
  18  Prefactor     .10000E-03    3.4861       -.14206E-06** at limit **
  19  Prefactor     66.097        37.308        .51448E-06   -.74518E-04
  20  Prefactor     .10000E-03    41.464       -.73274E-06** at limit **
  21  Prefactor     9.6088        11.015        .10561E-06    .28556E-04
  22  Prefactor     .10000E-03    28.240        .46566E-06** at limit **
  23  Prefactor     .10000E-03    2.1716       -.45672E-07** at limit **
  24  Prefactor     .10000E-03    14.578        .41048E-06** at limit **
  25  Normalizat    1.0149        .21415        .79861E-06   -.27762E-03
  26  Prefactor     1.0503        .15866       -.11187E-05   -.37275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75663
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.7648
  Prefactor  = 12.5742
  Prefactor  = 0.0001
  norm       = 0.000100162
  Prefactor  = 0.0001
  Prefactor  = 1.96955
  Prefactor  = 5.68777
  Prefactor  = 0.0001
  Prefactor  = 6.50889
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.450088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.0969
  Prefactor  = 0.0001
  Prefactor  = 9.60884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01495
  Prefactor  = 1.05031
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.435     FROM HESSE     STATUS=OK           450 CALLS     3598 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7566        20.228        .18457E-03   -1.5272    
   2  norm          .10000E-03    2.6404        .15549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    107.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.765        41.001        .65287E-04   -1.4478    
   6  Prefactor     12.574        24.123        .11296E-03   -1.4999    
   7  Prefactor     .10000E-03    5.3714        .31934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10016E-03    40.234        .26143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9695        21.963        .14858E-02   -1.5427    
  11  Prefactor     5.6878        113.16        .16805E-03   -1.5231    
  12  Prefactor     .10000E-03    5.7374        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5089        4.4437        .12012E-03   -1.5198    
  14  Prefactor     .10000E-03    36.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1155        .12443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45009        6.4268        .24353E-02   -1.5574    
  17  Prefactor     .10000E-03    20.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5409        .13166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     66.097        37.376        .49356E-04   -1.4080    
  20  Prefactor     .10000E-03    41.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.6088        11.026        .12924E-03   -1.5088    
  22  Prefactor     .10000E-03    28.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1730        .10396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0149        .24135        .27397E-03   -.92531    
  26  Prefactor     1.0503        .17894        .20819E-03   -.91071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17235e-08
Minuit parameter uncertainties:
  1  19.629
  2  1.61398e-05
  3  0.000425432
  4  0.000142817
  5  41.0319
  6  24.1417
  7  8.98951e-06
  8  0.00511159
  9  1.15773e-06
  10  13.1597
  11  50.8498
  12  2.90402e-05
  13  4.44396
  14  0.000109877
  15  9.6859e-07
  16  3.4016
  17  9.24665e-05
  18  6.73325e-06
  19  37.3897
  20  7.55729e-05
  21  11.0281
  22  9.8842e-05
  23  1.52751e-06
  24  6.96269e-05
  25  0.241606
  26  0.179045
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.688e+00  5.085e+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.050e+00  1.790e-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.015e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107307/likelihoodResults_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5218.43517046
delta logL = 0.000253272874033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5218.43470986
delta logL = 0.00071387164553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1968       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6625       1.0000          .0000       10.000    
     3 'Normalizat'    1.0136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0508       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.

 FCN=   5218.435     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      254 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0984        1046.6        .44085E-02   -.38742E-04
   2  Index         2.6753        2.5440        .50000       -.23666E-04
   3  Normalizat    1.0139        .19318E-01    .44524E-01   -.45938E-04
   4  Prefactor     1.0509        .14988E-01    .39864E-01    .28773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.09843
  Index      = 2.67526
  Normalizat = 1.01395
  Prefactor  = 1.05086
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.435     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0984        146.48        .17634E-03   -1.5256    
   2  Index         2.6753        6.3372        .11824E-01   -.48358    
   3  Normalizat    1.0139        .23057        .27410E-03   -.92565    
   4  Prefactor     1.0509        .17590        .20815E-03   -.91053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04668e-10
Minuit parameter uncertainties:
  1  54.8036
  2  4.73508
  3  0.230796
  4  0.175993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107307': 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) = 5218.43470023
delta logL = 0.000723506588656

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.098e+00  5.480e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.675e+00  4.735e+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.051e+00  1.760e-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.014e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 329.962 -47.852

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/107307/cmap_HighResolution_660528001_660787201_4FGL_J2159.8-4751_daily_bin1625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-12-10 00:52:49.414518', job_id='107307', GAL2='1.05', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1639126369.41', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.24e-04', ts2='0.02', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1625' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:52:49 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 107307: <4FGL_J2159.8-4751_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1625> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 10 00:40:22 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:40:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:40:24 2021
Terminated at Fri Dec 10 00:52:50 2021
Results reported at Fri Dec 10 00:52:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1625 329.962 -47.8518 660528001 660787201 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 :                                   649.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            748 sec.

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

