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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin820
RA = 179.843, Dec = -21.7038
tmin = 451872001, tmax = 452131201
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='226565', job_status='RUN', time_executed='2021-09-04 18:57:34.037674', time_epoch_executed='1630807054.04' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226565/ft1_4FGL_J1159.3-2142_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226565/ft2_4FGL_J1159.3-2142_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226565/ft1_4FGL_J1159.3-2142_daily_bin820.fits outfile=/scratch/kocevski/226565/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin820.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=451872001.0 tmax=452131201.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.36
user 3.13
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/226565/ft2_4FGL_J1159.3-2142_daily_bin820.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/226565/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin820.fits evtable="EVENTS" outfile="/scratch/kocevski/226565/ft1_filtered_4FGL_J1159.3-2142_daily_bin820.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/226565/ft1_filtered_4FGL_J1159.3-2142_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/226565/ft2_4FGL_J1159.3-2142_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/226565/ltcube_451872001_452131201_4FGL_J1159.3-2142_daily_bin820.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/226565/ft2_4FGL_J1159.3-2142_daily_bin820.fits
.....................!
real 12.30
user 11.99
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226565/ft1_filtered_4FGL_J1159.3-2142_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/226565/ft2_4FGL_J1159.3-2142_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/226565/ltcube_451872001_452131201_4FGL_J1159.3-2142_daily_bin820.fits outfile=/scratch/kocevski/226565/expmap_451872001_452131201_4FGL_J1159.3-2142_daily_bin820.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/226565/ltcube_451872001_452131201_4FGL_J1159.3-2142_daily_bin820.fits
.....................!
real 190.32
user 185.53
sys 4.43

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/226565/ft1_filtered_4FGL_J1159.3-2142_daily_bin820.fits scfile=/scratch/kocevski/226565/ft2_4FGL_J1159.3-2142_daily_bin820.fits outfile=/scratch/kocevski/226565/cmap_451872001_452131201_4FGL_J1159.3-2142_daily_bin820.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226565/ft1_filtered_4FGL_J1159.3-2142_daily_bin820.fits scfile=/scratch/kocevski/226565/ft2_4FGL_J1159.3-2142_daily_bin820.fits outfile=/scratch/kocevski/226565/cmap_HighResolution_451872001_452131201_4FGL_J1159.3-2142_daily_bin820.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226565/ft1_filtered_4FGL_J1159.3-2142_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/226565/ft2_4FGL_J1159.3-2142_daily_bin820.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226565/Model_4FGL_J1159.3-2142_daily_bin820.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/226565/ft1_filtered_4FGL_J1159.3-2142_daily_bin820.fits.....................!
real 50.21
user 48.70
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.849       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.0313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18052E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4432       1.0000         .10000E-03   10000.    
    12 'norm      '    36.583       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39911E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.488       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    135.19       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26130E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2424       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1445       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96851       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94348       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=   5410.291     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3092 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.953       -.86814E-06** at limit **
   2  Prefactor     .10000E-03    462.66       -.77271E-05** at limit **
   3  Prefactor     .10000E-03    26.084        .72699E-06** at limit **
   4  Prefactor     23.844        19.120       -.21622E-06   -.39774E-05
   5  Prefactor     .10000E-03    36.863        .12683E-05** at limit **
   6  norm          7.0310        2.1635       -.54691E-07    .45025E-03
   7  Prefactor     .10000E-03    3.5664        .31022E-07** at limit **
   8  Prefactor     .10000E-03    14.835        .32533E-06** at limit **
   9  Prefactor     .10005E-03    7.3950        .28215E-05** at limit **
  10  Prefactor     .10000E-03    6.4281        .37275E-07** at limit **
  11  Prefactor     8.4144        41.611       -.44138E-05    .26367E-04
  12  norm          36.583        30.229       -.86613E-07    .41102E-05
  13  Prefactor     .10000E-03    165.14        .74992E-05** at limit **
  14  norm          17.470        7.7760        .13892E-05    .98038E-03
  15  Prefactor     2.9378        5.9570       -.14111E-05   -.15570E-03
  16  Prefactor     135.18        76.875        .11778E-05    .11474E-03
  17  Prefactor     .10000E-03    45.822       -.29589E-05** at limit **
  18  Prefactor     .10000E-03    14.075       -.50549E-06** at limit **
  19  Prefactor     .10000E-03    58.110        .55491E-06** at limit **
  20  Prefactor     .10000E-03    10.945       -.93622E-07** at limit **
  21  Prefactor     .10002E-03    6.0775       -.91452E-06** at limit **
  22  Prefactor     2.2410        2.0210        .12107E-06    .23085E-03
  23  Prefactor     .10000E-03    9.2622       -.21355E-07** at limit **
  24  norm          1.1446        1.1942        .40906E-07    .22811E-04
  25  Normalizat    .96820        .26574       -.10961E-05    .23711E-03
  26  Prefactor     .94356        .13350       -.37227E-06    .35950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.844
  Prefactor  = 0.0001
  norm       = 7.03105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 8.41436
  norm       = 36.5831
  Prefactor  = 0.0001
  norm       = 17.4701
  Prefactor  = 2.93782
  Prefactor  = 135.181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 2.241
  Prefactor  = 0.0001
  norm       = 1.14464
  Normalizat = 0.968197
  Prefactor  = 0.943559
 **********
 **   18 **HESSE 
 **********

 FCN=   5410.291     FROM HESSE     STATUS=OK           452 CALLS     3544 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    462.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.844        19.150        .82024E-04   -1.4731    
   5  Prefactor     .10000E-03    36.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.0310        2.1668        .56916E-04   -1.5178    
   7  Prefactor     .10000E-03    3.5751        .13565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10005E-03    41.566        .28848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4144        39.360        .13796E-03   -1.5128    
  12  norm          36.583        30.268        .66261E-04   -1.4498    
  13  Prefactor     .10000E-03    169.58        .60923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.470        7.4073        .95775E-04   -1.4872    
  15  Prefactor     2.9378        6.0655        .11852E-02   -1.5365    
  16  Prefactor     135.18        76.650        .17319E-03   -1.3377    
  17  Prefactor     .10000E-03    45.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    14.456        .32120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2410        1.9676        .93908E-04   -1.5409    
  23  Prefactor     .10000E-03    9.2942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1446        1.1939        .43377E-04   -1.5494    
  25  Normalizat    .96820        .30689        .35735E-03   -.94104    
  26  Prefactor     .94356        .15791        .18839E-03   -.94635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83246e-09
