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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1500
RA = 179.884, Dec = 29.2448
tmin = 628128001, tmax = 628387201
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='237951', job_status='RUN', time_executed='2021-09-04 19:31:21.572036', time_epoch_executed='1630809081.57' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237951/ft1_4FGL_J1159.5+2914_daily_bin1500.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237951/ft2_4FGL_J1159.5+2914_daily_bin1500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237951/ft1_4FGL_J1159.5+2914_daily_bin1500.fits outfile=/scratch/kocevski/237951/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1500.fits ra=179.884 dec=29.2448 rad=12.0 tmin=628128001.0 tmax=628387201.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.93
user 4.95
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237951/ft2_4FGL_J1159.5+2914_daily_bin1500.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/237951/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1500.fits evtable="EVENTS" outfile="/scratch/kocevski/237951/ft1_filtered_4FGL_J1159.5+2914_daily_bin1500.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 1.25
user 0.32
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237951/ft1_filtered_4FGL_J1159.5+2914_daily_bin1500.fits evtable="EVENTS" scfile=/scratch/kocevski/237951/ft2_4FGL_J1159.5+2914_daily_bin1500.fits sctable="SC_DATA" expcube=/scratch/kocevski/237951/ltcube_628128001_628387201_4FGL_J1159.5+2914_daily_bin1500.fits outfile=/scratch/kocevski/237951/expmap_628128001_628387201_4FGL_J1159.5+2914_daily_bin1500.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/237951/ltcube_628128001_628387201_4FGL_J1159.5+2914_daily_bin1500.fits
.....................!
real 191.75
user 185.24
sys 5.39

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/237951/ft1_filtered_4FGL_J1159.5+2914_daily_bin1500.fits scfile=/scratch/kocevski/237951/ft2_4FGL_J1159.5+2914_daily_bin1500.fits outfile=/scratch/kocevski/237951/cmap_628128001_628387201_4FGL_J1159.5+2914_daily_bin1500.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237951/ft1_filtered_4FGL_J1159.5+2914_daily_bin1500.fits scfile=/scratch/kocevski/237951/ft2_4FGL_J1159.5+2914_daily_bin1500.fits outfile=/scratch/kocevski/237951/cmap_HighResolution_628128001_628387201_4FGL_J1159.5+2914_daily_bin1500.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96104       1.0000         .10000E-03   10000.    
     2 'norm      '    .16392E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.014       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4854       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23797E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.583       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4331       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1390       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5312       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21147E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12098       1.0000         .10000E-03   10000.    
    27 'norm      '    3.6317       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    46.368       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .94501       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0756       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=   6413.351     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     4352 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96109        2.5141        .29595E-07   -.12740E-03
   2  norm          .10002E-03    18.163       -.54828E-05** at limit **
   3  norm          5.5454        10.505        .69982E-06    .75553E-04
   4  Prefactor     10.014        15.230        .68106E-06    .92690E-04
   5  Prefactor     4.6372        3.1155       -.66394E-09    .43208E-03
   6  Prefactor     .10000E-03    23.319       -.20754E-05** at limit **
   7  Prefactor     .10000E-03    12.112       -.40903E-06** at limit **
   8  norm          5.3995        3.0649        .18008E-07    .19211E-03
   9  Prefactor     .10000E-03    16.308        .95363E-06** at limit **
  10  Prefactor     .10000E-03    3.2368       -.65907E-07** at limit **
  11  norm          1.4856        1.1958       -.77237E-07   -.58221E-03
  12  Prefactor     .10000E-03    68.322        .26815E-04** at limit **
  13  Prefactor     4.0638        8.8521        .40896E-05    .30459E-03
  14  Prefactor     2.3429        1.5971        .33189E-06    .52414E-03
  15  Prefactor     34.587        30.741        .34553E-06    .48308E-04
  16  Prefactor     .10000E-03    45.003        .86253E-05** at limit **
  17  norm          5.1130        1.5270        .14989E-06    .61279E-03
  18  Prefactor     1.4336        4.7294       -.39107E-06    .48140E-04
  19  Prefactor     40.527        37.062       -.36869E-06    .31309E-04
  20  Prefactor     1.1394        2.7429        .26566E-06    .15669E-03
  21  norm          .10000E-03    1.4489       -.82759E-07** at limit **
  22  Prefactor     10.153        7.5643        .45282E-07    .19856E-04
  23  Prefactor     .10000E-03    1.2101       -.54645E-07** at limit **
  24  Prefactor     1.5313        1.4514        .11751E-07    .86453E-04
  25  Prefactor     .10000E-03    3.5029       -.25748E-06** at limit **
  26  norm          .12106        .21753        .21115E-07   -.52822E-04
  27  norm          3.6330        3.0572       -.51693E-08    .54755E-04
  28  Prefactor     .10000E-03    5.8387       -.15512E-06** at limit **
  29  Prefactor     46.360        79.725        .67612E-05   -.15459E-04
  30  Normalizat    .94495        .18364        .42691E-06    .31508E-03
  31  Prefactor     1.0756        .19156       -.72100E-07    .34907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.961094
  norm       = 0.000100018
  norm       = 5.54538
  Prefactor  = 10.0145
  Prefactor  = 4.63723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.39951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.48562
  Prefactor  = 0.000100005
  Prefactor  = 4.06381
  Prefactor  = 2.34291
  Prefactor  = 34.5871
  Prefactor  = 0.0001
  norm       = 5.11303
  Prefactor  = 1.43356
  Prefactor  = 40.5266
  Prefactor  = 1.13944
  norm       = 0.0001
  Prefactor  = 10.1525
  Prefactor  = 0.0001
  Prefactor  = 1.53135
  Prefactor  = 0.0001
  norm       = 0.12106
  norm       = 3.63301
  Prefactor  = 0.0001
  Prefactor  = 46.3595
  Normalizat = 0.944954
  Prefactor  = 1.07564
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.351     FROM HESSE     STATUS=OK           636 CALLS     4988 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96109        2.3496        .19946E-02   -1.5512    
   2  norm          .10002E-03    125.63        .59873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5454        10.470        .17060E-03   -1.5237    
   4  Prefactor     10.014        15.390        .63314E-03   -1.5075    
   5  Prefactor     4.6372        3.0474        .10447E-03   -1.5277    
   6  Prefactor     .10000E-03    23.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3995        3.0543        .97848E-04   -1.5243    
   9  Prefactor     .10000E-03    16.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2829        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4856        1.1814        .74401E-04   -1.5464    
  12  Prefactor     .10000E-03    75.651        .56262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0638        12.120        .99998E-03   -1.5305    
  14  Prefactor     2.3429        1.5783        .79799E-04   -1.5402    
  15  Prefactor     34.587        30.789        .68144E-04   -1.4531    
  16  Prefactor     .10000E-03    44.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1130        1.5216        .51350E-04   -1.5256    
  18  Prefactor     1.4336        4.5861        .27447E-03   -1.5469    
  19  Prefactor     40.527        37.096        .62968E-04   -1.4434    
  20  Prefactor     1.1394        2.6521        .18985E-03   -1.5494    
  21  norm          .10000E-03    3.1808        .17921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.153        7.5619        .12576E-03   -1.5071    
  23  Prefactor     .10000E-03    3.8874        .16401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5313        1.4507        .90077E-04   -1.5460    
  25  Prefactor     .10000E-03    8.8820        .28722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .12106        .21278        .46431E-04   -1.5638    
  27  norm          3.6330        3.0460        .12397E-03   -1.5327    
  28  Prefactor     .10000E-03    5.9370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     46.360        79.362        .58883E-04   -1.4345    
  30  Normalizat    .94495        .20861        .25877E-03   -.94898    
  31  Prefactor     1.0756        .22157        .27763E-03   -.90249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67007e-09
