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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1343
RA = 329.962, Dec = -47.8518
tmin = 587433601, tmax = 587692801
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='73099', job_status='RUN', time_executed='2021-09-27 23:05:39.625421', time_epoch_executed='1632809139.63' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73099/ft1_4FGL_J2159.8-4751_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73099/ft1_4FGL_J2159.8-4751_daily_bin1343.fits outfile=/scratch/kocevski/73099/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1343.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=587433601.0 tmax=587692801.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.71
user 3.35
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.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/73099/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1343.fits evtable="EVENTS" outfile="/scratch/kocevski/73099/ft1_filtered_4FGL_J2159.8-4751_daily_bin1343.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 1.20
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73099/ft1_filtered_4FGL_J2159.8-4751_daily_bin1343.fits" evtable="EVENTS" scfile=/scratch/kocevski/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.fits sctable="SC_DATA" outfile=/scratch/kocevski/73099/ltcube_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.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/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.fits
.....................!
real 14.21
user 13.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73099/ft1_filtered_4FGL_J2159.8-4751_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/73099/ltcube_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.fits outfile=/scratch/kocevski/73099/expmap_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.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/73099/ltcube_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.fits
.....................!
real 192.27
user 185.30
sys 5.30

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/73099/ft1_filtered_4FGL_J2159.8-4751_daily_bin1343.fits scfile=/scratch/kocevski/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.fits outfile=/scratch/kocevski/73099/cmap_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=329.962 yref=-47.8518 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73099/ft1_filtered_4FGL_J2159.8-4751_daily_bin1343.fits scfile=/scratch/kocevski/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.fits outfile=/scratch/kocevski/73099/cmap_HighResolution_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73099/ft1_filtered_4FGL_J2159.8-4751_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/73099/ft2_4FGL_J2159.8-4751_daily_bin1343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73099/Model_4FGL_J2159.8-4751_daily_bin1343.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/73099/ft1_filtered_4FGL_J2159.8-4751_daily_bin1343.fits.....................!
real 43.91
user 42.13
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    98.301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0264       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.629       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    86.926       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1934       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82775       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=   5012.442     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3061 TOTAL
                     EDM=   .92E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3095       -.47462E-07** at limit **
   2  norm          11.064        3.2074       -.64925E-08   -.32165E-05
   3  Prefactor     98.297        61.723        .46721E-06    .29055E-07
   4  Prefactor     3.6991        11.638        .34000E-05    .29755E-05
   5  Prefactor     30.352        29.966       -.35098E-06   -.21621E-05
   6  Prefactor     .10000E-03    9.1962        .53174E-06** at limit **
   7  Prefactor     .10000E-03    1.8625        .10567E-07** at limit **
   8  norm          .10000E-03    1.8409        .39394E-08** at limit **
   9  Prefactor     17.292        13.356        .12046E-06   -.41606E-05
  10  Prefactor     .10000E-03    4.7302       -.30336E-07** at limit **
  11  Prefactor     56.447        60.852        .12039E-05    .12966E-04
  12  Prefactor     2.0305        18.915        .33377E-06    .59377E-05
  13  Prefactor     .10000E-03    3.6986       -.15688E-07** at limit **
  14  Prefactor     .10000E-03    104.27       -.74957E-05** at limit **
  15  norm          .10000E-03    2.6591       -.38578E-08** at limit **
  16  Prefactor     3.7239        5.8397        .11492E-06   -.54232E-04
  17  Prefactor     .10000E-03    22.355        .58357E-07** at limit **
  18  Prefactor     5.2503        6.9420        .13149E-06    .21929E-05
  19  Prefactor     .10000E-03    120.87        .78120E-05** at limit **
  20  Prefactor     14.627        30.371        .90322E-06    .14514E-04
  21  Prefactor     .10000E-03    9.5388       -.46320E-06** at limit **
  22  Prefactor     86.941        138.43       -.11938E-05    .30409E-05
  23  Prefactor     8.2314        7.5318        .21200E-06   -.37241E-04
  24  Prefactor     .10000E-03    13.549        .23446E-07** at limit **
  25  Normalizat    1.1934        .23318       -.12169E-05   -.99059E-05
  26  Prefactor     .82769        .15605        .11033E-06   -.55600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.0638
  Prefactor  = 98.2973
  Prefactor  = 3.69908
  Prefactor  = 30.3519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.292
  Prefactor  = 0.0001
  Prefactor  = 56.447
  Prefactor  = 2.03052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.72391
  Prefactor  = 0.0001
  Prefactor  = 5.25029
  Prefactor  = 0.0001
  Prefactor  = 14.6273
  Prefactor  = 0.0001
  Prefactor  = 86.9408
  Prefactor  = 8.23137
  Prefactor  = 0.0001
  Normalizat = 1.19344
  Prefactor  = 0.827691
 **********
 **   18 **HESSE 
 **********

 FCN=   5012.442     FROM HESSE     STATUS=OK           454 CALLS     3515 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.064        3.2080        .65679E-04   -1.5043    
   3  Prefactor     98.297        61.760        .40545E-04   -1.3722    
   4  Prefactor     3.6991        11.652        .10498E-02   -1.5323    
   5  Prefactor     30.352        29.987        .72726E-04   -1.4606    
   6  Prefactor     .10000E-03    9.2053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8703        .94338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8459        .93787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.292        13.361        .96314E-04   -1.4876    
  10  Prefactor     .10000E-03    4.7425        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.447        60.098        .53389E-04   -1.4204    
  12  Prefactor     2.0305        18.132        .29065E-03   -1.5423    
  13  Prefactor     .10000E-03    3.7871        .26551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    104.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6604        .11275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7239        5.9141        .19544E-03   -1.5322    
  17  Prefactor     .10000E-03    22.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2503        6.9319        .17542E-03   -1.5250    
  19  Prefactor     .10000E-03    122.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.627        30.512        .10472E-03   -1.4943    
  21  Prefactor     .10000E-03    9.5610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     86.941        138.16        .43091E-04   -1.3840    
  23  Prefactor     8.2314        7.5301        .69866E-03   -1.5134    
  24  Prefactor     .10000E-03    13.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1934        .27500        .26164E-03   -.86806    
  26  Prefactor     .82769        .18325        .23024E-03   -.98716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83199e-11
