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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1235
RA = 329.962, Dec = -47.8518
tmin = 559440001, tmax = 559699201
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='72940', job_status='RUN', time_executed='2021-09-27 23:05:20.833806', time_epoch_executed='1632809120.83' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72940

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72940/ft1_4FGL_J2159.8-4751_daily_bin1235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72940/ft1_4FGL_J2159.8-4751_daily_bin1235.fits outfile=/scratch/kocevski/72940/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1235.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=559440001.0 tmax=559699201.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.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72940/ft1_filtered_4FGL_J2159.8-4751_daily_bin1235.fits" evtable="EVENTS" scfile=/scratch/kocevski/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits sctable="SC_DATA" outfile=/scratch/kocevski/72940/ltcube_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.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/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits
.....................!
real 12.67
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72940/ft1_filtered_4FGL_J2159.8-4751_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits sctable="SC_DATA" expcube=/scratch/kocevski/72940/ltcube_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.fits outfile=/scratch/kocevski/72940/expmap_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.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/72940/ltcube_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.fits
.....................!
real 191.96
user 186.07
sys 4.96

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/72940/ft1_filtered_4FGL_J2159.8-4751_daily_bin1235.fits scfile=/scratch/kocevski/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits outfile=/scratch/kocevski/72940/cmap_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72940/ft1_filtered_4FGL_J2159.8-4751_daily_bin1235.fits scfile=/scratch/kocevski/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits outfile=/scratch/kocevski/72940/cmap_HighResolution_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.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.56
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72940/ft1_filtered_4FGL_J2159.8-4751_daily_bin1235.fits', '/scratch/kocevski/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits', expMap='/scratch/kocevski/72940/expmap_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.fits', expCube='/scratch/kocevski/72940/ltcube_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72940/Model_4FGL_J2159.8-4751_daily_bin1235.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/72940/ft1_filtered_4FGL_J2159.8-4751_daily_bin1235.fits
Spacecraft file(s): /scratch/kocevski/72940/ft2_4FGL_J2159.8-4751_daily_bin1235.fits
Exposure map: /scratch/kocevski/72940/expmap_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.fits
Exposure cube: /scratch/kocevski/72940/ltcube_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72940/Model_4FGL_J2159.8-4751_daily_bin1235.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 526.002906511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 520.076812905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13725       1.0000         .10000E-03   10000.    
     2 'norm      '    .16704E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6407       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1712       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56835E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3281       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67442E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .32818E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.287       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21265E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    310.74       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57394E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19357E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2759       1.0000         .10000E-03   10000.    
    15 'norm      '    .17868E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    445.44       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13085E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .92663E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19587       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16380E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6018       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18572E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .96248E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   520.0691     FROM MIGRAD    STATUS=CONVERGED    217 CALLS      535 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15565E-02    167.08        .28282E-05** at limit **
   2  norm          .10000E-03    8.4897        .19290E-05** at limit **
   3  Prefactor     .46763E-03    1879.4       -.82008E-03** at limit **
   4  Prefactor     7.7833        45.283        .47681E-03    .66012E-03
   5  Prefactor     .10000E-03    92.249       -.51258E-05** at limit **
   6  Prefactor     6.3281        1.0032         .0000         .0000    
   7  Prefactor     .10000E-03    41.787       -.16650E-04** at limit **
   8  norm          .10000E-03    7.5255       -.72831E-06** at limit **
   9  Prefactor     30.311        36.419        .35085E-04    .49756E-04
  10  Prefactor     .10005E-03    39.350       -.93243E-04** at limit **
  11  Prefactor     311.65        31.932        .26101E-04   -.18649E-01
  12  Prefactor     .10000E-03    91.106        .15666E-04** at limit **
  13  Prefactor     .10000E-03    108.47       -.49915E-04** at limit **
  14  Prefactor     .10015E-03    736.84        .32319E-03** at limit **
  15  norm          .10000E-03    132.62        .21274E-05** at limit **
  16  Prefactor     .10000E-03    10.529        .58466E-06** at limit **
  17  Prefactor     444.38        31.336       -.19123E-04    .11965E-01
  18  Prefactor     .10000E-03    15.663        .33941E-05** at limit **
  19  Prefactor     .10000E-03    30.893        .16759E-04** at limit **
  20  Prefactor     .10552E-03    379.87       -.70401E-03** at limit **
  21  Prefactor     .10000E-03    104.48        .23033E-04** at limit **
  22  Prefactor     .22074E-03    968.31       -.25057E-03** at limit **
  23  Prefactor     .10000E-03    33.726       -.11613E-04** at limit **
  24  Prefactor     .10000E-03    190.63       -.34491E-04** at limit **
  25  Normalizat    .10000E-01    .39947        .10081E-04** at limit **
  26  Prefactor     1.1265        .31341       -.75975E-04    .41192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00155648
  norm       = 0.0001
  Prefactor  = 0.000467628
  Prefactor  = 7.78328
  Prefactor  = 0.000100002
  Prefactor  = 6.32809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.3106
  Prefactor  = 0.000100054
  Prefactor  = 311.645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100151
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 444.38
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000105525
  Prefactor  = 0.0001
  Prefactor  = 0.000220736
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.01
  Prefactor  = 1.12651
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   520.0691     FROM HESSE     STATUS=FAILED        31 CALLS      566 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15565E-02    1284.1        .96874E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.4971        .10192E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46763E-03    1944.4        .52931E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7833        42.260        .33085E-02   -1.5150    
   5  Prefactor     .10000E-03    92.127        .93034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     519.04        512.67         .0000       -1.5205    
   7  Prefactor     .10000E-03    .21878       -.16650E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .24327       -.72831E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.311        1.0005        .35085E-04   -1.4606    
  10  Prefactor     .10005E-03    .20571       -.93243E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     311.65        1.0014        .26101E-04   -1.2159    
  12  Prefactor     .10000E-03    .27792        .15666E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20791       -.49915E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10015E-03    .59316E-01    .32319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20757        .21274E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571        .58466E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     444.38        .99887       -.19123E-04   -1.1460    
  18  Prefactor     .10000E-03    .20649        .33941E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .27070        .16759E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10552E-03    .24794       -.70401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20724        .23033E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .22074E-03    .17529       -.25057E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571       -.11613E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .22531       -.34491E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25766        .10081E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.1265        1.1354       -.75975E-04   -.88624    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.18358e-09
