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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1093
RA = 179.884, Dec = 29.2448
tmin = 522633601, tmax = 522892801
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='236606', job_status='RUN', time_executed='2021-09-04 19:25:58.734403', time_epoch_executed='1630808758.73' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236606/ft1_4FGL_J1159.5+2914_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236606/ft2_4FGL_J1159.5+2914_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236606/ft1_4FGL_J1159.5+2914_daily_bin1093.fits outfile=/scratch/kocevski/236606/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1093.fits ra=179.884 dec=29.2448 rad=12.0 tmin=522633601.0 tmax=522892801.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.54
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236606/ft2_4FGL_J1159.5+2914_daily_bin1093.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/236606/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1093.fits evtable="EVENTS" outfile="/scratch/kocevski/236606/ft1_filtered_4FGL_J1159.5+2914_daily_bin1093.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236606/ft1_filtered_4FGL_J1159.5+2914_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/236606/ft2_4FGL_J1159.5+2914_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/236606/ltcube_522633601_522892801_4FGL_J1159.5+2914_daily_bin1093.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/236606/ft2_4FGL_J1159.5+2914_daily_bin1093.fits
.....................!
real 11.79
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236606/ft1_filtered_4FGL_J1159.5+2914_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/236606/ft2_4FGL_J1159.5+2914_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/236606/ltcube_522633601_522892801_4FGL_J1159.5+2914_daily_bin1093.fits outfile=/scratch/kocevski/236606/expmap_522633601_522892801_4FGL_J1159.5+2914_daily_bin1093.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/236606/ltcube_522633601_522892801_4FGL_J1159.5+2914_daily_bin1093.fits
.....................!
real 190.85
user 186.30
sys 4.18

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/236606/ft1_filtered_4FGL_J1159.5+2914_daily_bin1093.fits scfile=/scratch/kocevski/236606/ft2_4FGL_J1159.5+2914_daily_bin1093.fits outfile=/scratch/kocevski/236606/cmap_522633601_522892801_4FGL_J1159.5+2914_daily_bin1093.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236606/ft1_filtered_4FGL_J1159.5+2914_daily_bin1093.fits scfile=/scratch/kocevski/236606/ft2_4FGL_J1159.5+2914_daily_bin1093.fits outfile=/scratch/kocevski/236606/cmap_HighResolution_522633601_522892801_4FGL_J1159.5+2914_daily_bin1093.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2697       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0781       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7197       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3464       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.181       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3926       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10880E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5510       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2862       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .86932       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6240       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5927       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.376       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.8049       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2998       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .61614       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=   6466.783     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     4299 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5848       -.31238E-07** at limit **
   2  norm          .10000E-03    10.280        .24209E-06** at limit **
   3  norm          5.2727        10.707        .31119E-05   -.92779E-03
   4  Prefactor     .10000E-03    10.671       -.23388E-06** at limit **
   5  Prefactor     .10000E-03    1.6082       -.84061E-07** at limit **
   6  Prefactor     .10000E-03    24.940       -.16636E-06** at limit **
   7  Prefactor     .10000E-03    9.0792        .17915E-06** at limit **
   8  norm          3.0790        2.7012       -.26392E-07   -.20035E-03
   9  Prefactor     7.9727        11.459        .51313E-08   -.25720E-04
  10  Prefactor     1.7224        5.9114        .30744E-05    .18763E-03
  11  norm          2.5469        1.3380        .15961E-07   -.28544E-03
  12  Prefactor     34.289        29.811        .23843E-07   -.21124E-04
  13  Prefactor     .10000E-03    5.2663        .11526E-06** at limit **
  14  Prefactor     4.3470        2.8256        .20705E-07   -.25371E-03
  15  Prefactor     44.181        38.049        .16663E-05    .14695E-03
  16  Prefactor     .10000E-03    18.371        .26068E-06** at limit **
  17  norm          10.181        2.1613       -.23252E-10   -.34932E-03
  18  Prefactor     3.3911        5.3781        .12848E-05    .17076E-03
  19  Prefactor     .10003E-03    152.48        .93626E-05** at limit **
  20  Prefactor     .10000E-03    2.2183        .21771E-07** at limit **
  21  norm          8.5511        3.7223       -.14385E-06   -.28793E-03
  22  Prefactor     4.2876        6.3993        .87694E-07   -.16233E-03
  23  Prefactor     .86978        2.1926        .44944E-06   -.14715E-03
  24  Prefactor     5.6246        2.9802        .10672E-06   -.70909E-04
  25  Prefactor     1.5927        4.9352       -.36347E-06   -.68478E-03
  26  norm          .10000E-03    .11077        .33849E-07** at limit **
  27  norm          15.375        6.6244       -.16920E-06   -.55223E-03
  28  Prefactor     7.8059        8.2817        .53169E-07   -.60054E-04
  29  Prefactor     .10006E-03    161.85       -.11839E-04** at limit **
  30  Normalizat    1.2995        .20018       -.13895E-05   -.11487E-03
  31  Prefactor     .61620        .20132       -.71489E-06   -.13795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 5.2727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07903
  Prefactor  = 7.9727
  Prefactor  = 1.72241
  norm       = 2.54685
  Prefactor  = 34.2893
  Prefactor  = 0.0001
  Prefactor  = 4.34699
  Prefactor  = 44.1806
  Prefactor  = 0.0001
  norm       = 10.1812
  Prefactor  = 3.39108
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 8.55112
  Prefactor  = 4.28763
  Prefactor  = 0.869775
  Prefactor  = 5.62461
  Prefactor  = 1.5927
  norm       = 0.0001
  norm       = 15.3753
  Prefactor  = 7.80588
  Prefactor  = 0.000100061
  Normalizat = 1.29953
  Prefactor  = 0.616203
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.783     FROM HESSE     STATUS=OK           630 CALLS     4929 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6640        .25238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    58.508        .49757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2727        12.725        .87546E-03   -1.5249    
   4  Prefactor     .10000E-03    10.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6765        .19176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0790        2.6573        .11669E-03   -1.5357    
   9  Prefactor     7.9727        11.441        .14202E-03   -1.5143    
  10  Prefactor     1.7224        5.8482        .32035E-03   -1.5445    
  11  norm          2.5469        1.3376        .64344E-04   -1.5389    
  12  Prefactor     34.289        29.837        .68441E-04   -1.4536    
  13  Prefactor     .10000E-03    5.2835        .18020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3470        2.8140        .96748E-04   -1.5291    
  15  Prefactor     44.181        37.963        .60322E-04   -1.4378    
  16  Prefactor     .10000E-03    18.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.181        2.1622        .51009E-04   -1.5070    
  18  Prefactor     3.3911        5.2808        .21268E-03   -1.5340    
  19  Prefactor     .10003E-03    156.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5019        .22686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.5511        3.6431        .89796E-04   -1.5123    
  22  Prefactor     4.2876        6.4019        .19460E-03   -1.5294    
  23  Prefactor     .86978        1.8570        .16684E-02   -1.5521    
  24  Prefactor     5.6246        2.9459        .92755E-04   -1.5234    
  25  Prefactor     1.5927        5.0637        .30441E-03   -1.5456    
  26  norm          .10000E-03    .14864        .51765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.375        6.5841        .10214E-03   -1.4924    
  28  Prefactor     7.8059        8.2687        .14353E-03   -1.5149    
  29  Prefactor     .10006E-03    168.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2995        .23403        .24649E-03   -.83580    
  31  Prefactor     .61620        .23102        .36562E-03   -1.0691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08522e-08
