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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin998
RA = 179.884, Dec = 29.2448
tmin = 498009601, tmax = 498268801
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='236444', job_status='RUN', time_executed='2021-09-04 19:25:40.639948', time_epoch_executed='1630808740.64' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236444/ft1_4FGL_J1159.5+2914_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236444/ft2_4FGL_J1159.5+2914_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236444/ft1_4FGL_J1159.5+2914_daily_bin998.fits outfile=/scratch/kocevski/236444/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin998.fits ra=179.884 dec=29.2448 rad=12.0 tmin=498009601.0 tmax=498268801.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 7.95
user 7.66
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236444/ft1_filtered_4FGL_J1159.5+2914_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/236444/ft2_4FGL_J1159.5+2914_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/236444/ltcube_498009601_498268801_4FGL_J1159.5+2914_daily_bin998.fits outfile=/scratch/kocevski/236444/expmap_498009601_498268801_4FGL_J1159.5+2914_daily_bin998.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/236444/ltcube_498009601_498268801_4FGL_J1159.5+2914_daily_bin998.fits
.....................!
real 193.03
user 187.02
sys 5.69

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/236444/ft1_filtered_4FGL_J1159.5+2914_daily_bin998.fits scfile=/scratch/kocevski/236444/ft2_4FGL_J1159.5+2914_daily_bin998.fits outfile=/scratch/kocevski/236444/cmap_498009601_498268801_4FGL_J1159.5+2914_daily_bin998.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.52
user 0.37
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6959       1.0000         .10000E-03   10000.    
     2 'norm      '    .19655E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1322       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11341E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11055E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37351       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1242       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.993       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50332E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6541       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8952       1.0000         .10000E-03   10000.    
    26 'norm      '    .30066       1.0000         .10000E-03   10000.    
    27 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .26723E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .15748E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .80308       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0438       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=   4795.985     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4252 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6958        4.9016        .25421E-06   -.42701E-04
   2  norm          .10000E-03    20.116       -.31155E-06** at limit **
   3  norm          4.1325        9.1397        .67028E-06   -.26256E-04
   4  Prefactor     .10000E-03    20.545       -.22390E-06** at limit **
   5  Prefactor     1.4704        2.6386        .10903E-05    .10906E-03
   6  Prefactor     11.663        53.248       -.48641E-05   -.17392E-04
   7  Prefactor     .10000E-03    6.0998        .56876E-07** at limit **
   8  norm          3.5061        2.8377        .18621E-07   -.44963E-03
   9  Prefactor     .10000E-03    5.8262        .22890E-06** at limit **
  10  Prefactor     .38416        4.1865        .17625E-05   -.87253E-03
  11  norm          .10000E-03    .37033       -.38259E-07** at limit **
  12  Prefactor     8.1028        18.790       -.27081E-05   -.47575E-03
  13  Prefactor     .10000E-03    7.3749       -.11356E-06** at limit **
  14  Prefactor     .10000E-03    1.9741        .16992E-05** at limit **
  15  Prefactor     16.956        27.326        .17638E-06   -.10583E-03
  16  Prefactor     .10000E-03    45.994       -.16042E-06** at limit **
  17  norm          2.4002        1.3600        .10624E-06   -.43614E-03
  18  Prefactor     .10000E-03    .82791       -.96700E-08** at limit **
  19  Prefactor     .10000E-03    16.254        .60735E-06** at limit **
  20  Prefactor     .10000E-03    .75988       -.20049E-07** at limit **
  21  norm          13.778        4.4496        .52638E-07    .28820E-03
  22  Prefactor     .10000E-03    7.7615        .77559E-06** at limit **
  23  Prefactor     .10000E-03    1.4979       -.14180E-06** at limit **
  24  Prefactor     2.6552        2.2257        .66003E-06    .10005E-02
  25  Prefactor     2.8952        4.8717        .42275E-06    .10263E-03
  26  norm          .30070        .22066        .36826E-07    .18902E-04
  27  norm          .10000E-03    4.8375       -.40767E-06** at limit **
  28  Prefactor     .10004E-03    9.4363       -.29541E-05** at limit **
  29  Prefactor     .10000E-03    246.74       -.60293E-06** at limit **
  30  Normalizat    .80293        .19780       -.34462E-05   -.57773E-03
  31  Prefactor     1.0438        .21591        .14732E-05   -.54170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69584
  norm       = 0.0001
  norm       = 4.13249
  Prefactor  = 0.0001
  Prefactor  = 1.47041
  Prefactor  = 11.6634
  Prefactor  = 0.0001
  norm       = 3.50615
  Prefactor  = 0.0001
  Prefactor  = 0.384163
  norm       = 0.0001
  Prefactor  = 8.10277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9562
  Prefactor  = 0.0001
  norm       = 2.40024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.65521
  Prefactor  = 2.89521
  norm       = 0.300696
  norm       = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Normalizat = 0.802926
  Prefactor  = 1.04384
 **********
 **   18 **HESSE 
 **********

 FCN=   4795.985     FROM HESSE     STATUS=OK           626 CALLS     4878 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6958        4.8975        .13624E-03   -1.5231    
   2  norm          .10000E-03    20.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1325        9.1260        .19830E-03   -1.5301    
   4  Prefactor     .10000E-03    20.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4704        2.5807        .12301E-03   -1.5465    
   6  Prefactor     11.663        50.891        .11779E-03   -1.5025    
   7  Prefactor     .10000E-03    6.1086        .16704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5061        2.8188        .93299E-04   -1.5333    
   9  Prefactor     .10000E-03    5.8412        .16328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38416        20.372        .22853E-02   -1.5584    
  11  norm          .10000E-03    .46668        .81746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1028        18.878        .14066E-03   -1.5139    
  13  Prefactor     .10000E-03    7.4240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7027        .17157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.956        27.276        .97159E-04   -1.4884    
  16  Prefactor     .10000E-03    46.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4002        1.3529        .57473E-04   -1.5398    
  18  Prefactor     .10000E-03    .82940        .61532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .76562        .58949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.778        4.3003        .75791E-04   -1.4965    
  22  Prefactor     .10000E-03    27.354        .36719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2187        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.6552        2.2204        .44494E-03   -1.5382    
  25  Prefactor     2.8952        4.8463        .19057E-03   -1.5368    
  26  norm          .30070        .21637        .26622E-04   -1.5598    
  27  norm          .10000E-03    5.0281        .29641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10004E-03    20.759        .35620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    252.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .80293        .22168        .24026E-03   -.99960    
  31  Prefactor     1.0438        .24641        .25357E-03   -.91282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2616e-09
