/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 4 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 = 7257
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.0+0939_daily_bin247
RA = 179.751, Dec = 9.6603
tmin = 303350401, tmax = 303609601
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='203548', job_status='RUN', time_executed='2021-09-04 17:52:02.787546', time_epoch_executed='1630803122.79' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203548

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203548/ft1_4FGL_J1159.0+0939_daily_bin247.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203548/ft1_4FGL_J1159.0+0939_daily_bin247.fits outfile=/scratch/kocevski/203548/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin247.fits ra=179.751 dec=9.6603 rad=12.0 tmin=303350401.0 tmax=303609601.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.38
user 3.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203548/ft1_filtered_4FGL_J1159.0+0939_daily_bin247.fits" evtable="EVENTS" scfile=/scratch/kocevski/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits sctable="SC_DATA" outfile=/scratch/kocevski/203548/ltcube_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.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/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits
.....................!
real 11.70
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203548/ft1_filtered_4FGL_J1159.0+0939_daily_bin247.fits evtable="EVENTS" scfile=/scratch/kocevski/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits sctable="SC_DATA" expcube=/scratch/kocevski/203548/ltcube_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.fits outfile=/scratch/kocevski/203548/expmap_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.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/203548/ltcube_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.fits
.....................!
real 191.00
user 185.70
sys 4.89

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/203548/ft1_filtered_4FGL_J1159.0+0939_daily_bin247.fits scfile=/scratch/kocevski/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits outfile=/scratch/kocevski/203548/cmap_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203548/ft1_filtered_4FGL_J1159.0+0939_daily_bin247.fits scfile=/scratch/kocevski/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits outfile=/scratch/kocevski/203548/cmap_HighResolution_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/203548/ft1_filtered_4FGL_J1159.0+0939_daily_bin247.fits', '/scratch/kocevski/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits', expMap='/scratch/kocevski/203548/expmap_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.fits', expCube='/scratch/kocevski/203548/ltcube_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/203548/Model_4FGL_J1159.0+0939_daily_bin247.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/203548/ft1_filtered_4FGL_J1159.0+0939_daily_bin247.fits
Spacecraft file(s): /scratch/kocevski/203548/ft2_4FGL_J1159.0+0939_daily_bin247.fits
Exposure map: /scratch/kocevski/203548/expmap_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.fits
Exposure cube: /scratch/kocevski/203548/ltcube_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/203548/Model_4FGL_J1159.0+0939_daily_bin247.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) = 7176.70566695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0292       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.942       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.486       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81880E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39263E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0727       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5965       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2192       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9093       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3406       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.357       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99253       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=   7176.686     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3274 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.245        14.371       -.43712E-07    .14927E-05
   2  Prefactor     20.153        29.711        .10422E-05    .71369E-04
   3  Prefactor     4.0291        2.9827        .27477E-07    .19784E-03
   4  Prefactor     .10000E-03    6.1309       -.23131E-07** at limit **
   5  Prefactor     .10000E-03    8.0208       -.17203E-06** at limit **
   6  Prefactor     41.938        87.435        .92570E-06    .22679E-04
   7  Prefactor     11.485        9.0240        .31924E-07    .87635E-05
   8  Prefactor     .10007E-03    20.371       -.69228E-05** at limit **
   9  Prefactor     .10001E-03    15.215        .16724E-05** at limit **
  10  Prefactor     .10000E-03    1.8483       -.75220E-07** at limit **
  11  Prefactor     .10000E-03    72.038       -.24389E-06** at limit **
  12  Prefactor     .10000E-03    12.535       -.27708E-06** at limit **
  13  Prefactor     .10000E-03    42.758       -.20675E-05** at limit **
  14  Prefactor     2.8871        4.2782        .12140E-05    .12488E-02
  15  Prefactor     1.0680        5.7165       -.11554E-05    .35884E-03
  16  Prefactor     .10000E-03    12.027        .17520E-05** at limit **
  17  Prefactor     8.5992        12.484        .10586E-05    .70009E-03
  18  norm          3.2191        3.7457        .40540E-07    .21333E-03
  19  Prefactor     .10000E-03    12.490       -.78001E-07** at limit **
  20  norm          .10000E-03    16.850        .17276E-05** at limit **
  21  Prefactor     .10000E-03    75.506        .30132E-05** at limit **
  22  norm          3.9093        .88365       -.17665E-07    .86716E-04
  23  Prefactor     1.3400        10.532        .15130E-05    .36658E-03
  24  Prefactor     .10000E-03    14.180       -.31357E-05** at limit **
  25  norm          14.357        3.1282        .14481E-08    .58503E-06
  26  Normalizat    1.2636        .21276        .65472E-07    .33337E-03
  27  Prefactor     .99258        .17827       -.23191E-06    .27692E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.2447
  Prefactor  = 20.1527
  Prefactor  = 4.0291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9384
  Prefactor  = 11.4846
  Prefactor  = 0.00010007
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.88711
  Prefactor  = 1.06804
  Prefactor  = 0.000100001
  Prefactor  = 8.59916
  norm       = 3.21907
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  norm       = 3.90934
  Prefactor  = 1.33998
  Prefactor  = 0.000100002
  norm       = 14.3567
  Normalizat = 1.26361
  Prefactor  = 0.992583
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.686     FROM HESSE     STATUS=OK           482 CALLS     3756 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.245        14.386        .79727E-04   -1.4703    
   2  Prefactor     20.153        29.724        .89206E-04   -1.4810    
   3  Prefactor     4.0291        2.9800        .12061E-03   -1.5306    
   4  Prefactor     .10000E-03    6.1667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.938        87.537        .61898E-04   -1.4412    
   7  Prefactor     11.485        9.0069        .11821E-03   -1.5030    
   8  Prefactor     .10007E-03    26.832        .36855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    87.393        .60542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8626        .11246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    72.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8871        4.2153        .16735E-03   -1.5368    
  15  Prefactor     1.0680        5.5866        .31070E-03   -1.5501    
  16  Prefactor     .10000E-03    12.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5992        12.887        .68359E-03   -1.5121    
  18  norm          3.2191        3.7302        .16360E-03   -1.5349    
  19  Prefactor     .10000E-03    12.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    16.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    75.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9093        .88315        .34939E-04   -1.5313    
  23  Prefactor     1.3400        10.881        .37856E-03   -1.5476    
  24  Prefactor     .10000E-03    14.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.357        3.1273        .66729E-04   -1.4950    
  26  Normalizat    1.2636        .24674        .29173E-03   -.84659    
  27  Prefactor     .99258        .20767        .28468E-03   -.92977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08391e-09
