/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 136 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.3-2142_daily_bin270
RA = 179.843, Dec = -21.7038
tmin = 309312001, tmax = 309571201
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='222998', job_status='RUN', time_executed='2021-09-04 18:47:53.026496', time_epoch_executed='1630806473.03' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222998/ft1_4FGL_J1159.3-2142_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222998/ft2_4FGL_J1159.3-2142_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222998/ft1_4FGL_J1159.3-2142_daily_bin270.fits outfile=/scratch/kocevski/222998/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin270.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.00
user 3.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222998/ft1_filtered_4FGL_J1159.3-2142_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/222998/ft2_4FGL_J1159.3-2142_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/222998/ltcube_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.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/222998/ft2_4FGL_J1159.3-2142_daily_bin270.fits
.....................!
real 12.99
user 12.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222998/ft1_filtered_4FGL_J1159.3-2142_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/222998/ft2_4FGL_J1159.3-2142_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/222998/ltcube_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.fits outfile=/scratch/kocevski/222998/expmap_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.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/222998/ltcube_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.fits
.....................!
real 190.45
user 185.08
sys 4.85

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/222998/ft1_filtered_4FGL_J1159.3-2142_daily_bin270.fits scfile=/scratch/kocevski/222998/ft2_4FGL_J1159.3-2142_daily_bin270.fits outfile=/scratch/kocevski/222998/cmap_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222998/ft1_filtered_4FGL_J1159.3-2142_daily_bin270.fits scfile=/scratch/kocevski/222998/ft2_4FGL_J1159.3-2142_daily_bin270.fits outfile=/scratch/kocevski/222998/cmap_HighResolution_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222998/ft1_filtered_4FGL_J1159.3-2142_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/222998/ft2_4FGL_J1159.3-2142_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222998/Model_4FGL_J1159.3-2142_daily_bin270.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/222998/ft1_filtered_4FGL_J1159.3-2142_daily_bin270.fits.....................!
real 55.53
user 54.07
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.684       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.293       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5959       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21857E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3861       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.3533       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1510       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0476       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=   6006.141     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3029 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.432       -.15420E-06** at limit **
   2  Prefactor     .10000E-03    54.506       -.46782E-05** at limit **
   3  Prefactor     47.083        46.436       -.13035E-06    .14121E-04
   4  Prefactor     .10000E-03    17.739       -.60740E-06** at limit **
   5  Prefactor     15.657        57.800        .54135E-05   -.75220E-05
   6  norm          5.8952        2.0055       -.40604E-07    .20911E-04
   7  Prefactor     21.903        16.047        .85651E-07    .97419E-05
   8  Prefactor     .10000E-03    20.234       -.58934E-06** at limit **
   9  Prefactor     .10001E-03    5.3847        .24864E-05** at limit **
  10  Prefactor     12.565        24.730        .28150E-07    .26918E-05
  11  Prefactor     .10000E-03    12.450        .13781E-06** at limit **
  12  norm          .10000E-03    12.803        .81983E-06** at limit **
  13  Prefactor     61.303        29.197       -.21567E-05   -.88863E-04
  14  norm          3.5949        6.7289        .35122E-05    .20747E-03
  15  Prefactor     .10000E-03    3.6855       -.35801E-08** at limit **
  16  Prefactor     .10000E-03    28.551        .25654E-05** at limit **
  17  Prefactor     .10000E-03    83.554        .38959E-05** at limit **
  18  Prefactor     .10000E-03    8.8735        .49820E-07** at limit **
  19  Prefactor     .10000E-03    20.595       -.44183E-06** at limit **
  20  Prefactor     .10000E-03    15.641        .60053E-06** at limit **
  21  Prefactor     .10000E-03    2.3941       -.10690E-07** at limit **
  22  Prefactor     9.3860        3.1228        .90006E-09   -.23870E-05
  23  Prefactor     .10000E-03    5.9784       -.69334E-08** at limit **
  24  norm          1.3529        1.3705        .16249E-07   -.28161E-04
  25  Normalizat    1.1499        .29239       -.12654E-06   -.11146E-03
  26  Prefactor     1.0481        .14425       -.45830E-07   -.14090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.0828
  Prefactor  = 0.0001
  Prefactor  = 15.6575
  norm       = 5.89523
  Prefactor  = 21.9033
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 12.5646
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.3034
  norm       = 3.59493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.38599
  Prefactor  = 0.0001
  norm       = 1.35295
  Normalizat = 1.1499
  Prefactor  = 1.04809
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.141     FROM HESSE     STATUS=OK           448 CALLS     3477 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.083        46.396        .58438E-04   -1.4335    
   4  Prefactor     .10000E-03    17.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.657        57.950        .10113E-03   -1.4916    
   6  norm          5.8952        2.0048        .60351E-04   -1.5222    
   7  Prefactor     21.903        16.156        .85597E-04   -1.4772    
   8  Prefactor     .10000E-03    20.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    12.016        .30855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.565        24.812        .11301E-03   -1.4999    
  11  Prefactor     .10000E-03    12.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.303        29.745        .51251E-04   -1.4140    
  14  norm          3.5949        6.9687        .10655E-02   -1.5329    
  15  Prefactor     .10000E-03    3.7079        .14523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    84.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3996        .11709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.3860        3.1229        .76872E-04   -1.5095    
  23  Prefactor     .10000E-03    5.9974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.3529        1.3530        .88058E-04   -1.5475    
  25  Normalizat    1.1499        .34501        .37383E-03   -.88165    
  26  Prefactor     1.0481        .17068        .20162E-03   -.91143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48352e-10
