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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1401
RA = 329.962, Dec = -47.8518
tmin = 602467201, tmax = 602726401
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='74693', job_status='RUN', time_executed='2021-09-27 23:05:51.338510', time_epoch_executed='1632809151.34' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74693

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74693/ft1_4FGL_J2159.8-4751_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74693/ft1_4FGL_J2159.8-4751_daily_bin1401.fits outfile=/scratch/kocevski/74693/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1401.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=602467201.0 tmax=602726401.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.41
user 2.98
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.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/74693/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1401.fits evtable="EVENTS" outfile="/scratch/kocevski/74693/ft1_filtered_4FGL_J2159.8-4751_daily_bin1401.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.94
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74693/ft1_filtered_4FGL_J2159.8-4751_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/74693/ltcube_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.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/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.fits
.....................!
real 14.23
user 13.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74693/ft1_filtered_4FGL_J2159.8-4751_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/74693/ltcube_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.fits outfile=/scratch/kocevski/74693/expmap_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.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/74693/ltcube_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.fits
.....................!
real 191.64
user 185.24
sys 5.32

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/74693/ft1_filtered_4FGL_J2159.8-4751_daily_bin1401.fits scfile=/scratch/kocevski/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.fits outfile=/scratch/kocevski/74693/cmap_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74693/ft1_filtered_4FGL_J2159.8-4751_daily_bin1401.fits scfile=/scratch/kocevski/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.fits outfile=/scratch/kocevski/74693/cmap_HighResolution_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.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.58
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/74693/ft1_filtered_4FGL_J2159.8-4751_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/74693/ft2_4FGL_J2159.8-4751_daily_bin1401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74693/Model_4FGL_J2159.8-4751_daily_bin1401.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/74693/ft1_filtered_4FGL_J2159.8-4751_daily_bin1401.fits..........................!
real 19.28
user 17.81
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.7914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.091       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.069       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15139E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    150.35       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .51227       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93900       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=   840.8020     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3022 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.951        .15689E-04** at limit **
   2  norm          5.7911        5.9464        .11840E-06   -.11645E-04
   3  Prefactor     .10000E-03    74.168        .37979E-04** at limit **
   4  Prefactor     44.607        36.513        .10043E-05    .23933E-03
   5  Prefactor     .10000E-03    135.42       -.47893E-05** at limit **
   6  Prefactor     73.094        72.634        .22242E-05    .19481E-04
   7  Prefactor     23.070        18.711        .71836E-06    .46614E-03
   8  norm          .10000E-03    9.4392        .83623E-07** at limit **
   9  Prefactor     29.051        40.299        .21283E-06    .23780E-04
  10  Prefactor     .10000E-03    28.444       -.60399E-05** at limit **
  11  Prefactor     .10000E-03    617.92       -.55202E-03** at limit **
  12  Prefactor     .10000E-03    26.994        .14648E-04** at limit **
  13  Prefactor     .10000E-03    10.903        .86800E-06** at limit **
  14  Prefactor     .10000E-03    182.68        .75610E-04** at limit **
  15  norm          .10000E-03    17.612       -.17685E-05** at limit **
  16  Prefactor     .10000E-03    9.7293       -.30645E-06** at limit **
  17  Prefactor     .10000E-03    216.15        .85163E-04** at limit **
  18  Prefactor     .10000E-03    11.448       -.73270E-06** at limit **
  19  Prefactor     150.39        151.85        .25161E-04   -.14716E-04
  20  Prefactor     .10000E-03    104.06       -.60300E-04** at limit **
  21  Prefactor     .10000E-03    28.848       -.95764E-05** at limit **
  22  Prefactor     .10000E-03    251.43        .62531E-04** at limit **
  23  Prefactor     .10000E-03    15.523        .10871E-05** at limit **
  24  Prefactor     .10000E-03    92.710       -.52395E-04** at limit **
  25  Normalizat    .51202        .50555       -.10575E-04    .13901E-03
  26  Prefactor     .93913        .34380        .28449E-05    .15280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.79112
  Prefactor  = 0.0001
  Prefactor  = 44.6068
  Prefactor  = 0.0001
  Prefactor  = 73.0945
  Prefactor  = 23.0699
  norm       = 0.0001
  Prefactor  = 29.0506
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 150.386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.512019
  Prefactor  = 0.939127
 **********
 **   18 **HESSE 
 **********

 FCN=   840.8020     FROM HESSE     STATUS=OK           434 CALLS     3456 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7911        5.9531        .65908E-04   -1.5227    
   3  Prefactor     .10000E-03    74.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.607        36.474        .60029E-04   -1.4371    
   5  Prefactor     .10000E-03    135.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.094        72.518        .46960E-04   -1.3996    
   7  Prefactor     23.070        18.687        .83397E-04   -1.4747    
   8  norm          .10000E-03    9.4415        .87036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.051        40.301        .74330E-04   -1.4629    
  10  Prefactor     .10000E-03    28.448        .15112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    618.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.041        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.006        .93464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    182.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.613        .11891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.7336        .88355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    216.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.450        .95856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     150.39        152.39        .16435E-03   -1.3249    
  20  Prefactor     .10000E-03    104.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.859        .15220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    251.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.526        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    92.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .51202        .55443        .35149E-03   -1.1186    
  26  Prefactor     .93913        .38483        .18997E-03   -.94787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59652e-10
