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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1471
RA = 179.843, Dec = -21.7038
tmin = 620611201, tmax = 620870401
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='230037', job_status='RUN', time_executed='2021-09-04 19:07:22.590642', time_epoch_executed='1630807642.59' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230037/ft1_4FGL_J1159.3-2142_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230037/ft1_4FGL_J1159.3-2142_daily_bin1471.fits outfile=/scratch/kocevski/230037/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1471.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=620611201.0 tmax=620870401.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.69
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.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/230037/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1471.fits evtable="EVENTS" outfile="/scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.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.58
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/230037/ltcube_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.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/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits
.....................!
real 13.17
user 12.66
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/230037/ltcube_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.fits outfile=/scratch/kocevski/230037/expmap_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.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/230037/ltcube_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.fits
.....................!
real 198.20
user 192.84
sys 4.88

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.3-2142 @ 179.843 -21.7038

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits scfile=/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits outfile=/scratch/kocevski/230037/cmap_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.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=179.843 yref=-21.7038 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits scfile=/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits outfile=/scratch/kocevski/230037/cmap_HighResolution_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.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=179.843 yref=-21.7038 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230037/Model_4FGL_J1159.3-2142_daily_bin1471.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/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits.....................!
real 67.09
user 65.64
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits', '/scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits', expMap='/scratch/kocevski/230037/expmap_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.fits', expCube='/scratch/kocevski/230037/ltcube_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230037/Model_4FGL_J1159.3-2142_daily_bin1471.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.3-2142'

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.158e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/230037/ft1_filtered_4FGL_J1159.3-2142_daily_bin1471.fits
Spacecraft file(s): /scratch/kocevski/230037/ft2_4FGL_J1159.3-2142_daily_bin1471.fits
Exposure map: /scratch/kocevski/230037/expmap_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.fits
Exposure cube: /scratch/kocevski/230037/ltcube_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230037/Model_4FGL_J1159.3-2142_daily_bin1471.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) = 7537.85758942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.055       1.0000         .10000E-03   10000.    
     6 'norm      '    .15001       1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.736       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47751E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.876       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.953       1.0000         .10000E-03   10000.    
    14 'norm      '    10.725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .99379E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.049       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.409       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0410       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7721       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.182       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.9270       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7537.841     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3149 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.353       -.24403E-06** at limit **
   2  Prefactor     .10000E-03    31.199        .49080E-07** at limit **
   3  Prefactor     .10000E-03    9.5519        .15144E-06** at limit **
   4  Prefactor     .10000E-03    3.4750        .25986E-07** at limit **
   5  Prefactor     71.060        56.387       -.44330E-07   -.36405E-04
   6  norm          .14976        .97341       -.95119E-06    .35700E-03
   7  Prefactor     70.735        20.711        .68925E-08    .20619E-04
   8  Prefactor     .10000E-03    31.009        .33472E-06** at limit **
   9  Prefactor     .10000E-03    84.773        .20445E-04** at limit **
  10  Prefactor     .10001E-03    57.815       -.16105E-05** at limit **
  11  Prefactor     14.783        29.818       -.43224E-05   -.12235E-03
  12  norm          .10000E-03    10.686       -.38907E-06** at limit **
  13  Prefactor     30.941        20.125       -.12525E-06   -.34227E-03
  14  norm          10.725        6.2468       -.55116E-07   -.32995E-03
  15  Prefactor     .10001E-03    2.6555        .10743E-05** at limit **
  16  Prefactor     50.059        52.703        .12376E-05   -.13430E-03
  17  Prefactor     .10000E-03    11.888        .56483E-06** at limit **
  18  Prefactor     .10000E-03    7.6128       -.21856E-06** at limit **
  19  Prefactor     .10000E-03    17.742       -.35163E-06** at limit **
  20  Prefactor     45.417        33.275       -.19507E-07   -.10218E-03
  21  Prefactor     8.0417        7.8633        .24483E-07    .32618E-05
  22  Prefactor     5.7724        2.8679        .24373E-07   -.88704E-05
  23  Prefactor     .10000E-03    5.6714        .27151E-07** at limit **
  24  norm          11.182        2.3102        .18778E-07   -.18050E-03
  25  Normalizat    1.9273        .27039       -.44673E-06   -.53309E-03
  26  Prefactor     .63872        .12809       -.52153E-06   -.59612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.0598
  norm       = 0.149758
  Prefactor  = 70.7345
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 14.7834
  norm       = 0.0001
  Prefactor  = 30.9412
  norm       = 10.7245
  Prefactor  = 0.000100006
  Prefactor  = 50.0592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4173
  Prefactor  = 8.04169
  Prefactor  = 5.77236
  Prefactor  = 0.0001
  norm       = 11.1823
  Normalizat = 1.92727
  Prefactor  = 0.638724
 **********
 **   18 **HESSE 
 **********

 FCN=   7537.841     FROM HESSE     STATUS=OK           456 CALLS     3605 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4805        .15806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.060        56.507        .47624E-04   -1.4020    
   6  norm          .14976        .96415        .16258E-03   -1.5631    
   7  Prefactor     70.735        20.934        .47730E-04   -1.4024    
   8  Prefactor     .10000E-03    31.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2055        .52973E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    57.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.783        30.705        .10385E-03   -1.4939    
  12  norm          .10000E-03    10.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.941        20.150        .72018E-04   -1.4595    
  14  norm          10.725        6.2489        .12234E-03   -1.5053    
  15  Prefactor     .10001E-03    24.280        .26212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.059        52.545        .56686E-04   -1.4292    
  17  Prefactor     .10000E-03    11.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.417        33.306        .59498E-04   -1.4359    
  21  Prefactor     8.0417        7.8729        .14139E-03   -1.5141    
  22  Prefactor     5.7724        2.8715        .97416E-04   -1.5227    
  23  Prefactor     .10000E-03    5.6798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.182        2.3110        .57501E-04   -1.5039    
  25  Normalizat    1.9273        .32377        .31809E-03   -.66386    
  26  Prefactor     .63872        .15145        .25096E-03   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04186e-09
