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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1418
RA = 179.843, Dec = -21.7038
tmin = 606873601, tmax = 607132801
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='229933', job_status='RUN', time_executed='2021-09-04 19:06:31.274293', time_epoch_executed='1630807591.27' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229933/ft1_4FGL_J1159.3-2142_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229933/ft1_4FGL_J1159.3-2142_daily_bin1418.fits outfile=/scratch/kocevski/229933/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1418.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=606873601.0 tmax=607132801.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 5.28
user 5.05
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.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/229933/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1418.fits evtable="EVENTS" outfile="/scratch/kocevski/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/229933/ltcube_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.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/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits
.....................!
real 11.57
user 11.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/229933/ltcube_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.fits outfile=/scratch/kocevski/229933/expmap_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.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/229933/ltcube_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.fits
.....................!
real 192.36
user 186.09
sys 5.49

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/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits scfile=/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits outfile=/scratch/kocevski/229933/cmap_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits scfile=/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits outfile=/scratch/kocevski/229933/cmap_HighResolution_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.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/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229933/Model_4FGL_J1159.3-2142_daily_bin1418.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/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits.....................!
real 45.30
user 43.59
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits', '/scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits', expMap='/scratch/kocevski/229933/expmap_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.fits', expCube='/scratch/kocevski/229933/ltcube_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229933/Model_4FGL_J1159.3-2142_daily_bin1418.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/229933/ft1_filtered_4FGL_J1159.3-2142_daily_bin1418.fits
Spacecraft file(s): /scratch/kocevski/229933/ft2_4FGL_J1159.3-2142_daily_bin1418.fits
Exposure map: /scratch/kocevski/229933/expmap_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.fits
Exposure cube: /scratch/kocevski/229933/ltcube_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229933/Model_4FGL_J1159.3-2142_daily_bin1418.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4622.56604277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10085E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9360       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.492       1.0000         .10000E-03   10000.    
     6 'norm      '    .10828E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.048       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8398       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.552       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13172E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.405       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1825       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.672       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7979       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90920       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0799       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=   4622.486     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3202 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.546        .24466E-05** at limit **
   2  Prefactor     .10001E-03    162.11       -.13621E-04** at limit **
   3  Prefactor     .10000E-03    19.865       -.19868E-05** at limit **
   4  Prefactor     2.9295        31.215        .11213E-04   -.20615E-03
   5  Prefactor     30.497        73.290        .24954E-05    .73737E-05
   6  norm          .10000E-03    1.1417        .10677E-06** at limit **
   7  Prefactor     .10000E-03    9.4979        .27691E-07** at limit **
   8  Prefactor     49.030        64.469       -.56005E-05   -.11618E-03
   9  Prefactor     2.8328        10.627       -.22185E-06   -.22623E-04
  10  Prefactor     33.549        25.633        .11172E-05    .12332E-04
  11  Prefactor     .10001E-03    66.046       -.15318E-04** at limit **
  12  norm          .10000E-03    12.069       -.53814E-06** at limit **
  13  Prefactor     24.457        38.015       -.41336E-06    .23774E-03
  14  norm          4.2321        9.4151        .42757E-05   -.95050E-03
  15  Prefactor     .10000E-03    2.3975        .74713E-07** at limit **
  16  Prefactor     71.425        90.079        .87610E-05    .10166E-03
  17  Prefactor     .10000E-03    15.371        .11069E-05** at limit **
  18  Prefactor     .10000E-03    20.374       -.30336E-06** at limit **
  19  Prefactor     .10002E-03    88.534        .28256E-04** at limit **
  20  Prefactor     .10000E-03    11.019        .31439E-06** at limit **
  21  Prefactor     .10000E-03    2.6686        .28687E-07** at limit **
  22  Prefactor     9.1823        3.3081        .39911E-07   -.35822E-05
  23  Prefactor     14.670        17.291        .26492E-06   -.21004E-04
  24  norm          1.7977        2.1157        .23876E-06   -.63968E-04
  25  Normalizat    .90921        .31973       -.41779E-05   -.51171E-04
  26  Prefactor     1.0800        .15995       -.18541E-06   -.16774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 2.92946
  Prefactor  = 30.497
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.0297
  Prefactor  = 2.83283
  Prefactor  = 33.5491
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 24.4569
  norm       = 4.23209
  Prefactor  = 0.0001
  Prefactor  = 71.4249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.18231
  Prefactor  = 14.6696
  norm       = 1.79768
  Normalizat = 0.909215
  Prefactor  = 1.08001
 **********
 **   18 **HESSE 
 **********

 FCN=   4622.486     FROM HESSE     STATUS=OK           450 CALLS     3652 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    162.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9295        32.362        .11853E-02   -1.5366    
   5  Prefactor     30.497        72.171        .72559E-04   -1.4603    
   6  norm          .10000E-03    2.0614        .13768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.030        64.771        .57259E-04   -1.4306    
   9  Prefactor     2.8328        10.563        .24130E-03   -1.5371    
  10  Prefactor     33.549        25.667        .69180E-04   -1.4549    
  11  Prefactor     .10001E-03    66.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.457        42.955        .81086E-04   -1.4718    
  14  norm          4.2321        11.289        .97716E-03   -1.5296    
  15  Prefactor     .10000E-03    2.4015        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     71.425        89.972        .47509E-04   -1.4016    
  17  Prefactor     .10000E-03    15.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    90.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6773        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.1823        3.3081        .72278E-04   -1.5102    
  23  Prefactor     14.670        17.286        .10457E-03   -1.4942    
  24  norm          1.7977        2.1021        .10155E-03   -1.5440    
  25  Normalizat    .90921        .36962        .38597E-03   -.96137    
  26  Prefactor     1.0800        .18757        .18739E-03   -.90108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8509e-09
