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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin979
RA = 179.884, Dec = 29.2448
tmin = 493084801, tmax = 493344001
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='236415', job_status='RUN', time_executed='2021-09-04 19:29:35.155192', time_epoch_executed='1630808975.16' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236415/ft1_4FGL_J1159.5+2914_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236415/ft2_4FGL_J1159.5+2914_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236415/ft1_4FGL_J1159.5+2914_daily_bin979.fits outfile=/scratch/kocevski/236415/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin979.fits ra=179.884 dec=29.2448 rad=12.0 tmin=493084801.0 tmax=493344001.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.62
user 3.35
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236415/ft1_filtered_4FGL_J1159.5+2914_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/236415/ft2_4FGL_J1159.5+2914_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/236415/ltcube_493084801_493344001_4FGL_J1159.5+2914_daily_bin979.fits outfile=/scratch/kocevski/236415/expmap_493084801_493344001_4FGL_J1159.5+2914_daily_bin979.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/236415/ltcube_493084801_493344001_4FGL_J1159.5+2914_daily_bin979.fits
.....................!
real 191.38
user 185.66
sys 5.32

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/236415/ft1_filtered_4FGL_J1159.5+2914_daily_bin979.fits scfile=/scratch/kocevski/236415/ft2_4FGL_J1159.5+2914_daily_bin979.fits outfile=/scratch/kocevski/236415/cmap_493084801_493344001_4FGL_J1159.5+2914_daily_bin979.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236415/ft1_filtered_4FGL_J1159.5+2914_daily_bin979.fits scfile=/scratch/kocevski/236415/ft2_4FGL_J1159.5+2914_daily_bin979.fits outfile=/scratch/kocevski/236415/cmap_HighResolution_493084801_493344001_4FGL_J1159.5+2914_daily_bin979.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2437       1.0000         .10000E-03   10000.    
     2 'norm      '    9.4854       1.0000         .10000E-03   10000.    
     3 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4405       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4283       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .69612       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .94752       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8664       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8668       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0734       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.405       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    19.288       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5606       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4970       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1053       1.0000         .10000E-03   10000.    
    27 'norm      '    15.771       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.141       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81945       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4893.463     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     3398 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2462        4.4615       -.81703E-06   -.23874E-02
   2  norm          9.4888        1.0267        .52698E-07   -.56650E-04
   3  norm          .10000E-03    8.5725       -.37116E-06** at limit **
   4  Prefactor     18.366        1.0716       -.11164E-06    .10516E-02
   5  Prefactor     .10000E-03    .57564       -.10996E-06** at limit **
   6  Prefactor     17.924        1.7795       -.49655E-06    .44608E-02
   7  Prefactor     1.4459        3.9419        .49153E-05   -.29194E-02
   8  norm          1.1866        1.4140       -.20522E-07   -.58809E-04
   9  Prefactor     3.4007        1.6431       -.30319E-06    .95301E-03
  10  Prefactor     .10000E-03    1.3979       -.61340E-06** at limit **
  11  norm          .69610        .65469       -.38405E-08    .49488E-04
  12  Prefactor     .10001E-03    13.157       -.65099E-06** at limit **
  13  Prefactor     12.367        1.0109        .17753E-07   -.57493E-03
  14  Prefactor     .94806        1.7685       -.28436E-06    .29749E-04
  15  Prefactor     8.8675        1.0213        .91412E-07   -.21106E-03
  16  Prefactor     5.8662        1.0145       -.94870E-07    .32370E-03
  17  norm          3.0089        1.2533       -.25237E-08    .21582E-04
  18  Prefactor     1.0729        3.3677       -.37098E-05   -.22489E-02
  19  Prefactor     33.412        1.9188        .43923E-06   -.76329E-02
  20  Prefactor     .10000E-03    1.1785       -.17995E-08** at limit **
  21  norm          19.289        1.5067       -.45936E-06   -.28868E-02
  22  Prefactor     6.5590        1.0154       -.92128E-08    .23266E-03
  23  Prefactor     1.4968        2.3926       -.26437E-05   -.31574E-02
  24  Prefactor     .10000E-03    .87278       -.15807E-06** at limit **
  25  Prefactor     .10000E-03    2.1479       -.24640E-06** at limit **
  26  norm          1.1053        .31839        .41550E-08    .50374E-04
  27  norm          15.770        1.0179        .86172E-08    .35835E-03
  28  Prefactor     14.141        1.0061       -.19532E-07   -.44896E-04
  29  Prefactor     .10009E-03    35.334       -.10151E-05** at limit **
  30  Normalizat    .81938        .20943       -.66212E-07    .62467E-04
  31  Prefactor     .83044        .24199        .22066E-05    .63417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.2462
  norm       = 9.48882
  norm       = 0.000100001
  Prefactor  = 18.366
  Prefactor  = 0.0001
  Prefactor  = 17.9236
  Prefactor  = 1.44586
  norm       = 1.1866
  Prefactor  = 3.40072
  Prefactor  = 0.0001
  norm       = 0.696105
  Prefactor  = 0.000100006
  Prefactor  = 12.3669
  Prefactor  = 0.948063
  Prefactor  = 8.86752
  Prefactor  = 5.86623
  norm       = 3.00893
  Prefactor  = 1.07294
  Prefactor  = 33.4122
  Prefactor  = 0.0001
  norm       = 19.2887
  Prefactor  = 6.55901
  Prefactor  = 1.4968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10529
  norm       = 15.7703
  Prefactor  = 14.1406
  Prefactor  = 0.000100093
  Normalizat = 0.819378
  Prefactor  = 0.830436
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.463     FROM HESSE     STATUS=OK           696 CALLS     4094 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2462        4.5377        .56222E-02   -1.5348    
   2  norm          9.4888        14.269        .32530E-02   -1.5092    
   3  norm          .10000E-03    8.4805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.366        16.061        .23362E-02   -1.4851    
   5  Prefactor     .10000E-03    .57235        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.924        18.398        .23644E-02   -1.4861    
   7  Prefactor     1.4459        85.279        .89862E-02   -1.5467    
   8  norm          1.1866        1.4377        .10469E-01   -1.5490    
   9  Prefactor     3.4007        18.548        .54615E-02   -1.5339    
  10  Prefactor     .10000E-03    1.3943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .69610        .69379        .12047E-01   -1.5541    
  12  Prefactor     .10001E-03    13.117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.367        10.631        .28476E-02   -1.5004    
  14  Prefactor     .94806        1.8169        .12979E-01   -1.5513    
  15  Prefactor     8.8675        21.436        .33652E-02   -1.5112    
  16  Prefactor     5.8662        29.712        .41450E-02   -1.5224    
  17  norm          3.0089        1.2588        .58497E-02   -1.5361    
  18  Prefactor     1.0729        3.5412        .11692E-01   -1.5501    
  19  Prefactor     33.412        32.969        .17333E-02   -1.4551    
  20  Prefactor     .10000E-03    1.1623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          19.289        5.5618        .22800E-02   -1.4829    
  22  Prefactor     6.5590        6.6376        .39169E-02   -1.5196    
  23  Prefactor     1.4968        3.2214        .87529E-02   -1.5463    
  24  Prefactor     .10000E-03    .86113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1438        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1053        .32075        .45945E-02   -1.5498    
  27  norm          15.770        6.1535        .25213E-02   -1.4914    
  28  Prefactor     14.141        12.000        .26628E-02   -1.4956    
  29  Prefactor     .10009E-03    35.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81938        .18707        .43864E-01   -.99354    
  31  Prefactor     .83044        .20649        .63193E-01   -.98616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89739e-07
