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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1653
RA = 329.962, Dec = -47.8518
tmin = 667785601, tmax = 668044801
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='889393', job_status='RUN', time_executed='2022-03-04 01:17:10.025656', time_epoch_executed='1646385430.03' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889393/ft1_4FGL_J2159.8-4751_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889393/ft1_4FGL_J2159.8-4751_daily_bin1653.fits outfile=/scratch/kocevski/889393/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1653.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=667785601.0 tmax=668044801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.28
user 4.04
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.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/889393/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889393/ft1_filtered_4FGL_J2159.8-4751_daily_bin1653.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.32
sys 0.16
Number of photons that survived the gtmktime cut: 685

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889393/ft1_filtered_4FGL_J2159.8-4751_daily_bin1653.fits" evtable="EVENTS" scfile=/scratch/kocevski/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.fits sctable="SC_DATA" outfile=/scratch/kocevski/889393/ltcube_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.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/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.fits
.....................!
real 12.21
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889393/ft1_filtered_4FGL_J2159.8-4751_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889393/ltcube_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.fits outfile=/scratch/kocevski/889393/expmap_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.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/889393/ltcube_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.fits
.....................!
real 190.67
user 185.58
sys 4.69

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/889393/ft1_filtered_4FGL_J2159.8-4751_daily_bin1653.fits scfile=/scratch/kocevski/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.fits outfile=/scratch/kocevski/889393/cmap_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889393/ft1_filtered_4FGL_J2159.8-4751_daily_bin1653.fits scfile=/scratch/kocevski/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.fits outfile=/scratch/kocevski/889393/cmap_HighResolution_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889393/ft1_filtered_4FGL_J2159.8-4751_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889393/ft2_4FGL_J2159.8-4751_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889393/Model_4FGL_J2159.8-4751_daily_bin1653.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/889393/ft1_filtered_4FGL_J2159.8-4751_daily_bin1653.fits.....................!
real 54.95
user 53.62
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30160E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39524E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3300       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6494       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2426       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4783       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36527       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3664       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6701       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1171       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67140       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2670       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=   7392.840     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     2760 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.125        .84935E-06** at limit **
   2  norm          .10000E-03    .56979        .68465E-07** at limit **
   3  Prefactor     .10090E-03    44.049        .71168E-06** at limit **
   4  Prefactor     12.251        8.1211        .16522E-06    .13021E-03
   5  Prefactor     .10000E-03    65.395       -.92565E-06** at limit **
   6  Prefactor     .10010E-03    56.742       -.15335E-04** at limit **
   7  Prefactor     .10000E-03    1.6520        .89860E-07** at limit **
   8  norm          .10000E-03    2.0106        .19337E-06** at limit **
   9  Prefactor     .10000E-03    4.5225        .37952E-07** at limit **
  10  Prefactor     .10000E-03    8.6793        .82336E-07** at limit **
  11  Prefactor     .10000E-03    11.455       -.40926E-06** at limit **
  12  Prefactor     5.3311        6.9697        .12260E-05    .44982E-03
  13  Prefactor     2.6492        2.8907        .92582E-07    .26637E-03
  14  Prefactor     2.2546        623.41       -.20626E-04   -.79231E-05
  15  norm          2.4782        4.7617        .45670E-06    .15702E-03
  16  Prefactor     .36525        1.9722        .27609E-06   -.12011E-03
  17  Prefactor     .10000E-03    12.565       -.14415E-07** at limit **
  18  Prefactor     6.3652        5.2494        .69635E-06    .17165E-03
  19  Prefactor     .10000E-03    6.2859        .56558E-08** at limit **
  20  Prefactor     .10000E-03    21.813       -.27843E-05** at limit **
  21  Prefactor     4.6669        8.1876        .57586E-06    .24041E-03
  22  Prefactor     .10000E-03    23.436        .17150E-05** at limit **
  23  Prefactor     5.1170        5.3437        .19333E-05    .10807E-02
  24  Prefactor     .10000E-03    11.303        .33274E-06** at limit **
  25  Normalizat    .67150        .17276       -.54972E-06    .29823E-03
  26  Prefactor     1.2670        .13278       -.31051E-06    .20824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100902
  Prefactor  = 12.2514
  Prefactor  = 0.000100001
  Prefactor  = 0.0001001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.33111
  Prefactor  = 2.64919
  Prefactor  = 2.25463
  norm       = 2.47824
  Prefactor  = 0.36525
  Prefactor  = 0.0001
  Prefactor  = 6.36523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.66694
  Prefactor  = 0.0001
  Prefactor  = 5.11702
  Prefactor  = 0.0001
  Normalizat = 0.671501
  Prefactor  = 1.26701
 **********
 **   18 **HESSE 
 **********

 FCN=   7392.840     FROM HESSE     STATUS=OK           470 CALLS     3230 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .94202        .12611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10090E-03    40.923        .15113       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.251        8.0991        .11444E-03   -1.5008    
   5  Prefactor     .10000E-03    67.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10010E-03    80.440        .64488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0744        .21338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.1273        .23610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6385        .35706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3311        6.9131        .17408E-03   -1.5246    
  13  Prefactor     2.6492        2.8787        .14604E-03   -1.5382    
  14  Prefactor     2.2546        613.34        .27444E-03   -1.5408    
  15  norm          2.4782        4.7542        .25387E-03   -1.5393    
  16  Prefactor     .36525        4.0611        .22721E-02   -1.5587    
  17  Prefactor     .10000E-03    12.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3652        5.2640        .15908E-03   -1.5203    
  19  Prefactor     .10000E-03    6.2945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6669        8.1951        .18622E-03   -1.5276    
  22  Prefactor     .10000E-03    23.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.1170        6.3850        .88866E-03   -1.5256    
  24  Prefactor     .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .67150        .19381        .30559E-03   -1.0503    
  26  Prefactor     1.2670        .15115        .18601E-03   -.84293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00235e-08
