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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1101
RA = 179.884, Dec = 29.2448
tmin = 524707201, tmax = 524966401
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='236623', job_status='RUN', time_executed='2021-09-04 19:27:48.372685', time_epoch_executed='1630808868.37' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236623/ft1_4FGL_J1159.5+2914_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236623/ft2_4FGL_J1159.5+2914_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236623/ft1_4FGL_J1159.5+2914_daily_bin1101.fits outfile=/scratch/kocevski/236623/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1101.fits ra=179.884 dec=29.2448 rad=12.0 tmin=524707201.0 tmax=524966401.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.43
user 3.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236623/ft1_filtered_4FGL_J1159.5+2914_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/236623/ft2_4FGL_J1159.5+2914_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/236623/ltcube_524707201_524966401_4FGL_J1159.5+2914_daily_bin1101.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/236623/ft2_4FGL_J1159.5+2914_daily_bin1101.fits
.....................!
real 11.63
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236623/ft1_filtered_4FGL_J1159.5+2914_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/236623/ft2_4FGL_J1159.5+2914_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/236623/ltcube_524707201_524966401_4FGL_J1159.5+2914_daily_bin1101.fits outfile=/scratch/kocevski/236623/expmap_524707201_524966401_4FGL_J1159.5+2914_daily_bin1101.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/236623/ltcube_524707201_524966401_4FGL_J1159.5+2914_daily_bin1101.fits
.....................!
real 191.02
user 184.37
sys 5.27

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/236623/ft1_filtered_4FGL_J1159.5+2914_daily_bin1101.fits scfile=/scratch/kocevski/236623/ft2_4FGL_J1159.5+2914_daily_bin1101.fits outfile=/scratch/kocevski/236623/cmap_524707201_524966401_4FGL_J1159.5+2914_daily_bin1101.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.96
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236623/ft1_filtered_4FGL_J1159.5+2914_daily_bin1101.fits scfile=/scratch/kocevski/236623/ft2_4FGL_J1159.5+2914_daily_bin1101.fits outfile=/scratch/kocevski/236623/cmap_HighResolution_524707201_524966401_4FGL_J1159.5+2914_daily_bin1101.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.77
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9521       1.0000         .10000E-03   10000.    
     3 'norm      '    .13480E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.693       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12952E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4585       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.479       1.0000         .10000E-03   10000.    
    17 'norm      '    6.4985       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.102       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.387       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8298       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .44599       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4082       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7533       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0833       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88472       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=   6327.119     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4234 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9043        .29130E-07** at limit **
   2  norm          4.9430        12.449       -.59087E-06    .80837E-04
   3  norm          .10000E-03    11.545       -.67230E-06** at limit **
   4  Prefactor     .10000E-03    9.2418        .35018E-06** at limit **
   5  Prefactor     3.5002        2.4677       -.48399E-06    .36411E-03
   6  Prefactor     18.631        39.339        .21385E-05    .12033E-03
   7  Prefactor     .10000E-03    16.420        .49312E-06** at limit **
   8  norm          .10000E-03    1.9236       -.17625E-05** at limit **
   9  Prefactor     .10000E-03    16.001        .39330E-06** at limit **
  10  Prefactor     .10000E-03    1.0514        .31939E-07** at limit **
  11  norm          5.2452        1.4098       -.74280E-07    .27344E-03
  12  Prefactor     5.3814        14.836        .14197E-06   -.13372E-05
  13  Prefactor     11.811        9.1004        .41002E-07    .63017E-06
  14  Prefactor     1.4583        1.3069        .94026E-08   -.37955E-05
  15  Prefactor     .10000E-03    6.3165       -.62336E-07** at limit **
  16  Prefactor     15.479        47.884        .21201E-06    .23312E-05
  17  norm          6.4985        1.6466        .96113E-08   -.16890E-03
  18  Prefactor     3.3343        3.2661        .16091E-06    .58769E-04
  19  Prefactor     12.093        19.006        .37230E-06    .34377E-05
  20  Prefactor     .10000E-03    1.9136       -.76803E-07** at limit **
  21  norm          10.387        3.5199       -.50349E-07   -.32304E-03
  22  Prefactor     1.8312        5.2389       -.67135E-07    .19245E-04
  23  Prefactor     .10000E-03    1.0391        .31831E-07** at limit **
  24  Prefactor     .10000E-03    1.5549        .38806E-06** at limit **
  25  Prefactor     .10000E-03    4.4149        .26912E-06** at limit **
  26  norm          .44600        .23967        .15199E-07    .49957E-04
  27  norm          1.4073        4.7573       -.14433E-06   -.25087E-04
  28  Prefactor     6.7543        9.4243       -.30218E-06   -.53675E-05
  29  Prefactor     .10000E-03    36.164       -.65096E-06** at limit **
  30  Normalizat    1.0835        .17684       -.45002E-06   -.24187E-04
  31  Prefactor     .88449        .19778       -.21521E-07   -.30156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.94298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50024
  Prefactor  = 18.631
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.24525
  Prefactor  = 5.38138
  Prefactor  = 11.8113
  Prefactor  = 1.4583
  Prefactor  = 0.0001
  Prefactor  = 15.4785
  norm       = 6.49849
  Prefactor  = 3.33427
  Prefactor  = 12.0933
  Prefactor  = 0.0001
  norm       = 10.3873
  Prefactor  = 1.8312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.445998
  norm       = 1.40735
  Prefactor  = 6.75434
  Prefactor  = 0.0001
  Normalizat = 1.0835
  Prefactor  = 0.884493
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.119     FROM HESSE     STATUS=OK           628 CALLS     4862 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9660        .21429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9430        12.552        .90364E-03   -1.5263    
   3  norm          .10000E-03    11.988        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5002        2.4632        .89445E-04   -1.5334    
   6  Prefactor     18.631        40.569        .92637E-04   -1.4844    
   7  Prefactor     .10000E-03    16.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9210        .16505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0545        .79657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2452        1.4089        .45589E-04   -1.5250    
  12  Prefactor     5.3814        14.784        .17321E-03   -1.5244    
  13  Prefactor     11.811        9.0974        .11656E-03   -1.5020    
  14  Prefactor     1.4583        1.3043        .81735E-04   -1.5466    
  15  Prefactor     .10000E-03    6.3255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.479        47.954        .10180E-03   -1.4921    
  17  norm          6.4985        1.6467        .48682E-04   -1.5198    
  18  Prefactor     3.3343        3.2306        .13507E-03   -1.5343    
  19  Prefactor     12.093        19.001        .11515E-03   -1.5012    
  20  Prefactor     .10000E-03    3.3801        .21015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.387        3.4836        .82845E-04   -1.5063    
  22  Prefactor     1.8312        5.2137        .29674E-03   -1.5437    
  23  Prefactor     .10000E-03    1.0598        .78992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2311        .18654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.4473        .16272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .44600        .23656        .27104E-04   -1.5574    
  27  norm          1.4073        4.7156        .29715E-03   -1.5471    
  28  Prefactor     6.7543        9.4330        .77201E-03   -1.5188    
  29  Prefactor     .10000E-03    36.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0835        .20463        .23611E-03   -.90283    
  31  Prefactor     .88449        .22955        .30028E-03   -.96685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70849e-10
