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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin187
RA = 179.884, Dec = 29.2448
tmin = 287798401, tmax = 288057601
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='231581', job_status='RUN', time_executed='2021-09-04 19:10:55.405655', time_epoch_executed='1630807855.41' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231581/ft1_4FGL_J1159.5+2914_daily_bin187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231581/ft2_4FGL_J1159.5+2914_daily_bin187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231581/ft1_4FGL_J1159.5+2914_daily_bin187.fits outfile=/scratch/kocevski/231581/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin187.fits ra=179.884 dec=29.2448 rad=12.0 tmin=287798401.0 tmax=288057601.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.60
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231581/ft1_filtered_4FGL_J1159.5+2914_daily_bin187.fits" evtable="EVENTS" scfile=/scratch/kocevski/231581/ft2_4FGL_J1159.5+2914_daily_bin187.fits sctable="SC_DATA" outfile=/scratch/kocevski/231581/ltcube_287798401_288057601_4FGL_J1159.5+2914_daily_bin187.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/231581/ft2_4FGL_J1159.5+2914_daily_bin187.fits
.....................!
real 11.73
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231581/ft1_filtered_4FGL_J1159.5+2914_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/231581/ft2_4FGL_J1159.5+2914_daily_bin187.fits sctable="SC_DATA" expcube=/scratch/kocevski/231581/ltcube_287798401_288057601_4FGL_J1159.5+2914_daily_bin187.fits outfile=/scratch/kocevski/231581/expmap_287798401_288057601_4FGL_J1159.5+2914_daily_bin187.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/231581/ltcube_287798401_288057601_4FGL_J1159.5+2914_daily_bin187.fits
.....................!
real 190.95
user 185.79
sys 4.65

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/231581/ft1_filtered_4FGL_J1159.5+2914_daily_bin187.fits scfile=/scratch/kocevski/231581/ft2_4FGL_J1159.5+2914_daily_bin187.fits outfile=/scratch/kocevski/231581/cmap_287798401_288057601_4FGL_J1159.5+2914_daily_bin187.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.55
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7059       1.0000         .10000E-03   10000.    
     2 'norm      '    .11666E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2257       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1063       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.200       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.285       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5392       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2152       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1532       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17509E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8396       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4829       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9435       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9075       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.981       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.5044       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.4993       1.0000         .10000E-03   10000.    
    27 'norm      '    4.6890       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14588E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96411       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0667       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=   7327.333     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4140 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7073        3.2242        .47809E-06   -.14692E-02
   2  norm          .10000E-03    8.6409        .76530E-07** at limit **
   3  norm          1.2252        11.534       -.36537E-06   -.62010E-03
   4  Prefactor     .10000E-03    5.5514        .82179E-07** at limit **
   5  Prefactor     4.1060        3.2646       -.21260E-05    .10371E-03
   6  Prefactor     11.222        37.320        .33467E-04    .13695E-04
   7  Prefactor     22.261        26.706       -.26361E-05   -.66002E-04
   8  norm          .10000E-03    1.3062       -.20189E-06** at limit **
   9  Prefactor     1.4991        54.799        .36176E-05    .48860E-04
  10  Prefactor     2.2150        5.1654       -.71650E-06   -.57999E-04
  11  norm          3.1535        1.3051       -.34186E-07    .15753E-04
  12  Prefactor     .10000E-03    31.921       -.34889E-06** at limit **
  13  Prefactor     2.0404        7.8656       -.22329E-06   -.52741E-03
  14  Prefactor     1.8398        1.8103       -.20892E-07   -.20315E-04
  15  Prefactor     .10000E-03    21.527       -.18229E-05** at limit **
  16  Prefactor     .10000E-03    20.711        .21901E-05** at limit **
  17  norm          3.4830        1.4722       -.35853E-08    .19379E-04
  18  Prefactor     .10000E-03    3.5448       -.38430E-08** at limit **
  19  Prefactor     .10000E-03    14.177       -.14671E-06** at limit **
  20  Prefactor     3.9432        4.1935       -.32474E-06   -.37837E-04
  21  norm          3.9076        2.9573       -.22858E-07   -.59967E-05
  22  Prefactor     13.987        10.031       -.17499E-06    .48856E-05
  23  Prefactor     .10000E-03    1.7563        .85781E-08** at limit **
  24  Prefactor     4.5041        2.5419        .53313E-07    .24580E-05
  25  Prefactor     .10000E-03    1.5301       -.15748E-07** at limit **
  26  norm          6.4995        .63284        .14256E-07    .41038E-04
  27  norm          4.6891        3.3523       -.62246E-06   -.73662E-06
  28  Prefactor     .10000E-03    3.5565        .15805E-06** at limit **
  29  Prefactor     .10000E-03    64.760        .21516E-05** at limit **
  30  Normalizat    .96370        .19202        .69504E-06   -.47134E-04
  31  Prefactor     1.0669        .20774       -.65736E-06    .28007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7073
  norm       = 0.0001
  norm       = 1.22517
  Prefactor  = 0.0001
  Prefactor  = 4.10598
  Prefactor  = 11.2224
  Prefactor  = 22.261
  norm       = 0.0001
  Prefactor  = 1.49911
  Prefactor  = 2.21503
  norm       = 3.15352
  Prefactor  = 0.0001
  Prefactor  = 2.04043
  Prefactor  = 1.83983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94316
  norm       = 3.90765
  Prefactor  = 13.9869
  Prefactor  = 0.0001
  Prefactor  = 4.50406
  Prefactor  = 0.0001
  norm       = 6.49947
  norm       = 4.68914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.963701
  Prefactor  = 1.06693
 **********
 **   18 **HESSE 
 **********

 FCN=   7327.333     FROM HESSE     STATUS=OK           628 CALLS     4768 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7073        3.6355        .11415E-02   -1.5447    
   2  norm          .10000E-03    8.6907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2252        24.527        .20339E-02   -1.5487    
   4  Prefactor     .10000E-03    5.5573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1060        3.2503        .11383E-03   -1.5303    
   6  Prefactor     11.222        37.224        .11971E-03   -1.5038    
   7  Prefactor     22.261        24.390        .84850E-04   -1.4764    
   8  norm          .10000E-03    1.3434        .19092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4991        45.611        .34371E-03   -1.5463    
  10  Prefactor     2.2150        5.1253        .27518E-03   -1.5410    
  11  norm          3.1535        1.3080        .60398E-04   -1.5353    
  12  Prefactor     .10000E-03    32.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0404        9.2898        .14476E-02   -1.5422    
  14  Prefactor     1.8398        1.7978        .10928E-03   -1.5437    
  15  Prefactor     .10000E-03    21.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4830        1.4735        .64314E-04   -1.5335    
  18  Prefactor     .10000E-03    3.6339        .31412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9432        4.1857        .17219E-03   -1.5311    
  21  norm          3.9076        2.9398        .12029E-03   -1.5313    
  22  Prefactor     13.987        10.089        .10712E-03   -1.4960    
  23  Prefactor     .10000E-03    1.7876        .22008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.5041        2.5402        .96414E-04   -1.5283    
  25  Prefactor     .10000E-03    1.5311        .10340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.4995        .63427        .20290E-04   -1.5198    
  27  norm          4.6891        3.3541        .12885E-03   -1.5275    
  28  Prefactor     .10000E-03    3.5632        .15764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    64.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96370        .23379        .29897E-03   -.94257    
  31  Prefactor     1.0669        .24917        .32142E-03   -.90530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2205e-09