Minuit parameter uncertainties:
  1  4.89781
  2  2.92743e-05
  3  9.12903
  4  2.44788e-07
  5  2.5809
  6  48.796
  7  1.95147e-07
  8  2.8189
  9  1.65239e-05
  10  5.59637
  11  2.6832e-06
  12  18.8923
  13  8.1802e-07
  14  5.88261e-05
  15  27.2959
  16  1.76372e-05
  17  1.35297
  18  3.28936e-07
  19  7.05267e-05
  20  6.30184e-08
  21  4.30035
  22  6.42272e-05
  23  7.59959e-06
  24  2.22045
  25  4.84696
  26  0.216376
  27  1.06731e-05
  28  0.00186632
  29  0.000321016
  30  0.221926
  31  0.246681
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.400e+00  1.353e+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.044e+00  2.467e-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.029e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.94
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.52e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 1.65e-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) = 4795.73233925
delta logL = 0.252904478027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4795.72515116
delta logL = 0.260092568416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2236       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5077       1.0000          .0000       5.0000    
     3 'Normalizat'    .77295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0681       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=   4795.725     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      224 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2236        24.614        .68936E-02    .27050E-03
   2  alpha         2.5077        3.3929        .30673        .14266E-05
   3  Normalizat    .77294        .97677E-01    .43256E-01    .13578E-04
   4  Prefactor     1.0681        .10889        .56791E-01    .72817E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22363
  alpha      = 2.5077
  Normalizat = 0.772942
  Prefactor  = 1.06811
 **********
 **   18 **HESSE 
 **********

 FCN=   4795.725     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2236        1.3563        .51754E-04   -1.5410    
   2  alpha         2.5077        .59925        .12231E-01    .30798E-02
   3  Normalizat    .77294        .20964        .24429E-03   -1.0108    
   4  Prefactor     1.0681        .24646        .25111E-03   -.90492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83214e-11
Minuit parameter uncertainties:
  1  1.35633
  2  0.605138
  3  0.209857
  4  0.246726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236444': 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) = 4795.72515116
delta logL = 0.260092571267

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.224e+00  1.356e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.508e+00  6.051e-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.068e+00  2.467e-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:  7.729e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.47
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.51 +/- 0.61
Photon Flux (Free Index): 8.59e-08 +/- 5.13e-08
Energy Flux (Free Index): 2.39e-05 +/- 1.39e-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/236444/cmap_HighResolution_498009601_498268801_4FGL_J1159.5+2914_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.52e-08', energy_flux2='2.39e-05', photon_flux_error='3.67e-08', dlogl='2.60e-01', energy_flux='2.92e-05', photon_flux2='8.59e-08', job_status='DONE', time_completed='2021-09-04 19:37:53.694601', photon_index_error2='0.61', photon_index2='2.51', ts='5.94', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.80', time_epoch_completed='1630809473.69', return_code='0', job_id='236444', GAL2='1.07', EG2='0.77', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.13e-08', ts2='6.47', photon_index='2.10' WHERE bin_id='998' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:37:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 236444: <4FGL_J1159.5+2914_daily_bin998> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin998 179.884 29.2448 498009601 498268801 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 :                                   729.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

