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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin930
RA = 179.884, Dec = 29.2448
tmin = 480384001, tmax = 480643201
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='235129', job_status='RUN', time_executed='2021-09-04 19:22:55.666475', time_epoch_executed='1630808575.67' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235129/ft1_4FGL_J1159.5+2914_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235129/ft1_4FGL_J1159.5+2914_daily_bin930.fits outfile=/scratch/kocevski/235129/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin930.fits ra=179.884 dec=29.2448 rad=12.0 tmin=480384001.0 tmax=480643201.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.47
user 3.26
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/235129/ft1_filtered_4FGL_J1159.5+2914_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/235129/ltcube_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.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/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235129/ft1_filtered_4FGL_J1159.5+2914_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/235129/ltcube_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.fits outfile=/scratch/kocevski/235129/expmap_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.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/235129/ltcube_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.fits
.....................!
real 190.42
user 185.32
sys 4.70

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/235129/ft1_filtered_4FGL_J1159.5+2914_daily_bin930.fits scfile=/scratch/kocevski/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits outfile=/scratch/kocevski/235129/cmap_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235129/ft1_filtered_4FGL_J1159.5+2914_daily_bin930.fits scfile=/scratch/kocevski/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits outfile=/scratch/kocevski/235129/cmap_HighResolution_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.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.57
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/235129/ft1_filtered_4FGL_J1159.5+2914_daily_bin930.fits', '/scratch/kocevski/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits', expMap='/scratch/kocevski/235129/expmap_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.fits', expCube='/scratch/kocevski/235129/ltcube_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/235129/Model_4FGL_J1159.5+2914_daily_bin930.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/235129/ft1_filtered_4FGL_J1159.5+2914_daily_bin930.fits
Spacecraft file(s): /scratch/kocevski/235129/ft2_4FGL_J1159.5+2914_daily_bin930.fits
Exposure map: /scratch/kocevski/235129/expmap_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.fits
Exposure cube: /scratch/kocevski/235129/ltcube_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/235129/Model_4FGL_J1159.5+2914_daily_bin930.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) = 6436.02571592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1664       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0090       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11912E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1565       1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.435       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2504       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.327       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.496       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72706       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2475       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5767       1.0000         .10000E-03   10000.    
    26 'norm      '    .56368       1.0000         .10000E-03   10000.    
    27 'norm      '    12.815       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .62304       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5522       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=   6435.977     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4213 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5185        .21535E-07** at limit **
   2  norm          .10000E-03    9.9012        .27509E-06** at limit **
   3  norm          5.1659        7.6348        .40725E-07   -.77718E-04
   4  Prefactor     26.764        17.511        .81483E-07    .69969E-05
   5  Prefactor     4.5531        2.4658       -.10608E-06   -.37431E-03
   6  Prefactor     .10000E-03    34.281       -.26043E-06** at limit **
   7  Prefactor     .10000E-03    7.5774        .60766E-06** at limit **
   8  norm          1.0091        2.0331        .54267E-06    .76347E-04
   9  Prefactor     .10000E-03    6.7274       -.74270E-06** at limit **
  10  Prefactor     .10006E-03    2.5008        .28234E-06** at limit **
  11  norm          2.2316        1.2043        .68081E-07   -.15310E-03
  12  Prefactor     7.1435        16.590        .38568E-05   -.17432E-03
  13  Prefactor     .10000E-03    4.5157        .64818E-07** at limit **
  14  Prefactor     1.1557        1.8190       -.14313E-06   -.28651E-03
  15  Prefactor     42.687        29.049        .67358E-06    .12742E-03
  16  Prefactor     51.416        47.819       -.21529E-05   -.22571E-03
  17  norm          4.2503        1.5051       -.59353E-07   -.12917E-03
  18  Prefactor     .10000E-03    1.9978        .83771E-07** at limit **
  19  Prefactor     24.321        29.319       -.70681E-06   -.63144E-04
  20  Prefactor     .10000E-03    1.7520        .48729E-06** at limit **
  21  norm          12.495        4.0674       -.56391E-07    .84808E-05
  22  Prefactor     .75478        4.9343       -.71927E-06    .37693E-03
  23  Prefactor     .10000E-03    .83968       -.49882E-07** at limit **
  24  Prefactor     1.2477        2.3323        .36709E-06   -.11576E-03
  25  Prefactor     2.5766        3.6299        .52845E-07   -.18990E-04
  26  norm          .56363        .27296        .11390E-07   -.88608E-03
  27  norm          12.815        5.4395       -.63038E-08   -.22682E-04
  28  Prefactor     .10000E-03    9.1529       -.47929E-06** at limit **
  29  Prefactor     .10000E-03    95.481        .64903E-07** at limit **
  30  Normalizat    .62316        .19989       -.16629E-05   -.62190E-04
  31  Prefactor     1.5521        .21850        .41273E-06   -.12689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.16592
  Prefactor  = 26.7635
  Prefactor  = 4.55309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00907
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  norm       = 2.2316
  Prefactor  = 7.14352
  Prefactor  = 0.0001
  Prefactor  = 1.15573
  Prefactor  = 42.6871
  Prefactor  = 51.4164
  norm       = 4.25026
  Prefactor  = 0.0001
  Prefactor  = 24.3212
  Prefactor  = 0.000100003
  norm       = 12.4955
  Prefactor  = 0.754779
  Prefactor  = 0.0001
  Prefactor  = 1.24769
  Prefactor  = 2.57663
  norm       = 0.56363
  norm       = 12.8149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.623157
  Prefactor  = 1.55211
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.977     FROM HESSE     STATUS=OK           632 CALLS     4845 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5432        .96516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1659        7.6328        .17687E-03   -1.5253    
   4  Prefactor     26.764        17.511        .77436E-04   -1.4673    
   5  Prefactor     4.5531        2.4072        .85423E-04   -1.5281    
   6  Prefactor     .10000E-03    34.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0091        1.8709        .15428E-02   -1.5507    
   9  Prefactor     .10000E-03    6.8907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    47.789        .23750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2316        1.1978        .60043E-04   -1.5409    
  12  Prefactor     7.1435        16.789        .75047E-03   -1.5173    
  13  Prefactor     .10000E-03    4.5267        .16650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1557        1.7626        .12346E-03   -1.5493    
  15  Prefactor     42.687        29.242        .61367E-04   -1.4400    
  16  Prefactor     51.416        49.758        .27960E-03   -1.4273    
  17  norm          4.2503        1.5017        .55500E-04   -1.5296    
  18  Prefactor     .10000E-03    2.0322        .11066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.321        29.501        .81215E-04   -1.4721    
  20  Prefactor     .10000E-03    6.5233        .19984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.495        4.0390        .85622E-04   -1.5001    
  22  Prefactor     .75478        20.664        .32494E-02   -1.5534    
  23  Prefactor     .10000E-03    .84426        .71676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2477        2.3017        .15375E-03   -1.5485    
  25  Prefactor     2.5766        3.6157        .17549E-03   -1.5387    
  26  norm          .56363        .26928        .27708E-04   -1.5558    
  27  norm          12.815        5.4316        .11189E-03   -1.4992    
  28  Prefactor     .10000E-03    9.3096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    95.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .62316        .23199        .32339E-03   -1.0701    
  31  Prefactor     1.5521        .25818        .25697E-03   -.76091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77029e-09