Minuit parameter uncertainties:
  1  3.57967e-06
  2  12.5589
  3  2.92495e-05
  4  8.53298e-06
  5  2.46329
  6  40.6293
  7  3.82896e-05
  8  3.54275e-06
  9  3.16263e-05
  10  2.03211e-06
  11  1.40896
  12  14.794
  13  9.09845
  14  1.30435
  15  1.62677e-06
  16  48.0738
  17  1.6467
  18  3.23082
  19  19.0102
  20  3.9878e-06
  21  3.48365
  22  5.21498
  23  1.85558e-06
  24  1.02872e-05
  25  1.69095e-05
  26  0.236563
  27  4.71685
  28  9.43511
  29  1.16519e-05
  30  0.204775
  31  0.229796
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.498e+00  1.647e+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.845e-01  2.298e-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.084e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 55.96
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 4.47e-08
Energy Flux (Fixed Index): 7.90e-05 +/- 2.00e-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) = 6327.04893134
delta logL = 0.0703402697009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6327.04268397
delta logL = 0.0765876393552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4447       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2019       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89650       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=   6327.043     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4445        2.0594        .39524E-02    .34742E-04
   2  alpha         2.2020        .31388        .17142        .12973E-04
   3  Normalizat    1.0672        .17194        .39529E-01   -.43459E-06
   4  Prefactor     .89664        .19772        .67460E-01    .96201E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.44449
  alpha      = 2.20201
  Normalizat = 1.06717
  Prefactor  = 0.896639
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.043     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4445        1.6127        .47488E-04   -1.5200    
   2  alpha         2.2020        .25445        .73330E-02   -.11948    
   3  Normalizat    1.0672        .20173        .23753E-03   -.90813    
   4  Prefactor     .89664        .23065        .29842E-03   -.96259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60512e-13
Minuit parameter uncertainties:
  1  1.6127
  2  0.254895
  3  0.201873
  4  0.230901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236623': 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) = 6327.0426828
delta logL = 0.0765888156875

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.444e+00  1.613e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.202e+00  2.549e-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.966e-01  2.309e-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.067e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 55.81
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.20 +/- 0.25
Photon Flux (Free Index): 1.89e-07 +/- 5.59e-08
Energy Flux (Free Index): 7.34e-05 +/- 2.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/236623/cmap_HighResolution_524707201_524966401_4FGL_J1159.5+2914_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='7.34e-05', photon_flux_error='4.47e-08', dlogl='7.66e-02', energy_flux='7.90e-05', photon_flux2='1.89e-07', job_status='DONE', time_completed='2021-09-04 19:42:09.529254', photon_index_error2='0.25', photon_index2='2.20', ts='55.96', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='1.08', time_epoch_completed='1630809729.53', return_code='0', job_id='236623', GAL2='0.90', EG2='1.07', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='5.59e-08', ts2='55.81', photon_index='2.10' WHERE bin_id='1101' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:42:09 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1101 179.884 29.2448 524707201 524966401 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 :                                   830.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

