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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1456
RA = 179.843, Dec = -21.7038
tmin = 616723201, tmax = 616982401
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='230008', job_status='RUN', time_executed='2021-09-04 19:06:24.580035', time_epoch_executed='1630807584.58' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230008

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230008/ft1_4FGL_J1159.3-2142_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230008/ft1_4FGL_J1159.3-2142_daily_bin1456.fits outfile=/scratch/kocevski/230008/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1456.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=616723201.0 tmax=616982401.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.13
user 2.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.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/230008/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1456.fits evtable="EVENTS" outfile="/scratch/kocevski/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/230008/ltcube_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.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/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits
.....................!
real 12.23
user 11.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/230008/ltcube_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.fits outfile=/scratch/kocevski/230008/expmap_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.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/230008/ltcube_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.fits
.....................!
real 191.54
user 185.37
sys 5.50

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/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits scfile=/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits outfile=/scratch/kocevski/230008/cmap_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits scfile=/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits outfile=/scratch/kocevski/230008/cmap_HighResolution_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230008/Model_4FGL_J1159.3-2142_daily_bin1456.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/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits.....................!
real 69.47
user 68.10
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits', '/scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits', expMap='/scratch/kocevski/230008/expmap_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.fits', expCube='/scratch/kocevski/230008/ltcube_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230008/Model_4FGL_J1159.3-2142_daily_bin1456.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/230008/ft1_filtered_4FGL_J1159.3-2142_daily_bin1456.fits
Spacecraft file(s): /scratch/kocevski/230008/ft2_4FGL_J1159.3-2142_daily_bin1456.fits
Exposure map: /scratch/kocevski/230008/expmap_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.fits
Exposure cube: /scratch/kocevski/230008/ltcube_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230008/Model_4FGL_J1159.3-2142_daily_bin1456.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) = 8376.50687155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.682       1.0000         .10000E-03   10000.    
     6 'norm      '    .85568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.731       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.674       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.724       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.656       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9607       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4558       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.6017       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97229       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1362       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=   8376.503     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3091 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.335        26.150        .98530E-09   -.10595E-04
   2  Prefactor     .10000E-03    32.080        .26946E-06** at limit **
   3  Prefactor     .10000E-03    25.545       -.39277E-06** at limit **
   4  Prefactor     .10000E-03    14.004        .68903E-06** at limit **
   5  Prefactor     11.683        67.695        .16984E-06   -.11558E-05
   6  norm          .85529        .96858        .11355E-06    .38143E-03
   7  Prefactor     13.732        9.2084        .87444E-06    .16187E-03
   8  Prefactor     .10000E-03    10.685       -.43834E-06** at limit **
   9  Prefactor     4.1882        4.8869        .51450E-06   -.12752E-03
  10  Prefactor     12.308        15.496        .86796E-07   -.20803E-06
  11  Prefactor     .10000E-03    42.770        .18970E-05** at limit **
  12  norm          .10000E-03    6.7748       -.94959E-07** at limit **
  13  Prefactor     .10000E-03    21.341        .16113E-06** at limit **
  14  norm          11.676        5.4327       -.12934E-06   -.21697E-03
  15  Prefactor     .10002E-03    4.4114        .18652E-05** at limit **
  16  Prefactor     41.729        47.636       -.51085E-06   -.16218E-04
  17  Prefactor     19.662        23.222       -.75728E-07   -.22840E-03
  18  Prefactor     4.9620        8.7791        .30052E-05    .21780E-03
  19  Prefactor     .10000E-03    12.526       -.19922E-06** at limit **
  20  Prefactor     .10000E-03    64.131       -.22137E-05** at limit **
  21  Prefactor     .10000E-03    2.1334        .41740E-08** at limit **
  22  Prefactor     5.4558        2.2557        .19562E-07   -.61624E-05
  23  Prefactor     .10000E-03    6.4173        .95454E-07** at limit **
  24  norm          3.6016        1.3268        .74274E-08   -.93975E-04
  25  Normalizat    .97230        .22169       -.57459E-06   -.22223E-03
  26  Prefactor     1.1362        .11834       -.11531E-06   -.41691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.6829
  norm       = 0.855289
  Prefactor  = 13.7315
  Prefactor  = 0.0001
  Prefactor  = 4.18817
  Prefactor  = 12.3082
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6762
  Prefactor  = 0.000100017
  Prefactor  = 41.729
  Prefactor  = 19.662
  Prefactor  = 4.96202
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 5.4558
  Prefactor  = 0.0001
  norm       = 3.60156
  Normalizat = 0.972301
  Prefactor  = 1.13618
 **********
 **   18 **HESSE 
 **********

 FCN=   8376.503     FROM HESSE     STATUS=OK           458 CALLS     3549 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.335        26.143        .93531E-04   -1.4851    
   2  Prefactor     .10000E-03    32.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.683        65.220        .11721E-03   -1.5024    
   6  norm          .85529        .84916        .88456E-03   -1.5523    
   7  Prefactor     13.732        9.2593        .54046E-03   -1.4967    
   8  Prefactor     .10000E-03    10.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1882        4.8653        .19693E-03   -1.5299    
  10  Prefactor     12.308        15.513        .11418E-03   -1.5006    
  11  Prefactor     .10000E-03    43.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.7887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.676        5.4148        .11725E-03   -1.5024    
  15  Prefactor     .10002E-03    8.7506        .30805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     41.729        47.641        .62059E-04   -1.4415    
  17  Prefactor     19.662        22.516        .90341E-04   -1.4821    
  18  Prefactor     4.9620        8.9463        .90284E-03   -1.5262    
  19  Prefactor     .10000E-03    12.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    65.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.1410        .13048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4558        2.2555        .85810E-04   -1.5241    
  23  Prefactor     .10000E-03    6.4811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.6016        1.3257        .61784E-04   -1.5328    
  25  Normalizat    .97230        .25478        .36578E-03   -.93964    
  26  Prefactor     1.1362        .13693        .18690E-03   -.88318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46892e-09
