/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 57 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 = 7609
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1533
RA = 179.884, Dec = 29.2448
tmin = 636681601, tmax = 636940801
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='237984', job_status='RUN', time_executed='2021-09-04 19:32:29.450321', time_epoch_executed='1630809149.45' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237984

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237984/ft1_4FGL_J1159.5+2914_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237984/ft2_4FGL_J1159.5+2914_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237984/ft1_4FGL_J1159.5+2914_daily_bin1533.fits outfile=/scratch/kocevski/237984/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1533.fits ra=179.884 dec=29.2448 rad=12.0 tmin=636681601.0 tmax=636940801.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.21
user 4.86
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237984/ft1_filtered_4FGL_J1159.5+2914_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/237984/ft2_4FGL_J1159.5+2914_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/237984/ltcube_636681601_636940801_4FGL_J1159.5+2914_daily_bin1533.fits outfile=/scratch/kocevski/237984/expmap_636681601_636940801_4FGL_J1159.5+2914_daily_bin1533.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/237984/ltcube_636681601_636940801_4FGL_J1159.5+2914_daily_bin1533.fits
.....................!
real 189.63
user 185.14
sys 3.93

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/237984/ft1_filtered_4FGL_J1159.5+2914_daily_bin1533.fits scfile=/scratch/kocevski/237984/ft2_4FGL_J1159.5+2914_daily_bin1533.fits outfile=/scratch/kocevski/237984/cmap_636681601_636940801_4FGL_J1159.5+2914_daily_bin1533.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63945       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7811       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.756       1.0000         .10000E-03   10000.    
     8 'norm      '    5.3624       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33463E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2847       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3760       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1119       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8258       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16301E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    7.4058       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13754E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .89906       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0726       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.105       1.0000         .10000E-03   10000.    
    29 'Prefactor '    60.111       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96816       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3102       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=   5791.620     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4305 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63535        3.4224       -.36161E-06   -.26011E-03
   2  norm          .10000E-03    6.7123        .86553E-07** at limit **
   3  norm          3.9808        24.640        .30050E-05    .51571E-04
   4  Prefactor     .10000E-03    8.7186       -.14028E-06** at limit **
   5  Prefactor     3.6543        5.4139       -.33236E-06   -.15300E-03
   6  Prefactor     5.7934        524.30        .57168E-05    .85529E-05
   7  Prefactor     20.704        26.138        .48395E-05    .43644E-04
   8  norm          5.3618        4.6585       -.11605E-06   -.68253E-04
   9  Prefactor     .10005E-03    16.119       -.46524E-05** at limit **
  10  Prefactor     6.2827        7.6062        .93858E-06    .99928E-04
  11  norm          3.5018        1.5286       -.35932E-07    .10877E-03
  12  Prefactor     9.3682        26.001        .12424E-06    .10869E-04
  13  Prefactor     .10000E-03    22.101        .54273E-05** at limit **
  14  Prefactor     .10000E-03    .82664       -.42456E-07** at limit **
  15  Prefactor     12.797        25.361        .72557E-06    .13640E-04
  16  Prefactor     .10000E-03    25.638       -.83854E-05** at limit **
  17  norm          6.1117        2.0009        .35963E-07    .74794E-04
  18  Prefactor     2.8265        4.4065       -.30150E-06    .11983E-03
  19  Prefactor     .10000E-03    39.682        .48295E-05** at limit **
  20  Prefactor     .11699E-01    2.1168       -.12743E-05    .18486E-02
  21  norm          7.4087        3.9854       -.19042E-06   -.81945E-04
  22  Prefactor     .10000E-03    3.5210       -.23881E-07** at limit **
  23  Prefactor     .10000E-03    1.7425       -.15717E-06** at limit **
  24  Prefactor     .89945        2.2638        .33454E-06    .74388E-04
  25  Prefactor     7.0724        7.0311       -.18570E-06   -.11244E-04
  26  norm          .10000E-03    .13423        .22260E-08** at limit **
  27  norm          .10000E-03    2.3941       -.34569E-08** at limit **
  28  Prefactor     10.105        9.3547       -.22297E-06   -.16861E-04
  29  Prefactor     60.112        69.032       -.94583E-07    .18432E-05
  30  Normalizat    .96812        .22262        .10924E-05    .19553E-03
  31  Prefactor     1.3103        .22946       -.86801E-07    .22880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.635354
  norm       = 0.0001
  norm       = 3.98078
  Prefactor  = 0.0001
  Prefactor  = 3.6543
  Prefactor  = 5.79336
  Prefactor  = 20.7045
  norm       = 5.36183
  Prefactor  = 0.000100045
  Prefactor  = 6.28272
  norm       = 3.5018
  Prefactor  = 9.36815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7972
  Prefactor  = 0.000100002
  norm       = 6.11173
  Prefactor  = 2.82654
  Prefactor  = 0.0001
  Prefactor  = 0.0116993
  norm       = 7.40869
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.899449
  Prefactor  = 7.07237
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1048
  Prefactor  = 60.1116
  Normalizat = 0.968119
  Prefactor  = 1.31027
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.620     FROM HESSE     STATUS=OK           646 CALLS     4951 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63535        10.301        .26057E-02   -1.5549    
   2  norm          .10000E-03    6.7199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9808        24.122        .20189E-03   -1.5309    
   4  Prefactor     .10000E-03    8.7299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6543        5.1909        .12858E-03   -1.5326    
   6  Prefactor     5.7934        472.56        .16704E-03   -1.5227    
   7  Prefactor     20.704        26.727        .87916E-04   -1.4798    
   8  norm          5.3618        4.5520        .11715E-03   -1.5245    
   9  Prefactor     .10005E-03    96.030        .52194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2827        7.5735        .16012E-03   -1.5207    
  11  norm          3.5018        1.5275        .59570E-04   -1.5334    
  12  Prefactor     9.3682        26.029        .13088E-03   -1.5096    
  13  Prefactor     .10000E-03    22.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .83333        .67463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.797        25.357        .11200E-03   -1.4992    
  16  Prefactor     .10000E-03    25.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1117        1.9984        .57981E-04   -1.5213    
  18  Prefactor     2.8265        4.4054        .18768E-03   -1.5372    
  19  Prefactor     .10000E-03    39.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11699E-01    3.8844        .36229E-01   -1.5686    
  21  norm          7.4087        3.7399        .99645E-04   -1.5164    
  22  Prefactor     .10000E-03    3.5286        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.9425        .18210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .89945        1.8703        .16521E-02   -1.5518    
  25  Prefactor     7.0724        7.0032        .15084E-03   -1.5176    
  26  norm          .10000E-03    .16909        .53830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.4058        .11486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.105        9.3267        .12605E-03   -1.5072    
  29  Prefactor     60.112        69.046        .51750E-04   -1.4156    
  30  Normalizat    .96812        .26559        .29421E-03   -.94106    
  31  Prefactor     1.3103        .27637        .28775E-03   -.83002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56289e-09
