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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1362
RA = 179.843, Dec = -21.7038
tmin = 592358401, tmax = 592617601
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='229846', job_status='RUN', time_executed='2021-09-04 19:06:40.042460', time_epoch_executed='1630807600.04' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229846/ft1_4FGL_J1159.3-2142_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229846/ft2_4FGL_J1159.3-2142_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229846/ft1_4FGL_J1159.3-2142_daily_bin1362.fits outfile=/scratch/kocevski/229846/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1362.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=592358401.0 tmax=592617601.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.47
user 3.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229846/ft1_filtered_4FGL_J1159.3-2142_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/229846/ft2_4FGL_J1159.3-2142_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/229846/ltcube_592358401_592617601_4FGL_J1159.3-2142_daily_bin1362.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/229846/ft2_4FGL_J1159.3-2142_daily_bin1362.fits
.....................!
real 14.37
user 13.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229846/ft1_filtered_4FGL_J1159.3-2142_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/229846/ft2_4FGL_J1159.3-2142_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/229846/ltcube_592358401_592617601_4FGL_J1159.3-2142_daily_bin1362.fits outfile=/scratch/kocevski/229846/expmap_592358401_592617601_4FGL_J1159.3-2142_daily_bin1362.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/229846/ltcube_592358401_592617601_4FGL_J1159.3-2142_daily_bin1362.fits
.....................!
real 190.94
user 185.72
sys 4.67

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/229846/ft1_filtered_4FGL_J1159.3-2142_daily_bin1362.fits scfile=/scratch/kocevski/229846/ft2_4FGL_J1159.3-2142_daily_bin1362.fits outfile=/scratch/kocevski/229846/cmap_592358401_592617601_4FGL_J1159.3-2142_daily_bin1362.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5176       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5911       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2179       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.1294       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.303       1.0000         .10000E-03   10000.    
    14 'norm      '    11.284       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .78510E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12839E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.518       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.827       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35293E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3789       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.4583       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87962       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2159       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=   7947.734     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3121 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.650        .61838E-06** at limit **
   2  Prefactor     .10000E-03    27.366        .62016E-06** at limit **
   3  Prefactor     11.295        14.704        .88941E-07   -.67517E-06
   4  Prefactor     3.5195        6.9863        .10423E-05    .94578E-04
   5  Prefactor     6.6151        46.809       -.54260E-05   -.87116E-04
   6  norm          .10000E-03    .30244       -.83399E-07** at limit **
   7  Prefactor     29.977        12.520        .60860E-06    .48578E-04
   8  Prefactor     .10000E-03    18.401        .16579E-07** at limit **
   9  Prefactor     7.2175        5.3177        .13835E-05    .33943E-04
  10  Prefactor     6.6063        19.153       -.49602E-07   -.66398E-04
  11  Prefactor     .10000E-03    13.715       -.41905E-06** at limit **
  12  norm          6.1354        21.155       -.17713E-05   -.84204E-04
  13  Prefactor     11.313        17.461       -.19646E-05   -.28836E-03
  14  norm          11.288        6.0297        .30479E-06   -.28913E-03
  15  Prefactor     .10005E-03    2.7628        .18003E-05** at limit **
  16  Prefactor     .10000E-03    45.159       -.88374E-06** at limit **
  17  Prefactor     34.478        32.882        .27329E-06   -.37267E-04
  18  Prefactor     11.833        13.293       -.10202E-07   -.45538E-04
  19  Prefactor     .10000E-03    18.108       -.28844E-06** at limit **
  20  Prefactor     .10965E-03    25.294       -.23465E-05** at limit **
  21  Prefactor     .10000E-03    2.0633        .81283E-08** at limit **
  22  Prefactor     4.3810        2.6191        .16893E-06    .13167E-04
  23  Prefactor     .10000E-03    7.0552        .54969E-07** at limit **
  24  norm          6.4581        1.8380       -.52957E-08   -.15369E-03
  25  Normalizat    .87969        .24920       -.30360E-05   -.31011E-03
  26  Prefactor     1.2157        .13150       -.70136E-06   -.67599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2952
  Prefactor  = 3.51952
  Prefactor  = 6.61507
  norm       = 0.0001
  Prefactor  = 29.9766
  Prefactor  = 0.0001
  Prefactor  = 7.21751
  Prefactor  = 6.60634
  Prefactor  = 0.0001
  norm       = 6.13539
  Prefactor  = 11.3134
  norm       = 11.2879
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 34.4784
  Prefactor  = 11.8332
  Prefactor  = 0.0001
  Prefactor  = 0.00010965
  Prefactor  = 0.0001
  Prefactor  = 4.38104
  Prefactor  = 0.0001
  norm       = 6.45809
  Normalizat = 0.879689
  Prefactor  = 1.21569
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.734     FROM HESSE     STATUS=OK           470 CALLS     3591 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.295        14.702        .11921E-03   -1.5036    
   4  Prefactor     3.5195        6.9807        .21555E-03   -1.5333    
   5  Prefactor     6.6151        47.238        .15631E-03   -1.5194    
   6  norm          .10000E-03    .43219        .94950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.977        12.562        .73187E-04   -1.4612    
   8  Prefactor     .10000E-03    18.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2175        5.3113        .74650E-03   -1.5171    
  10  Prefactor     6.6063        19.204        .15619E-03   -1.5194    
  11  Prefactor     .10000E-03    13.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.1354        21.222        .16216E-03   -1.5213    
  13  Prefactor     11.313        17.442        .11916E-03   -1.5035    
  14  norm          11.288        6.0232        .11926E-03   -1.5036    
  15  Prefactor     .10005E-03    11.077        .25576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.478        33.289        .68208E-04   -1.4533    
  18  Prefactor     11.833        13.289        .11648E-03   -1.5020    
  19  Prefactor     .10000E-03    18.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10965E-03    26.770        .11297       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.0667        .12500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3810        2.6209        .10779E-03   -1.5289    
  23  Prefactor     .10000E-03    7.0831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.4581        1.8382        .62155E-04   -1.5200    
  25  Normalizat    .87969        .28245        .40075E-03   -.97178    
  26  Prefactor     1.2157        .15078        .19063E-03   -.85850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85609e-09
