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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1298
RA = 179.843, Dec = -21.7038
tmin = 575769601, tmax = 576028801
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='228563', job_status='RUN', time_executed='2021-09-04 19:02:30.001079', time_epoch_executed='1630807350.0' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228563/ft1_4FGL_J1159.3-2142_daily_bin1298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228563/ft2_4FGL_J1159.3-2142_daily_bin1298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228563/ft1_4FGL_J1159.3-2142_daily_bin1298.fits outfile=/scratch/kocevski/228563/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1298.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=575769601.0 tmax=576028801.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.83
user 3.60
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228563/ft1_filtered_4FGL_J1159.3-2142_daily_bin1298.fits" evtable="EVENTS" scfile=/scratch/kocevski/228563/ft2_4FGL_J1159.3-2142_daily_bin1298.fits sctable="SC_DATA" outfile=/scratch/kocevski/228563/ltcube_575769601_576028801_4FGL_J1159.3-2142_daily_bin1298.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/228563/ft2_4FGL_J1159.3-2142_daily_bin1298.fits
.....................!
real 11.76
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228563/ft1_filtered_4FGL_J1159.3-2142_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/228563/ft2_4FGL_J1159.3-2142_daily_bin1298.fits sctable="SC_DATA" expcube=/scratch/kocevski/228563/ltcube_575769601_576028801_4FGL_J1159.3-2142_daily_bin1298.fits outfile=/scratch/kocevski/228563/expmap_575769601_576028801_4FGL_J1159.3-2142_daily_bin1298.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/228563/ltcube_575769601_576028801_4FGL_J1159.3-2142_daily_bin1298.fits
.....................!
real 190.28
user 185.36
sys 4.55

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228563/ft1_filtered_4FGL_J1159.3-2142_daily_bin1298.fits scfile=/scratch/kocevski/228563/ft2_4FGL_J1159.3-2142_daily_bin1298.fits outfile=/scratch/kocevski/228563/cmap_HighResolution_575769601_576028801_4FGL_J1159.3-2142_daily_bin1298.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.533       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.221       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    125.89       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.115       1.0000         .10000E-03   10000.    
    12 'norm      '    21.785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.155       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4840       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4423       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .50557       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3329       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=   5940.597     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3168 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.208       -.22718E-06** at limit **
   2  Prefactor     .10000E-03    55.448       -.88870E-07** at limit **
   3  Prefactor     .10000E-03    19.105        .17752E-06** at limit **
   4  Prefactor     .10000E-03    7.2446       -.16288E-06** at limit **
   5  Prefactor     .10000E-03    21.249        .51784E-07** at limit **
   6  norm          .10000E-03    .58776       -.12502E-06** at limit **
   7  Prefactor     36.534        15.665       -.14935E-06   -.25039E-04
   8  Prefactor     19.193        48.928       -.50170E-06   -.49876E-04
   9  Prefactor     .10000E-03    4.0412        .78058E-07** at limit **
  10  Prefactor     125.89        35.212       -.17948E-06   -.28989E-04
  11  Prefactor     51.125        43.001       -.17688E-06   -.29166E-04
  12  norm          21.784        32.129        .12429E-06   -.16333E-04
  13  Prefactor     .10000E-03    5.1390        .26898E-06** at limit **
  14  norm          .10000E-03    1.3995        .14637E-06** at limit **
  15  Prefactor     .10000E-03    11.370        .32110E-05** at limit **
  16  Prefactor     .10000E-03    22.187        .80750E-06** at limit **
  17  Prefactor     28.180        48.312       -.10185E-05   -.60152E-04
  18  Prefactor     .10000E-03    125.72        .22067E-04** at limit **
  19  Prefactor     37.495        67.965       -.14017E-05   -.35512E-04
  20  Prefactor     35.556        36.683       -.52067E-07   -.69475E-04
  21  Prefactor     1.4840        3.9569        .57902E-06   -.38064E-04
  22  Prefactor     3.4424        2.0851       -.37813E-07   -.50449E-04
  23  Prefactor     .10000E-03    22.299       -.83366E-06** at limit **
  24  norm          .10000E-03    .78538       -.11878E-06** at limit **
  25  Normalizat    .50556        .32307        .53236E-05   -.74510E-04
  26  Prefactor     1.3329        .16840       -.18515E-05   -.14990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.5338
  Prefactor  = 19.1926
  Prefactor  = 0.0001
  Prefactor  = 125.895
  Prefactor  = 51.1255
  norm       = 21.7838
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1798
  Prefactor  = 0.000100001
  Prefactor  = 37.4955
  Prefactor  = 35.5559
  Prefactor  = 1.48397
  Prefactor  = 3.44238
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.50556
  Prefactor  = 1.33288
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.597     FROM HESSE     STATUS=OK           444 CALLS     3612 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .60818        .11526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.534        15.599        .66306E-04   -1.4498    
   8  Prefactor     19.193        48.910        .91356E-04   -1.4831    
   9  Prefactor     .10000E-03    4.0634        .15119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     125.89        35.090        .35877E-04   -1.3459    
  11  Prefactor     51.125        42.958        .56094E-04   -1.4277    
  12  norm          21.784        32.164        .85817E-04   -1.4774    
  13  Prefactor     .10000E-03    5.1436        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4021        .89024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.180        48.043        .75503E-04   -1.4646    
  18  Prefactor     .10000E-03    126.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.495        68.173        .65516E-04   -1.4483    
  20  Prefactor     35.556        36.605        .67199E-04   -1.4515    
  21  Prefactor     1.4840        3.8983        .24006E-03   -1.5464    
  22  Prefactor     3.4424        2.0831        .83329E-04   -1.5337    
  23  Prefactor     .10000E-03    22.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7169        .13212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .50556        .32371        .51720E-03   -1.1216    
  26  Prefactor     1.3329        .17314        .17841E-03   -.82334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81611e-10
