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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1005
RA = 179.884, Dec = 29.2448
tmin = 499824001, tmax = 500083201
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='236454', job_status='RUN', time_executed='2021-09-04 19:28:13.708894', time_epoch_executed='1630808893.71' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236454/ft1_4FGL_J1159.5+2914_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236454/ft2_4FGL_J1159.5+2914_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236454/ft1_4FGL_J1159.5+2914_daily_bin1005.fits outfile=/scratch/kocevski/236454/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1005.fits ra=179.884 dec=29.2448 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.22
user 4.91
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236454/ft2_4FGL_J1159.5+2914_daily_bin1005.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/236454/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/236454/ft1_filtered_4FGL_J1159.5+2914_daily_bin1005.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.52
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236454/ft1_filtered_4FGL_J1159.5+2914_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/236454/ft2_4FGL_J1159.5+2914_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/236454/ltcube_499824001_500083201_4FGL_J1159.5+2914_daily_bin1005.fits outfile=/scratch/kocevski/236454/expmap_499824001_500083201_4FGL_J1159.5+2914_daily_bin1005.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/236454/ltcube_499824001_500083201_4FGL_J1159.5+2914_daily_bin1005.fits
.....................!
real 191.64
user 186.63
sys 4.57

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/236454/ft1_filtered_4FGL_J1159.5+2914_daily_bin1005.fits scfile=/scratch/kocevski/236454/ft2_4FGL_J1159.5+2914_daily_bin1005.fits outfile=/scratch/kocevski/236454/cmap_499824001_500083201_4FGL_J1159.5+2914_daily_bin1005.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.88
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236454/ft1_filtered_4FGL_J1159.5+2914_daily_bin1005.fits scfile=/scratch/kocevski/236454/ft2_4FGL_J1159.5+2914_daily_bin1005.fits outfile=/scratch/kocevski/236454/cmap_HighResolution_499824001_500083201_4FGL_J1159.5+2914_daily_bin1005.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.62
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.0350       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20328E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19874E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35113E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    6.2692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17162       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.407       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6446       1.0000         .10000E-03   10000.    
    21 'norm      '    7.7874       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6480       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6561       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .17306       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    102.27       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .70973       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1807       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=   4720.594     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     4262 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7185       -.17300E-07** at limit **
   2  norm          8.0329        16.925       -.47774E-07   -.39242E-04
   3  norm          .10000E-03    5.5149       -.80231E-05** at limit **
   4  Prefactor     .10000E-03    15.742        .45175E-07** at limit **
   5  Prefactor     .10000E-03    1.9964        .24693E-07** at limit **
   6  Prefactor     .10000E-03    167.86        .32803E-05** at limit **
   7  Prefactor     .10010E-03    12.466       -.54214E-07** at limit **
   8  norm          6.2550        3.7051        .41963E-07   -.17140E-03
   9  Prefactor     .10000E-03    5.4104        .33964E-05** at limit **
  10  Prefactor     .10000E-03    11.277        .60463E-07** at limit **
  11  norm          .10000E-03    .51829        .16479E-08** at limit **
  12  Prefactor     11.894        30.299        .47526E-05    .13466E-03
  13  Prefactor     .10000E-03    10.735        .50521E-07** at limit **
  14  Prefactor     .17300        2.2231       -.13669E-05   -.63642E-03
  15  Prefactor     .10000E-03    78.697       -.37965E-05** at limit **
  16  Prefactor     .10000E-03    57.331        .22605E-05** at limit **
  17  norm          8.4031        2.2328       -.98333E-07    .23736E-03
  18  Prefactor     .10001E-03    3.2151        .27460E-05** at limit **
  19  Prefactor     46.457        51.770       -.83587E-06    .13209E-04
  20  Prefactor     9.6437        4.5446       -.35853E-06   -.90024E-03
  21  norm          7.7875        4.1584        .14406E-05   -.32578E-04
  22  Prefactor     .10000E-03    38.377       -.68725E-06** at limit **
  23  Prefactor     4.6481        3.0152       -.69525E-06    .10771E-03
  24  Prefactor     5.6560        2.8375       -.10847E-06   -.20478E-04
  25  Prefactor     .10000E-03    2.2562        .34035E-07** at limit **
  26  norm          .17305        .15301        .86008E-08   -.19198E-03
  27  norm          .10000E-03    3.9873        .12441E-06** at limit **
  28  Prefactor     .10000E-03    3.6644        .14169E-07** at limit **
  29  Prefactor     102.28        93.123        .78817E-06   -.38013E-06
  30  Normalizat    .70976        .21428       -.88100E-06   -.41681E-04
  31  Prefactor     1.1807        .22762        .18021E-07   -.11247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.03293
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100104
  norm       = 6.255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8943
  Prefactor  = 0.0001
  Prefactor  = 0.173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.40313
  Prefactor  = 0.000100011
  Prefactor  = 46.4571
  Prefactor  = 9.64373
  norm       = 7.78752
  Prefactor  = 0.0001
  Prefactor  = 4.64806
  Prefactor  = 5.65601
  Prefactor  = 0.0001
  norm       = 0.173052
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.277
  Normalizat = 0.70976
  Prefactor  = 1.18066
 **********
 **   18 **HESSE 
 **********

 FCN=   4720.594     FROM HESSE     STATUS=OK           632 CALLS     4894 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9275        .29118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0329        16.789        .14145E-03   -1.5141    
   3  norm          .10000E-03    5.4723        .15681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0680        .17618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    168.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10010E-03    24.820        .78789E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.2550        3.5514        .93620E-04   -1.5208    
   9  Prefactor     .10000E-03    5.4059        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .53712        .96502E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.894        29.665        .11583E-03   -1.5018    
  13  Prefactor     .10000E-03    10.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17300        4.6714        .17617E-02   -1.5625    
  15  Prefactor     .10000E-03    79.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    57.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4031        2.2313        .49330E-04   -1.5128    
  18  Prefactor     .10001E-03    5.5019        .22752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.457        51.978        .58857E-04   -1.4344    
  20  Prefactor     9.6437        4.5182        .96102E-04   -1.5087    
  21  norm          7.7875        4.1516        .93680E-04   -1.5150    
  22  Prefactor     .10000E-03    39.717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6481        3.0178        .88771E-04   -1.5277    
  24  Prefactor     5.6560        2.8366        .78399E-04   -1.5232    
  25  Prefactor     .10000E-03    2.2591        .10078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .17305        .15869        .24516E-03   -1.5625    
  27  norm          .10000E-03    4.0665        .13390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.6673        .12845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     102.28        93.126        .39757E-04   -1.3682    
  30  Normalizat    .70976        .25891        .28978E-03   -1.0351    
  31  Prefactor     1.1807        .27818        .26167E-03   -.86929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7542e-09
