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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1063
RA = 179.884, Dec = 29.2448
tmin = 514857601, tmax = 515116801
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='236552', job_status='RUN', time_executed='2021-09-04 19:28:14.839841', time_epoch_executed='1630808894.84' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236552

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236552/ft1_4FGL_J1159.5+2914_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236552/ft2_4FGL_J1159.5+2914_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236552/ft1_4FGL_J1159.5+2914_daily_bin1063.fits outfile=/scratch/kocevski/236552/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1063.fits ra=179.884 dec=29.2448 rad=12.0 tmin=514857601.0 tmax=515116801.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.56
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236552/ft1_filtered_4FGL_J1159.5+2914_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/236552/ft2_4FGL_J1159.5+2914_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/236552/ltcube_514857601_515116801_4FGL_J1159.5+2914_daily_bin1063.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/236552/ft2_4FGL_J1159.5+2914_daily_bin1063.fits
.....................!
real 11.99
user 11.56
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236552/ft1_filtered_4FGL_J1159.5+2914_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/236552/ft2_4FGL_J1159.5+2914_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/236552/ltcube_514857601_515116801_4FGL_J1159.5+2914_daily_bin1063.fits outfile=/scratch/kocevski/236552/expmap_514857601_515116801_4FGL_J1159.5+2914_daily_bin1063.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/236552/ltcube_514857601_515116801_4FGL_J1159.5+2914_daily_bin1063.fits
.....................!
real 190.49
user 184.80
sys 5.13

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/236552/ft1_filtered_4FGL_J1159.5+2914_daily_bin1063.fits scfile=/scratch/kocevski/236552/ft2_4FGL_J1159.5+2914_daily_bin1063.fits outfile=/scratch/kocevski/236552/cmap_514857601_515116801_4FGL_J1159.5+2914_daily_bin1063.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.98
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236552/ft1_filtered_4FGL_J1159.5+2914_daily_bin1063.fits scfile=/scratch/kocevski/236552/ft2_4FGL_J1159.5+2914_daily_bin1063.fits outfile=/scratch/kocevski/236552/cmap_HighResolution_514857601_515116801_4FGL_J1159.5+2914_daily_bin1063.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 1.07
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2184       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6651       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.787       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2500       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75125       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.354       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9481       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.471       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15200E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5007       1.0000         .10000E-03   10000.    
    21 'norm      '    9.1481       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0206       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7273       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .40612       1.0000         .10000E-03   10000.    
    27 'norm      '    7.5454       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8648       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .74929       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0618       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=   5886.903     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4165 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2185        3.6025        .16494E-05   -.43109E-03
   2  norm          .10000E-03    3.9074       -.62146E-08** at limit **
   3  norm          2.6658        8.6096        .54313E-06   -.37789E-04
   4  Prefactor     11.786        12.231        .17927E-06    .59144E-04
   5  Prefactor     .10000E-03    .62407       -.52906E-07** at limit **
   6  Prefactor     .10000E-03    11.693        .40111E-06** at limit **
   7  Prefactor     .10000E-03    7.7175        .35477E-07** at limit **
   8  norm          3.2505        2.1743       -.18181E-07   -.13134E-03
   9  Prefactor     .10000E-03    6.5149       -.36007E-06** at limit **
  10  Prefactor     .75153        4.9777        .24655E-05   -.13212E-03
  11  norm          3.8641        1.2942        .16477E-06   -.25281E-03
  12  Prefactor     46.352        22.634       -.68337E-07   -.58481E-04
  13  Prefactor     .10000E-03    6.6342        .43702E-06** at limit **
  14  Prefactor     .10000E-03    1.3996        .23952E-06** at limit **
  15  Prefactor     8.9509        29.955       -.32353E-06   -.22182E-04
  16  Prefactor     19.442        43.534       -.71922E-05   -.33224E-03
  17  norm          2.2292        1.1584        .29743E-07   -.63956E-04
  18  Prefactor     .10012E-03    2.2490       -.10876E-05** at limit **
  19  Prefactor     42.494        37.786        .64575E-08   -.88253E-04
  20  Prefactor     6.4970        3.4430        .22183E-07    .72380E-03
  21  norm          9.1481        3.4657        .18007E-07   -.42846E-04
  22  Prefactor     .10000E-03    2.1871        .21068E-07** at limit **
  23  Prefactor     2.0206        1.9513        .22385E-07    .15119E-04
  24  Prefactor     2.7274        1.9965        .75777E-07    .52845E-05
  25  Prefactor     .10000E-03    2.3551        .18192E-07** at limit **
  26  norm          .40614        .25115        .33806E-07    .52136E-03
  27  norm          7.5464        4.0750       -.26201E-07   -.11266E-03
  28  Prefactor     5.8652        7.2643        .12812E-06   -.72047E-05
  29  Prefactor     .10000E-03    109.69        .50711E-06** at limit **
  30  Normalizat    .74936        .17349       -.13431E-05    .67682E-04
  31  Prefactor     1.0617        .18970       -.11979E-06    .18683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21849
  norm       = 0.0001
  norm       = 2.66584
  Prefactor  = 11.7863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25047
  Prefactor  = 0.0001
  Prefactor  = 0.751534
  norm       = 3.86409
  Prefactor  = 46.3521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.95086
  Prefactor  = 19.4416
  norm       = 2.22923
  Prefactor  = 0.000100122
  Prefactor  = 42.4939
  Prefactor  = 6.49702
  norm       = 9.14813
  Prefactor  = 0.0001
  Prefactor  = 2.02056
  Prefactor  = 2.72738
  Prefactor  = 0.0001
  norm       = 0.406137
  norm       = 7.54635
  Prefactor  = 5.86518
  Prefactor  = 0.0001
  Normalizat = 0.74936
  Prefactor  = 1.0617
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.903     FROM HESSE     STATUS=OK           628 CALLS     4793 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2185        3.6859        .66220E-03   -1.5297    
   2  norm          .10000E-03    3.9118        .14812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6658        8.5965        .24966E-03   -1.5381    
   4  Prefactor     11.786        12.232        .11668E-03   -1.5021    
   5  Prefactor     .10000E-03    .62979        .59132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2505        2.1663        .88899E-04   -1.5347    
   9  Prefactor     .10000E-03    6.5573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .75153        5.1357        .32034E-03   -1.5535    
  11  norm          3.8641        1.3010        .46888E-04   -1.5315    
  12  Prefactor     46.352        22.209        .58892E-04   -1.4345    
  13  Prefactor     .10000E-03    6.6991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8063        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9509        29.641        .13399E-03   -1.5110    
  16  Prefactor     19.442        46.926        .90768E-04   -1.4826    
  17  norm          2.2292        1.1523        .56731E-04   -1.5409    
  18  Prefactor     .10012E-03    13.792        .20570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.494        37.679        .61495E-04   -1.4403    
  20  Prefactor     6.4970        3.3730        .97965E-04   -1.5198    
  21  norm          9.1481        3.4643        .80981E-04   -1.5103    
  22  Prefactor     .10000E-03    2.1904        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0206        1.9546        .97781E-04   -1.5424    
  24  Prefactor     2.7274        1.9878        .88006E-04   -1.5378    
  25  Prefactor     .10000E-03    2.3636        .11493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .40614        .24772        .28631E-04   -1.5581    
  27  norm          7.5464        4.0734        .10990E-03   -1.5158    
  28  Prefactor     5.8652        7.2539        .16583E-03   -1.5224    
  29  Prefactor     .10000E-03    109.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .74936        .19861        .26307E-03   -1.0198    
  31  Prefactor     1.0617        .21843        .26287E-03   -.90700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02223e-08