Minuit parameter uncertainties:
  1  0.000167689
  2  0.00221703
  3  0.000138631
  4  19.4865
  5  72.3789
  6  7.99203e-06
  7  6.01314e-05
  8  64.864
  9  10.5703
  10  25.6759
  11  0.0016431
  12  2.01952e-05
  13  43.009
  14  11.295
  15  4.26302e-06
  16  90.1437
  17  5.25787e-05
  18  0.000149764
  19  0.00296882
  20  1.74232e-05
  21  2.98652e-06
  22  3.30815
  23  17.2915
  24  2.10214
  25  0.370661
  26  0.187688
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  4.232e+00  1.129e+01  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.080e+00  1.877e-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.092e-01  3.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/229933/likelihoodResults_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.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) = 4622.37951972
delta logL = 0.106336051998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4622.37074802
delta logL = 0.115107743572

Fit tolerance = 1e-08

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

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

 FCN=   4622.371     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6020        137.40        .53150E-02    .40876E-03
   2  alpha         2.9373        3.6972        .41965        .30494E-04
   3  Normalizat    .87534        .87885E-01    .88622E-01    .17492E-04
   4  Prefactor     1.0892        .42809E-01    .38005E-01   -.11501E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.60197
  alpha      = 2.93727
  Normalizat = 0.875337
  Prefactor  = 1.08925
 **********
 **   18 **HESSE 
 **********

 FCN=   4622.371     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6020        6.9200        .16304E-03   -1.5328    
   2  alpha         2.9373        1.2080        .16744E-01    .17581    
   3  Normalizat    .87534        .36033        .39249E-03   -.97332    
   4  Prefactor     1.0892        .18627        .18662E-03   -.89811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92482e-09
Minuit parameter uncertainties:
  1  6.92155
  2  1.26267
  3  0.361329
  4  0.186384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229933': 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) = 4622.3707444
delta logL = 0.115111369228

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.602e+00  6.922e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.937e+00  1.263e+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.089e+00  1.864e-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:  8.753e-01  3.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/229933/cmap_HighResolution_606873601_607132801_4FGL_J1159.3-2142_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-05', job_status='DONE', photon_flux_upper_limit='1.93e-07', time_completed='2021-09-04 19:17:22.879743', job_id='229933', GAL2='1.09', fit_tolerance='1e-08', EG2='0.88', EG='0.91', time_epoch_completed='1630808242.88', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.15e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1418' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:17:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 229933: <4FGL_J1159.3-2142_daily_bin1418> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1418 179.843 -21.7038 606873601 607132801 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 :                                   643.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            702 sec.

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