Minuit parameter uncertainties:
  1  2.79737
  2  7.16548e-06
  3  1.75117
  4  36.3119
  5  0.000900637
  6  1.00315
  7  1.57978e-05
  8  2.23484e-06
  9  1.00052
  10  0.000210624
  11  1.00141
  12  7.83354e-07
  13  7.81749e-06
  14  0.000189379
  15  4.35782e-06
  16  1.57362e-06
  17  0.998866
  18  3.97773e-06
  19  9.62077e-06
  20  0.00234079
  21  4.49244e-07
  22  0.00920085
  23  1.08001e-05
  24  4.15503e-05
  25  2.17664e-07
  26  1.16136
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 520.069069303

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.116e+02  1.001e+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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.127e+00  1.161e+00  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.000e-02  2.177e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 329.962 -47.852
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.25e-07 +/- 1.04e-09
Energy Flux (Fixed Index): 9.20e-05 +/- 2.96e-07

TS (Fixed Index): 1.72
Ra Dec: 329.962 -47.852
Photon Flux Upper Limit: 1.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72940/likelihoodResults_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.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) = 519.857484478
delta logL = 0.211584824699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 519.854399691
delta logL = 0.214669611747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    328.88       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7745       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1416       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=   519.8544     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     328.82        398.66       -.32284E-04   -.26479E-04
   2  Index         1.7747        .85868       -.35122E-05    .22729E-03
   3  Normalizat    .10000E-01    .40161        .24376E-05** at limit **
   4  Prefactor     1.1418        .28684        .75148E-06   -.40588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 328.823
  Index      = 1.7747
  Normalizat = 0.01
  Prefactor  = 1.14179
 **********
 **   18 **HESSE 
 **********

 FCN=   519.8544     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     328.82        403.26        .11214E-03   -1.2061    
   2  Index         1.7747        1.0221        .51296E-02   -.70110    
   3  Normalizat    .10000E-01    .47446        .81458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1418        .26152        .18116E-03   -.88142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56392e-09
Minuit parameter uncertainties:
  1  406.783
  2  1.03473
  3  5.86685e-06
  4  0.261816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72940': 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) = 519.85439922
delta logL = 0.214670082567

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  3.288e+02  4.068e+02  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  1.775e+00  1.035e+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.142e+00  2.618e-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.000e-02  5.867e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 329.962 -47.852
Photon Index (Free Index): 1.77 +/- 1.03
Photon Flux (Free Index): 1.49e-07 +/- 2.57e-07
Energy Flux (Free Index): 1.93e-04 +/- 4.16e-04

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/72940/cmap_HighResolution_559440001_559699201_4FGL_J2159.8-4751_daily_bin1235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-01', comment='SUCCESS', photon_flux='3.25e-07', energy_flux2='1.93e-04', photon_flux_error='1.04e-09', dlogl='2.15e-01', energy_flux='9.20e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-27 23:11:03.577578', photon_index_error2='1.03', photon_index2='1.77', ts='1.72', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.34e-06', energy_flux_error2='4.16e-04', EG='0.01', time_epoch_completed='1632809463.58', return_code='101', job_id='72940', GAL2='1.14', EG2='0.01', return_code2='0', energy_flux_error='2.96e-07', photon_flux_error2='2.57e-07', ts2='2.13', photon_index='2.52' WHERE bin_id='1235' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 72940: <4FGL_J2159.8-4751_daily_bin1235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1235 329.962 -47.8518 559440001 559699201 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 :                                   328.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             398.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   374 sec.
    Turnaround time :                            950 sec.

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