Minuit parameter uncertainties:
  1  9.99925e-07
  2  3.6315e-05
  3  7.63423
  4  17.5148
  5  2.40722
  6  5.21001e-05
  7  7.74044e-05
  8  1.87097
  9  9.64429e-05
  10  0.00336433
  11  1.19778
  12  16.8004
  13  4.67561e-06
  14  1.76272
  15  29.2523
  16  49.7979
  17  1.50173
  18  2.06797e-06
  19  29.519
  20  0.000293528
  21  4.03906
  22  7.90097
  23  1.07703e-06
  24  2.30183
  25  3.61605
  26  0.26928
  27  5.43179
  28  5.94324e-05
  29  3.59419e-05
  30  0.232358
  31  0.2584
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.250e+00  1.502e+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.552e+00  2.584e-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:  6.232e-01  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.30
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 4.08e-08
Energy Flux (Fixed Index): 5.17e-05 +/- 1.83e-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) = 6435.79075773
delta logL = 0.186649202281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6435.77156662
delta logL = 0.205840307461

Fit tolerance = 1e-08

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

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

 FCN=   6435.772     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1058        23.747        .49738E-02    .12535E-02
   2  alpha         2.3228        3.6028        .23202       -.40599E-06
   3  Normalizat    .59952        .30613        .74331E-01    .10602E-04
   4  Prefactor     1.5712        .37318        .57820E-01    .36562E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10581
  alpha      = 2.32284
  Normalizat = 0.599521
  Prefactor  = 1.57119
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.772     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1058        1.4795        .52904E-04   -1.5303    
   2  alpha         2.3228        .35489        .97001E-02   -.70922E-01
   3  Normalizat    .59952        .21471        .32907E-03   -1.0800    
   4  Prefactor     1.5712        .25531        .25564E-03   -.75565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00565e-10
Minuit parameter uncertainties:
  1  1.47954
  2  0.356104
  3  0.215011
  4  0.255522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235129': 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) = 6435.77156662
delta logL = 0.205840309698

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.106e+00  1.480e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.323e+00  3.561e-01  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.571e+00  2.555e-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:  5.995e-01  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.66
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.32 +/- 0.36
Photon Flux (Free Index): 1.34e-07 +/- 5.23e-08
Energy Flux (Free Index): 4.46e-05 +/- 1.78e-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/235129/cmap_HighResolution_480384001_480643201_4FGL_J1159.5+2914_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='4.46e-05', photon_flux_error='4.08e-08', dlogl='2.06e-01', energy_flux='5.17e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-04 19:36:57.020722', photon_index_error2='0.36', photon_index2='2.32', ts='18.30', fit_tolerance='1e-08', GAL='1.55', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.62', time_epoch_completed='1630809417.02', return_code='0', job_id='235129', GAL2='1.57', EG2='0.60', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='5.23e-08', ts2='18.66', photon_index='2.10' WHERE bin_id='930' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 235129: <4FGL_J1159.5+2914_daily_bin930> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin930> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 19:20:48 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:20: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 19:20:50 2021
Terminated at Sat Sep  4 19:36:58 2021
Results reported at Sat Sep  4 19:36:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin930 179.884 29.2448 480384001 480643201 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 :                                   838.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

