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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin797
RA = 179.751, Dec = 9.6603
tmin = 445910401, tmax = 446169601
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='207205', job_status='RUN', time_executed='2021-09-04 18:04:29.593245', time_epoch_executed='1630803869.59' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207205

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207205/ft1_4FGL_J1159.0+0939_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207205/ft1_4FGL_J1159.0+0939_daily_bin797.fits outfile=/scratch/kocevski/207205/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin797.fits ra=179.751 dec=9.6603 rad=12.0 tmin=445910401.0 tmax=446169601.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.93
user 3.71
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.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/207205/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/207205/ltcube_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.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/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits
.....................!
real 11.61
user 11.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/207205/ltcube_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.fits outfile=/scratch/kocevski/207205/expmap_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.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/207205/ltcube_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.fits
.....................!
real 189.03
user 184.68
sys 3.98

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.0+0939 @ 179.751 9.6603

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits scfile=/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits outfile=/scratch/kocevski/207205/cmap_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.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.751 yref=9.6603 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits scfile=/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits outfile=/scratch/kocevski/207205/cmap_HighResolution_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.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.751 yref=9.6603 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207205/Model_4FGL_J1159.0+0939_daily_bin797.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/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits.....................!
real 56.58
user 55.36
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits', '/scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits', expMap='/scratch/kocevski/207205/expmap_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.fits', expCube='/scratch/kocevski/207205/ltcube_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/207205/Model_4FGL_J1159.0+0939_daily_bin797.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.0+0939'

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.838e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/207205/ft1_filtered_4FGL_J1159.0+0939_daily_bin797.fits
Spacecraft file(s): /scratch/kocevski/207205/ft2_4FGL_J1159.0+0939_daily_bin797.fits
Exposure map: /scratch/kocevski/207205/expmap_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.fits
Exposure cube: /scratch/kocevski/207205/ltcube_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/207205/Model_4FGL_J1159.0+0939_daily_bin797.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) = 6050.70651618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    80.170       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6160       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23374E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36773E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29976E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.122       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3627       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .75805E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    233.61       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2753       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12577E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.714       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0314       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6050.680     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3411 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.045        13.312       -.10456E-04   -.67389E-04
   2  Prefactor     80.098        51.390        .18299E-04   -.14091E-04
   3  Prefactor     2.6152        2.3671        .23116E-06   -.31178E-03
   4  Prefactor     .10000E-03    7.4332        .71219E-07** at limit **
   5  Prefactor     25.010        19.584        .18056E-05    .18301E-04
   6  Prefactor     .10000E-03    194.85        .62391E-05** at limit **
   7  Prefactor     5.0511        10.070       -.11135E-05   -.13046E-03
   8  Prefactor     .10000E-03    6.1513        .27694E-06** at limit **
   9  Prefactor     .10512E-03    15.342        .41587E-06** at limit **
  10  Prefactor     .10000E-03    2.7638        .38878E-06** at limit **
  11  Prefactor     .10000E-03    86.074        .59664E-05** at limit **
  12  Prefactor     .10001E-03    136.25       -.45740E-04** at limit **
  13  Prefactor     24.117        20.032        .19590E-05    .17429E-04
  14  Prefactor     1.3634        1.7715        .10449E-06   -.23763E-03
  15  Prefactor     .10000E-03    1.1272        .55115E-07** at limit **
  16  Prefactor     .10000E-03    9.4818       -.90426E-07** at limit **
  17  Prefactor     .10000E-03    4.7096        .44826E-07** at limit **
  18  norm          4.7734        4.5135       -.23691E-05   -.16611E-02
  19  Prefactor     .10000E-03    27.435       -.11729E-05** at limit **
  20  norm          .87098E-02    61.709        .71854E-05   -.23878E-03
  21  Prefactor     233.81        170.93        .10845E-03   -.11728E-04
  22  norm          1.2759        .62737        .10073E-07   -.30635E-02
  23  Prefactor     .10011E-03    7.2199       -.54520E-06** at limit **
  24  Prefactor     35.708        33.714        .32127E-05    .57150E-04
  25  norm          .10000E-03    .68603       -.45126E-06** at limit **
  26  Normalizat    1.0310        .20262       -.29584E-05    .91684E-04
  27  Prefactor     .94878        .17183       -.26552E-05    .39353E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0449
  Prefactor  = 80.0981
  Prefactor  = 2.61519
  Prefactor  = 0.0001
  Prefactor  = 25.0102
  Prefactor  = 0.000100001
  Prefactor  = 5.05108
  Prefactor  = 0.0001
  Prefactor  = 0.000105118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 24.117
  Prefactor  = 1.36336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77343
  Prefactor  = 0.000100002
  norm       = 0.00870981
  Prefactor  = 233.813
  norm       = 1.27595
  Prefactor  = 0.000100108
  Prefactor  = 35.7084
  norm       = 0.000100001
  Normalizat = 1.03101
  Prefactor  = 0.948778
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.680     FROM HESSE     STATUS=OK           510 CALLS     3921 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.045        13.316        .10327E-03   -1.4932    
   2  Prefactor     80.098        51.705        .44855E-04   -1.3916    
   3  Prefactor     2.6152        2.3576        .10961E-03   -1.5385    
   4  Prefactor     .10000E-03    7.4755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.010        19.583        .80089E-04   -1.4707    
   6  Prefactor     .10000E-03    195.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0511        10.057        .17896E-03   -1.5258    
   8  Prefactor     .10000E-03    6.2066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10512E-03    17.403        .84835E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4792        .24929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    86.208        .21390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    139.57        .42807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.117        20.032        .81559E-04   -1.4725    
  14  Prefactor     1.3634        1.7443        .11392E-03   -1.5474    
  15  Prefactor     .10000E-03    1.1382        .80600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.4853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7214        .16483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7734        4.5166        .12796E-03   -1.5271    
  19  Prefactor     .10000E-03    27.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .87098E-02    59.225        .14237       -1.5689    
  21  Prefactor     233.81        171.04        .13241E-03   -1.2638    
  22  norm          1.2759        .62040        .38496E-04   -1.5482    
  23  Prefactor     .10011E-03    103.02        .37799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     35.708        31.792        .67060E-04   -1.4512    
  25  norm          .10000E-03    1.1762        .12411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0310        .23970        .27099E-03   -.91999    
  27  Prefactor     .94878        .20265        .25027E-03   -.94457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12473e-09