Minuit parameter uncertainties:
  1  9.77245e-06
  2  16.799
  3  3.56361e-06
  4  7.49946e-06
  5  3.43788e-05
  6  6.54853e-06
  7  0.00321255
  8  3.55154
  9  5.07571e-07
  10  2.23665e-05
  11  5.94456e-07
  12  29.7019
  13  7.87197e-06
  14  1.79757
  15  0.000114879
  16  1.50402e-05
  17  2.23137
  18  0.000480831
  19  52.0284
  20  4.51834
  21  4.15177
  22  7.00797e-05
  23  3.01785
  24  2.83669
  25  3.55863e-07
  26  0.158692
  27  2.54563e-06
  28  2.70781e-07
  29  93.2595
  30  0.259353
  31  0.27853
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  8.403e+00  2.231e+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.181e+00  2.785e-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:  7.098e-01  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 42.87
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.28e-07 +/- 6.06e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 2.71e-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) = 4720.11467245
delta logL = 0.478861837453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4720.11103373
delta logL = 0.482500559357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2204       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3613       1.0000          .0000       5.0000    
     3 'Normalizat'    .65595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2206       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=   4720.111     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2208        2.7353        .34958E-02    .17495E-04
   2  alpha         2.3613        .33645        .15015        .14562E-04
   3  Normalizat    .65601        .20416        .67756E-01    .19433E-04
   4  Prefactor     1.2205        .22924        .58284E-01    .14857E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.22077
  alpha      = 2.36131
  Normalizat = 0.656006
  Prefactor  = 1.2205
 **********
 **   18 **HESSE 
 **********

 FCN=   4720.111     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .41E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2208        2.1282        .46527E-04   -1.5134    
   2  alpha         2.3613        .26758        .65040E-03   -.55505E-01
   3  Normalizat    .65601        .24675        .29985E-03   -1.0566    
   4  Prefactor     1.2205        .27661        .25773E-03   -.85703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10156e-15
Minuit parameter uncertainties:
  1  2.12819
  2  0.268095
  3  0.247167
  4  0.276939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236454': 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) = 4720.11103362
delta logL = 0.482500662513

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  8.221e+00  2.128e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.361e+00  2.681e-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.220e+00  2.769e-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.560e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.73
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.36 +/- 0.27
Photon Flux (Free Index): 2.77e-07 +/- 8.39e-08
Energy Flux (Free Index): 8.87e-05 +/- 2.44e-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/236454/cmap_HighResolution_499824001_500083201_4FGL_J1159.5+2914_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-07', energy_flux2='8.87e-05', photon_flux_error='6.06e-08', dlogl='4.83e-01', energy_flux='1.02e-04', photon_flux2='2.77e-07', job_status='DONE', time_completed='2021-09-04 19:39:51.746845', photon_index_error2='0.27', photon_index2='2.36', ts='42.87', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='0.71', time_epoch_completed='1630809591.75', return_code='0', job_id='236454', GAL2='1.22', EG2='0.66', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='8.39e-08', ts2='43.73', photon_index='2.10' WHERE bin_id='1005' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 236454: <4FGL_J1159.5+2914_daily_bin1005> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1005> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 19:25:31 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:25:32 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:25:32 2021
Terminated at Sat Sep  4 19:39:52 2021
Results reported at Sat Sep  4 19:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1005 179.884 29.2448 499824001 500083201 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 :                                   691.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

