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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1348
RA = 179.884, Dec = 29.2448
tmin = 588729601, tmax = 588988801
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='237730', job_status='RUN', time_executed='2021-09-04 19:33:35.858117', time_epoch_executed='1630809215.86' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237730/ft1_4FGL_J1159.5+2914_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237730/ft2_4FGL_J1159.5+2914_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237730/ft1_4FGL_J1159.5+2914_daily_bin1348.fits outfile=/scratch/kocevski/237730/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1348.fits ra=179.884 dec=29.2448 rad=12.0 tmin=588729601.0 tmax=588988801.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.17
user 2.94
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237730/ft1_filtered_4FGL_J1159.5+2914_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/237730/ft2_4FGL_J1159.5+2914_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/237730/ltcube_588729601_588988801_4FGL_J1159.5+2914_daily_bin1348.fits outfile=/scratch/kocevski/237730/expmap_588729601_588988801_4FGL_J1159.5+2914_daily_bin1348.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/237730/ltcube_588729601_588988801_4FGL_J1159.5+2914_daily_bin1348.fits
.....................!
real 192.38
user 186.62
sys 5.28

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/237730/ft1_filtered_4FGL_J1159.5+2914_daily_bin1348.fits scfile=/scratch/kocevski/237730/ft2_4FGL_J1159.5+2914_daily_bin1348.fits outfile=/scratch/kocevski/237730/cmap_588729601_588988801_4FGL_J1159.5+2914_daily_bin1348.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/237730/ft1_filtered_4FGL_J1159.5+2914_daily_bin1348.fits scfile=/scratch/kocevski/237730/ft2_4FGL_J1159.5+2914_daily_bin1348.fits outfile=/scratch/kocevski/237730/cmap_HighResolution_588729601_588988801_4FGL_J1159.5+2914_daily_bin1348.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/237730/ft1_filtered_4FGL_J1159.5+2914_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/237730/ft2_4FGL_J1159.5+2914_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237730/Model_4FGL_J1159.5+2914_daily_bin1348.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/237730/ft1_filtered_4FGL_J1159.5+2914_daily_bin1348.fits..........................!
real 19.23
user 17.96
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'norm      '    .22360E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11270E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .58424E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2772       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.557       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2614       1.0000         .10000E-03   10000.    
    21 'norm      '    9.5800       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.466       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3535       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .58512E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .28077E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .70439       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85569       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   827.4250     FROM MIGRAD    STATUS=CONVERGED    267 CALLS     4937 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        336.07       -.17106E-03** at limit **
   2  norm         10000.0        326.17       -.17725E-04** at limit **
   3  norm          .10880E-03    169.03       -.85097E-04** at limit **
   4  Prefactor     .10107E-03    160.28       -.38514E-04** at limit **
   5  Prefactor    10000.0        39.877       -.58612E-04** at limit **
   6  Prefactor     .91530E-02    8190.6        .52697E-04    .40569E-03
   7  Prefactor     .11297E-03    229.71        .11860E-03** at limit **
   8  norm          .10138E-03    7.0895       -.10147E-04** at limit **
   9  Prefactor     .10025E-03    107.06        .23315E-05** at limit **
  10  Prefactor     .10011E-03    96.386        .83115E-05** at limit **
  11  norm          .10000E-03    13.104       -.58394E-06** at limit **
  12  Prefactor     .10000E-03    40.014       -.52890E-05** at limit **
  13  Prefactor     .10000E-03    18.675       -.30977E-05** at limit **
  14  Prefactor     .10000E-03    3.5931       -.14466E-06** at limit **
  15  Prefactor     .10000E-03    54.193        .92374E-05** at limit **
  16  Prefactor     .11812E-03    151.40       -.68926E-04** at limit **
  17  norm          3.2777        3.3188       -.68578E-07   -.45445E-04
  18  Prefactor     10.559        15.383        .17764E-04    .12868E-03
  19  Prefactor     51.455        12.278       -.62361E-05    .34405E-02
  20  Prefactor     2.2614        6.3294       -.34758E-05   -.51851E-04
  21  norm          9.5837        9.0597       -.40811E-05    .27248E-04
  22  Prefactor     .10000E-03    6.8638       -.66973E-06** at limit **
  23  Prefactor     18.468        10.365        .47303E-05   -.32992E-03
  24  Prefactor     8.3549        6.2772        .14756E-05   -.26910E-03
  25  Prefactor     .26001E-03    714.26        .20171E-03** at limit **
  26  norm          .33752E-02    40.468       -.66957E-04   -.30962E-03
  27  norm          .10000E-03    18.808        .33825E-05** at limit **
  28  Prefactor     .10000E-03    11.259        .50237E-06** at limit **
  29  Prefactor     .10000E-03    60.907        .36211E-05** at limit **
  30  Normalizat    .70321        .65582        .42006E-04   -.20222E-03
  31  Prefactor     .85558        .71450        .25425E-04   -.18593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.000108802
  Prefactor  = 0.000101073
  Prefactor  = 10000
  Prefactor  = 0.00915304
  Prefactor  = 0.000112974
  norm       = 0.000101379
  Prefactor  = 0.000100251
  Prefactor  = 0.000100106
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000118125
  norm       = 3.27769
  Prefactor  = 10.5589
  Prefactor  = 51.4551
  Prefactor  = 2.26138
  norm       = 9.58372
  Prefactor  = 0.0001
  Prefactor  = 18.4676
  Prefactor  = 8.35493
  Prefactor  = 0.000260008
  norm       = 0.00337515
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.703207
  Prefactor  = 0.855581
 **********
 **   18 **HESSE 
 **********

 FCN=   827.4250     FROM HESSE     STATUS=OK           676 CALLS     5613 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1144.2        .90712E-02    1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        7473.1        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10880E-03    337.01        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10107E-03    160.88        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1458.4        .10313E-01    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .91530E-02    8897.3        .10772E-01   -1.5689    
   7  Prefactor     .11297E-03    235.06        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10138E-03    416.72        .10539E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10025E-03    107.08        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10011E-03    96.324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11812E-03    324.52        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2777        3.3106        .55919E-02   -1.5346    
  18  Prefactor     10.559        15.411        .30828E-02   -1.5058    
  19  Prefactor     51.455        83.953        .13990E-02   -1.4272    
  20  Prefactor     2.2614        6.2818        .68290E-02   -1.5407    
  21  norm          9.5837        9.0478        .32368E-02   -1.5089    
  22  Prefactor     .10000E-03    6.8761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.468        10.337        .23301E-02   -1.4848    
  24  Prefactor     8.3549        6.3007        .34676E-02   -1.5130    
  25  Prefactor     .26001E-03    60.696        .60987E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .33752E-02    2.2645        .10709E-01   -1.5697    
  27  norm          .10000E-03    18.695        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.257        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    60.979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .70321        .52715        .68160E-01   -1.0377    
  31  Prefactor     .85558        .56836        .69700E-01   -.97711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.102e-06