Minuit parameter uncertainties:
  1  26.1596
  2  0.000157242
  3  0.000209712
  4  0.000181895
  5  55.2997
  6  0.849168
  7  9.26029
  8  0.000137585
  9  4.86578
  10  15.5179
  11  0.000802317
  12  2.33175e-05
  13  0.000121876
  14  5.41503
  15  0.000769301
  16  47.6845
  17  22.5258
  18  8.94872
  19  3.89409e-05
  20  0.00112652
  21  9.07739e-07
  22  2.25552
  23  1.93727e-05
  24  1.32569
  25  0.255102
  26  0.13697
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.168e+01  5.415e+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:  1.136e+00  1.370e-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:  9.723e-01  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.03
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 4.91e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 1.69e-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) = 8376.094769
delta logL = 0.408277266684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8376.09472817
delta logL = 0.408318097581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.566       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0180       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8376.095     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      309 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.548        6.8287        .52472E-03    .60527E-04
   2  alpha         2.0166        .38879        .11889E-01    .55827E-05
   3  Normalizat    1.0049        .24784        .36050E-03   -.44150E-05
   4  Prefactor     1.1236        .13607        .18775E-03   -.24221E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5477
  alpha      = 2.01663
  Normalizat = 1.00486
  Prefactor  = 1.12361
 **********
 **   18 **HESSE 
 **********

 FCN=   8376.095     FROM HESSE     STATUS=OK            27 CALLS      336 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.548        6.7758        .10494E-03   -1.4945    
   2  alpha         2.0166        .38564        .47555E-03   -.19457    
   3  Normalizat    1.0049        .24796        .14420E-04   -.92868    
   4  Prefactor     1.1236        .13615        .75100E-05   -.88716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07427e-13
Minuit parameter uncertainties:
  1  6.77614
  2  0.387251
  3  0.248244
  4  0.136196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230008': 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) = 8376.09471504
delta logL = 0.408331227423

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.455e+01  6.776e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.017e+00  3.873e-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:  1.124e+00  1.362e-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.005e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.86
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.02 +/- 0.39
Photon Flux (Free Index): 8.44e-08 +/- 4.66e-08
Energy Flux (Free Index): 4.59e-05 +/- 2.41e-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/230008/cmap_HighResolution_616723201_616982401_4FGL_J1159.3-2142_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='4.59e-05', photon_flux_error='4.91e-08', dlogl='4.08e-01', energy_flux='3.65e-05', photon_flux2='8.44e-08', job_status='DONE', time_completed='2021-09-04 19:20:01.393749', photon_index_error2='0.39', photon_index2='2.02', ts='8.03', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.97', time_epoch_completed='1630808401.39', return_code='0', job_id='230008', GAL2='1.12', EG2='1.00', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.66e-08', ts2='8.86', photon_index='2.38' WHERE bin_id='1456' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 230008: <4FGL_J1159.3-2142_daily_bin1456> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1456> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:45 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:47 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:47 2021
Terminated at Sat Sep  4 19:20:02 2021
Results reported at Sat Sep  4 19:20:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1456 179.843 -21.7038 616723201 616982401 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 :                                   806.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

