/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 203 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin37
RA = 179.884, Dec = 29.2448
tmin = 248918401, tmax = 249177601
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='230389', job_status='RUN', time_executed='2021-09-04 19:09:52.628300', time_epoch_executed='1630807792.63' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230389

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230389/ft1_4FGL_J1159.5+2914_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230389/ft2_4FGL_J1159.5+2914_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230389/ft1_4FGL_J1159.5+2914_daily_bin37.fits outfile=/scratch/kocevski/230389/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin37.fits ra=179.884 dec=29.2448 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.94
user 1.74
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230389/ft2_4FGL_J1159.5+2914_daily_bin37.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/230389/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/230389/ft1_filtered_4FGL_J1159.5+2914_daily_bin37.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230389/ft1_filtered_4FGL_J1159.5+2914_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/230389/ft2_4FGL_J1159.5+2914_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/230389/ltcube_248918401_249177601_4FGL_J1159.5+2914_daily_bin37.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/230389/ft2_4FGL_J1159.5+2914_daily_bin37.fits
.....................!
real 12.76
user 12.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230389/ft1_filtered_4FGL_J1159.5+2914_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/230389/ft2_4FGL_J1159.5+2914_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/230389/ltcube_248918401_249177601_4FGL_J1159.5+2914_daily_bin37.fits outfile=/scratch/kocevski/230389/expmap_248918401_249177601_4FGL_J1159.5+2914_daily_bin37.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/230389/ltcube_248918401_249177601_4FGL_J1159.5+2914_daily_bin37.fits
.....................!
real 192.07
user 187.09
sys 4.32

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/230389/ft1_filtered_4FGL_J1159.5+2914_daily_bin37.fits scfile=/scratch/kocevski/230389/ft2_4FGL_J1159.5+2914_daily_bin37.fits outfile=/scratch/kocevski/230389/cmap_248918401_249177601_4FGL_J1159.5+2914_daily_bin37.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230389/ft1_filtered_4FGL_J1159.5+2914_daily_bin37.fits scfile=/scratch/kocevski/230389/ft2_4FGL_J1159.5+2914_daily_bin37.fits outfile=/scratch/kocevski/230389/cmap_HighResolution_248918401_249177601_4FGL_J1159.5+2914_daily_bin37.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13180E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.7332       1.0000         .10000E-03   10000.    
     3 'norm      '    .10497E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39715E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21457E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0926       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6549       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31204E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6927       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8186       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.5016       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1886       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .93010       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3827       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .46821E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .36063       1.0000         .10000E-03   10000.    
    27 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.089       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1271       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .72189       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5172.700     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     3513 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9472        .78177E-07** at limit **
   2  norm          9.7328        1.0021       -.56488E-08   -.26608E-04
   3  norm          .10000E-03    14.029        .93935E-06** at limit **
   4  Prefactor     .33328E-03    49.456       -.19819E-04** at limit **
   5  Prefactor     1.4107        1.7896        .12534E-06    .80468E-04
   6  Prefactor     .10076E-03    11.181        .24109E-05** at limit **
   7  Prefactor     .10115E-03    16.058        .11877E-05** at limit **
   8  norm          .10000E-03    .74660       -.47208E-06** at limit **
   9  Prefactor     6.3258        1.7625        .26611E-06    .22020E-02
  10  Prefactor     4.0929        4.5619       -.40843E-07   -.12224E-02
  11  norm          2.6549        1.1085        .16489E-07    .19003E-04
  12  Prefactor     .19756E-03    256.88       -.44939E-04** at limit **
  13  Prefactor     1.6921        1.0567       -.28933E-07    .17701E-03
  14  Prefactor     4.8247        2.5930        .15230E-06    .11902E-03
  15  Prefactor     27.318        1.0605        .84246E-07    .11959E-02
  16  Prefactor     .10007E-03    19.237       -.38957E-05** at limit **
  17  norm          6.5028        1.7537        .47007E-07    .10984E-03
  18  Prefactor     .10000E-03    1.4741        .50092E-06** at limit **
  19  Prefactor     .10066E-03    12.888        .15808E-05** at limit **
  20  Prefactor     .10000E-03    2.4248        .24591E-06** at limit **
  21  norm          4.1893        2.9304       -.15974E-06   -.15020E-03
  22  Prefactor     11.532        1.0044       -.14760E-07    .25184E-03
  23  Prefactor     .92834        1.7783       -.40782E-06   -.14610E-03
  24  Prefactor     2.3827        2.4694       -.83834E-08   -.11767E-04
  25  Prefactor     .10012E-03    .75692       -.35299E-06** at limit **
  26  norm          .36061        .23413        .13162E-06    .92588E-03
  27  norm          .10000E-03    2.8355        .18602E-06** at limit **
  28  Prefactor     27.089        1.0030       -.37835E-08    .23978E-03
  29  Prefactor     .10045E-03    21.539        .41239E-06** at limit **
  30  Normalizat    1.1272        .21325       -.34385E-07    .63063E-04
  31  Prefactor     .72175        .23501        .46410E-06    .44097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.73285
  norm       = 0.0001
  Prefactor  = 0.000333277
  Prefactor  = 1.41072
  Prefactor  = 0.000100757
  Prefactor  = 0.000101147
  norm       = 0.0001
  Prefactor  = 6.32583
  Prefactor  = 4.0929
  norm       = 2.65495
  Prefactor  = 0.000197559
  Prefactor  = 1.69213
  Prefactor  = 4.8247
  Prefactor  = 27.3184
  Prefactor  = 0.000100067
  norm       = 6.50277
  Prefactor  = 0.0001
  Prefactor  = 0.000100657
  Prefactor  = 0.0001
  norm       = 4.18926
  Prefactor  = 11.5325
  Prefactor  = 0.928343
  Prefactor  = 2.3827
  Prefactor  = 0.000100117
  norm       = 0.360607
  norm       = 0.0001
  Prefactor  = 27.0887
  Prefactor  = 0.000100446
  Normalizat = 1.12715
  Prefactor  = 0.721748
 **********
 **   18 **HESSE 
 **********

 FCN=   5172.700     FROM HESSE     STATUS=OK           714 CALLS     4227 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.7328        10.190        .32111E-02   -1.5084    
   3  norm          .10000E-03    13.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33328E-03    11.261        .97516E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4107        1.8260        .91197E-02   -1.5470    
   6  Prefactor     .10076E-03    28.648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10115E-03    24.914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .74164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3258        15.013        .39947E-02   -1.5205    
  10  Prefactor     4.0929        4.6238        .49820E-02   -1.5303    
  11  norm          2.6549        1.1092        .62544E-02   -1.5382    
  12  Prefactor     .19756E-03    23.827        .10460       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6921        12.628        .80874E-02   -1.5448    
  14  Prefactor     4.8247        2.7767        .45817E-02   -1.5269    
  15  Prefactor     27.318        24.941        .19163E-02   -1.4662    
  16  Prefactor     .10007E-03    19.628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5028        1.7645        .39349E-02   -1.5198    
  18  Prefactor     .10000E-03    1.4622        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10066E-03    33.598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4624        .34481E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1893        2.8918        .49229E-02   -1.5299    
  22  Prefactor     11.532        9.3392        .29492E-02   -1.5029    
  23  Prefactor     .92834        2.0476        .28373E-01   -1.5515    
  24  Prefactor     2.3827        2.5313        .66342E-02   -1.5399    
  25  Prefactor     .10012E-03    4.2163        .79949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .36061        .24169        .60831E-02   -1.5588    
  27  norm          .10000E-03    2.8142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     27.089        13.498        .19243E-02   -1.4667    
  29  Prefactor     .10045E-03    36.193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1272        .19531        .36993E-01   -.88885    
  31  Prefactor     .72175        .20945        .70931E-01   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02386e-07