Minuit parameter uncertainties:
  1  2.83949e-06
  2  0.000840116
  3  12.7316
  4  2.42129e-05
  5  7.28158e-05
  6  5.23095e-05
  7  1.23828e-05
  8  2.65739
  9  11.4438
  10  5.85017
  11  1.33762
  12  29.8499
  13  7.08956e-06
  14  2.81413
  15  37.9834
  16  4.93964e-05
  17  2.1622
  18  5.28155
  19  0.00412649
  20  5.38242e-05
  21  3.64315
  22  6.40296
  23  1.85715
  24  2.94596
  25  5.06502
  26  1.96264e-06
  27  6.58445
  28  8.26994
  29  0.00641429
  30  0.234225
  31  0.231379
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.018e+01  2.162e+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:  6.162e-01  2.314e-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.300e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 76.01
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.76e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 1.24e-04 +/- 2.63e-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) = 6466.75570136
delta logL = 0.027743904624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6466.75434721
delta logL = 0.0290980571963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.181       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1521       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62271       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=   6466.754     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      195 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.190        2.2189        .31394E-02    .53640E-05
   2  alpha         2.1521        .20946        .14225        .38307E-05
   3  Normalizat    1.2898        .18838        .55895E-01   -.49070E-05
   4  Prefactor     .62277        .19833        .82132E-01    .25192E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1896
  alpha      = 2.15211
  Normalizat = 1.28976
  Prefactor  = 0.622765
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.754     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.190        2.1022        .50612E-04   -1.5069    
   2  alpha         2.1521        .20279        .61647E-03   -.13961    
   3  Normalizat    1.2898        .21890        .24716E-03   -.83873    
   4  Prefactor     .62277        .22878        .36378E-03   -1.0664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64041e-13
Minuit parameter uncertainties:
  1  2.10221
  2  0.20302
  3  0.219059
  4  0.229126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236606': 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) = 6466.75433944
delta logL = 0.0291058302464

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.019e+01  2.102e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.152e+00  2.030e-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:  6.228e-01  2.291e-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.290e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.78
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.15 +/- 0.20
Photon Flux (Free Index): 2.87e-07 +/- 7.41e-08
Energy Flux (Free Index): 1.20e-04 +/- 2.97e-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/236606/cmap_HighResolution_522633601_522892801_4FGL_J1159.5+2914_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.76e-07', energy_flux2='1.20e-04', photon_flux_error='5.87e-08', dlogl='2.91e-02', energy_flux='1.24e-04', photon_flux2='2.87e-07', job_status='DONE', time_completed='2021-09-04 19:39:58.106523', photon_index_error2='0.20', photon_index2='2.15', ts='76.01', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='1.30', time_epoch_completed='1630809598.11', return_code='0', job_id='236606', GAL2='0.62', EG2='1.29', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='7.41e-08', ts2='75.78', photon_index='2.10' WHERE bin_id='1093' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:39:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 236606: <4FGL_J1159.5+2914_daily_bin1093> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1093 179.884 29.2448 522633601 522892801 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 :                                   833.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

