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


Performing analysis on: 4FGL_J2159.8-4751_daily_bin1603
RA = 329.962, Dec = -47.8518
tmin = 654825601, tmax = 655084801
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='917380', job_status='RUN', time_executed='2021-10-05 00:16:37.551145', time_epoch_executed='1633418197.55' WHERE source_name='4FGL J2159.8-4751' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917380/ft1_4FGL_J2159.8-4751_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917380/ft1_4FGL_J2159.8-4751_daily_bin1603.fits outfile=/scratch/kocevski/917380/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1603.fits ra=329.962 dec=-47.8518 rad=12.0 tmin=654825601.0 tmax=655084801.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 2.39
user 2.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.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/917380/ft1_filteredMKT_4FGL_J2159.8-4751_daily_bin1603.fits evtable="EVENTS" outfile="/scratch/kocevski/917380/ft1_filtered_4FGL_J2159.8-4751_daily_bin1603.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917380/ft1_filtered_4FGL_J2159.8-4751_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917380/ltcube_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.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/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.fits
.....................!
real 9.93
user 9.62
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917380/ft1_filtered_4FGL_J2159.8-4751_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917380/ltcube_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.fits outfile=/scratch/kocevski/917380/expmap_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.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/917380/ltcube_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.fits
.....................!
real 149.48
user 145.52
sys 3.68

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/917380/ft1_filtered_4FGL_J2159.8-4751_daily_bin1603.fits scfile=/scratch/kocevski/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.fits outfile=/scratch/kocevski/917380/cmap_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.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.46
user 0.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917380/ft1_filtered_4FGL_J2159.8-4751_daily_bin1603.fits scfile=/scratch/kocevski/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.fits outfile=/scratch/kocevski/917380/cmap_HighResolution_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917380/ft1_filtered_4FGL_J2159.8-4751_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917380/ft2_4FGL_J2159.8-4751_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917380/Model_4FGL_J2159.8-4751_daily_bin1603.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/917380/ft1_filtered_4FGL_J2159.8-4751_daily_bin1603.fits.....................!
real 59.83
user 58.66
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .44441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3490       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4878       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8206       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5640       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3571       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17857E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68311       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12628E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6642       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8130       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0425       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12470E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1088       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1502       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=   10644.01     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     2713 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6808       -.20105E-07** at limit **
   2  norm          .44385        1.0768       -.35717E-07   -.26135E-03
   3  Prefactor     .10000E-03    35.623        .10164E-06** at limit **
   4  Prefactor     .10000E-03    1.0996       -.22580E-06** at limit **
   5  Prefactor     .10000E-03    9.3759       -.57156E-07** at limit **
   6  Prefactor     9.3156        15.677       -.10134E-05   -.16301E-05
   7  Prefactor     6.3489        3.7464       -.23114E-07   -.55755E-05
   8  norm          5.6513        3.4402       -.73625E-07    .28326E-05
   9  Prefactor     9.4857        6.3290       -.26203E-06   -.27618E-05
  10  Prefactor     .10000E-03    1.9274        .15594E-06** at limit **
  11  Prefactor     8.8241        35.814       -.55789E-05   -.59493E-05
  12  Prefactor     1.5670        10.054        .73576E-06    .12249E-04
  13  Prefactor     2.3546        3.3621       -.21235E-06   -.95072E-04
  14  Prefactor     .10000E-03    60.434        .23565E-05** at limit **
  15  norm          3.8263        3.7940        .16588E-06    .14814E-05
  16  Prefactor     .66995        2.2194       -.10989E-06    .21760E-03
  17  Prefactor     .10209E-03    51.177       -.14883E-05** at limit **
  18  Prefactor     3.6647        1.3908        .69793E-07   -.12127E-02
  19  Prefactor     2.8077        25.002       -.18486E-05    .22340E-04
  20  Prefactor     .10000E-03    11.126       -.82750E-07** at limit **
  21  Prefactor     .10000E-03    5.3851       -.59271E-06** at limit **
  22  Prefactor     3.0969        276.38       -.31600E-04    .13404E-05
  23  Prefactor     .10000E-03    2.4170       -.52668E-07** at limit **
  24  Prefactor     .10000E-03    46.034        .28736E-06** at limit **
  25  Normalizat    1.1089        .16228        .88005E-06    .12586E-03
  26  Prefactor     1.1503        .11776        .55498E-07    .20661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.443853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.31562
  Prefactor  = 6.3489
  norm       = 5.65134
  Prefactor  = 9.48572
  Prefactor  = 0.0001
  Prefactor  = 8.82405
  Prefactor  = 1.56704
  Prefactor  = 2.35458
  Prefactor  = 0.0001
  norm       = 3.82634
  Prefactor  = 0.66995
  Prefactor  = 0.00010209
  Prefactor  = 3.66467
  Prefactor  = 2.8077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10893
  Prefactor  = 1.15027
 **********
 **   18 **HESSE 
 **********

 FCN=   10644.01     FROM HESSE     STATUS=OK           472 CALLS     3185 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .44385        1.0786        .16116E-03   -1.5575    
   3  Prefactor     .10000E-03    35.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1016        .10566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3156        15.686        .13115E-03   -1.5097    
   7  Prefactor     6.3489        3.7473        .14545E-03   -1.5204    
   8  norm          5.6513        3.4417        .14419E-03   -1.5232    
   9  Prefactor     9.4857        6.3342        .13010E-03   -1.5092    
  10  Prefactor     .10000E-03    1.9315        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8241        34.604        .13496E-03   -1.5114    
  12  Prefactor     1.5670        9.3521        .34013E-03   -1.5458    
  13  Prefactor     2.3546        3.3521        .21009E-03   -1.5401    
  14  Prefactor     .10000E-03    60.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8263        3.7882        .19510E-03   -1.5317    
  16  Prefactor     .66995        5.4437        .23866E-02   -1.5544    
  17  Prefactor     .10209E-03    40.392        .17339       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6647        4.4947        .10551E-02   -1.5325    
  19  Prefactor     2.8077        24.964        .24252E-03   -1.5373    
  20  Prefactor     .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0969        274.73        .23261E-03   -1.5356    
  23  Prefactor     .10000E-03    12.125        .30862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1089        .19189        .27961E-03   -.89465    
  26  Prefactor     1.1503        .13729        .21422E-03   -.87876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16386e-09