Minuit parameter uncertainties:
  1  5.11707
  2  1.57528e-06
  3  19.6101
  4  1.34457e-05
  5  5.19158
  6  105.519
  7  26.7428
  8  4.55234
  9  0.00418402
  10  7.57467
  11  1.52748
  12  26.0601
  13  0.000117528
  14  1.76477e-06
  15  25.378
  16  0.000453722
  17  1.99842
  18  4.40589
  19  0.000240863
  20  0.424559
  21  3.74006
  22  4.64e-06
  23  0.000111347
  24  1.8704
  25  7.00403
  26  1.62288e-07
  27  2.13084e-07
  28  9.32807
  29  69.1386
  30  0.265956
  31  0.276677
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.112e+00  1.998e+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.310e+00  2.767e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.681e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.21
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 5.42e-08
Energy Flux (Fixed Index): 7.43e-05 +/- 2.43e-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) = 5791.59470581
delta logL = 0.025575691282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5791.59290067
delta logL = 0.0273808294533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0534       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0326       1.0000          .0000       5.0000    
     3 'Normalizat'    .97897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3026       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=   5791.593     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      202 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0534        2.0236        .40797E-02    .27504E-03
   2  alpha         2.0326        .28844        .19825        .12575E-05
   3  Normalizat    .97896        .20568        .66198E-01    .41685E-04
   4  Prefactor     1.3026        .22874        .65219E-01   -.53751E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.05341
  alpha      = 2.03264
  Normalizat = 0.978963
  Prefactor  = 1.30257
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.593     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0534        1.9959        .58275E-04   -1.5216    
   2  alpha         2.0326        .29822        .83715E-02   -.18805    
   3  Normalizat    .97896        .24823        .29281E-03   -.93739    
   4  Prefactor     1.3026        .27516        .28848E-03   -.83231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32247e-11
Minuit parameter uncertainties:
  1  1.99593
  2  0.298961
  3  0.248522
  4  0.275469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237984': 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) = 5791.59290067
delta logL = 0.0273808312941

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.053e+00  1.996e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.033e+00  2.990e-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.303e+00  2.755e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.790e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.16
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.03 +/- 0.30
Photon Flux (Free Index): 1.56e-07 +/- 6.53e-08
Energy Flux (Free Index): 7.84e-05 +/- 3.18e-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/237984/cmap_HighResolution_636681601_636940801_4FGL_J1159.5+2914_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='7.84e-05', photon_flux_error='5.42e-08', dlogl='2.74e-02', energy_flux='7.43e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-04 19:46:32.948985', photon_index_error2='0.30', photon_index2='2.03', ts='25.21', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='3.18e-05', EG='0.97', time_epoch_completed='1630809992.95', return_code='0', job_id='237984', GAL2='1.30', EG2='0.98', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='6.53e-08', ts2='25.16', photon_index='2.10' WHERE bin_id='1533' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:46:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 237984: <4FGL_J1159.5+2914_daily_bin1533> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1533> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:30:58 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:30:59 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:30:59 2021
Terminated at Sat Sep  4 19:46:33 2021
Results reported at Sat Sep  4 19:46:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1533 179.884 29.2448 636681601 636940801 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 :                                   758.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