Minuit parameter uncertainties:
  1  3.68608
  2  1.499e-06
  3  8.60051
  4  12.2349
  5  2.19637e-06
  6  7.05204e-05
  7  2.73124e-06
  8  2.16638
  9  4.99515e-05
  10  3.92943
  11  1.30099
  12  22.2133
  13  5.83569e-05
  14  1.85095e-05
  15  29.6895
  16  47.0155
  17  1.15236
  18  0.00259826
  19  37.6997
  20  3.37314
  21  3.46438
  22  2.31987e-06
  23  1.95467
  24  1.98782
  25  2.20189e-06
  26  0.247722
  27  4.07354
  28  7.25501
  29  0.000207749
  30  0.198798
  31  0.218617
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.229e+00  1.152e+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.062e+00  2.186e-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.494e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.65
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.05e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.40e-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) = 5886.67125461
delta logL = 0.231361386352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5886.65487795
delta logL = 0.247738051163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2215       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8081       1.0000          .0000       5.0000    
     3 'Normalizat'    .76383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0490       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=   5886.655     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2214        1.1777        .68974E-02    .14688E-03
   2  alpha         1.8080        .36242        .27049       -.30735E-04
   3  Normalizat    .76384        .16053        .43136E-01    .18452E-04
   4  Prefactor     1.0490        .18876        .59741E-01    .77513E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22139
  alpha      = 1.80802
  Normalizat = 0.763838
  Prefactor  = 1.04897
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.655     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2214        1.1557        .56376E-04   -1.5410    
   2  alpha         1.8080        .39297        .10862E-01   -.28045    
   3  Normalizat    .76384        .18492        .26087E-03   -1.0142    
   4  Prefactor     1.0490        .21719        .26418E-03   -.91115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52872e-13
Minuit parameter uncertainties:
  1  1.15568
  2  0.394745
  3  0.18507
  4  0.217371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236552': 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) = 5886.65487793
delta logL = 0.24773806633

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.221e+00  1.156e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.808e+00  3.947e-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.049e+00  2.174e-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.638e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.14
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.81 +/- 0.39
Photon Flux (Free Index): 5.00e-08 +/- 2.97e-08
Energy Flux (Free Index): 3.88e-05 +/- 2.93e-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/236552/cmap_HighResolution_514857601_515116801_4FGL_J1159.5+2914_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.05e-08', energy_flux2='3.88e-05', photon_flux_error='3.13e-08', dlogl='2.48e-01', energy_flux='2.71e-05', photon_flux2='5.00e-08', job_status='DONE', time_completed='2021-09-04 19:41:38.041707', photon_index_error2='0.39', photon_index2='1.81', ts='7.65', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='0.75', time_epoch_completed='1630809698.04', return_code='0', job_id='236552', GAL2='1.05', EG2='0.76', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='2.97e-08', ts2='8.14', photon_index='2.10' WHERE bin_id='1063' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:41:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 236552: <4FGL_J1159.5+2914_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1063 179.884 29.2448 514857601 515116801 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 :                                   789.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