Minuit parameter uncertainties:
  1  3.98603e-05
  2  5.95429e-06
  3  0.0121577
  4  8.09984
  5  0.00053733
  6  0.00567
  7  3.83034e-05
  8  2.39642e-05
  9  6.08746e-06
  10  2.38976e-05
  11  5.99267e-06
  12  6.9141
  13  2.87884
  14  75.1625
  15  4.75493
  16  2.43571
  17  3.5709e-06
  18  5.26437
  19  4.45211e-06
  20  3.59294e-05
  21  8.19711
  22  8.1273e-05
  23  6.38582
  24  2.3154e-05
  25  0.194008
  26  0.151204
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  5.993e-06  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.267e+00  1.512e-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:  6.715e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 5.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/889393/likelihoodResults_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7392.8408477
delta logL = -0.000415507874095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7392.84043246
delta logL = -2.67656105279e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5159       1.0000          .0000       10.000    
     3 'Normalizat'    .67143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2671       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=   7392.840     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    516.35        .18142E-02** at limit **
   2  Index         2.4214        8.7470        .50000        .41978E-05
   3  Normalizat    .67150        .28293E-01    .30559E-03   -.70685E-06
   4  Prefactor     1.2670        .23108E-01    .18601E-03   -.79453E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100924
  Index      = 2.42145
  Normalizat = 0.671499
  Prefactor  = 1.26701
 **********
 **   18 **HESSE 
 **********

 FCN=   7392.840     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    1746.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4214        7.6279        .50000       -.54184    
   3  Normalizat    .67150        .66685E-01    .12224E-04   -1.0503    
   4  Prefactor     1.2670        .54450E-01    .74405E-05   -.84293    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.67987e-08
Minuit parameter uncertainties:
  1  0.0828846
  2  3727.97
  3  0.0666929
  4  0.0544523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889393': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7392.84043211
delta logL = 8.09886842035e-08

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.009e-04  8.288e-02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.421e+00  3.728e+03  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.267e+00  5.445e-02  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:  6.715e-01  6.669e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/889393/cmap_HighResolution_667785601_668044801_4FGL_J2159.8-4751_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2022-03-04 01:29:57.017901', job_id='889393', GAL2='1.27', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1646386197.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='8.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1653' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:29:57 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 889393: <4FGL_J2159.8-4751_daily_bin1653> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:43 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:16:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:16:23 2022
Terminated at Fri Mar  4 01:29:57 2022
Results reported at Fri Mar  4 01:29:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1653 329.962 -47.8518 667785601 668044801 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 :                                   768.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            854 sec.

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