Minuit parameter uncertainties:
  1  3.63593
  2  7.75279e-06
  3  10.9682
  4  2.92234e-07
  5  3.25044
  6  37.3011
  7  24.4009
  8  2.88444e-05
  9  16.5513
  10  5.12629
  11  1.30798
  12  1.00016e-05
  13  8.7095
  14  1.7979
  15  1.3913e-05
  16  1.81605e-06
  17  1.47352
  18  6.65846e-06
  19  1.85713e-06
  20  4.18601
  21  2.93989
  22  10.0906
  23  3.03161e-07
  24  2.54031
  25  4.04964e-07
  26  0.634269
  27  3.3542
  28  4.412e-07
  29  5.29713e-08
  30  0.234037
  31  0.249438
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.483e+00  1.474e+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.067e+00  2.494e-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.637e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.51
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 9.46e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 1.79e-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) = 7327.32367662
delta logL = 0.00959974240322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7327.32280804
delta logL = 0.0104683231839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4836       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1831       1.0000          .0000       5.0000    
     3 'Normalizat'    .95483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0740       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=   7327.323     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4862        7.7232        .54161E-02    .21171E-03
   2  alpha         2.1830        2.0525        .28568       -.71490E-05
   3  Normalizat    .95469        .24054        .67860E-01    .16998E-04
   4  Prefactor     1.0741        .26964        .72435E-01    .14747E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4862
  alpha      = 2.183
  Normalizat = 0.954691
  Prefactor  = 1.07412
 **********
 **   18 **HESSE 
 **********

 FCN=   7327.323     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4862        1.4632        .63667E-04   -1.5335    
   2  alpha         2.1830        .55768        .14689E-01   -.12714    
   3  Normalizat    .95469        .22721        .30019E-03   -.94564    
   4  Prefactor     1.0741        .25068        .32050E-03   -.90298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34915e-13
Minuit parameter uncertainties:
  1  1.46323
  2  0.562491
  3  0.227444
  4  0.250955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231581': 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) = 7327.32280639
delta logL = 0.0104699775584

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.486e+00  1.463e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.183e+00  5.625e-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.074e+00  2.510e-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.547e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.32
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.18 +/- 0.56
Photon Flux (Free Index): 1.01e-07 +/- 5.88e-08
Energy Flux (Free Index): 4.01e-05 +/- 2.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/231581/cmap_HighResolution_287798401_288057601_4FGL_J1159.5+2914_daily_bin187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.46e-08', energy_flux2='4.01e-05', photon_flux_error='4.00e-08', dlogl='1.05e-02', energy_flux='4.24e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-04 19:26:07.872048', photon_index_error2='0.56', photon_index2='2.18', ts='11.51', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.96', time_epoch_completed='1630808767.87', return_code='0', job_id='231581', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='5.88e-08', ts2='11.32', photon_index='2.10' WHERE bin_id='187' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 231581: <4FGL_J1159.5+2914_daily_bin187> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin187> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 19:10:35 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:10:36 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:10:36 2021
Terminated at Sat Sep  4 19:26:08 2021
Results reported at Sat Sep  4 19:26:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin187 179.884 29.2448 287798401 288057601 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 :                                   908.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