Minuit parameter uncertainties:
  1  1.84285e-06
  2  1.07862
  3  1.14584e-05
  4  4.5379e-07
  5  3.61917e-06
  6  15.6931
  7  3.74744
  8  3.44184
  9  6.33469
  10  1.80975e-07
  11  34.6823
  12  7.65793
  13  3.35236
  14  3.70659e-06
  15  3.78848
  16  3.81962
  17  0.0183866
  18  4.49515
  19  16.7531
  20  2.41549e-05
  21  3.6489e-05
  22  58.6156
  23  7.90353e-05
  24  2.61678e-05
  25  0.192011
  26  0.137337
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
582    Prefactor:  1.150e+00  1.373e-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.109e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917380/likelihoodResults_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.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) = 10643.6654845
delta logL = 0.345723283448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10643.6471747
delta logL = 0.364033087482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4476       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2137       1.0000          .0000       10.000    
     3 'Normalizat'    1.0725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1676       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10643.65     FROM MIGRAD    STATUS=FAILED        84 CALLS      284 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4481        160.75        .17867E-03    .13244E-02
   2  Index         4.2140        6.8524        .80680E-02    .41181E-03
   3  Normalizat    1.0726        .14237        .14186E-02    .57348E-03
   4  Prefactor     1.1675        .11037        .21284E-03    .50778E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10643.65     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      375 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4481        160.75        .26789E-03    .13244E-02
   2  Index         4.2140        6.8524        .20727E-02    .41181E-03
   3  Normalizat    1.0726        .14237        .12559E-03    .57348E-03
   4  Prefactor     1.1675        .11037        .41744E-04    .50778E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10643.65     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      404 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4495        17.321        .71469E-05    .19477E-02
   2  Index         4.2137        2.8329        .32272E-03    .26245E-03
   3  Normalizat    1.0726        .17850        .56746E-04    .64054E-03
   4  Prefactor     1.1675        .13628        .42568E-04    .58916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44946
  Index      = 4.21368
  Normalizat = 1.07255
  Prefactor  = 1.16755
 **********
 **   18 **HESSE 
 **********

 FCN=   10643.65     FROM HESSE     STATUS=OK            23 CALLS      427 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4495        15.071        .14294E-05   -1.5395    
   2  Index         4.2137        2.6632        .12909E-04   -.15792    
   3  Normalizat    1.0726        .17855        .11349E-04   -.90638    
   4  Prefactor     1.1675        .13629        .85136E-05   -.87336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27691e-09
Minuit parameter uncertainties:
  1  12.1559
  2  2.81288
  3  0.178653
  4  0.136327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917380': 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) = 10643.6471745
delta logL = 0.364033268146

Extracting fit parameters...

4FGL J2159.8-4751
   Spectrum: PowerLaw
311    Prefactor:  2.449e+00  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        Index:  4.214e+00  2.813e+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.168e+00  1.363e-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.073e+00  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/917380/cmap_HighResolution_654825601_655084801_4FGL_J2159.8-4751_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-10-05 00:29:29.942866', job_id='917380', GAL2='1.17', fit_tolerance='1e-08', EG2='1.07', EG='1.11', time_epoch_completed='1633418969.94', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.64e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1603' AND source_name='4FGL J2159.8-4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:29:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 917380: <4FGL_J2159.8-4751_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2159.8-4751_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:27 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:28 2021
Terminated at Tue Oct  5 00:29:30 2021
Results reported at Tue Oct  5 00:29:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2159.8-4751_daily_bin1603 329.962 -47.8518 654825601 655084801 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 :                                   773.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

