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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1006
RA = 179.884, Dec = 29.2448
tmin = 500083201, tmax = 500342401
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='236456', job_status='RUN', time_executed='2021-09-04 19:25:42.409100', time_epoch_executed='1630808742.41' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236456/ft1_4FGL_J1159.5+2914_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236456/ft2_4FGL_J1159.5+2914_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236456/ft1_4FGL_J1159.5+2914_daily_bin1006.fits outfile=/scratch/kocevski/236456/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1006.fits ra=179.884 dec=29.2448 rad=12.0 tmin=500083201.0 tmax=500342401.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.66
user 5.39
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236456/ft2_4FGL_J1159.5+2914_daily_bin1006.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/236456/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/236456/ft1_filtered_4FGL_J1159.5+2914_daily_bin1006.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.64
user 0.34
sys 0.29

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236456/ft1_filtered_4FGL_J1159.5+2914_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/236456/ft2_4FGL_J1159.5+2914_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/236456/ltcube_500083201_500342401_4FGL_J1159.5+2914_daily_bin1006.fits outfile=/scratch/kocevski/236456/expmap_500083201_500342401_4FGL_J1159.5+2914_daily_bin1006.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/236456/ltcube_500083201_500342401_4FGL_J1159.5+2914_daily_bin1006.fits
.....................!
real 189.88
user 185.43
sys 4.07

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/236456/ft1_filtered_4FGL_J1159.5+2914_daily_bin1006.fits scfile=/scratch/kocevski/236456/ft2_4FGL_J1159.5+2914_daily_bin1006.fits outfile=/scratch/kocevski/236456/cmap_500083201_500342401_4FGL_J1159.5+2914_daily_bin1006.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/236456/ft1_filtered_4FGL_J1159.5+2914_daily_bin1006.fits scfile=/scratch/kocevski/236456/ft2_4FGL_J1159.5+2914_daily_bin1006.fits outfile=/scratch/kocevski/236456/cmap_HighResolution_500083201_500342401_4FGL_J1159.5+2914_daily_bin1006.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13614E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.305       1.0000         .10000E-03   10000.    
     3 'norm      '    25.557       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.168       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.811       1.0000         .10000E-03   10000.    
     8 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.363       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.204       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7241       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14249E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10989E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1483       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2265       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9968       1.0000         .10000E-03   10000.    
    21 'norm      '    8.9035       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3024       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8752       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .28116E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .48982       1.0000         .10000E-03   10000.    
    27 'norm      '    4.7432       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.1749       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .64498       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.4415       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=   5250.879     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4278 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1746       -.29778E-06** at limit **
   2  norm          21.303        21.035       -.29915E-06   -.15476E-03
   3  norm          25.545        17.684       -.74916E-06   -.20084E-03
   4  Prefactor     .10000E-03    11.724       -.12406E-05** at limit **
   5  Prefactor     .10000E-03    1.2720        .84727E-06** at limit **
   6  Prefactor     13.197        35.378        .19679E-05   -.90475E-04
   7  Prefactor     26.803        22.106       -.24277E-05   -.23766E-03
   8  norm          .10001E-03    1.8839        .22592E-05** at limit **
   9  Prefactor     5.3727        12.300        .62659E-05    .13523E-03
  10  Prefactor     10.363        6.7279       -.21430E-06   -.45548E-03
  11  norm          .10000E-03    .32965        .37514E-07** at limit **
  12  Prefactor     33.234        35.832        .29704E-05    .36162E-03
  13  Prefactor     .10000E-03    9.8642        .10568E-05** at limit **
  14  Prefactor     1.7191        3.6018        .53951E-06    .64170E-04
  15  Prefactor     .10000E-03    38.092        .15727E-06** at limit **
  16  Prefactor     .10000E-03    14.790       -.40908E-07** at limit **
  17  norm          2.1480        1.2307       -.36094E-07   -.18832E-03
  18  Prefactor     2.2261        3.5906        .49603E-06    .17118E-03
  19  Prefactor     15.635        27.385       -.26880E-05   -.20488E-03
  20  Prefactor     3.9959        4.1358        .35030E-06    .70353E-04
  21  norm          8.9034        3.6621        .18767E-06    .95954E-05
  22  Prefactor     .10000E-03    3.9444        .32313E-07** at limit **
  23  Prefactor     1.3024        1.3604       -.74891E-06   -.25996E-03
  24  Prefactor     1.8751        1.8742        .10751E-06   -.10925E-03
  25  Prefactor     .10012E-03    4.5968        .14239E-05** at limit **
  26  norm          .48980        .29931        .36700E-07   -.12033E-02
  27  norm          4.7441        4.2586        .33026E-07   -.42589E-03
  28  Prefactor     .10000E-03    3.6426       -.77740E-07** at limit **
  29  Prefactor     5.1710        267.58       -.56155E-06   -.94844E-05
  30  Normalizat    .64505        .22237       -.33496E-05   -.34380E-03
  31  Prefactor     1.4416        .23988        .37515E-06   -.50091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 21.3033
  norm       = 25.5446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1972
  Prefactor  = 26.8032
  norm       = 0.000100009
  Prefactor  = 5.37271
  Prefactor  = 10.3631
  norm       = 0.0001
  Prefactor  = 33.2339
  Prefactor  = 0.0001
  Prefactor  = 1.7191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14799
  Prefactor  = 2.22607
  Prefactor  = 15.6349
  Prefactor  = 3.99591
  norm       = 8.90341
  Prefactor  = 0.0001
  Prefactor  = 1.30238
  Prefactor  = 1.87508
  Prefactor  = 0.000100124
  norm       = 0.489795
  norm       = 4.74411
  Prefactor  = 0.0001
  Prefactor  = 5.17098
  Normalizat = 0.645046
  Prefactor  = 1.44155
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.879     FROM HESSE     STATUS=OK           626 CALLS     4904 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4661        .24710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.303        21.029        .86776E-04   -1.4785    
   3  norm          25.545        17.689        .79240E-04   -1.4697    
   4  Prefactor     .10000E-03    11.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2855        .79654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.197        34.642        .11038E-03   -1.4981    
   7  Prefactor     26.803        22.154        .77368E-04   -1.4672    
   8  norm          .10001E-03    2.8817        .16961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3727        12.540        .86737E-03   -1.5244    
  10  Prefactor     10.363        6.7240        .12446E-03   -1.5064    
  11  norm          .10000E-03    .33646        .40616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.234        35.917        .69540E-04   -1.4554    
  13  Prefactor     .10000E-03    9.9830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7191        3.5004        .15171E-03   -1.5446    
  15  Prefactor     .10000E-03    38.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1480        1.2267        .57990E-04   -1.5415    
  18  Prefactor     2.2261        3.5594        .16514E-03   -1.5410    
  19  Prefactor     15.635        27.506        .10125E-03   -1.4917    
  20  Prefactor     3.9959        4.1168        .14108E-03   -1.5308    
  21  norm          8.9034        3.6589        .84977E-04   -1.5111    
  22  Prefactor     .10000E-03    3.9572        .14054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3024        1.3780        .41870E-03   -1.5480    
  24  Prefactor     1.8751        1.8728        .94915E-04   -1.5434    
  25  Prefactor     .10012E-03    31.377        .28399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .48980        .29406        .29129E-04   -1.5568    
  27  norm          4.7441        4.1624        .13357E-03   -1.5272    
  28  Prefactor     .10000E-03    3.6453        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.1710        267.90        .17672E-03   -1.5253    
  30  Normalizat    .64505        .25985        .32217E-03   -1.0610    
  31  Prefactor     1.4416        .28569        .25888E-03   -.79190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70515e-09