Minuit parameter uncertainties:
  1  4.20773e-05
  2  2.61637e-06
  3  1.26398e-05
  4  4.37375e-06
  5  56.5501
  6  0.759735
  7  20.9365
  8  8.29586e-07
  9  0.000139028
  10  0.00126695
  11  30.7378
  12  6.95273e-05
  13  20.154
  14  6.24924
  15  0.000746593
  16  52.5936
  17  7.17068e-05
  18  1.26345e-05
  19  7.40858e-06
  20  33.32
  21  7.87396
  22  2.87157
  23  6.12109e-06
  24  2.31104
  25  0.324139
  26  0.151542
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.072e+01  6.249e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.387e-01  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.927e+00  3.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.50
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 9.73e-08 +/- 5.67e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.96e-05

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) = 7537.79962136
delta logL = 0.041272371499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7537.79640369
delta logL = 0.0444900410603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.549       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2211       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63424       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7537.796     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      229 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.549        138.71        .29471E-02    .55226E-04
   2  alpha         2.2214        3.3081        .37856        .22647E-04
   3  Normalizat    1.9415        .21573        .71721E-01    .17316E-05
   4  Prefactor     .63428        .63435E-01    .41519E-01    .26711E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.549
  alpha      = 2.22144
  Normalizat = 1.94151
  Prefactor  = 0.634276
 **********
 **   18 **HESSE 
 **********

 FCN=   7537.796     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.549        6.6226        .11788E-03   -1.5028    
   2  alpha         2.2214        .53448        .13843E-01   -.11165    
   3  Normalizat    1.9415        .30669        .31725E-03   -.66025    
   4  Prefactor     .63428        .14902        .25176E-03   -1.0616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82487e-10
Minuit parameter uncertainties:
  1  6.62299
  2  0.53869
  3  0.306996
  4  0.14911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230037': 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) = 7537.79640345
delta logL = 0.0444902803374

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.155e+01  6.623e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.221e+00  5.387e-01  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.343e-01  1.491e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.942e+00  3.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.67
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.22 +/- 0.54
Photon Flux (Free Index): 8.51e-08 +/- 5.99e-08
Energy Flux (Free Index): 3.51e-05 +/- 1.99e-05

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/230037/cmap_HighResolution_620611201_620870401_4FGL_J1159.3-2142_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.73e-08', energy_flux2='3.51e-05', photon_flux_error='5.67e-08', dlogl='4.45e-02', energy_flux='3.36e-05', photon_flux2='8.51e-08', job_status='DONE', time_completed='2021-09-04 19:20:16.601911', photon_index_error2='0.54', photon_index2='2.22', ts='8.50', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.93', time_epoch_completed='1630808416.6', return_code='0', job_id='230037', GAL2='0.63', EG2='1.94', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='5.99e-08', ts2='8.67', photon_index='2.38' WHERE bin_id='1471' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 230037: <4FGL_J1159.3-2142_daily_bin1471> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1471> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:47 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:05:49 2021
Terminated at Sat Sep  4 19:20:17 2021
Results reported at Sat Sep  4 19:20:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1471 179.843 -21.7038 620611201 620870401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.3-2142 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

