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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin905
RA = 179.884, Dec = 29.2448
tmin = 473904001, tmax = 474163201
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='235093', job_status='RUN', time_executed='2021-09-04 19:24:53.000273', time_epoch_executed='1630808693.0' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235093

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235093/ft1_4FGL_J1159.5+2914_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235093/ft2_4FGL_J1159.5+2914_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235093/ft1_4FGL_J1159.5+2914_daily_bin905.fits outfile=/scratch/kocevski/235093/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin905.fits ra=179.884 dec=29.2448 rad=12.0 tmin=473904001.0 tmax=474163201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.11
user 4.88
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235093/ft1_filtered_4FGL_J1159.5+2914_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/235093/ft2_4FGL_J1159.5+2914_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/235093/ltcube_473904001_474163201_4FGL_J1159.5+2914_daily_bin905.fits outfile=/scratch/kocevski/235093/expmap_473904001_474163201_4FGL_J1159.5+2914_daily_bin905.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/235093/ltcube_473904001_474163201_4FGL_J1159.5+2914_daily_bin905.fits
.....................!
real 189.74
user 184.96
sys 4.43

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/235093/ft1_filtered_4FGL_J1159.5+2914_daily_bin905.fits scfile=/scratch/kocevski/235093/ft2_4FGL_J1159.5+2914_daily_bin905.fits outfile=/scratch/kocevski/235093/cmap_473904001_474163201_4FGL_J1159.5+2914_daily_bin905.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0013       1.0000         .10000E-03   10000.    
     2 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10566E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13410E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99885E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .89753       1.0000         .10000E-03   10000.    
    11 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34733E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.021       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2956       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3031       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3284       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2642       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0276       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.765       1.0000         .10000E-03   10000.    
    26 'norm      '    .33578       1.0000         .10000E-03   10000.    
    27 'norm      '    9.1575       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    49.239       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95019       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95122       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=   3607.747     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4789 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0012        3.2613       -.30530E-06   -.26043E-03
   2  norm          .10000E-03    10.229       -.14873E-06** at limit **
   3  norm          .10000E-03    22.674        .17927E-04** at limit **
   4  Prefactor     .10000E-03    6.0545        .22557E-06** at limit **
   5  Prefactor     6.4107        4.2167        .29088E-06    .70939E-03
   6  Prefactor     .10000E-03    27.692       -.41619E-05** at limit **
   7  Prefactor     .10000E-03    12.324        .41999E-06** at limit **
   8  norm          .10000E-03    2.0635        .89150E-07** at limit **
   9  Prefactor     .10014E-03    12.948       -.62241E-06** at limit **
  10  Prefactor     .89081        9.3324       -.34469E-05   -.84744E-04
  11  norm          .10000E-03    .73312        .31317E-06** at limit **
  12  Prefactor     20.030        19.425       -.61188E-06   -.61368E-05
  13  Prefactor     .10000E-03    8.1010        .33154E-07** at limit **
  14  Prefactor     2.7290        2.3090       -.14754E-06   -.14773E-03
  15  Prefactor     .10000E-03    109.20        .12548E-04** at limit **
  16  Prefactor     55.991        77.285       -.19700E-04   -.40987E-05
  17  norm          2.2951        1.3911       -.72133E-07    .10047E-03
  18  Prefactor     3.3523        5.8126       -.92669E-06   -.25312E-03
  19  Prefactor     .10000E-03    21.538       -.15246E-04** at limit **
  20  Prefactor     1.3016        4.0819       -.81691E-06   -.57458E-03
  21  norm          2.3276        2.8143       -.15103E-06   -.90469E-04
  22  Prefactor     .10000E-03    2.8677       -.12026E-07** at limit **
  23  Prefactor     4.2637        3.1181       -.28424E-07    .30798E-04
  24  Prefactor     4.0276        2.7608       -.12163E-06    .29955E-04
  25  Prefactor     15.764        10.029       -.25985E-07    .12616E-04
  26  norm          .33575        .27429       -.59045E-07   -.31380E-03
  27  norm          9.1565        7.9847       -.10115E-06   -.53058E-04
  28  Prefactor     .10000E-03    6.3019       -.24472E-06** at limit **
  29  Prefactor     49.228        115.03       -.13375E-04    .47015E-05
  30  Normalizat    .95028        .23055        .31048E-05    .70249E-04
  31  Prefactor     .95134        .25188        .11610E-05    .12236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00121
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.41067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100138
  Prefactor  = 0.890815
  norm       = 0.0001
  Prefactor  = 20.0302
  Prefactor  = 0.0001
  Prefactor  = 2.72897
  Prefactor  = 0.0001
  Prefactor  = 55.9914
  norm       = 2.29515
  Prefactor  = 3.3523
  Prefactor  = 0.0001
  Prefactor  = 1.30156
  norm       = 2.3276
  Prefactor  = 0.0001
  Prefactor  = 4.26372
  Prefactor  = 4.02759
  Prefactor  = 15.7642
  norm       = 0.335752
  norm       = 9.15649
  Prefactor  = 0.0001
  Prefactor  = 49.2276
  Normalizat = 0.95028
  Prefactor  = 0.951339
 **********
 **   18 **HESSE 
 **********

 FCN=   3607.747     FROM HESSE     STATUS=OK           636 CALLS     5425 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0012        3.2421        .13429E-03   -1.5425    
   2  norm          .10000E-03    10.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0554        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4107        4.0752        .87270E-04   -1.5202    
   6  Prefactor     .10000E-03    27.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.0997        .16515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10014E-03    20.064        .66075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .89081        16.663        .30828E-02   -1.5519    
  11  norm          .10000E-03    .75610        .10017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.030        19.431        .89480E-04   -1.4813    
  13  Prefactor     .10000E-03    8.1294        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7290        2.3017        .79851E-04   -1.5378    
  15  Prefactor     .10000E-03    111.24        .21327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     55.991        77.272        .53595E-04   -1.4210    
  17  norm          2.2951        1.3890        .53024E-04   -1.5405    
  18  Prefactor     3.3523        5.7181        .17155E-03   -1.5342    
  19  Prefactor     .10000E-03    21.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3016        4.0217        .19595E-03   -1.5480    
  21  norm          2.3276        2.8063        .10375E-03   -1.5403    
  22  Prefactor     .10000E-03    2.8756        .99336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2637        3.1216        .84674E-04   -1.5295    
  24  Prefactor     4.0276        2.7581        .78483E-04   -1.5307    
  25  Prefactor     15.764        10.023        .10087E-03   -1.4914    
  26  norm          .33575        .26812        .27120E-04   -1.5592    
  27  norm          9.1565        7.9747        .13244E-03   -1.5103    
  28  Prefactor     .10000E-03    6.3099        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     49.228        115.28        .57148E-04   -1.4304    
  30  Normalizat    .95028        .26354        .24265E-03   -.94715    
  31  Prefactor     .95134        .28878        .28007E-03   -.94370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70466e-08