Minuit parameter uncertainties:
  1  6.50263e-05
  2  9.23569e-05
  3  14.7064
  4  6.98234
  5  35.3936
  6  9.77889e-06
  7  12.5628
  8  1.61077e-05
  9  5.31169
  10  19.2217
  11  4.27757e-05
  12  21.2477
  13  17.4494
  14  6.02352
  15  0.00154222
  16  5.86423e-05
  17  33.307
  18  13.2918
  19  1.91369e-05
  20  0.0321594
  21  2.62274e-06
  22  2.62094
  23  1.69848e-05
  24  1.8382
  25  0.282923
  26  0.150829
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.129e+01  6.024e+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.216e+00  1.508e-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:  8.797e-01  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.42
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.46e-08
Energy Flux (Fixed Index): 3.53e-05 +/- 1.89e-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) = 7947.49267567
delta logL = 0.241101481489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7947.4913837
delta logL = 0.242393452545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.065       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0594       1.0000          .0000       5.0000    
     3 'Normalizat'    .90708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2068       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=   7947.491     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      232 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.065        137.22        .27705E-02    .55964E-03
   2  alpha         2.0593        3.2950        .35598        .26426E-04
   3  Normalizat    .90709        .19596        .89283E-01    .30013E-04
   4  Prefactor     1.2068        .70998E-01    .34472E-01   -.23870E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0647
  alpha      = 2.05932
  Normalizat = 0.907089
  Prefactor  = 1.20679
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.491     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.065        6.4932        .11082E-03   -1.4985    
   2  alpha         2.0593        .46180        .12867E-01   -.17720    
   3  Normalizat    .90709        .26905        .39541E-03   -.96211    
   4  Prefactor     1.2068        .14789        .19128E-03   -.86123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14896e-10
Minuit parameter uncertainties:
  1  6.49358
  2  0.464554
  3  0.269454
  4  0.147946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229846': 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) = 7947.49138368
delta logL = 0.242393479328

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.306e+01  6.494e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.059e+00  4.646e-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.207e+00  1.479e-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.071e-01  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.94
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.06 +/- 0.46
Photon Flux (Free Index): 7.95e-08 +/- 5.10e-08
Energy Flux (Free Index): 4.06e-05 +/- 2.21e-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/229846/cmap_HighResolution_592358401_592617601_4FGL_J1159.3-2142_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='4.06e-05', photon_flux_error='5.46e-08', dlogl='2.42e-01', energy_flux='3.53e-05', photon_flux2='7.95e-08', job_status='DONE', time_completed='2021-09-04 19:19:53.856406', photon_index_error2='0.46', photon_index2='2.06', ts='11.42', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='0.88', time_epoch_completed='1630808393.86', return_code='0', job_id='229846', GAL2='1.21', EG2='0.91', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='5.10e-08', ts2='11.94', photon_index='2.38' WHERE bin_id='1362' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:19:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 229846: <4FGL_J1159.3-2142_daily_bin1362> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1362 179.843 -21.7038 592358401 592617601 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

