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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1564
RA = 179.843, Dec = -21.7038
tmin = 644716801, tmax = 644976001
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='230195', job_status='RUN', time_executed='2021-09-04 19:06:38.235697', time_epoch_executed='1630807598.24' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230195/ft1_4FGL_J1159.3-2142_daily_bin1564.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230195/ft2_4FGL_J1159.3-2142_daily_bin1564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230195/ft1_4FGL_J1159.3-2142_daily_bin1564.fits outfile=/scratch/kocevski/230195/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1564.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=644716801.0 tmax=644976001.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 2.86
user 2.62
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230195/ft1_filtered_4FGL_J1159.3-2142_daily_bin1564.fits" evtable="EVENTS" scfile=/scratch/kocevski/230195/ft2_4FGL_J1159.3-2142_daily_bin1564.fits sctable="SC_DATA" outfile=/scratch/kocevski/230195/ltcube_644716801_644976001_4FGL_J1159.3-2142_daily_bin1564.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/230195/ft2_4FGL_J1159.3-2142_daily_bin1564.fits
.....................!
real 12.44
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230195/ft1_filtered_4FGL_J1159.3-2142_daily_bin1564.fits evtable="EVENTS" scfile=/scratch/kocevski/230195/ft2_4FGL_J1159.3-2142_daily_bin1564.fits sctable="SC_DATA" expcube=/scratch/kocevski/230195/ltcube_644716801_644976001_4FGL_J1159.3-2142_daily_bin1564.fits outfile=/scratch/kocevski/230195/expmap_644716801_644976001_4FGL_J1159.3-2142_daily_bin1564.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/230195/ltcube_644716801_644976001_4FGL_J1159.3-2142_daily_bin1564.fits
.....................!
real 190.82
user 185.28
sys 5.10

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/230195/ft1_filtered_4FGL_J1159.3-2142_daily_bin1564.fits scfile=/scratch/kocevski/230195/ft2_4FGL_J1159.3-2142_daily_bin1564.fits outfile=/scratch/kocevski/230195/cmap_644716801_644976001_4FGL_J1159.3-2142_daily_bin1564.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.843 yref=-21.7038 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.186       1.0000         .10000E-03   10000.    
     6 'norm      '    .77516       1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.177       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0627       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.914       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8364       1.0000         .10000E-03   10000.    
    14 'norm      '    .50662E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.798       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.311       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.253       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6767       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
    24 'norm      '    2.3968       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4244       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65159       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=   6349.075     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3102 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.922        27.653       -.26882E-05    .19511E-04
   2  Prefactor     .10000E-03    46.157       -.10058E-04** at limit **
   3  Prefactor     22.524        30.055        .42373E-06    .69109E-05
   4  Prefactor     24.620        17.335       -.11031E-05    .42102E-04
   5  Prefactor     53.178        43.035       -.84835E-05    .14281E-04
   6  norm          .77576        1.0243       -.53780E-07   -.61082E-03
   7  Prefactor     65.173        13.707       -.54939E-07    .47195E-04
   8  Prefactor     .10000E-03    7.3557       -.22887E-05** at limit **
   9  Prefactor     1.0623        4.6991       -.28155E-05   -.11599E-02
  10  Prefactor     10.912        15.071       -.11921E-05   -.20620E-04
  11  Prefactor     .10000E-03    8.4213        .34837E-05** at limit **
  12  norm          4.8235        29.837       -.32946E-04   -.16042E-04
  13  Prefactor     8.8444        14.648       -.26944E-05   -.63632E-04
  14  norm          .10002E-03    3.1386       -.52496E-07** at limit **
  15  Prefactor     .10000E-03    5.6635        .95585E-06** at limit **
  16  Prefactor     .10000E-03    21.154        .31008E-04** at limit **
  17  Prefactor     52.787        37.618       -.96778E-05    .83341E-04
  18  Prefactor     35.314        32.216        .36972E-05   -.40107E-04
  19  Prefactor     43.250        56.283       -.57898E-05   -.91151E-05
  20  Prefactor     .10000E-03    18.580       -.25310E-04** at limit **
  21  Prefactor     .10000E-03    1.4901        .22404E-07** at limit **
  22  Prefactor     3.6767        1.9052       -.94382E-07    .88251E-04
  23  Prefactor     12.544        16.292       -.16302E-05   -.10447E-04
  24  norm          2.3970        1.4981       -.11546E-06    .51598E-04
  25  Normalizat    1.4247        .24181        .17623E-05    .18713E-03
  26  Prefactor     .65145        .12365        .31935E-05    .13036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9222
  Prefactor  = 0.0001
  Prefactor  = 22.524
  Prefactor  = 24.6202
  Prefactor  = 53.1778
  norm       = 0.775758
  Prefactor  = 65.173
  Prefactor  = 0.0001
  Prefactor  = 1.06233
  Prefactor  = 10.9121
  Prefactor  = 0.0001
  norm       = 4.82345
  Prefactor  = 8.84436
  norm       = 0.000100016
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 52.7874
  Prefactor  = 35.3145
  Prefactor  = 43.2495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67674
  Prefactor  = 12.5443
  norm       = 2.39699
  Normalizat = 1.4247
  Prefactor  = 0.651451
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.075     FROM HESSE     STATUS=OK           460 CALLS     3562 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.922        27.638        .92068E-04   -1.4838    
   2  Prefactor     .10000E-03    46.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.524        30.050        .84399E-04   -1.4758    
   4  Prefactor     24.620        17.351        .80728E-04   -1.4715    
   5  Prefactor     53.178        42.820        .54997E-04   -1.4248    
   6  norm          .77576        .91680        .87503E-03   -1.5532    
   7  Prefactor     65.173        13.748        .49710E-04   -1.4092    
   8  Prefactor     .10000E-03    7.3565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0623        4.7706        .33266E-03   -1.5502    
  10  Prefactor     10.912        15.099        .12127E-03   -1.5047    
  11  Prefactor     .10000E-03    8.4233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8235        30.087        .18283E-03   -1.5269    
  13  Prefactor     8.8444        12.887        .13484E-03   -1.5113    
  14  norm          .10002E-03    12.234        .23594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.787        37.451        .55198E-04   -1.4254    
  18  Prefactor     35.314        32.243        .67440E-04   -1.4519    
  19  Prefactor     43.250        56.359        .60957E-04   -1.4392    
  20  Prefactor     .10000E-03    18.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.4928        .94982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6767        1.9056        .77068E-04   -1.5324    
  23  Prefactor     12.544        16.298        .11309E-03   -1.4999    
  24  norm          2.3970        1.4954        .74599E-04   -1.5398    
  25  Normalizat    1.4247        .28723        .29457E-03   -.79917    
  26  Prefactor     .65145        .14665        .21722E-03   -1.0546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34978e-09