Minuit parameter uncertainties:
  1  7.43256e-05
  2  2.49352e-05
  3  0.000115882
  4  3.34896e-06
  5  6.40974e-05
  6  3.05778e-07
  7  15.6008
  8  49.0123
  9  6.5906e-06
  10  35.0956
  11  42.9843
  12  32.1897
  13  4.63905e-06
  14  1.70471e-06
  15  6.18182e-05
  16  4.25696e-05
  17  48.1087
  18  0.000790973
  19  68.3147
  20  36.6285
  21  3.89902
  22  2.08319
  23  8.41268e-05
  24  2.61766e-05
  25  0.324925
  26  0.17322
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.705e-06  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.333e+00  1.732e-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:  5.056e-01  3.249e-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: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228563/likelihoodResults_575769601_576028801_4FGL_J1159.3-2142_daily_bin1298.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) = 5940.60071025
delta logL = -0.00323765333269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5940.59747247
delta logL = 1.23484824144e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3730       1.0000          .0000       5.0000    
     3 'Normalizat'    .50554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3329       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=   5940.597     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      240 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    102.60        .89394E-02** at limit **
   2  alpha         1.9326        2.6967        .16488        .82744E-08
   3  Normalizat    .50556        .58762E-01    .51721E-03    .33213E-04
   4  Prefactor     1.3329        .31879E-01    .17841E-03    .11164E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.93262
  Normalizat = 0.505561
  Prefactor  = 1.33288
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.597     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5456        .93508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9326        2.8651        .65950E-02   -.22895    
   3  Normalizat    .50556        .31071        .20688E-04   -1.1216    
   4  Prefactor     1.3329        .16907        .71365E-05   -.82334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46498e-12
Minuit parameter uncertainties:
  1  9.3238e-07
  2  175.529
  3  0.311785
  4  0.169138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228563': 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) = 5940.59746931
delta logL = 3.2871039366e-06

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  9.324e-07  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.933e+00  1.755e+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:  1.333e+00  1.691e-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:  5.056e-01  3.118e-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/228563/cmap_HighResolution_575769601_576028801_4FGL_J1159.3-2142_daily_bin1298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2021-09-04 19:14:34.130896', job_id='228563', GAL2='1.33', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1630808074.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='3.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1298' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:14:34 PDT 2021


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

Job <4FGL_J1159.3-2142_daily_bin1298> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:53 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00:55 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:00:55 2021
Terminated at Sat Sep  4 19:14:34 2021
Results reported at Sat Sep  4 19:14:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1298 179.843 -21.7038 575769601 576028801 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

