/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 6 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin64
RA = 179.884, Dec = 29.2448
tmin = 255916801, tmax = 256176001
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='230430', job_status='RUN', time_executed='2021-09-04 19:06:40.552309', time_epoch_executed='1630807600.55' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230430/ft1_4FGL_J1159.5+2914_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230430/ft2_4FGL_J1159.5+2914_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230430/ft1_4FGL_J1159.5+2914_daily_bin64.fits outfile=/scratch/kocevski/230430/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin64.fits ra=179.884 dec=29.2448 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.45
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230430/ft1_filtered_4FGL_J1159.5+2914_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/230430/ft2_4FGL_J1159.5+2914_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/230430/ltcube_255916801_256176001_4FGL_J1159.5+2914_daily_bin64.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/230430/ft2_4FGL_J1159.5+2914_daily_bin64.fits
.....................!
real 12.72
user 12.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230430/ft1_filtered_4FGL_J1159.5+2914_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/230430/ft2_4FGL_J1159.5+2914_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/230430/ltcube_255916801_256176001_4FGL_J1159.5+2914_daily_bin64.fits outfile=/scratch/kocevski/230430/expmap_255916801_256176001_4FGL_J1159.5+2914_daily_bin64.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/230430/ltcube_255916801_256176001_4FGL_J1159.5+2914_daily_bin64.fits
.....................!
real 190.32
user 185.11
sys 4.77

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/230430/ft1_filtered_4FGL_J1159.5+2914_daily_bin64.fits scfile=/scratch/kocevski/230430/ft2_4FGL_J1159.5+2914_daily_bin64.fits outfile=/scratch/kocevski/230430/cmap_255916801_256176001_4FGL_J1159.5+2914_daily_bin64.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230430/ft1_filtered_4FGL_J1159.5+2914_daily_bin64.fits scfile=/scratch/kocevski/230430/ft2_4FGL_J1159.5+2914_daily_bin64.fits outfile=/scratch/kocevski/230430/cmap_HighResolution_255916801_256176001_4FGL_J1159.5+2914_daily_bin64.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1778       1.0000         .10000E-03   10000.    
     2 'norm      '    8.9929       1.0000         .10000E-03   10000.    
     3 'norm      '    13.073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38856E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17257E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5743       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4893       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5685       1.0000         .10000E-03   10000.    
    21 'norm      '    4.5807       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14969E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.235       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .34630       1.0000         .10000E-03   10000.    
    27 'norm      '    .11099E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.698       1.0000         .10000E-03   10000.    
    29 'Prefactor '    61.104       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0879       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75257       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=   8300.864     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4166 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1777        2.3166       -.86493E-08   -.66913E-04
   2  norm          8.9927        10.978        .25085E-05    .48249E-03
   3  norm          13.071        8.7901        .70935E-07   -.88125E-04
   4  Prefactor     .10000E-03    3.6299        .72297E-07** at limit **
   5  Prefactor     1.7083        1.5301        .55320E-07   -.34832E-04
   6  Prefactor     .10000E-03    36.551        .26043E-06** at limit **
   7  Prefactor     .10017E-03    9.1824       -.17838E-05** at limit **
   8  norm          .10000E-03    .91367        .23601E-06** at limit **
   9  Prefactor     .10000E-03    5.6415        .16904E-06** at limit **
  10  Prefactor     .10000E-03    1.5380        .14171E-06** at limit **
  11  norm          2.6853        1.1300        .49285E-07   -.15788E-03
  12  Prefactor     .10003E-03    8.0268        .17484E-05** at limit **
  13  Prefactor     5.5725        8.3028       -.10336E-07   -.61985E-04
  14  Prefactor     .10000E-03    .39017        .65488E-07** at limit **
  15  Prefactor     22.318        19.968        .15511E-06   -.21637E-04
  16  Prefactor     .10000E-03    27.551        .81548E-07** at limit **
  17  norm          1.9582        1.0387        .42697E-07   -.50282E-03
  18  Prefactor     1.4902        3.4111        .14713E-05    .47746E-03
  19  Prefactor     .10000E-03    15.357        .48296E-06** at limit **
  20  Prefactor     1.5688        2.5319        .22475E-06    .13572E-03
  21  norm          4.5809        2.5353        .73126E-07    .39961E-04
  22  Prefactor     .10007E-03    5.2629       -.19127E-05** at limit **
  23  Prefactor     .10000E-03    1.0358        .42271E-08** at limit **
  24  Prefactor     11.235        2.8390        .23176E-07   -.21724E-03
  25  Prefactor     .10000E-03    .94006        .29042E-07** at limit **
  26  norm          .34631        .18256        .20346E-07   -.55440E-03
  27  norm          .10000E-03    1.1847        .21156E-06** at limit **
  28  Prefactor     19.700        10.101        .10396E-06   -.34807E-04
  29  Prefactor     61.046        64.277       -.34597E-06   -.15095E-03
  30  Normalizat    1.0878        .15441       -.48493E-06   -.34865E-03
  31  Prefactor     .75263        .16292       -.17516E-05   -.28553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17771
  norm       = 8.99265
  norm       = 13.0708
  Prefactor  = 0.0001
  Prefactor  = 1.70835
  Prefactor  = 0.0001
  Prefactor  = 0.000100169
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.68527
  Prefactor  = 0.000100032
  Prefactor  = 5.57254
  Prefactor  = 0.0001
  Prefactor  = 22.3182
  Prefactor  = 0.0001
  norm       = 1.9582
  Prefactor  = 1.49019
  Prefactor  = 0.0001
  Prefactor  = 1.56878
  norm       = 4.58091
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  Prefactor  = 11.2353
  Prefactor  = 0.0001
  norm       = 0.346312
  norm       = 0.0001
  Prefactor  = 19.6998
  Prefactor  = 61.0456
  Normalizat = 1.08778
  Prefactor  = 0.752629
 **********
 **   18 **HESSE 
 **********

 FCN=   8300.864     FROM HESSE     STATUS=OK           632 CALLS     4798 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1777        2.3170        .10044E-03   -1.5299    
   2  norm          8.9927        11.101        .66827E-03   -1.5108    
   3  norm          13.071        8.7894        .11078E-03   -1.4985    
   4  Prefactor     .10000E-03    3.6345        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7083        1.5068        .10169E-03   -1.5447    
   6  Prefactor     .10000E-03    36.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10017E-03    48.371        .47885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6540        .16663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5562        .11034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6853        1.1252        .60112E-04   -1.5380    
  12  Prefactor     .10003E-03    39.742        .46488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5725        8.2606        .17016E-03   -1.5236    
  14  Prefactor     .10000E-03    .39701        .55539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.318        20.013        .84796E-04   -1.4763    
  16  Prefactor     .10000E-03    27.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9582        1.0276        .63793E-04   -1.5428    
  18  Prefactor     1.4902        3.3761        .22776E-03   -1.5464    
  19  Prefactor     .10000E-03    15.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5688        2.4581        .16616E-03   -1.5457    
  21  norm          4.5809        2.5210        .10157E-03   -1.5280    
  22  Prefactor     .10007E-03    16.155        .33467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.0693        .18010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.235        2.8386        .70817E-04   -1.5037    
  25  Prefactor     .10000E-03    .94121        .86265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .34631        .17993        .26889E-04   -1.5590    
  27  norm          .10000E-03    3.7491        .19243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.700        10.096        .90245E-04   -1.4820    
  29  Prefactor     61.046        64.349        .25665E-03   -1.4144    
  30  Normalizat    1.0878        .17680        .23005E-03   -.90145    
  31  Prefactor     .75263        .18727        .30318E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1645e-09