Minuit parameter uncertainties:
  1  5.46178e-05
  2  5.95367
  3  1.4284e-05
  4  36.4917
  5  9.64454e-05
  6  72.606
  7  18.6922
  8  6.50645e-06
  9  40.3385
  10  7.94633e-06
  11  0.00291413
  12  0.000107102
  13  5.68156e-05
  14  0.000104398
  15  8.3247e-06
  16  4.09094e-05
  17  0.000807229
  18  7.43785e-06
  19  152.787
  20  0.000219293
  21  4.39013e-05
  22  3.02931e-05
  23  2.69791e-05
  24  7.13862e-06
  25  0.560572
  26  0.385958
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  9.391e-01  3.860e-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.120e-01  5.606e-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: 6.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74693/likelihoodResults_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.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) = 840.80203939
delta logL = -7.54867187425e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 840.8020319
delta logL = -5.82185748499e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5032       1.0000          .0000       10.000    
     3 'Normalizat'    .51203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93913       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=   840.8020     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    6628.0        .90712E-02** at limit **
   2  Index         2.4881        6.4236        .50000        .21509E-06
   3  Normalizat    .51201        .45236        .79366E-01    .84029E-04
   4  Prefactor     .93913        .33015        .45502E-01    .12444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100923
  Index      = 2.48805
  Normalizat = 0.512013
  Prefactor  = 0.93913
 **********
 **   18 **HESSE 
 **********

 FCN=   840.8020     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    526.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4881        6.2434        .50000       -.52636    
   3  Normalizat    .51201        .49675        .35150E-03   -1.1186    
   4  Prefactor     .93913        .36387        .18997E-03   -.94787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28019e-09
Minuit parameter uncertainties:
  1  0.0444845
  2  4.41857
  3  0.501141
  4  0.364818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74693': 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) = 840.80203184
delta logL = 1.17825038615e-09

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.009e-04  4.448e-02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  2.488e+00  4.419e+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:  9.391e-01  3.648e-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.120e-01  5.011e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/74693/cmap_HighResolution_602467201_602726401_4FGL_J2159.8-4751_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-02', job_status='DONE', photon_flux_upper_limit='6.02e-07', time_completed='2021-09-27 23:12:21.214288', job_id='74693', GAL2='0.94', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1632809541.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1401' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:12:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 74693: <4FGL_J2159.8-4751_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1401 329.962 -47.8518 602467201 602726401 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 :                                   378.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   402 sec.
    Turnaround time :                            728 sec.

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