Minuit parameter uncertainties:
  1  27.6568
  2  5.14049e-05
  3  30.0704
  4  17.3543
  5  42.8451
  6  0.916814
  7  13.7485
  8  4.73685e-06
  9  4.5028
  10  15.1047
  11  8.89099e-06
  12  24.1111
  13  12.8907
  14  0.000876858
  15  0.00016249
  16  2.59803e-06
  17  37.468
  18  32.2592
  19  56.4281
  20  8.54155e-05
  21  3.65367e-06
  22  1.90567
  23  16.3042
  24  1.49543
  25  0.28756
  26  0.146738
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.515e-01  1.467e-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.425e+00  2.876e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230195/likelihoodResults_644716801_644976001_4FGL_J1159.3-2142_daily_bin1564.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) = 6349.07545185
delta logL = -0.000390377897929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6349.075067
delta logL = -5.53492827748e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32214E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4974       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65105       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6349.075     FROM MIGRAD    STATUS=FAILED        96 CALLS      268 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10321E-03    52.336        .21706E-02** at limit **
   2  alpha         2.5103        3.6330        .50000       -.60056E-04
   3  Normalizat    1.4247        .27088        .29457E-03    .75662E-03
   4  Prefactor     .65145        .14165        .21722E-03    .11171E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6349.075     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      383 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10321E-03    52.336        .12355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5103        3.6330        .42095E-03    .41056E-02
   3  Normalizat    1.4247        .27088        .37973E-04   -.79917    
   4  Prefactor     .65145        .14165        .25407E-04   -1.0546    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6349.075     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      416 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    42.630        .86826E-04** at limit **
   2  alpha         2.5108        3.5545        .50000       -.58231E-04
   3  Normalizat    1.4247        .27103        .58914E-04   -.20621E-03
   4  Prefactor     .65145        .14177        .43443E-04   -.19355E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100055
  alpha      = 2.51076
  Normalizat = 1.42469
  Prefactor  = 0.651452
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.075     FROM HESSE     STATUS=OK            29 CALLS      445 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    42.611        .17365E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5108        3.5543        .50000        .43024E-02
   3  Normalizat    1.4247        .27106        .11783E-04   -.79917    
   4  Prefactor     .65145        .14179        .86886E-05   -1.0546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67591e-09
Minuit parameter uncertainties:
  1  0.00305695
  2  2.50002
  3  0.271338
  4  0.141865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230195': 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) = 6349.07505855
delta logL = 2.92275672109e-06

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.001e-04  3.057e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.511e+00  2.500e+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:  6.515e-01  1.419e-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.425e+00  2.713e-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/230195/cmap_HighResolution_644716801_644976001_4FGL_J1159.3-2142_daily_bin1564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-04 19:19:40.810310', job_id='230195', GAL2='0.65', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630808380.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1564' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:19:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 230195: <4FGL_J1159.3-2142_daily_bin1564> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1564 179.843 -21.7038 644716801 644976001 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

