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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin188
RA = 179.751, Dec = 9.6603
tmin = 288057601, tmax = 288316801
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='203457', job_status='RUN', time_executed='2021-09-04 17:54:06.590622', time_epoch_executed='1630803246.59' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203457/ft1_4FGL_J1159.0+0939_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203457/ft2_4FGL_J1159.0+0939_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203457/ft1_4FGL_J1159.0+0939_daily_bin188.fits outfile=/scratch/kocevski/203457/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin188.fits ra=179.751 dec=9.6603 rad=12.0 tmin=288057601.0 tmax=288316801.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.68
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203457/ft2_4FGL_J1159.0+0939_daily_bin188.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/203457/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin188.fits evtable="EVENTS" outfile="/scratch/kocevski/203457/ft1_filtered_4FGL_J1159.0+0939_daily_bin188.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203457/ft1_filtered_4FGL_J1159.0+0939_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/203457/ft2_4FGL_J1159.0+0939_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/203457/ltcube_288057601_288316801_4FGL_J1159.0+0939_daily_bin188.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/203457/ft2_4FGL_J1159.0+0939_daily_bin188.fits
.....................!
real 12.06
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203457/ft1_filtered_4FGL_J1159.0+0939_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/203457/ft2_4FGL_J1159.0+0939_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/203457/ltcube_288057601_288316801_4FGL_J1159.0+0939_daily_bin188.fits outfile=/scratch/kocevski/203457/expmap_288057601_288316801_4FGL_J1159.0+0939_daily_bin188.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/203457/ltcube_288057601_288316801_4FGL_J1159.0+0939_daily_bin188.fits
.....................!
real 193.25
user 188.29
sys 4.55

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/203457/ft1_filtered_4FGL_J1159.0+0939_daily_bin188.fits scfile=/scratch/kocevski/203457/ft2_4FGL_J1159.0+0939_daily_bin188.fits outfile=/scratch/kocevski/203457/cmap_288057601_288316801_4FGL_J1159.0+0939_daily_bin188.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203457/ft1_filtered_4FGL_J1159.0+0939_daily_bin188.fits scfile=/scratch/kocevski/203457/ft2_4FGL_J1159.0+0939_daily_bin188.fits outfile=/scratch/kocevski/203457/cmap_HighResolution_288057601_288316801_4FGL_J1159.0+0939_daily_bin188.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6374       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.162       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.289       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0880       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11782E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8864       1.0000         .10000E-03   10000.    
    21 'Prefactor '    329.04       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7671       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5837       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3109       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77542       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=   6859.015     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     3330 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2776        .90603E-08** at limit **
   2  Prefactor     .10000E-03    14.526       -.49698E-06** at limit **
   3  Prefactor     1.6375        1.6369        .36806E-07    .16391E-05
   4  Prefactor     .10000E-03    6.5628       -.22513E-06** at limit **
   5  Prefactor     .10000E-03    35.176        .22829E-06** at limit **
   6  Prefactor     28.218        56.345        .67213E-05    .22809E-03
   7  Prefactor     16.876        10.334       -.17691E-06   -.92492E-04
   8  Prefactor     .10000E-03    3.5128        .22602E-07** at limit **
   9  Prefactor     9.9308        14.805        .13746E-05    .23533E-03
  10  Prefactor     5.5147        4.7863        .26863E-05   -.14686E-02
  11  Prefactor     .10000E-03    90.522        .57123E-06** at limit **
  12  Prefactor     25.276        33.544       -.50409E-07   -.16055E-04
  13  Prefactor     .10000E-03    4.1578       -.43453E-08** at limit **
  14  Prefactor     .10000E-03    2.0274       -.25669E-06** at limit **
  15  Prefactor     3.0873        3.5937        .25714E-07   -.13862E-03
  16  Prefactor     .10000E-03    22.557       -.89702E-07** at limit **
  17  Prefactor     .10000E-03    3.4680        .23598E-08** at limit **
  18  norm          6.7283        4.7794        .26936E-06   -.94484E-04
  19  Prefactor     .10000E-03    13.461       -.11684E-05** at limit **
  20  norm          2.6573        176.66        .23176E-05    .96628E-05
  21  Prefactor     328.97        178.32       -.67314E-05   -.27501E-03
  22  norm          3.7677        .79564        .80952E-08   -.51482E-04
  23  Prefactor     .10000E-03    13.423        .14924E-05** at limit **
  24  Prefactor     8.5841        28.692        .63105E-06   -.51340E-04
  25  norm          .10000E-03    .68537        .27845E-07** at limit **
  26  Normalizat    1.3105        .19609       -.96488E-06    .10429E-04
  27  Prefactor     .77577        .16519       -.91705E-07   -.58792E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.63747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2181
  Prefactor  = 16.8758
  Prefactor  = 0.0001
  Prefactor  = 9.93077
  Prefactor  = 5.51469
  Prefactor  = 0.0001
  Prefactor  = 25.2763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.72828
  Prefactor  = 0.0001
  norm       = 2.65729
  Prefactor  = 328.969
  norm       = 3.76773
  Prefactor  = 0.000100001
  Prefactor  = 8.58413
  norm       = 0.0001
  Normalizat = 1.31046
  Prefactor  = 0.775769
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.015     FROM HESSE     STATUS=OK           486 CALLS     3816 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2848        .14643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6375        1.6400        .10278E-03   -1.5452    
   4  Prefactor     .10000E-03    6.5923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.218        57.999        .75494E-04   -1.4645    
   7  Prefactor     16.876        10.352        .97477E-04   -1.4886    
   8  Prefactor     .10000E-03    3.5395        .15155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9308        14.899        .12724E-03   -1.5078    
  10  Prefactor     5.5147        5.0485        .84939E-03   -1.5238    
  11  Prefactor     .10000E-03    90.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.276        33.589        .79658E-04   -1.4702    
  13  Prefactor     .10000E-03    4.1590        .16493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0772        .22982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0873        3.5735        .16023E-03   -1.5357    
  16  Prefactor     .10000E-03    22.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4766        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7283        4.7202        .12406E-03   -1.5189    
  19  Prefactor     .10000E-03    13.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6573        172.24        .23921E-03   -1.5382    
  21  Prefactor     328.97        185.69        .11212E-03   -1.2060    
  22  norm          3.7677        .79702        .30485E-04   -1.5320    
  23  Prefactor     .10000E-03    13.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5841        28.663        .13682E-03   -1.5122    
  25  norm          .10000E-03    1.2319        .13291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3105        .23485        .26057E-03   -.83255    
  27  Prefactor     .77577        .19638        .28585E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76373e-09
