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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1208
RA = 179.884, Dec = 29.2448
tmin = 552441601, tmax = 552700801
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='237517', job_status='RUN', time_executed='2021-09-04 19:33:27.016488', time_epoch_executed='1630809207.02' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237517/ft1_4FGL_J1159.5+2914_daily_bin1208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237517/ft2_4FGL_J1159.5+2914_daily_bin1208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237517/ft1_4FGL_J1159.5+2914_daily_bin1208.fits outfile=/scratch/kocevski/237517/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1208.fits ra=179.884 dec=29.2448 rad=12.0 tmin=552441601.0 tmax=552700801.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.05
user 2.83
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237517/ft1_filtered_4FGL_J1159.5+2914_daily_bin1208.fits evtable="EVENTS" scfile=/scratch/kocevski/237517/ft2_4FGL_J1159.5+2914_daily_bin1208.fits sctable="SC_DATA" expcube=/scratch/kocevski/237517/ltcube_552441601_552700801_4FGL_J1159.5+2914_daily_bin1208.fits outfile=/scratch/kocevski/237517/expmap_552441601_552700801_4FGL_J1159.5+2914_daily_bin1208.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/237517/ltcube_552441601_552700801_4FGL_J1159.5+2914_daily_bin1208.fits
.....................!
real 198.99
user 192.98
sys 5.10

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/237517/ft1_filtered_4FGL_J1159.5+2914_daily_bin1208.fits scfile=/scratch/kocevski/237517/ft2_4FGL_J1159.5+2914_daily_bin1208.fits outfile=/scratch/kocevski/237517/cmap_552441601_552700801_4FGL_J1159.5+2914_daily_bin1208.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237517/ft1_filtered_4FGL_J1159.5+2914_daily_bin1208.fits scfile=/scratch/kocevski/237517/ft2_4FGL_J1159.5+2914_daily_bin1208.fits outfile=/scratch/kocevski/237517/cmap_HighResolution_552441601_552700801_4FGL_J1159.5+2914_daily_bin1208.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2119       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3773       1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3038       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.446       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.121       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.016       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7026       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29690E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.2116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.998       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9205       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5059       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6891       1.0000         .10000E-03   10000.    
    26 'norm      '    1.1171       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3445       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .79046       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99677       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=   4347.588     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     4143 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2129        5.5527        .26912E-06    .72267E-05
   2  norm          7.3769        15.735        .26976E-07    .30063E-04
   3  norm          .10000E-03    9.5248       -.43940E-06** at limit **
   4  Prefactor     6.2995        16.933       -.54099E-06    .78869E-05
   5  Prefactor     2.0419        4.7118       -.33276E-06    .42252E-03
   6  Prefactor     60.343        76.580        .10740E-04    .16361E-03
   7  Prefactor     .10000E-03    9.1189        .40448E-06** at limit **
   8  norm          .10000E-03    2.9387       -.25234E-05** at limit **
   9  Prefactor     .10000E-03    6.9413       -.62074E-08** at limit **
  10  Prefactor     25.118        9.8525       -.19934E-07    .29969E-03
  11  norm          2.4124        1.5065       -.45417E-07    .60432E-03
  12  Prefactor     8.1371        17.737       -.16685E-05    .23489E-04
  13  Prefactor     8.9005        11.619        .56575E-06   -.26328E-04
  14  Prefactor     .93164        2.0340        .15724E-06    .14164E-03
  15  Prefactor     24.004        38.115        .13520E-05    .20368E-04
  16  Prefactor     .10000E-03    30.674        .59688E-07** at limit **
  17  norm          4.7025        1.7994        .32982E-07    .38391E-05
  18  Prefactor     1.7105        4.3541        .31673E-06   -.23698E-04
  19  Prefactor     .10000E-03    212.74        .87158E-06** at limit **
  20  Prefactor     .10000E-03    1.7806        .67818E-07** at limit **
  21  norm          5.2116        3.0804        .94895E-08   -.16225E-05
  22  Prefactor     16.998        9.4521       -.68628E-08    .90719E-05
  23  Prefactor     4.9206        2.6507        .36355E-08    .67428E-06
  24  Prefactor     2.5062        1.9926        .37040E-07   -.90419E-05
  25  Prefactor     2.6894        4.1366        .55560E-07   -.46055E-05
  26  norm          1.1171        .31175        .60895E-08   -.95972E-04
  27  norm          1.3448        2.5135        .43565E-07   -.21347E-05
  28  Prefactor     .10000E-03    10.591        .66334E-07** at limit **
  29  Prefactor     .10000E-03    142.85       -.12908E-05** at limit **
  30  Normalizat    .79051        .21790       -.21493E-06    .15161E-03
  31  Prefactor     .99657        .23829       -.45859E-06    .10887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21291
  norm       = 7.3769
  norm       = 0.0001
  Prefactor  = 6.29953
  Prefactor  = 2.04187
  Prefactor  = 60.3425
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 25.1176
  norm       = 2.41245
  Prefactor  = 8.13705
  Prefactor  = 8.90048
  Prefactor  = 0.931641
  Prefactor  = 24.0044
  Prefactor  = 0.0001
  norm       = 4.70251
  Prefactor  = 1.71048
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.21163
  Prefactor  = 16.9984
  Prefactor  = 4.92062
  Prefactor  = 2.50616
  Prefactor  = 2.68936
  norm       = 1.11705
  norm       = 1.34478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.790511
  Prefactor  = 0.996567
 **********
 **   18 **HESSE 
 **********

 FCN=   4347.588     FROM HESSE     STATUS=OK           636 CALLS     4779 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2129        5.5261        .23575E-03   -1.5410    
   2  norm          7.3769        15.724        .14767E-03   -1.5165    
   3  norm          .10000E-03    9.5649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2995        16.931        .15987E-03   -1.5206    
   5  Prefactor     2.0419        4.7328        .80681E-03   -1.5422    
   6  Prefactor     60.343        77.519        .25803E-03   -1.4153    
   7  Prefactor     .10000E-03    9.1265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.9378        .19775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9564        .16965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.118        9.8448        .79924E-04   -1.4705    
  11  norm          2.4124        1.5020        .61439E-04   -1.5397    
  12  Prefactor     8.1371        17.443        .14044E-03   -1.5137    
  13  Prefactor     8.9005        11.575        .67174E-03   -1.5111    
  14  Prefactor     .93164        1.7684        .12800E-02   -1.5515    
  15  Prefactor     24.004        38.077        .81739E-04   -1.4728    
  16  Prefactor     .10000E-03    30.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7025        1.7988        .51761E-04   -1.5274    
  18  Prefactor     1.7105        4.2998        .20285E-03   -1.5446    
  19  Prefactor     .10000E-03    219.83        .42788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8116        .85808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.2116        3.0795        .84645E-04   -1.5251    
  22  Prefactor     16.998        9.4510        .97144E-04   -1.4883    
  23  Prefactor     4.9206        2.6518        .75229E-04   -1.5264    
  24  Prefactor     2.5062        1.9898        .79152E-04   -1.5391    
  25  Prefactor     2.6894        4.1134        .15925E-03   -1.5380    
  26  norm          1.1171        .31180        .18665E-04   -1.5497    
  27  norm          1.3448        2.4589        .13710E-03   -1.5476    
  28  Prefactor     .10000E-03    10.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    143.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .79051        .24800        .26693E-03   -1.0042    
  31  Prefactor     .99657        .27259        .27862E-03   -.92844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02647e-09
