/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 10 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin434
RA = 179.884, Dec = 29.2448
tmin = 351820801, tmax = 352080001
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='231915', job_status='RUN', time_executed='2021-09-04 19:11:25.723292', time_epoch_executed='1630807885.72' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231915/ft1_4FGL_J1159.5+2914_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231915/ft1_4FGL_J1159.5+2914_daily_bin434.fits outfile=/scratch/kocevski/231915/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin434.fits ra=179.884 dec=29.2448 rad=12.0 tmin=351820801.0 tmax=352080001.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 2.71
user 2.51
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.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/231915/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin434.fits evtable="EVENTS" outfile="/scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.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.40
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/231915/ltcube_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.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/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits
.....................!
real 8.74
user 8.45
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/231915/ltcube_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.fits outfile=/scratch/kocevski/231915/expmap_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.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/231915/ltcube_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.fits
.....................!
real 139.95
user 136.37
sys 3.35

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

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits scfile=/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits outfile=/scratch/kocevski/231915/cmap_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.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.884 yref=29.2448 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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits scfile=/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits outfile=/scratch/kocevski/231915/cmap_HighResolution_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.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.884 yref=29.2448 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.45
user 0.27
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231915/Model_4FGL_J1159.5+2914_daily_bin434.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/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits.....................!
real 42.54
user 41.48
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits', '/scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits', expMap='/scratch/kocevski/231915/expmap_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.fits', expCube='/scratch/kocevski/231915/ltcube_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231915/Model_4FGL_J1159.5+2914_daily_bin434.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.5+2914'

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231915/ft1_filtered_4FGL_J1159.5+2914_daily_bin434.fits
Spacecraft file(s): /scratch/kocevski/231915/ft2_4FGL_J1159.5+2914_daily_bin434.fits
Exposure map: /scratch/kocevski/231915/expmap_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.fits
Exposure cube: /scratch/kocevski/231915/ltcube_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231915/Model_4FGL_J1159.5+2914_daily_bin434.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) = 6168.28504036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.3625       1.0000         .10000E-03   10000.    
     3 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4093       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11124E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2392       1.0000         .10000E-03   10000.    
    21 'norm      '    4.6381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12402E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2458       1.0000         .10000E-03   10000.    
    26 'norm      '    .97988       1.0000         .10000E-03   10000.    
    27 'norm      '    2.3820       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5307       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93592       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6168.267     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4181 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3617        .24670E-06** at limit **
   2  norm          9.3641        12.886        .21422E-06   -.27376E-03
   3  norm          .10000E-03    18.355       -.25194E-05** at limit **
   4  Prefactor     .10000E-03    7.5760       -.13947E-06** at limit **
   5  Prefactor     7.4421        2.9120        .32330E-08    .20851E-03
   6  Prefactor     .10000E-03    53.538       -.76691E-05** at limit **
   7  Prefactor     .10000E-03    11.037       -.13281E-05** at limit **
   8  norm          .10000E-03    2.7940        .12236E-07** at limit **
   9  Prefactor     21.577        14.816        .15194E-06    .47192E-04
  10  Prefactor     .10000E-03    2.5799       -.19467E-07** at limit **
  11  norm          3.4098        1.3525        .57344E-08   -.30489E-04
  12  Prefactor     19.397        21.243        .16014E-05    .95054E-04
  13  Prefactor     .10000E-03    4.1398       -.51934E-08** at limit **
  14  Prefactor     .10000E-03    .79432       -.24264E-07** at limit **
  15  Prefactor     .10000E-03    44.756        .49886E-05** at limit **
  16  Prefactor     .10000E-03    16.543        .32476E-05** at limit **
  17  norm          2.1643        1.2848        .23720E-08   -.30728E-04
  18  Prefactor     .10000E-03    1.2486       -.67315E-09** at limit **
  19  Prefactor     7.3100        27.762       -.79486E-05   -.95153E-04
  20  Prefactor     1.2398        2.4801        .37254E-07   -.20964E-03
  21  norm          4.6336        2.7253        .69584E-07    .16501E-03
  22  Prefactor     .10000E-03    2.7030        .55911E-07** at limit **
  23  Prefactor     .10000E-03    .78576       -.36149E-08** at limit **
  24  Prefactor     .30776E-01    1.0434       -.22658E-06    .36079E-03
  25  Prefactor     1.2441        6.2226        .20666E-06   -.26706E-03
  26  norm          .97987        .31606       -.69609E-08    .11003E-03
  27  norm          2.3815        3.8224       -.12818E-06   -.71489E-04
  28  Prefactor     3.5236        4.5661        .10493E-05   -.13902E-02
  29  Prefactor     .10000E-03    34.030       -.16120E-05** at limit **
  30  Normalizat    .93597        .18885        .13070E-06    .41725E-04
  31  Prefactor     1.2336        .20723        .29633E-07    .44938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 9.36414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44209
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.577
  Prefactor  = 0.0001
  norm       = 3.40975
  Prefactor  = 19.3973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.16428
  Prefactor  = 0.0001
  Prefactor  = 7.31
  Prefactor  = 1.23984
  norm       = 4.63358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0307763
  Prefactor  = 1.24414
  norm       = 0.979867
  norm       = 2.38148
  Prefactor  = 3.52356
  Prefactor  = 0.0001
  Normalizat = 0.935966
  Prefactor  = 1.23362
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.267     FROM HESSE     STATUS=OK           626 CALLS     4807 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3189        .23073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.3641        13.102        .65488E-03   -1.5096    
   3  norm          .10000E-03    18.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4421        2.9050        .79918E-04   -1.5162    
   6  Prefactor     .10000E-03    53.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9032        .25523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.577        14.825        .86236E-04   -1.4779    
  10  Prefactor     .10000E-03    2.6117        .12312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4098        1.3523        .55004E-04   -1.5339    
  12  Prefactor     19.397        21.252        .90946E-04   -1.4827    
  13  Prefactor     .10000E-03    4.1502        .15606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .81209        .13637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1643        1.2773        .64867E-04   -1.5414    
  18  Prefactor     .10000E-03    1.2556        .85678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3100        28.221        .14822E-03   -1.5167    
  20  Prefactor     1.2398        2.4481        .16928E-03   -1.5485    
  21  norm          4.6336        2.7670        .94351E-04   -1.5277    
  22  Prefactor     .10000E-03    2.7129        .12610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .78985        .67911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .30776E-01    36.968        .14836E-02   -1.5673    
  25  Prefactor     1.2441        6.2183        .36033E-03   -1.5485    
  26  norm          .97987        .31492        .23776E-04   -1.5510    
  27  norm          2.3815        3.7514        .17750E-03   -1.5399    
  28  Prefactor     3.5236        7.2110        .10757E-02   -1.5333    
  29  Prefactor     .10000E-03    34.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93597        .22046        .26458E-03   -.95208    
  31  Prefactor     1.2336        .24336        .27371E-03   -.85303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71277e-09
