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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1561
RA = 179.884, Dec = 29.2448
tmin = 643939201, tmax = 644198401
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='238012', job_status='RUN', time_executed='2021-09-04 19:31:27.607730', time_epoch_executed='1630809087.61' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/238012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/238012/ft1_4FGL_J1159.5+2914_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/238012/ft1_4FGL_J1159.5+2914_daily_bin1561.fits outfile=/scratch/kocevski/238012/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1561.fits ra=179.884 dec=29.2448 rad=12.0 tmin=643939201.0 tmax=644198401.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 4.85
user 4.19
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.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/238012/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/238012/ft1_filtered_4FGL_J1159.5+2914_daily_bin1561.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.32
user 0.32
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/238012/ft1_filtered_4FGL_J1159.5+2914_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/238012/ltcube_643939201_644198401_4FGL_J1159.5+2914_daily_bin1561.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/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.fits
.....................!
real 11.91
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/238012/ft1_filtered_4FGL_J1159.5+2914_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/238012/ltcube_643939201_644198401_4FGL_J1159.5+2914_daily_bin1561.fits outfile=/scratch/kocevski/238012/expmap_643939201_644198401_4FGL_J1159.5+2914_daily_bin1561.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/238012/ltcube_643939201_644198401_4FGL_J1159.5+2914_daily_bin1561.fits
.....................!
real 194.45
user 185.63
sys 4.85

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/238012/ft1_filtered_4FGL_J1159.5+2914_daily_bin1561.fits scfile=/scratch/kocevski/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.fits outfile=/scratch/kocevski/238012/cmap_643939201_644198401_4FGL_J1159.5+2914_daily_bin1561.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/238012/ft1_filtered_4FGL_J1159.5+2914_daily_bin1561.fits scfile=/scratch/kocevski/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.fits outfile=/scratch/kocevski/238012/cmap_HighResolution_643939201_644198401_4FGL_J1159.5+2914_daily_bin1561.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/238012/ft1_filtered_4FGL_J1159.5+2914_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/238012/ft2_4FGL_J1159.5+2914_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/238012/Model_4FGL_J1159.5+2914_daily_bin1561.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/238012/ft1_filtered_4FGL_J1159.5+2914_daily_bin1561.fits.....................!
real 60.53
user 59.16
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6727       1.0000         .10000E-03   10000.    
     2 'norm      '    13.317       1.0000         .10000E-03   10000.    
     3 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4766       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1861       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1698       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .90424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.442       1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.204       1.0000         .10000E-03   10000.    
    17 'norm      '    11.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1690       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21922       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11418E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4627       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17504E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1843       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.811       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .37442E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2790       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .70862       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=   6687.052     FROM MIGRAD    STATUS=CONVERGED   1510 CALLS     4939 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6716        3.8410        .13945E-03    .39296E-04
   2  norm          13.311        15.182        .10976E-03   -.46091E-04
   3  norm          .10000E-03    10.059        .18142E-02** at limit **
   4  Prefactor     2.2641        24.482        .27270E-03   -.13757E-05
   5  Prefactor     .71256        2.1460        .19517E-03   -.38038E-04
   6  Prefactor     .10000E-03    27.942        .18142E-02** at limit **
   7  Prefactor     .10000E-03    20.956        .18142E-02** at limit **
   8  norm          .10000E-03    .99017        .78650E-03** at limit **
   9  Prefactor     2.4765        7.9037        .12990E-02   -.11703E-03
  10  Prefactor     4.1849        4.2246        .16038E-03    .73440E-04
  11  norm          6.1710        1.6097        .49467E-04   -.15858E-03
  12  Prefactor     .10000E-03    4.5979        .17114E-02** at limit **
  13  Prefactor     .64828        33.530        .43773E-02    .17778E-03
  14  Prefactor     .90467        1.3996        .12686E-02   -.52115E-03
  15  Prefactor     17.489        29.612        .95901E-04    .42676E-05
  16  Prefactor     72.175        54.869        .23623E-03    .39848E-04
  17  norm          11.276        2.0185        .46542E-04   -.38477E-03
  18  Prefactor     3.1615        4.7564        .10002E-02    .26390E-03
  19  Prefactor     .19678        37.816        .11673        .12178E-03
  20  Prefactor     .10000E-03    4.0795        .22020E-02** at limit **
  21  norm          1.4629        3.1130        .16807E-03   -.13826E-03
  22  Prefactor     .10003E-03    18.675        .32019E-02** at limit **
  23  Prefactor     1.1855        2.6080        .15786E-03   -.14771E-03
  24  Prefactor     11.812        3.1862        .71057E-04    .22399E-05
  25  Prefactor     .10000E-03    2.7247        .13127E-02** at limit **
  26  norm          .37487E-01    .11549        .45355E-03    .14058E-02
  27  norm          .10000E-03    1.0018        .79855E-03** at limit **
  28  Prefactor     .10000E-03    6.7115        .18142E-02** at limit **
  29  Prefactor     .10000E-03    342.99        .36285E-03** at limit **
  30  Normalizat    1.2793        .21321        .23353E-03    .15304E-03
  31  Prefactor     .70818        .22192        .34167E-03   -.81123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67161
  norm       = 13.3109
  norm       = 0.0001
  Prefactor  = 2.26409
  Prefactor  = 0.712557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.47653
  Prefactor  = 4.18488
  norm       = 6.17096
  Prefactor  = 0.0001
  Prefactor  = 0.648279
  Prefactor  = 0.904673
  Prefactor  = 17.4893
  Prefactor  = 72.1753
  norm       = 11.276
  Prefactor  = 3.1615
  Prefactor  = 0.196782
  Prefactor  = 0.000100002
  norm       = 1.46291
  Prefactor  = 0.000100032
  Prefactor  = 1.18546
  Prefactor  = 11.8115
  Prefactor  = 0.0001
  norm       = 0.0374866
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27927
  Prefactor  = 0.708181
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.052     FROM HESSE     STATUS=OK           610 CALLS     5549 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6716        3.8406        .55779E-05   -1.5276    
   2  norm          13.311        15.180        .43905E-05   -1.4978    
   3  norm          .10000E-03    10.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2641        24.477        .10908E-04   -1.5407    
   5  Prefactor     .71256        2.1450        .78066E-05   -1.5539    
   6  Prefactor     .10000E-03    27.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .99030        .15730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4765        7.8994        .51961E-04   -1.5393    
  10  Prefactor     4.1849        4.2237        .64150E-05   -1.5299    
  11  norm          6.1710        1.6096        .19787E-05   -1.5211    
  12  Prefactor     .10000E-03    4.5980        .34229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .64828        33.413        .17509E-03   -1.5547    
  14  Prefactor     .90467        1.3984        .50742E-04   -1.5518    
  15  Prefactor     17.489        29.585        .38360E-05   -1.4871    
  16  Prefactor     72.175        54.870        .94492E-05   -1.4007    
  17  norm          11.276        2.0184        .93085E-05   -1.5036    
  18  Prefactor     3.1615        4.7354        .40009E-04   -1.5352    
  19  Prefactor     .19678        35.910        .12051       -1.5619    
  20  Prefactor     .10000E-03    4.0962        .44041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4629        3.1110        .67229E-05   -1.5466    
  22  Prefactor     .10003E-03    18.789        .64039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1855        2.6064        .63143E-05   -1.5490    
  24  Prefactor     11.812        3.1857        .28423E-05   -1.5020    
  25  Prefactor     .10000E-03    2.7252        .26254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .37487E-01    .11534        .18142E-04   -1.5669    
  27  norm          .10000E-03    1.0018        .15971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.7137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    343.00        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2793        .21318        .46705E-04   -.84187    
  31  Prefactor     .70818        .22191        .13667E-04   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84168e-09