Minuit parameter uncertainties:
  1  8.941e-08
  2  10.1915
  3  9.0554e-05
  4  0.102527
  5  1.8261
  6  0.00932001
  7  0.0106977
  8  3.3657e-06
  9  15.0224
  10  4.62418
  11  1.10923
  12  0.0964662
  13  9.24778
  14  2.77676
  15  24.9509
  16  0.0022984
  17  1.76455
  18  6.57232e-06
  19  0.00940068
  20  2.13023e-06
  21  2.89186
  22  9.34034
  23  2.04776
  24  2.53137
  25  0.00140262
  26  0.241692
  27  2.06597e-06
  28  13.4997
  29  0.00803673
  30  0.195438
  31  0.209681
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.503e+00  1.765e+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:  7.217e-01  2.097e-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:  1.127e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.91
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.77e-07 +/- 4.79e-08
Energy Flux (Fixed Index): 7.91e-05 +/- 2.15e-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) = 5172.67899281
delta logL = 0.0209915075548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5172.67785672
delta logL = 0.0221276050261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4495       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1550       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72572       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=   5172.678     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      187 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4495        2.0288        .39509E-02    .31944E-03
   2  alpha         2.1550        .27930        .15359        .49320E-05
   3  Normalizat    1.1215        .18395        .37188E-01    .54299E-05
   4  Prefactor     .72568        .20688        .70752E-01    .18479E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.44951
  alpha      = 2.15497
  Normalizat = 1.12152
  Prefactor  = 0.72568
 **********
 **   18 **HESSE 
 **********

 FCN=   5172.678     FROM HESSE     STATUS=OK            29 CALLS      216 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4495        1.7563        .46949E-04   -1.5200    
   2  alpha         2.1550        .24674        .66534E-03   -.13846    
   3  Normalizat    1.1215        .21018        .22830E-03   -.89064    
   4  Prefactor     .72568        .23534        .31311E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62905e-12
Minuit parameter uncertainties:
  1  1.75631
  2  0.247148
  3  0.210335
  4  0.235661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230389': 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) = 5172.67785663
delta logL = 0.0221276933844

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.450e+00  1.756e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.155e+00  2.471e-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:  7.257e-01  2.357e-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:  1.122e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.70
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.15 +/- 0.25
Photon Flux (Free Index): 1.82e-07 +/- 5.55e-08
Energy Flux (Free Index): 7.56e-05 +/- 2.57e-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/230389/cmap_HighResolution_248918401_249177601_4FGL_J1159.5+2914_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-07', energy_flux2='7.56e-05', photon_flux_error='4.79e-08', dlogl='2.21e-02', energy_flux='7.91e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-04 19:21:25.558331', photon_index_error2='0.25', photon_index2='2.15', ts='43.91', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='1.13', time_epoch_completed='1630808485.56', return_code='0', job_id='230389', GAL2='0.73', EG2='1.12', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='5.55e-08', ts2='43.70', photon_index='2.10' WHERE bin_id='37' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:21:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 230389: <4FGL_J1159.5+2914_daily_bin37> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin37> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:19 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06:21 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:06:21 2021
Terminated at Sat Sep  4 19:21:25 2021
Results reported at Sat Sep  4 19:21:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin37 179.884 29.2448 248918401 249177601 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 :                                   690.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