Minuit parameter uncertainties:
  1  8.80044e-07
  2  3.20803
  3  61.8007
  4  11.659
  5  30.0019
  6  2.4415e-06
  7  1.13623e-06
  8  3.70344e-07
  9  13.3635
  10  3.25722e-07
  11  60.1625
  12  12.14
  13  2.51542e-06
  14  0.00013914
  15  2.16592e-08
  16  5.91507
  17  1.24497e-06
  18  6.93299
  19  0.000372571
  20  30.5444
  21  5.76534e-06
  22  138.676
  23  7.53099
  24  1.45558e-06
  25  0.275334
  26  0.183389
Done.

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

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  5.645e+01  6.016e+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:  8.277e-01  1.834e-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.193e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 6.27e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.78e-05

TS (Fixed Index): 1.49
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73099/likelihoodResults_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.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) = 5010.40962389
delta logL = 2.03287111124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5010.40295839
delta logL = 2.03953660494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.300       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1329       1.0000          .0000       10.000    
     3 'Normalizat'    1.0486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89163       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=   5010.403     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      290 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.286        34.547        .10592E-03   -.56888E-03
   2  Index         4.1334        1.4275        .36236E-02   -.11051E-03
   3  Normalizat    1.0486        .25068        .27608E-03   -.20487E-03
   4  Prefactor     .89163        .18104        .22252E-03    .17948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2859
  Index      = 4.13342
  Normalizat = 1.04864
  Prefactor  = 0.891628
 **********
 **   18 **HESSE 
 **********

 FCN=   5010.403     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.286        20.977        .42367E-05   -1.4952    
   2  Index         4.1334        .87286        .14494E-03   -.17420    
   3  Normalizat    1.0486        .25092        .55216E-04   -.91418    
   4  Prefactor     .89163        .18097        .44505E-04   -.96434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53712e-10
Minuit parameter uncertainties:
  1  20.9879
  2  0.8775
  3  0.251207
  4  0.181094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73099': 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) = 5010.40295815
delta logL = 2.03953684779

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  1.429e+01  2.099e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  4.133e+00  8.775e-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:  8.916e-01  1.811e-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.049e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 4.13 +/- 0.88
Photon Flux (Free Index): 1.84e-07 +/- 9.54e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.38e-05

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/73099/cmap_HighResolution_587433601_587692801_4FGL_J2159.8-4751_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='2.70e-05', photon_flux_error='6.27e-08', dlogl='2.04e+00', energy_flux='1.67e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-27 23:16:47.616088', photon_index_error2='0.88', photon_index2='4.13', ts='1.49', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.38e-05', EG='1.19', time_epoch_completed='1632809807.62', return_code='0', job_id='73099', GAL2='0.89', EG2='1.05', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='9.54e-08', ts2='6.07', photon_index='2.52' WHERE bin_id='1343' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 73099: <4FGL_J2159.8-4751_daily_bin1343> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1343> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 22:55:28 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:05:22 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:22 2021
Terminated at Mon Sep 27 23:16:48 2021
Results reported at Mon Sep 27 23:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1343 329.962 -47.8518 587433601 587692801 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 :                                   653.29 sec.
    Max Memory :                                 617 MB
    Average Memory :                             283.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            1280 sec.

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