Minuit parameter uncertainties:
  1  2.34986
  2  0.00297603
  3  10.4738
  4  15.3965
  5  3.04754
  6  4.09214e-05
  7  3.37938e-05
  8  3.05437
  9  0.000109516
  10  8.82784e-06
  11  1.18145
  12  0.0012221
  13  12.1273
  14  1.57832
  15  30.8027
  16  0.000256631
  17  1.52164
  18  4.58725
  19  37.1167
  20  2.65239
  21  1.60297e-05
  22  7.56257
  23  1.10059e-05
  24  1.45072
  25  8.20409e-05
  26  0.212785
  27  3.04613
  28  2.45375e-05
  29  79.5432
  30  0.208788
  31  0.221763
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.113e+00  1.522e+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.076e+00  2.218e-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.450e-01  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.60
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 4.13e-08
Energy Flux (Fixed Index): 6.22e-05 +/- 1.85e-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) = 6413.33692074
delta logL = 0.0143600193624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6413.33619165
delta logL = 0.0150891093899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0895       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0532       1.0000          .0000       5.0000    
     3 'Normalizat'    .95093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0717       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=   6413.336     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0895        1.6001        .44556E-02    .10282E-02
   2  alpha         2.0532        .28716        .20122       -.14316E-04
   3  Normalizat    .95095        .16816        .45549E-01    .13599E-04
   4  Prefactor     1.0717        .18993        .62877E-01    .99699E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.08945
  alpha      = 2.05319
  Normalizat = 0.950955
  Prefactor  = 1.07172
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.336     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0895        1.5269        .51740E-04   -1.5257    
   2  alpha         2.0532        .28629        .85042E-02   -.17969    
   3  Normalizat    .95095        .19497        .25810E-03   -.94692    
   4  Prefactor     1.0717        .21938        .27810E-03   -.90376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63879e-11
Minuit parameter uncertainties:
  1  1.52691
  2  0.286938
  3  0.195112
  4  0.219568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237951': 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) = 6413.33619164
delta logL = 0.0150891191215

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.089e+00  1.527e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.053e+00  2.869e-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.072e+00  2.196e-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.510e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.47
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.05 +/- 0.29
Photon Flux (Free Index): 1.33e-07 +/- 5.08e-08
Energy Flux (Free Index): 6.46e-05 +/- 2.45e-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/237951/cmap_HighResolution_628128001_628387201_4FGL_J1159.5+2914_daily_bin1500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='6.46e-05', photon_flux_error='4.13e-08', dlogl='1.51e-02', energy_flux='6.22e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-09-04 19:45:28.372083', photon_index_error2='0.29', photon_index2='2.05', ts='38.60', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.45e-05', EG='0.94', time_epoch_completed='1630809928.37', return_code='0', job_id='237951', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='5.08e-08', ts2='38.47', photon_index='2.10' WHERE bin_id='1500' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 237951: <4FGL_J1159.5+2914_daily_bin1500> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1500> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:30:55 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:30:56 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:30:56 2021
Terminated at Sat Sep  4 19:45:29 2021
Results reported at Sat Sep  4 19:45:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1500 179.884 29.2448 628128001 628387201 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 :                                   829.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

