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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1066
RA = 179.843, Dec = -21.7038
tmin = 515635201, tmax = 515894401
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='226937', job_status='RUN', time_executed='2021-09-04 18:56:24.277325', time_epoch_executed='1630806984.28' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1066'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226937

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226937/ft1_4FGL_J1159.3-2142_daily_bin1066.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226937/ft1_4FGL_J1159.3-2142_daily_bin1066.fits outfile=/scratch/kocevski/226937/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1066.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=515635201.0 tmax=515894401.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.43
user 3.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.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/226937/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1066.fits evtable="EVENTS" outfile="/scratch/kocevski/226937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1066.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1066.fits" evtable="EVENTS" scfile=/scratch/kocevski/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.fits sctable="SC_DATA" outfile=/scratch/kocevski/226937/ltcube_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.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/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.fits sctable="SC_DATA" expcube=/scratch/kocevski/226937/ltcube_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.fits outfile=/scratch/kocevski/226937/expmap_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.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/226937/ltcube_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.fits
.....................!
real 189.60
user 185.12
sys 4.11

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/226937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1066.fits scfile=/scratch/kocevski/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.fits outfile=/scratch/kocevski/226937/cmap_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1066.fits scfile=/scratch/kocevski/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.fits outfile=/scratch/kocevski/226937/cmap_HighResolution_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.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/226937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/226937/ft2_4FGL_J1159.3-2142_daily_bin1066.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226937/Model_4FGL_J1159.3-2142_daily_bin1066.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/226937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1066.fits.....................!
real 52.43
user 51.09
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.938       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3746       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.944       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6716       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.423       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.667       1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4019       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84074       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=   5536.485     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3071 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.234       -.58770E-05** at limit **
   2  Prefactor     .10000E-03    77.505       -.29648E-04** at limit **
   3  Prefactor     38.948        59.609        .68788E-05   -.42848E-04
   4  Prefactor     .10000E-03    11.457        .34752E-05** at limit **
   5  Prefactor     .10002E-03    192.22        .17955E-03** at limit **
   6  norm          1.3746        1.3819       -.18485E-06   -.16460E-02
   7  Prefactor     24.944        14.895       -.15190E-06   -.73089E-04
   8  Prefactor     .10000E-03    15.884        .20024E-05** at limit **
   9  Prefactor     4.2829        6.3381        .56000E-05   -.17089E-03
  10  Prefactor     2.7020        41.131       -.49535E-06   -.52788E-04
  11  Prefactor     .10000E-03    17.143        .31725E-05** at limit **
  12  norm          .10000E-03    11.273       -.26092E-05** at limit **
  13  Prefactor     .10000E-03    4.2395        .30774E-07** at limit **
  14  norm          .10000E-03    1.5849        .13974E-06** at limit **
  15  Prefactor     9.6708        5.6240       -.57107E-06    .34568E-03
  16  Prefactor     .10053E-03    441.70       -.45222E-03** at limit **
  17  Prefactor     .10000E-03    38.698        .74550E-05** at limit **
  18  Prefactor     .10000E-03    13.106       -.48624E-05** at limit **
  19  Prefactor     .10000E-03    18.016        .10354E-05** at limit **
  20  Prefactor     .10000E-03    9.4597       -.96477E-07** at limit **
  21  Prefactor     .10000E-03    12.151        .22459E-05** at limit **
  22  Prefactor     12.423        3.5032        .18307E-07   -.93614E-04
  23  Prefactor     12.668        14.591       -.11602E-06    .28299E-04
  24  norm          .10000E-03    .63424        .99918E-08** at limit **
  25  Normalizat    1.4020        .26731       -.21518E-05    .46357E-03
  26  Prefactor     .84071        .13142        .95846E-06    .99091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.9483
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 1.37459
  Prefactor  = 24.9437
  Prefactor  = 0.0001
  Prefactor  = 4.28289
  Prefactor  = 2.70203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.67075
  Prefactor  = 0.000100534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.423
  Prefactor  = 12.6679
  norm       = 0.0001
  Normalizat = 1.40201
  Prefactor  = 0.840711
 **********
 **   18 **HESSE 
 **********

 FCN=   5536.485     FROM HESSE     STATUS=OK           444 CALLS     3515 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    77.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     38.948        59.577        .64233E-04   -1.4459    
   4  Prefactor     .10000E-03    11.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    194.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3746        1.3700        .83304E-04   -1.5473    
   7  Prefactor     24.944        14.965        .80205E-04   -1.4709    
   8  Prefactor     .10000E-03    15.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2829        6.3263        .19467E-03   -1.5294    
  10  Prefactor     2.7020        41.420        .24765E-03   -1.5379    
  11  Prefactor     .10000E-03    17.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2425        .14962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5909        .91470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6708        5.6228        .12886E-03   -1.5086    
  16  Prefactor     .10053E-03    444.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.423        3.4979        .71870E-04   -1.5003    
  23  Prefactor     12.668        14.595        .11255E-03   -1.4996    
  24  norm          .10000E-03    .65514        .11565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4020        .31808        .31585E-03   -.80570    
  26  Prefactor     .84071        .15621        .20215E-03   -.98245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0292e-09
Minuit parameter uncertainties:
  1  1.1826e-06
  2  3.70665e-06
  3  59.6678
  4  9.7259e-05
  5  0.00373444
  6  1.36999
  7  14.9677
  8  5.7249e-06
  9  6.32731
  10  21.1755
  11  5.38725e-05
  12  1.54187e-06
  13  1.40602e-05
  14  1.38167e-05
  15  5.62308
  16  0.0310339
  17  1.91834e-05
  18  0.000155949
  19  8.40452e-05
  20  2.46627e-06
  21  8.16327e-06
  22  3.498
  23  14.5986
  24  8.29197e-07
  25  0.318525
  26  0.156291
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.382e-05  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:  8.407e-01  1.563e-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.402e+00  3.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226937/likelihoodResults_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.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): 102
logL (Free Index) = 5536.48839763
delta logL = -0.00296135740246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5536.48543631
delta logL = -3.74993760488e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3616       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84073       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5536.485     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      236 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    98.184        .93128E-02** at limit **
   2  alpha         1.8328        3.6270        .16493        .34466E-06
   3  Normalizat    1.4020        .49098E-01    .31585E-03    .23869E-03
   4  Prefactor     .84071        .25227E-01    .20215E-03    .37675E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.83285
  Normalizat = 1.40202
  Prefactor  = 0.840709
 **********
 **   18 **HESSE 
 **********

 FCN=   5536.485     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0649        .10412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8328        2.7382        .65971E-02   -.27013    
   3  Normalizat    1.4020        .30028        .63170E-04   -.80570    
   4  Prefactor     .84071        .15438        .40429E-04   -.98245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25307e-10
Minuit parameter uncertainties:
  1  3.30839e-05
  2  150.916
  3  0.300661
  4  0.154461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226937': 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) = 5536.48542913
delta logL = 7.13913777872e-06

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  3.308e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.833e+00  1.509e+02  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:  8.407e-01  1.545e-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.402e+00  3.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.843 -21.704

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/226937/cmap_HighResolution_515635201_515894401_4FGL_J1159.3-2142_daily_bin1066.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-09-04 19:07:54.544491', job_id='226937', GAL2='0.84', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630807674.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1066' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:07:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 226937: <4FGL_J1159.3-2142_daily_bin1066> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1066> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 18:55:54 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:55:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:55:56 2021
Terminated at Sat Sep  4 19:07:55 2021
Results reported at Sat Sep  4 19:07:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1066 179.843 -21.7038 515635201 515894401 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 :                                   687.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