Minuit parameter uncertainties:
  1  3.24237
  2  1.14095e-05
  3  0.000349816
  4  3.7907e-06
  5  4.07542
  6  1.43365e-07
  7  1.54399e-06
  8  2.70971e-07
  9  0.00332753
  10  7.70753
  11  2.73155e-05
  12  19.4372
  13  6.05298e-06
  14  2.30174
  15  0.000145357
  16  77.4108
  17  1.38907
  18  5.71903
  19  1.61953e-05
  20  4.02258
  21  2.80647
  22  2.88286e-06
  23  3.12173
  24  2.75818
  25  10.024
  26  0.268118
  27  7.97559
  28  5.55602e-06
  29  115.807
  30  0.263903
  31  0.289249
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.295e+00  1.389e+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:  9.513e-01  2.892e-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:  9.503e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.09
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.69e-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) = 3607.31311448
delta logL = 0.433481006844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3607.30645289
delta logL = 0.440142602543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9204       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7579       1.0000          .0000       5.0000    
     3 'Normalizat'    .90491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98718       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=   3607.306     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      222 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9204        24.568        .74963E-03    .19715E-02
   2  alpha         2.7579        3.1658        .29571        .48291E-04
   3  Normalizat    .90491        .15227        .44964E-01    .18566E-04
   4  Prefactor     .98717        .14257        .46107E-01   -.60210E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92043
  alpha      = 2.75792
  Normalizat = 0.904909
  Prefactor  = 0.98717
 **********
 **   18 **HESSE 
 **********

 FCN=   3607.306     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9204        1.4148        .29985E-04   -1.5431    
   2  alpha         2.7579        .77357        .12062E-01    .10335    
   3  Normalizat    .90491        .25537        .24768E-03   -.96288    
   4  Prefactor     .98717        .29219        .27548E-03   -.93158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26887e-10
Minuit parameter uncertainties:
  1  1.41482
  2  0.786623
  3  0.255708
  4  0.292663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235093': 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) = 3607.30645289
delta logL = 0.440142603202

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.920e+00  1.415e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.758e+00  7.866e-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:  9.872e-01  2.927e-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:  9.049e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.97
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.76 +/- 0.79
Photon Flux (Free Index): 9.58e-08 +/- 6.08e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.24e-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/235093/cmap_HighResolution_473904001_474163201_4FGL_J1159.5+2914_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='2.21e-05', photon_flux_error='3.77e-08', dlogl='4.40e-01', energy_flux='2.79e-05', photon_flux2='9.58e-08', job_status='DONE', time_completed='2021-09-04 19:35:37.858494', photon_index_error2='0.79', photon_index2='2.76', ts='7.09', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.95', time_epoch_completed='1630809337.86', return_code='0', job_id='235093', GAL2='0.99', EG2='0.90', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.08e-08', ts2='7.97', photon_index='2.10' WHERE bin_id='905' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:35:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 235093: <4FGL_J1159.5+2914_daily_bin905> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin905> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 19:20:45 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:20:47 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:20:47 2021
Terminated at Sat Sep  4 19:35:38 2021
Results reported at Sat Sep  4 19:35:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin905 179.884 29.2448 473904001 474163201 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