Minuit parameter uncertainties:
  1  2.31701
  2  11.1033
  3  8.79025
  4  5.26716e-06
  5  1.5068
  6  8.15992e-05
  7  0.00571553
  8  1.75347e-06
  9  2.65354e-05
  10  7.63981e-06
  11  1.12519
  12  0.00225069
  13  8.26229
  14  1.15926e-06
  15  20.0186
  16  1.95138e-05
  17  1.0276
  18  3.37653
  19  0.000114402
  20  2.45828
  21  2.52103
  22  0.00210292
  23  1.55208e-06
  24  2.83859
  25  1.09096e-06
  26  0.179935
  27  1.9893e-05
  28  10.0967
  29  64.4227
  30  0.1769
  31  0.187423
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.958e+00  1.028e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  7.526e-01  1.874e-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.088e+00  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.93
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.25e-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) = 8300.40681055
delta logL = 0.457351653116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8300.39464522
delta logL = 0.469516982916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9005       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8300.395     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9015        1.0341        .54346E-04    .14058E-03
   2  alpha         2.6564        .60660        .14093E-01    .16397E-03
   3  Normalizat    1.0430        .17549        .23413E-03    .28843E-04
   4  Prefactor     .78628        .19166        .29720E-03    .52482E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.90151
  alpha      = 2.65639
  Normalizat = 1.04303
  Prefactor  = 0.786279
 **********
 **   18 **HESSE 
 **********

 FCN=   8300.395     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9015        1.0075        .21738E-05   -1.5432    
   2  alpha         2.6564        .59060        .28186E-02    .62595E-01
   3  Normalizat    1.0430        .17542        .93651E-05   -.91603    
   4  Prefactor     .78628        .19157        .11888E-04   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1911e-11
Minuit parameter uncertainties:
  1  1.00747
  2  0.596264
  3  0.175517
  4  0.191729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230430': 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) = 8300.39464263
delta logL = 0.469519579246

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.902e+00  1.007e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.656e+00  5.963e-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:  7.863e-01  1.917e-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.043e+00  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.85
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.66 +/- 0.60
Photon Flux (Free Index): 8.53e-08 +/- 4.87e-08
Energy Flux (Free Index): 2.11e-05 +/- 9.75e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='2.11e-05', photon_flux_error='2.79e-08', dlogl='4.70e-01', energy_flux='2.38e-05', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-09-04 19:22:45.453405', photon_index_error2='0.60', photon_index2='2.66', ts='6.93', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='9.75e-06', EG='1.09', time_epoch_completed='1630808565.45', return_code='0', job_id='230430', GAL2='0.79', EG2='1.04', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.87e-08', ts2='7.85', photon_index='2.10' WHERE bin_id='64' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:22:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 230430: <4FGL_J1159.5+2914_daily_bin64> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin64> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:23 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06:25 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:06:25 2021
Terminated at Sat Sep  4 19:22:46 2021
Results reported at Sat Sep  4 19:22:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin64 179.884 29.2448 255916801 256176001 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 :                                   959.00 sec.
    Max Memory :                                 1235 MB
    Average Memory :                             361.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