Minuit parameter uncertainties:
  1  5.52734
  2  15.733
  3  1.44664e-05
  4  16.9442
  5  4.73371
  6  77.6486
  7  7.28862e-06
  8  0.000338994
  9  4.82471e-07
  10  9.84542
  11  1.50203
  12  17.4535
  13  11.5782
  14  1.76847
  15  38.1153
  16  9.26549e-07
  17  1.79885
  18  4.30061
  19  0.000744679
  20  1.54399e-06
  21  3.07961
  22  9.45181
  23  2.65186
  24  1.98982
  25  4.11383
  26  0.311797
  27  2.45905
  28  3.36703e-06
  29  0.00015606
  30  0.248356
  31  0.272969
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.703e+00  1.799e+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:  9.966e-01  2.730e-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.905e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.03
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.88e-08
Energy Flux (Fixed Index): 5.72e-05 +/- 2.19e-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) = 4346.93191874
delta logL = 0.656502900753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4346.92619148
delta logL = 0.66223015372

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4346.926     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      273 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3547        1.7005        .45164E-04   -.67586E-03
   2  alpha         2.5245        .37956        .81224E-02   -.52006E-04
   3  Normalizat    .74135        .23724        .27447E-03   -.43119E-04
   4  Prefactor     1.0304        .27205        .27435E-03    .62820E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.35469
  alpha      = 2.52448
  Normalizat = 0.741354
  Prefactor  = 1.03037
 **********
 **   18 **HESSE 
 **********

 FCN=   4346.926     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3547        1.6825        .18066E-05   -1.5291    
   2  alpha         2.5245        .37541        .32489E-03    .97939E-02
   3  Normalizat    .74135        .23745        .10979E-04   -1.0228    
   4  Prefactor     1.0304        .27228        .10974E-04   -.91724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20817e-10
Minuit parameter uncertainties:
  1  1.68254
  2  0.376837
  3  0.237781
  4  0.272643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237517': 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) = 4346.92619147
delta logL = 0.662230162507

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.355e+00  1.683e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.524e+00  3.768e-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.030e+00  2.726e-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.414e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.26
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.52 +/- 0.38
Photon Flux (Free Index): 1.71e-07 +/- 6.79e-08
Energy Flux (Free Index): 4.68e-05 +/- 1.72e-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/237517/cmap_HighResolution_552441601_552700801_4FGL_J1159.5+2914_daily_bin1208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='4.68e-05', photon_flux_error='4.88e-08', dlogl='6.62e-01', energy_flux='5.72e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-04 19:44:53.007807', photon_index_error2='0.38', photon_index2='2.52', ts='20.03', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.79', time_epoch_completed='1630809893.01', return_code='0', job_id='237517', GAL2='1.03', EG2='0.74', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='6.79e-08', ts2='21.26', photon_index='2.10' WHERE bin_id='1208' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:44:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 237517: <4FGL_J1159.5+2914_daily_bin1208> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1208> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:30:21 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:30:23 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:23 2021
Terminated at Sat Sep  4 19:44:53 2021
Results reported at Sat Sep  4 19:44:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1208 179.884 29.2448 552441601 552700801 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 :                                   681.44 sec.
    Max Memory :                                 1210 MB
    Average Memory :                             284.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