Minuit parameter uncertainties:
  1  14.3877
  2  29.7459
  3  2.98012
  4  4.93946e-06
  5  1.10713e-05
  6  87.8074
  7  9.00799
  8  0.00274627
  9  0.00186858
  10  7.68903e-06
  11  7.26098e-05
  12  2.56958e-05
  13  0.000316488
  14  4.21576
  15  4.88585
  16  0.000177826
  17  12.8907
  18  3.73043
  19  7.99138e-06
  20  0.000207565
  21  0.000770664
  22  0.88315
  23  7.6386
  24  0.000344245
  25  3.12737
  26  0.246966
  27  0.207838
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.148e+01  9.008e+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

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  9.926e-01  2.078e-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.264e+00  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.31
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.28e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.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) = 7174.33406435
delta logL = 2.3517143002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7174.32147915
delta logL = 2.36429950668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.759       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1166       1.0000          .0000       10.000    
     3 'Normalizat'    1.2737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99465       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=   7174.321     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      210 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.759        8.0267        .30536E-02   -.24619E-03
   2  Index         1.1166        .32130        .19369       -.18856E-04
   3  Normalizat    1.2737        .20025        .65649E-01    .46721E-04
   4  Prefactor     .99464        .17682        .46200E-01   -.53382E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7591
  Index      = 1.11659
  Normalizat = 1.27369
  Prefactor  = 0.994641
 **********
 **   18 **HESSE 
 **********

 FCN=   7174.321     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.759        10.804        .12215E-03   -1.5052    
   2  Index         1.1166        .45001        .82234E-02   -.88938    
   3  Normalizat    1.2737        .23340        .29041E-03   -.84355    
   4  Prefactor     .99464        .20627        .28444E-03   -.92908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55249e-11
Minuit parameter uncertainties:
  1  10.8059
  2  0.45156
  3  0.23359
  4  0.206429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203548': 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) = 7174.32147915
delta logL = 2.36429950827

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.076e+01  1.081e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.117e+00  4.516e-01  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:  9.946e-01  2.064e-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.274e+00  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.01
Ra Dec: 179.751 9.660
Photon Index (Free Index): 1.12 +/- 0.45
Photon Flux (Free Index): 1.05e-08 +/- 9.68e-09
Energy Flux (Free Index): 1.12e-04 +/- 1.13e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/203548/cmap_HighResolution_303350401_303609601_4FGL_J1159.0+0939_daily_bin247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.28e-08', energy_flux2='1.12e-04', photon_flux_error='2.57e-08', dlogl='2.36e+00', energy_flux='1.68e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-04 18:04:48.690744', photon_index_error2='0.45', photon_index2='1.12', ts='5.31', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.13e-04', EG='1.26', time_epoch_completed='1630803888.69', return_code='0', job_id='203548', GAL2='0.99', EG2='1.27', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='9.68e-09', ts2='10.01', photon_index='2.13' WHERE bin_id='247' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:04:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 203548: <4FGL_J1159.0+0939_daily_bin247> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin247> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:51:49 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:51:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:51:50 2021
Terminated at Sat Sep  4 18:04:51 2021
Results reported at Sat Sep  4 18:04:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin247 179.751 9.6603 303350401 303609601 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 :                                   763.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            782 sec.

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

