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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin966
RA = 179.884, Dec = 29.2448
tmin = 489715201, tmax = 489974401
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='236394', job_status='RUN', time_executed='2021-09-04 19:25:37.724464', time_epoch_executed='1630808737.72' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='966'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236394

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236394/ft1_4FGL_J1159.5+2914_daily_bin966.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236394/ft2_4FGL_J1159.5+2914_daily_bin966.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236394/ft1_4FGL_J1159.5+2914_daily_bin966.fits outfile=/scratch/kocevski/236394/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin966.fits ra=179.884 dec=29.2448 rad=12.0 tmin=489715201.0 tmax=489974401.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.05
user 3.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236394/ft1_filtered_4FGL_J1159.5+2914_daily_bin966.fits" evtable="EVENTS" scfile=/scratch/kocevski/236394/ft2_4FGL_J1159.5+2914_daily_bin966.fits sctable="SC_DATA" outfile=/scratch/kocevski/236394/ltcube_489715201_489974401_4FGL_J1159.5+2914_daily_bin966.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/236394/ft2_4FGL_J1159.5+2914_daily_bin966.fits
.....................!
real 11.87
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236394/ft1_filtered_4FGL_J1159.5+2914_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/236394/ft2_4FGL_J1159.5+2914_daily_bin966.fits sctable="SC_DATA" expcube=/scratch/kocevski/236394/ltcube_489715201_489974401_4FGL_J1159.5+2914_daily_bin966.fits outfile=/scratch/kocevski/236394/expmap_489715201_489974401_4FGL_J1159.5+2914_daily_bin966.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/236394/ltcube_489715201_489974401_4FGL_J1159.5+2914_daily_bin966.fits
.....................!
real 191.76
user 186.36
sys 4.92

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/236394/ft1_filtered_4FGL_J1159.5+2914_daily_bin966.fits scfile=/scratch/kocevski/236394/ft2_4FGL_J1159.5+2914_daily_bin966.fits outfile=/scratch/kocevski/236394/cmap_489715201_489974401_4FGL_J1159.5+2914_daily_bin966.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236394/ft1_filtered_4FGL_J1159.5+2914_daily_bin966.fits scfile=/scratch/kocevski/236394/ft2_4FGL_J1159.5+2914_daily_bin966.fits outfile=/scratch/kocevski/236394/cmap_HighResolution_489715201_489974401_4FGL_J1159.5+2914_daily_bin966.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10825E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11507E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.124       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.296       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4469       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0666       1.0000         .10000E-03   10000.    
    11 'norm      '    .84987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26953E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.446       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0016       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11529E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12090E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.5277       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.683       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .68612E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9699       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .70355E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.0747       1.0000         .10000E-03   10000.    
    27 'norm      '    13.018       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .47701       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .92657E-01   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82856       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=   6056.454     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     3033 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8364       -.36582E-06** at limit **
   2  norm          .10000E-03    4.1086       -.30826E-07** at limit **
   3  norm          5.1647        2.9726        .43943E-06   -.34301E-03
   4  Prefactor     24.053        3.1294       -.65482E-08   -.23738E-03
   5  Prefactor     5.1854        3.6864        .19226E-07   -.31428E-03
   6  Prefactor     24.450        47.747       -.47739E-06   -.38652E-03
   7  Prefactor     3.4275        9.4680        .62416E-06   -.27608E-03
   8  norm          .10000E-03    1.4351       -.16500E-06** at limit **
   9  Prefactor     3.7064        8.0078       -.10914E-05   -.58300E-02
  10  Prefactor     3.0523        5.2518       -.78173E-07    .15570E-03
  11  norm          .85904        .87700        .10781E-07   -.97656E-04
  12  Prefactor     69.043        18.605        .12027E-07   -.11224E-01
  13  Prefactor     .10026E-03    66.743       -.66725E-05** at limit **
  14  Prefactor     .10000E-03    .94923        .65687E-07** at limit **
  15  Prefactor     1.5741        19.539        .67608E-06   -.12599E-03
  16  Prefactor     52.512        27.998        .19313E-06   -.45576E-03
  17  norm          3.0027        1.3587        .69060E-07    .17532E-03
  18  Prefactor     .10000E-03    1.8361       -.28955E-06** at limit **
  19  Prefactor     .10018E-03    32.067       -.14988E-05** at limit **
  20  Prefactor     .10000E-03    5.8446        .10940E-07** at limit **
  21  norm          9.5315        4.0629       -.12534E-06   -.75814E-03
  22  Prefactor     15.655        8.4656        .12480E-06    .33799E-02
  23  Prefactor     .78586E-01    12.443       -.87393E-07   -.59326E-04
  24  Prefactor     2.9581        2.5411        .54327E-07   -.54187E-03
  25  Prefactor     .10000E-03    11.960       -.11483E-05** at limit **
  26  norm          1.0742        .37280        .13944E-07   -.28479E-03
  27  norm          13.065        5.9313        .15193E-06   -.42509E-03
  28  Prefactor     .54812        39.374       -.60719E-05    .13586E-02
  29  Prefactor     .10253E-03    115.39       -.24147E-06** at limit **
  30  Normalizat    1.0339        .22640       -.13288E-05   -.36831E-03
  31  Prefactor     .82760        .23708        .56795E-06   -.24430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.16467
  Prefactor  = 24.053
  Prefactor  = 5.18537
  Prefactor  = 24.4505
  Prefactor  = 3.42749
  norm       = 0.0001
  Prefactor  = 3.70641
  Prefactor  = 3.05231
  norm       = 0.859044
  Prefactor  = 69.0431
  Prefactor  = 0.00010026
  Prefactor  = 0.0001
  Prefactor  = 1.57407
  Prefactor  = 52.5119
  norm       = 3.00267
  Prefactor  = 0.0001
  Prefactor  = 0.000100178
  Prefactor  = 0.0001
  norm       = 9.53147
  Prefactor  = 15.6554
  Prefactor  = 0.0785863
  Prefactor  = 2.9581
  Prefactor  = 0.0001
  norm       = 1.07421
  norm       = 13.0649
  Prefactor  = 0.548123
  Prefactor  = 0.000102535
  Normalizat = 1.03389
  Prefactor  = 0.827602
 **********
 **   18 **HESSE 
 **********

 FCN=   6056.454     FROM HESSE     STATUS=OK           722 CALLS     3755 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.1086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1647        12.706        .44389E-02   -1.5253    
   4  Prefactor     24.053        22.259        .20389E-02   -1.4727    
   5  Prefactor     5.1854        3.8819        .43549E-02   -1.5253    
   6  Prefactor     24.450        55.803        .21699E-02   -1.4719    
   7  Prefactor     3.4275        9.5854        .54462E-02   -1.5338    
   8  norm          .10000E-03    1.3949        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7064        9.8603        .52456E-02   -1.5323    
  10  Prefactor     3.0523        5.3996        .57911E-02   -1.5359    
  11  norm          .85904        .96849        .12624E-01   -1.5523    
  12  Prefactor     69.043        26.449        .12050E-02   -1.4044    
  13  Prefactor     .10026E-03    9.5429        .91570E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .92915        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5741        80.295        .87884E-02   -1.5457    
  16  Prefactor     52.512        53.688        .13590E-02   -1.4257    
  17  norm          3.0027        1.3721        .58572E-02   -1.5361    
  18  Prefactor     .10000E-03    1.8231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10018E-03    33.856        .90806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3493        .38172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.5315        3.9599        .32457E-02   -1.5090    
  22  Prefactor     15.655        8.5767        .25284E-02   -1.4916    
  23  Prefactor     .78586E-01    1.4135        .49477E-01   -1.5652    
  24  Prefactor     2.9581        2.5973        .58902E-02   -1.5364    
  25  Prefactor     .10000E-03    4.5501        .53773E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0742        .37914        .59237E-02   -1.5501    
  27  norm          13.065        6.0486        .27754E-02   -1.4985    
  28  Prefactor     .54812        9.0446        .78775E-01   -1.5560    
  29  Prefactor     .10253E-03    129.53        .94762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0339        .20469        .41903E-01   -.91903    
  31  Prefactor     .82760        .20449        .69868E-01   -.98719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3553e-07