Minuit parameter uncertainties:
  1  3.2145
  2  0.98494
  3  0.109548
  4  0.0263495
  5  1.24448
  6  20.607
  7  0.110887
  8  0.0482834
  9  0.0103918
  10  0.00640385
  11  1.20017e-05
  12  1.90996e-05
  13  2.57886e-05
  14  1.24639e-06
  15  0.000329525
  16  0.154228
  17  3.31081
  18  15.417
  19  84.1467
  20  6.28359
  21  9.04906
  22  9.24275e-06
  23  10.3382
  24  6.30123
  25  0.197298
  26  0.172245
  27  3.81481e-05
  28  6.80934e-06
  29  0.000618523
  30  0.531009
  31  0.572341
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.278e+00  3.311e+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:  8.556e-01  5.723e-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.032e-01  5.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 8.90e-08 +/- 8.99e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 4.03e-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) = 827.101503831
delta logL = 0.323534808804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 827.101368077
delta logL = 0.323670562808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2764       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5068       1.0000          .0000       5.0000    
     3 'Normalizat'    .71279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84437       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=   827.1013     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2555        3.2507        .55927E-02   -.12125E-03
   2  alpha         1.5052        .60583        .17418       -.18114E-04
   3  Normalizat    .71264        .49022        .67732E-01    .16425E-04
   4  Prefactor     .84459        .55186        .70041E-01    .17296E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25548
  alpha      = 1.50517
  Normalizat = 0.712643
  Prefactor  = 0.844594
 **********
 **   18 **HESSE 
 **********

 FCN=   827.1013     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2555        3.4459        .50267E-04   -1.5347    
   2  alpha         1.5052        .66043        .74654E-02   -.40926    
   3  Normalizat    .71264        .60925        .29973E-03   -1.0340    
   4  Prefactor     .84459        .68588        .30990E-03   -.98105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.841e-11
Minuit parameter uncertainties:
  1  3.44614
  2  0.669911
  3  0.615179
  4  0.693029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237730': 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) = 827.101349919
delta logL = 0.323688720849

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.255e+00  3.446e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.505e+00  6.699e-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:  8.446e-01  6.930e-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.126e-01  6.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.51 +/- 0.67
Photon Flux (Free Index): 6.67e-08 +/- 7.22e-08
Energy Flux (Free Index): 1.10e-04 +/- 1.90e-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/237730/cmap_HighResolution_588729601_588988801_4FGL_J1159.5+2914_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.90e-08', energy_flux2='1.10e-04', photon_flux_error='8.99e-08', dlogl='3.24e-01', energy_flux='3.99e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-09-04 19:44:33.662407', photon_index_error2='0.67', photon_index2='1.51', ts='5.16', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.90e-04', EG='0.70', time_epoch_completed='1630809873.66', return_code='0', job_id='237730', GAL2='0.84', EG2='0.71', return_code2='0', energy_flux_error='4.03e-05', photon_flux_error2='7.22e-08', ts2='5.82', photon_index='2.10' WHERE bin_id='1348' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:44:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 237730: <4FGL_J1159.5+2914_daily_bin1348> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1348 179.884 29.2448 588729601 588988801 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 :                                   405.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