Minuit parameter uncertainties:
  1  4.34436e-06
  2  8.56517e-05
  3  46.4319
  4  1.65624e-05
  5  58.1596
  6  2.00479
  7  16.1592
  8  7.85031e-06
  9  0.000541468
  10  24.8325
  11  3.16299e-06
  12  1.11907e-05
  13  29.7518
  14  6.97023
  15  1.72394e-06
  16  3.35386e-05
  17  0.000327915
  18  1.53823e-06
  19  1.0149e-05
  20  1.29059e-05
  21  2.51265e-07
  22  3.12298
  23  2.87249e-07
  24  1.35308
  25  0.345695
  26  0.170769
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.595e+00  6.970e+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.048e+00  1.708e-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.150e+00  3.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222998/likelihoodResults_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6006.13049867
delta logL = 0.0105295437088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6006.1299626
delta logL = 0.0110656209299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5701       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1032       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0459       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=   6006.130     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      263 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5703        6.0815        .21389E-03   -.47688E-03
   2  alpha         2.1030        1.6241        .39524E-01   -.31251E-04
   3  Normalizat    1.1587        .32503        .37268E-03    .37949E-04
   4  Prefactor     1.0459        .16800        .20183E-03    .82556E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.57025
  alpha      = 2.103
  Normalizat = 1.15873
  Prefactor  = 1.04588
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.130     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5703        6.2074        .85556E-05   -1.5330    
   2  alpha         2.1030        1.6520        .15809E-02   -.15947    
   3  Normalizat    1.1587        .32504        .14907E-04   -.87888    
   4  Prefactor     1.0459        .16807        .40365E-04   -.91215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61428e-10
Minuit parameter uncertainties:
  1  6.20857
  2  1.80986
  3  0.325607
  4  0.168154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222998': 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) = 6006.12996258
delta logL = 0.0110656333181

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.570e+00  6.209e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.103e+00  1.810e+00  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.046e+00  1.682e-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.159e+00  3.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/222998/cmap_HighResolution_309312001_309571201_4FGL_J1159.3-2142_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-05', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-04 19:00:02.163211', job_id='222998', GAL2='1.05', fit_tolerance='1e-08', EG2='1.16', EG='1.15', time_epoch_completed='1630807202.16', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.11e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='270' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 222998: <4FGL_J1159.3-2142_daily_bin270> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin270> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:45:21 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:45:23 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:45:23 2021
Terminated at Sat Sep  4 19:00:02 2021
Results reported at Sat Sep  4 19:00:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin270 179.843 -21.7038 309312001 309571201 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 :                                   724.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