Minuit parameter uncertainties:
  1  0.000275778
  2  13.1058
  3  0.000129413
  4  6.29242e-06
  5  2.90506
  6  0.000584884
  7  5.66618e-05
  8  9.51978e-07
  9  14.828
  10  5.16882e-07
  11  1.35234
  12  21.2603
  13  1.5896e-06
  14  4.98049e-06
  15  0.000493381
  16  0.000143677
  17  1.27728
  18  8.14707e-07
  19  28.2721
  20  2.44829
  21  2.76705
  22  6.0662e-06
  23  5.46438e-07
  24  2.13115
  25  5.56359
  26  0.314921
  27  3.75177
  28  7.2128
  29  0.000103219
  30  0.220674
  31  0.243585
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.164e+00  1.277e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.234e+00  2.436e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.360e-01  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.59
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.55e-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) = 6167.93445214
delta logL = 0.332433080266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6167.92926535
delta logL = 0.337619870072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4377       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0481       1.0000          .0000       5.0000    
     3 'Normalizat'    .86660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+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=   6167.929     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      271 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4379        2.6928        .46667E-04    .55446E-03
   2  alpha         3.0482        1.7447        .14095E-01    .29851E-04
   3  Normalizat    .86656        .23231        .27363E-03   -.33114E-04
   4  Prefactor     1.2961        .26529        .26815E-03    .57024E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43787
  alpha      = 3.04821
  Normalizat = 0.866563
  Prefactor  = 1.29605
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.929     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4379        1.8458        .18667E-05   -1.5468    
   2  alpha         3.0482        1.2658        .56379E-03    .22108    
   3  Normalizat    .86656        .22208        .10945E-04   -.97645    
   4  Prefactor     1.2961        .25445        .10726E-04   -.83425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07558e-11
Minuit parameter uncertainties:
  1  1.84585
  2  1.33086
  3  0.222318
  4  0.254696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231915': 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) = 6167.92926525
delta logL = 0.337619972812

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.438e+00  1.846e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  3.048e+00  1.331e+00  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.296e+00  2.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.666e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 179.884 29.245
Photon Index (Free Index): 3.05 +/- 1.33
Photon Flux (Free Index): 9.90e-08 +/- 6.23e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.12e-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/231915/cmap_HighResolution_351820801_352080001_4FGL_J1159.5+2914_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='1.96e-05', photon_flux_error='3.47e-08', dlogl='3.38e-01', energy_flux='2.63e-05', photon_flux2='9.90e-08', job_status='DONE', time_completed='2021-09-04 19:21:37.475451', photon_index_error2='1.33', photon_index2='3.05', ts='5.59', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='0.94', time_epoch_completed='1630808497.48', return_code='0', job_id='231915', GAL2='1.30', EG2='0.87', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='6.23e-08', ts2='6.38', photon_index='2.10' WHERE bin_id='434' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:21:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 231915: <4FGL_J1159.5+2914_daily_bin434> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin434> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 19:10:59 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:11:01 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:11:01 2021
Terminated at Sat Sep  4 19:21:38 2021
Results reported at Sat Sep  4 19:21:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin434 179.884 29.2448 351820801 352080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   602.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            639 sec.

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