Minuit parameter uncertainties:
  1  13.3188
  2  51.7342
  3  2.35765
  4  1.01501e-05
  5  19.5879
  6  0.000803529
  7  10.0603
  8  4.92523e-05
  9  0.0188814
  10  9.38039e-05
  11  0.00015774
  12  0.00273472
  13  20.0378
  14  1.74437
  15  4.57792e-06
  16  2.34286e-05
  17  9.54728e-06
  18  4.51692
  19  0.000509435
  20  1.42958
  21  171.412
  22  0.620401
  23  0.00667701
  24  31.8071
  25  4.9491e-05
  26  0.239956
  27  0.202811
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  5.051e+00  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  9.488e-01  2.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.031e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 8.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207205/likelihoodResults_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.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) = 6049.86417151
delta logL = 0.815782975725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6049.7649581
delta logL = 0.914996385454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70431E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.8470       1.0000          .0000       10.000    
     3 'Normalizat'    .89305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0391       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6049.765     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      319 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69592E-02    .71512E-01    .93449E-03    .94047E-02
   2  Index         5.8522        1.9933        .95822E-01    .18137E-03
   3  Normalizat    .89339        .47862E-01    .65334E-01    .14217E-04
   4  Prefactor     1.0388        .42757E-01    .40597E-01    .42388E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0069592
  Index      = 5.85222
  Normalizat = 0.893392
  Prefactor  = 1.03875
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.765     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      352 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69592E-02    .17514        .45605E-05   -1.5691    
   2  Index         5.8522        3.5357        .35512E-02    .17128    
   3  Normalizat    .89339        .19930        .28900E-03   -.96693    
   4  Prefactor     1.0388        .17230        .24063E-03   -.91449    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73626e-07
Minuit parameter uncertainties:
  1  0.0693195
  2  3.94355
  3  0.199466
  4  0.172392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207205': 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): 102
logL (Free Index) = 6049.76495389
delta logL = 0.915000594774

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  6.959e-03  6.932e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  5.852e+00  3.944e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  1.039e+00  1.724e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  8.934e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 179.751 9.660
Photon Index (Free Index): 5.85 +/- 3.94
Photon Flux (Free Index): 1.12e-07 +/- 8.08e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.08e-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/207205/cmap_HighResolution_445910401_446169601_4FGL_J1159.0+0939_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='9.15e-01', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-04 18:17:30.863042', photon_index_error2='3.94', photon_index2='5.85', ts='0.33', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.93e-08', energy_flux_error2='1.08e-05', EG='1.03', time_epoch_completed='1630804650.86', return_code='0', job_id='207205', GAL2='1.04', EG2='0.89', return_code2='102', photon_flux_error2='8.08e-08', ts2='2.50', photon_index='2.13' WHERE bin_id='797' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:17:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 207205: <4FGL_J1159.0+0939_daily_bin797> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin797> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 18:01:10 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:01:11 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:01:11 2021
Terminated at Sat Sep  4 18:17:31 2021
Results reported at Sat Sep  4 18:17:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin797 179.751 9.6603 445910401 446169601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.0+0939 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