Minuit parameter uncertainties:
  1  3.01386e-06
  2  0.000729211
  3  1.62945e-05
  4  19.1547
  5  6.21227e-05
  6  2.16685
  7  5.55719e-06
  8  1.73085e-05
  9  0.00300122
  10  7.20466e-06
  11  36.4362
  12  30.2808
  13  0.00012001
  14  7.40765
  15  6.06677
  16  76.7068
  17  0.000102483
  18  1.91762e-05
  19  0.000185591
  20  1.66237e-05
  21  0.000969321
  22  1.96766
  23  2.22257e-05
  24  1.19391
  25  0.307454
  26  0.157985
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.747e+01  7.408e+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:  9.436e-01  1.580e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.682e-01  3.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.20
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 6.72e-08
Energy Flux (Fixed Index): 5.47e-05 +/- 2.32e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.94514625
delta logL = 0.346350301349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.92688316
delta logL = 0.364613394246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.730       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7534       1.0000          .0000       5.0000    
     3 'Normalizat'    .91459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95985       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=   5409.927     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.730        7.7490        .98089E-04   -.35060E-03
   2  alpha         2.7534        .45327        .79115E-02   -.66475E-04
   3  Normalizat    .91457        .30461        .36608E-03   -.13376E-03
   4  Prefactor     .95986        .15653        .18682E-03   -.36512E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7299
  alpha      = 2.75343
  Normalizat = 0.914568
  Prefactor  = 0.959862
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.927     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.730        7.4290        .39236E-05   -1.4967    
   2  alpha         2.7534        .43437        .31646E-03    .10155    
   3  Normalizat    .91457        .30448        .14643E-04   -.95950    
   4  Prefactor     .95986        .15653        .74728E-05   -.94080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26812e-10
Minuit parameter uncertainties:
  1  7.4295
  2  0.436606
  3  0.305054
  4  0.156607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226565': 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) = 5409.92688315
delta logL = 0.364613397829

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.599e-01  1.566e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.146e-01  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.02
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.75 +/- 0.44
Photon Flux (Free Index): 2.11e-07 +/- 9.82e-08
Energy Flux (Free Index): 5.37e-05 +/- 2.04e-05

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/226565/cmap_HighResolution_451872001_452131201_4FGL_J1159.3-2142_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='5.37e-05', photon_flux_error='6.72e-08', dlogl='3.65e-01', energy_flux='5.47e-05', photon_flux2='2.11e-07', job_status='DONE', time_completed='2021-09-04 19:07:49.681758', photon_index_error2='0.44', photon_index2='2.75', ts='16.20', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.97', time_epoch_completed='1630807669.68', return_code='0', job_id='226565', GAL2='0.96', EG2='0.91', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='9.82e-08', ts2='17.02', photon_index='2.38' WHERE bin_id='820' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:07:49 PDT 2021


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

Job <4FGL_J1159.3-2142_daily_bin820> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 18:55:26 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:55:27 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:27 2021
Terminated at Sat Sep  4 19:07:50 2021
Results reported at Sat Sep  4 19:07:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin820 179.843 -21.7038 451872001 452131201 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