Minuit parameter uncertainties:
  1  2.29399e-05
  2  1.39097e-06
  3  12.7131
  4  22.2667
  5  3.88208
  6  55.9221
  7  9.58969
  8  7.91071e-06
  9  9.8646
  10  5.40041
  11  0.968511
  12  26.4539
  13  0.00315248
  14  2.44083e-06
  15  22.5159
  16  53.7371
  17  1.37213
  18  1.53039e-05
  19  0.00490796
  20  9.18083e-06
  21  3.96001
  22  8.57738
  23  0.666181
  24  2.59744
  25  7.66401e-05
  26  0.379145
  27  6.04885
  28  4.4535
  29  0.0363169
  30  0.204844
  31  0.204681
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.003e+00  1.372e+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.276e-01  2.047e-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.034e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.52
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 8.15e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 1.67e-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) = 6056.16354645
delta logL = 0.290591823539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6056.15450624
delta logL = 0.29963203127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9348       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4286       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84789       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=   6056.155     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9343        25.465        .59275E-02    .23160E-03
   2  alpha         2.4280        3.5201        .27542        .24123E-04
   3  Normalizat    1.0060        .14874        .46241E-01    .12725E-04
   4  Prefactor     .84794        .18257        .69099E-01    .12572E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93434
  alpha      = 2.42803
  Normalizat = 1.00604
  Prefactor  = 0.847937
 **********
 **   18 **HESSE 
 **********

 FCN=   6056.155     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9343        1.3230        .54135E-04   -1.5365    
   2  alpha         2.4280        .43453        .11277E-01   -.28792E-01
   3  Normalizat    1.0060        .21382        .25305E-03   -.92828    
   4  Prefactor     .84794        .23702        .30571E-03   -.97985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50318e-12
Minuit parameter uncertainties:
  1  1.32306
  2  0.436752
  3  0.213999
  4  0.237308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236394': 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) = 6056.15450436
delta logL = 0.299633914838

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.934e+00  1.323e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.428e+00  4.368e-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.479e-01  2.373e-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.006e+00  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.06
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.43 +/- 0.44
Photon Flux (Free Index): 1.05e-07 +/- 5.22e-08
Energy Flux (Free Index): 3.14e-05 +/- 1.44e-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/236394/cmap_HighResolution_489715201_489974401_4FGL_J1159.5+2914_daily_bin966.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.15e-08', energy_flux2='3.14e-05', photon_flux_error='3.72e-08', dlogl='3.00e-01', energy_flux='3.65e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-04 19:37:49.388163', photon_index_error2='0.44', photon_index2='2.43', ts='11.52', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.03', time_epoch_completed='1630809469.39', return_code='0', job_id='236394', GAL2='0.85', EG2='1.01', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.22e-08', ts2='12.06', photon_index='2.10' WHERE bin_id='966' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:37:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 236394: <4FGL_J1159.5+2914_daily_bin966> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin966 179.884 29.2448 489715201 489974401 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 :                                   728.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

