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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1461
RA = 179.884, Dec = 29.2448
tmin = 618019201, tmax = 618278401
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='237901', job_status='RUN', time_executed='2021-09-04 19:31:16.783399', time_epoch_executed='1630809076.78' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237901/ft1_4FGL_J1159.5+2914_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237901/ft2_4FGL_J1159.5+2914_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237901/ft1_4FGL_J1159.5+2914_daily_bin1461.fits outfile=/scratch/kocevski/237901/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1461.fits ra=179.884 dec=29.2448 rad=12.0 tmin=618019201.0 tmax=618278401.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.36
user 4.88
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237901/ft1_filtered_4FGL_J1159.5+2914_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/237901/ft2_4FGL_J1159.5+2914_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/237901/ltcube_618019201_618278401_4FGL_J1159.5+2914_daily_bin1461.fits outfile=/scratch/kocevski/237901/expmap_618019201_618278401_4FGL_J1159.5+2914_daily_bin1461.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/237901/ltcube_618019201_618278401_4FGL_J1159.5+2914_daily_bin1461.fits
.....................!
real 193.86
user 186.56
sys 4.41

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/237901/ft1_filtered_4FGL_J1159.5+2914_daily_bin1461.fits scfile=/scratch/kocevski/237901/ft2_4FGL_J1159.5+2914_daily_bin1461.fits outfile=/scratch/kocevski/237901/cmap_618019201_618278401_4FGL_J1159.5+2914_daily_bin1461.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237901/ft1_filtered_4FGL_J1159.5+2914_daily_bin1461.fits scfile=/scratch/kocevski/237901/ft2_4FGL_J1159.5+2914_daily_bin1461.fits outfile=/scratch/kocevski/237901/cmap_HighResolution_618019201_618278401_4FGL_J1159.5+2914_daily_bin1461.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.5716       1.0000         .10000E-03   10000.    
     3 'norm      '    14.087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7040       1.0000         .10000E-03   10000.    
     8 'norm      '    6.6487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.091       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5936       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5496       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11375E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    91.632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11870E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.0614       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2696       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .24752       1.0000         .10000E-03   10000.    
    27 'norm      '    4.0125       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.688       1.0000         .10000E-03   10000.    
    29 'Prefactor '    197.60       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0661       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0260       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=   5346.942     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4216 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0970       -.83284E-07** at limit **
   2  norm          9.5695        16.552        .28083E-07   -.38941E-04
   3  norm          14.087        14.035       -.11798E-07   -.47112E-04
   4  Prefactor     32.772        31.230        .92434E-06    .58632E-04
   5  Prefactor     .10000E-03    .95177       -.32744E-07** at limit **
   6  Prefactor     .10000E-03    29.222       -.46262E-06** at limit **
   7  Prefactor     5.7050        19.204        .70980E-05   -.46033E-06
   8  norm          6.6488        3.4062        .23375E-07    .14530E-03
   9  Prefactor     .10000E-03    7.6078       -.39879E-06** at limit **
  10  Prefactor     11.093        7.0851        .85409E-06   -.47513E-04
  11  norm          1.5940        1.2095        .10038E-06   -.41876E-04
  12  Prefactor     .10000E-03    14.297       -.66491E-06** at limit **
  13  Prefactor     .10000E-03    7.1649       -.12889E-06** at limit **
  14  Prefactor     1.5512        2.7059        .45153E-06   -.12784E-03
  15  Prefactor     .10000E-03    19.132        .94933E-06** at limit **
  16  Prefactor     .10000E-03    26.635        .23106E-06** at limit **
  17  norm          .10000E-03    .68137        .60480E-07** at limit **
  18  Prefactor     .10002E-03    3.3173        .84986E-06** at limit **
  19  Prefactor     91.657        51.764        .15322E-05    .29252E-03
  20  Prefactor     .10000E-03    2.4149        .14387E-06** at limit **
  21  norm          7.0618        3.6409        .62689E-07    .19514E-03
  22  Prefactor     .10000E-03    9.2117        .69446E-06** at limit **
  23  Prefactor     .10000E-03    .83921        .62294E-07** at limit **
  24  Prefactor     5.2698        3.1162        .72482E-07   -.12350E-03
  25  Prefactor     .10000E-03    4.1465       -.72597E-07** at limit **
  26  norm          .24749        .22676        .38308E-07   -.36272E-03
  27  norm          4.0135        5.2761        .40670E-06   -.29124E-04
  28  Prefactor     15.688        10.892        .92480E-07   -.19823E-04
  29  Prefactor     197.60        115.59        .58660E-06   -.37923E-05
  30  Normalizat    1.0656        .23262       -.36524E-05   -.83757E-04
  31  Prefactor     1.0265        .22754        .19126E-05   -.26004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.56951
  norm       = 14.0875
  Prefactor  = 32.7721
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.70502
  norm       = 6.64881
  Prefactor  = 0.0001
  Prefactor  = 11.0933
  norm       = 1.59399
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.55118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 91.6574
  Prefactor  = 0.000100001
  norm       = 7.06181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26977
  Prefactor  = 0.0001
  norm       = 0.247488
  norm       = 4.01353
  Prefactor  = 15.6885
  Prefactor  = 197.602
  Normalizat = 1.06563
  Prefactor  = 1.02654
 **********
 **   18 **HESSE 
 **********

 FCN=   5346.942     FROM HESSE     STATUS=OK           624 CALLS     4840 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1392        .10338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.5695        16.539        .12953E-03   -1.5089    
   3  norm          14.087        14.028        .10672E-03   -1.4957    
   4  Prefactor     32.772        31.324        .70004E-04   -1.4562    
   5  Prefactor     .10000E-03    .95588        .69591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7050        19.344        .84092E-03   -1.5230    
   8  norm          6.6488        3.3987        .92083E-04   -1.5192    
   9  Prefactor     .10000E-03    7.6642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.093        7.0687        .60150E-03   -1.5042    
  11  norm          1.5940        1.1994        .66821E-04   -1.5455    
  12  Prefactor     .10000E-03    14.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.1842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5512        2.6707        .14700E-03   -1.5459    
  15  Prefactor     .10000E-03    19.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6712        .11666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    17.926        .23902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     91.657        52.217        .41980E-04   -1.3790    
  20  Prefactor     .10000E-03    9.3684        .21207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0618        3.6374        .94895E-04   -1.5176    
  22  Prefactor     .10000E-03    9.3081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .84098        .65371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2698        3.1118        .92642E-04   -1.5249    
  25  Prefactor     .10000E-03    4.1620        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .24749        .22193        .31782E-04   -1.5608    
  27  norm          4.0135        5.2553        .18298E-03   -1.5307    
  28  Prefactor     15.688        10.889        .10112E-03   -1.4916    
  29  Prefactor     197.60        115.58        .28741E-04   -1.2887    
  30  Normalizat    1.0656        .26325        .26800E-03   -.90863    
  31  Prefactor     1.0265        .26154        .29719E-03   -.91850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99111e-09