Minuit parameter uncertainties:
  1  3.84084
  2  15.1845
  3  2.3884e-05
  4  14.8962
  5  2.14527
  6  8.1639e-05
  7  8.76942e-05
  8  2.49505e-06
  9  7.90272
  10  4.22399
  11  1.60962
  12  1.53205e-05
  13  9.31299
  14  1.39845
  15  29.6099
  16  54.9082
  17  2.01837
  18  4.736
  19  5.31842
  20  0.0001571
  21  3.11133
  22  0.00154879
  23  2.60661
  24  3.18579
  25  7.57327e-08
  26  0.115343
  27  1.31548e-07
  28  4.81449e-06
  29  0.000412969
  30  0.213328
  31  0.222183
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.128e+01  2.018e+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:  7.082e-01  2.222e-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.279e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 133.21
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 3.06e-07 +/- 5.48e-08
Energy Flux (Fixed Index): 1.37e-04 +/- 2.45e-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) = 6686.98102252
delta logL = 0.0706486737972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6686.9775547
delta logL = 0.0741164883884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.290       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0336       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69675       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=   6686.978     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.290        2.1022        .29808E-02   -.66526E-02
   2  alpha         2.0335        .18277        .12861        .21351E-04
   3  Normalizat    1.2960        .17105        .52577E-01    .26409E-04
   4  Prefactor     .69669        .18935        .77767E-01    .43794E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2899
  alpha      = 2.0335
  Normalizat = 1.296
  Prefactor  = 0.69669
 **********
 **   18 **HESSE 
 **********

 FCN=   6686.978     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.290        2.0320        .47283E-04   -1.5036    
   2  alpha         2.0335        .18046        .55807E-03   -.18770    
   3  Normalizat    1.2960        .19943        .23246E-03   -.83686    
   4  Prefactor     .69669        .21893        .34431E-03   -1.0366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62637e-09
Minuit parameter uncertainties:
  1  2.03196
  2  0.180626
  3  0.199545
  4  0.219202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/238012': 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) = 6686.97755451
delta logL = 0.0741166751413

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.129e+01  2.032e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.034e+00  1.806e-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:  6.967e-01  2.192e-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.296e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 132.54
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.03 +/- 0.18
Photon Flux (Free Index): 2.91e-07 +/- 6.51e-08
Energy Flux (Free Index): 1.46e-04 +/- 3.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/238012/cmap_HighResolution_643939201_644198401_4FGL_J1159.5+2914_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.06e-07', energy_flux2='1.46e-04', photon_flux_error='5.48e-08', dlogl='7.41e-02', energy_flux='1.37e-04', photon_flux2='2.91e-07', job_status='DONE', time_completed='2021-09-04 19:47:20.429097', photon_index_error2='0.18', photon_index2='2.03', ts='133.21', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='3.64e-05', EG='1.28', time_epoch_completed='1630810040.43', return_code='0', job_id='238012', GAL2='0.70', EG2='1.30', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='6.51e-08', ts2='132.54', photon_index='2.10' WHERE bin_id='1561' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:47:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 238012: <4FGL_J1159.5+2914_daily_bin1561> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1561> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:31:01 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:31:02 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:31:02 2021
Terminated at Sat Sep  4 19:47:21 2021
Results reported at Sat Sep  4 19:47:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1561 179.884 29.2448 643939201 644198401 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 :                                   945.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