Minuit parameter uncertainties:
  1  6.78812e-07
  2  8.21652e-05
  3  1.64009
  4  2.56346e-05
  5  5.15601e-05
  6  58.1149
  7  10.3535
  8  1.00988e-06
  9  14.9042
  10  5.04894
  11  2.36933e-07
  12  33.6138
  13  5.64611e-07
  14  1.55903e-05
  15  3.57377
  16  2.60443e-05
  17  4.75021e-07
  18  4.72042
  19  0.000149685
  20  42.9166
  21  186.023
  22  0.797018
  23  0.000238808
  24  28.709
  25  9.53484e-06
  26  0.235044
  27  0.196556
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  1.688e+01  1.035e+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:  7.758e-01  1.966e-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.310e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.81
Ra Dec: 179.751 9.660
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.52e-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) = 6858.66536287
delta logL = 0.349729311064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6858.6348328
delta logL = 0.380259386285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.302       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6945       1.0000          .0000       10.000    
     3 'Normalizat'    1.3334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76329       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6858.635     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      274 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.302        13.519        .86783E-04    .40603E-03
   2  Index         1.6942        .46262        .76832E-02    .12212E-03
   3  Normalizat    1.3334        .22350        .25868E-03   -.60210E-04
   4  Prefactor     .76330        .19415        .28791E-03   -.57413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3017
  Index      = 1.69423
  Normalizat = 1.33337
  Prefactor  = 0.763296
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.635     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.302        13.506        .17357E-04   -1.4785    
   2  Index         1.6942        .46211        .30733E-03   -.72236    
   3  Normalizat    1.3334        .22368        .10347E-04   -.82576    
   4  Prefactor     .76330        .19432        .11517E-04   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75933e-10
Minuit parameter uncertainties:
  1  13.508
  2  0.463291
  3  0.223841
  4  0.194497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203457': 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) = 6858.63483259
delta logL = 0.380259588126

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.130e+01  1.351e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.694e+00  4.633e-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:  7.633e-01  1.945e-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.333e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.55
Ra Dec: 179.751 9.660
Photon Index (Free Index): 1.69 +/- 0.46
Photon Flux (Free Index): 3.00e-08 +/- 2.62e-08
Energy Flux (Free Index): 4.99e-05 +/- 5.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/203457/cmap_HighResolution_288057601_288316801_4FGL_J1159.0+0939_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='4.99e-05', photon_flux_error='2.95e-08', dlogl='3.80e-01', energy_flux='2.47e-05', photon_flux2='3.00e-08', job_status='DONE', time_completed='2021-09-04 18:06:44.502286', photon_index_error2='0.46', photon_index2='1.69', ts='6.81', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='5.43e-05', EG='1.31', time_epoch_completed='1630804004.5', return_code='0', job_id='203457', GAL2='0.76', EG2='1.33', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.62e-08', ts2='7.55', photon_index='2.13' WHERE bin_id='188' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 203457: <4FGL_J1159.0+0939_daily_bin188> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin188> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:51:42 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:51:44 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:44 2021
Terminated at Sat Sep  4 18:06:44 2021
Results reported at Sat Sep  4 18:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin188 179.751 9.6603 288057601 288316801 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 :                                   756.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