Minuit parameter uncertainties:
  1  0.00024254
  2  21.0364
  3  17.693
  4  0.000103515
  5  3.21961e-06
  6  34.6946
  7  22.1612
  8  0.000323263
  9  12.5466
  10  6.72445
  11  5.54214e-07
  12  35.9403
  13  8.95537e-05
  14  3.50077
  15  0.000191182
  16  2.53908e-06
  17  1.22669
  18  3.55977
  19  27.5282
  20  4.11709
  21  3.659
  22  1.22848e-05
  23  1.37806
  24  1.87281
  25  0.00394691
  26  0.294066
  27  4.16266
  28  1.28536e-06
  29  74.7943
  30  0.260342
  31  0.286006
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.148e+00  1.227e+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:  1.442e+00  2.860e-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:  6.450e-01  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.87
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.83e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.49e-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) = 5250.86367238
delta logL = 0.0153237844124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5250.86241771
delta logL = 0.0165784485207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0918       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0064       1.0000          .0000       5.0000    
     3 'Normalizat'    .65100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4376       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=   5250.862     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      204 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0917        1.2915        .71356E-02    .39561E-02
   2  alpha         2.0064        .47682        .32609       -.35363E-04
   3  Normalizat    .65100        .20471        .72483E-01    .53986E-04
   4  Prefactor     1.4376        .23587        .58617E-01   -.43806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09175
  alpha      = 2.00637
  Normalizat = 0.650998
  Prefactor  = 1.43763
 **********
 **   18 **HESSE 
 **********

 FCN=   5250.862     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0917        1.2482        .58044E-04   -1.5419    
   2  alpha         2.0064        .52215        .12713E-01   -.19876    
   3  Normalizat    .65100        .24257        .32084E-03   -1.0586    
   4  Prefactor     1.4376        .27948        .25919E-03   -.79302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10436e-09
Minuit parameter uncertainties:
  1  1.24822
  2  0.526179
  3  0.242972
  4  0.279772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236456': 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) = 5250.86241771
delta logL = 0.0165784512674

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.092e+00  1.248e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.006e+00  5.262e-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:  1.438e+00  2.798e-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:  6.510e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.90
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.01 +/- 0.53
Photon Flux (Free Index): 5.30e-08 +/- 4.13e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.93e-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/236456/cmap_HighResolution_500083201_500342401_4FGL_J1159.5+2914_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.83e-08', energy_flux2='2.78e-05', photon_flux_error='3.33e-08', dlogl='1.66e-02', energy_flux='2.61e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-04 19:38:04.197956', photon_index_error2='0.53', photon_index2='2.01', ts='7.87', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='0.65', time_epoch_completed='1630809484.2', return_code='0', job_id='236456', GAL2='1.44', EG2='0.65', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.13e-08', ts2='7.90', photon_index='2.10' WHERE bin_id='1006' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:38:04 PDT 2021


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

Job <4FGL_J1159.5+2914_daily_bin1006> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 19:25:31 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:25:32 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:32 2021
Terminated at Sat Sep  4 19:38:04 2021
Results reported at Sat Sep  4 19:38:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1006 179.884 29.2448 500083201 500342401 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 :                                   739.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