Minuit parameter uncertainties:
  1  3.36845e-07
  2  16.5474
  3  14.0314
  4  31.3395
  5  1.69339e-06
  6  0.000295738
  7  19.3652
  8  3.39879
  9  4.72773e-05
  10  7.06921
  11  1.19946
  12  0.00022059
  13  3.49433e-05
  14  2.67086
  15  0.000178626
  16  0.000131164
  17  1.16422e-05
  18  0.00126384
  19  52.2434
  20  0.000164513
  21  3.63754
  22  3.81458e-05
  23  2.21035e-07
  24  3.11191
  25  1.16271e-06
  26  0.221927
  27  5.25594
  28  10.8904
  29  115.709
  30  0.263572
  31  0.261867
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.000e-04  1.164e-05  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.027e+00  2.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.066e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237901/likelihoodResults_618019201_618278401_4FGL_J1159.5+2914_daily_bin1461.txt

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): 102
logL (Free Index) = 5346.94513476
delta logL = -0.00288406002983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5346.26808714
delta logL = 0.674163565514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14952       1.0000         .10000E-03   10000.    
     2 'alpha     '    .77511       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0172       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=   5346.268     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      280 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14972        .23664        .73282E-02    .60494E-03
   2  alpha         .77532        .43479        .34872       -.53907E-04
   3  Normalizat    1.0647        .19900        .60590E-01    .77282E-05
   4  Prefactor     1.0172        .21794        .67385E-01    .85342E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.14972
  alpha      = 0.775317
  Normalizat = 1.06475
  Prefactor  = 1.01718
 **********
 **   18 **HESSE 
 **********

 FCN=   5346.268     FROM HESSE     STATUS=OK            35 CALLS      315 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14972        .28656        .36508E-03   -1.5631    
   2  alpha         .77532        .62737        .14484E-01   -.76131    
   3  Normalizat    1.0647        .23570        .26797E-03   -.90892    
   4  Prefactor     1.0172        .25807        .29808E-03   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07921e-09
Minuit parameter uncertainties:
  1  0.286559
  2  0.640666
  3  0.235933
  4  0.258385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237901': 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) = 5346.26808684
delta logL = 0.67416386841

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.497e-01  2.866e-01  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  7.753e-01  6.407e-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.017e+00  2.584e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.065e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 179.884 29.245
Photon Index (Free Index): 0.78 +/- 0.64
Photon Flux (Free Index): 5.29e-09 +/- 6.49e-09
Energy Flux (Free Index): 6.35e-05 +/- 1.01e-04

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/237901/cmap_HighResolution_618019201_618278401_4FGL_J1159.5+2914_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', comment='SUCCESS', energy_flux2='6.35e-05', dlogl='6.74e-01', photon_flux2='5.29e-09', job_status='DONE', time_completed='2021-09-04 19:45:38.143174', photon_index_error2='0.64', photon_index2='0.78', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.86e-08', energy_flux_error2='1.01e-04', EG='1.07', time_epoch_completed='1630809938.14', return_code='0', job_id='237901', GAL2='1.02', EG2='1.06', return_code2='0', photon_flux_error2='6.49e-09', ts2='1.35', photon_index='2.10' WHERE bin_id='1461' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:45:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 237901: <4FGL_J1159.5+2914_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1461 179.884 29.2448 618019201 618278401 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 :                                   850.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