Minuit parameter uncertainties:
  1  4.53821
  2  14.2737
  3  0.000138451
  4  16.0647
  5  1.03854e-06
  6  18.4036
  7  22.2408
  8  1.43772
  9  15.8917
  10  9.06742e-06
  11  0.693802
  12  0.000558423
  13  10.6326
  14  1.81701
  15  21.4549
  16  26.4251
  17  1.25884
  18  3.54191
  19  32.987
  20  8.0053e-07
  21  5.56194
  22  6.6383
  23  3.22177
  24  1.84713e-06
  25  7.80585e-06
  26  0.320748
  27  6.15378
  28  12.0017
  29  0.00364457
  30  0.187221
  31  0.206678
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.009e+00  1.259e+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.304e-01  2.067e-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:  8.194e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.22
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 8.17e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.53e-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) = 4893.34654438
delta logL = 0.116513769418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4893.33702888
delta logL = 0.126029268157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8660       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2953       1.0000          .0000       5.0000    
     3 'Normalizat'    .80780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83973       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=   4893.337     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8660        1.2599        .46597E-04    .18267E-02
   2  alpha         2.2953        .39484        .95292E-02    .82774E-04
   3  Normalizat    .80779        .20758        .24327E-03   -.41032E-04
   4  Prefactor     .83974        .24145        .27788E-03    .13787E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.86601
  alpha      = 2.29534
  Normalizat = 0.807789
  Prefactor  = 0.839738
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.337     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8660        1.2498        .18639E-05   -1.5369    
   2  alpha         2.2953        .39164        .38117E-03   -.81954E-01
   3  Normalizat    .80779        .20777        .97307E-05   -.99780    
   4  Prefactor     .83974        .24166        .11115E-04   -.98280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53213e-10
Minuit parameter uncertainties:
  1  1.24977
  2  0.393267
  3  0.207977
  4  0.241964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236415': 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) = 4893.33702887
delta logL = 0.126029279719

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.866e+00  1.250e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.295e+00  3.933e-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.397e-01  2.420e-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:  8.078e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.38
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.30 +/- 0.39
Photon Flux (Free Index): 9.10e-08 +/- 4.08e-08
Energy Flux (Free Index): 3.14e-05 +/- 1.55e-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/236415/cmap_HighResolution_493084801_493344001_4FGL_J1159.5+2914_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.17e-08', energy_flux2='3.14e-05', photon_flux_error='3.42e-08', dlogl='1.26e-01', energy_flux='3.66e-05', photon_flux2='9.10e-08', job_status='DONE', time_completed='2021-09-04 19:40:39.582933', photon_index_error2='0.39', photon_index2='2.30', ts='12.22', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.82', time_epoch_completed='1630809639.58', return_code='0', job_id='236415', GAL2='0.84', EG2='0.81', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.08e-08', ts2='12.38', photon_index='2.10' WHERE bin_id='979' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:40:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 236415: <4FGL_J1159.5+2914_daily_bin979> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin979 179.884 29.2448 493084801 493344001 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 :                                   662.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

