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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin81
RA = 179.884, Dec = 29.2448
tmin = 260323201, tmax = 260582401
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='230455', job_status='RUN', time_executed='2021-09-04 19:07:19.212759', time_epoch_executed='1630807639.21' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230455/ft1_4FGL_J1159.5+2914_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230455/ft2_4FGL_J1159.5+2914_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230455/ft1_4FGL_J1159.5+2914_daily_bin81.fits outfile=/scratch/kocevski/230455/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin81.fits ra=179.884 dec=29.2448 rad=12.0 tmin=260323201.0 tmax=260582401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.66
user 1.39
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230455/ft2_4FGL_J1159.5+2914_daily_bin81.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/230455/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/230455/ft1_filtered_4FGL_J1159.5+2914_daily_bin81.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.62
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230455/ft1_filtered_4FGL_J1159.5+2914_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/230455/ft2_4FGL_J1159.5+2914_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/230455/ltcube_260323201_260582401_4FGL_J1159.5+2914_daily_bin81.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/230455/ft2_4FGL_J1159.5+2914_daily_bin81.fits
.....................!
real 12.26
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230455/ft1_filtered_4FGL_J1159.5+2914_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/230455/ft2_4FGL_J1159.5+2914_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/230455/ltcube_260323201_260582401_4FGL_J1159.5+2914_daily_bin81.fits outfile=/scratch/kocevski/230455/expmap_260323201_260582401_4FGL_J1159.5+2914_daily_bin81.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/230455/ltcube_260323201_260582401_4FGL_J1159.5+2914_daily_bin81.fits
.....................!
real 190.06
user 184.96
sys 4.68

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/230455/ft1_filtered_4FGL_J1159.5+2914_daily_bin81.fits scfile=/scratch/kocevski/230455/ft2_4FGL_J1159.5+2914_daily_bin81.fits outfile=/scratch/kocevski/230455/cmap_260323201_260582401_4FGL_J1159.5+2914_daily_bin81.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230455/ft1_filtered_4FGL_J1159.5+2914_daily_bin81.fits scfile=/scratch/kocevski/230455/ft2_4FGL_J1159.5+2914_daily_bin81.fits outfile=/scratch/kocevski/230455/cmap_HighResolution_260323201_260582401_4FGL_J1159.5+2914_daily_bin81.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72240       1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8158       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.452       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38212E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.100       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2831       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9150       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24543E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2651       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1618       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .84445E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4472       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.029       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1553       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1071       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=   8644.421     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     3590 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72254        2.7688        .12147E-01    .18758E-02
   2  norm          .10000E-03    11.182        .90712E-02** at limit **
   3  norm          5.8147        10.792        .41634E-02    .22214E-03
   4  Prefactor     .10000E-03    6.1929        .90712E-02** at limit **
   5  Prefactor     .10000E-03    .71309        .90712E-02** at limit **
   6  Prefactor     .10000E-03    12.709        .90712E-02** at limit **
   7  Prefactor     .10000E-03    32.307        .90712E-02** at limit **
   8  norm          2.7261        2.2731        .61659E-02    .56499E-03
   9  Prefactor     .10000E-03    4.2907        .90712E-02** at limit **
  10  Prefactor     12.448        6.3391        .28379E-02   -.69680E-03
  11  norm          .10000E-03    .37420        .22060E-01** at limit **
  12  Prefactor     .10000E-03    6.0400        .90712E-02** at limit **
  13  Prefactor     .10000E-03    4.3338        .92124E-01** at limit **
  14  Prefactor     .36066        1.2766        .10688E-01    .27899E-02
  15  Prefactor     12.114        17.345        .28790E-02    .10731E-02
  16  Prefactor     .10000E-03    19.439        .90712E-02** at limit **
  17  norm          2.1226        .95994        .70762E-02    .33178E-03
  18  Prefactor     .10000E-03    2.5604        .90712E-02** at limit **
  19  Prefactor     5.2829        20.033        .43716E-02    .29625E-03
  20  Prefactor     .10000E-03    .65988        .90712E-02** at limit **
  21  norm          2.9150        2.2267        .59490E-02    .16449E-03
  22  Prefactor     .10000E-03    3.2287        .90712E-01** at limit **
  23  Prefactor     2.2651        1.7151        .68229E-02    .78744E-05
  24  Prefactor     5.1620        2.2612        .44237E-02    .20388E-03
  25  Prefactor     .10000E-03    2.0452        .90712E-02** at limit **
  26  norm          .84352E-01    .13449        .80792E-02    .37802E-02
  27  norm          1.4477        2.5484        .89571E-02    .87983E-03
  28  Prefactor     12.027        8.5856        .28875E-02    .54830E-04
  29  Prefactor     .10000E-03    13.187        .90712E-02** at limit **
  30  Normalizat    1.1554        .15838        .55517E-01    .38915E-04
  31  Prefactor     1.1071        .17306        .64421E-01    .35435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.722538
  norm       = 0.0001
  norm       = 5.81474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.72614
  Prefactor  = 0.0001
  Prefactor  = 12.4481
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.36066
  Prefactor  = 12.1144
  Prefactor  = 0.0001
  norm       = 2.1226
  Prefactor  = 0.0001
  Prefactor  = 5.2829
  Prefactor  = 0.0001
  norm       = 2.91495
  Prefactor  = 0.0001
  Prefactor  = 2.26508
  Prefactor  = 5.16201
  Prefactor  = 0.0001
  norm       = 0.0843524
  norm       = 1.44774
  Prefactor  = 12.0274
  Prefactor  = 0.000100003
  Normalizat = 1.15535
  Prefactor  = 1.10713
 **********
 **   18 **HESSE 
 **********

 FCN=   8644.421     FROM HESSE     STATUS=OK           636 CALLS     4226 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72254        2.7405        .28922E-03   -1.5538    
   2  norm          .10000E-03    11.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8147        10.777        .16654E-03   -1.5226    
   4  Prefactor     .10000E-03    6.2159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .71782        .76560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7261        2.2583        .12270E-03   -1.5378    
   9  Prefactor     .10000E-03    4.2986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.448        6.3410        .11352E-03   -1.5002    
  11  norm          .10000E-03    .77149        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6787        .65039E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .36066        1.2904        .18657E-03   -1.5588    
  15  Prefactor     12.114        17.327        .11516E-03   -1.5012    
  16  Prefactor     .10000E-03    19.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1226        .95776        .58888E-04   -1.5417    
  18  Prefactor     .10000E-03    2.6588        .29005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2829        19.956        .17487E-03   -1.5248    
  20  Prefactor     .10000E-03    .66543        .73737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9150        2.2236        .11253E-03   -1.5366    
  22  Prefactor     .10000E-03    19.240        .31976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.2651        1.7130        .98984E-04   -1.5407    
  24  Prefactor     5.1620        2.2557        .86305E-04   -1.5254    
  25  Prefactor     .10000E-03    2.0547        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .84352E-01    .11526        .41090E-03   -1.5650    
  27  norm          1.4477        2.5093        .18971E-03   -1.5467    
  28  Prefactor     12.027        8.5782        .11550E-03   -1.5014    
  29  Prefactor     .10000E-03    13.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1554        .18883        .24549E-03   -.87994    
  31  Prefactor     1.1071        .20798        .28495E-03   -.89239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02099e-09
Minuit parameter uncertainties:
  1  2.74095
  2  5.23277e-05
  3  10.7804
  4  6.45513e-06
  5  1.29326e-07
  6  0.000432711
  7  0.000114405
  8  2.25837
  9  2.09053e-06
  10  6.34133
  11  9.32117e-07
  12  1.46911e-05
  13  4.30443e-05
  14  1.29049
  15  17.3342
  16  2.67098e-05
  17  0.957764
  18  1.52644e-07
  19  19.9808
  20  1.69721e-06
  21  2.22368
  22  1.33095e-05
  23  1.71299
  24  2.25575
  25  1.58063e-06
  26  0.115263
  27  2.5095
  28  8.57909
  29  0.000397719
  30  0.188938
  31  0.208132
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.123e+00  9.578e-01  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.107e+00  2.081e-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.155e+00  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.76
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.16e-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) = 8643.93744336
delta logL = 0.483543407241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8643.91102414
delta logL = 0.509962624701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7983       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7045       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0932       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=   8643.911     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7980        .86959        .77944E-02    .11924E-03
   2  alpha         1.7045        .29158        .27828       -.56362E-04
   3  Normalizat    1.1775        .14999        .55090E-01    .95355E-05
   4  Prefactor     1.0932        .17124        .64788E-01    .14925E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.79796
  alpha      = 1.70447
  Normalizat = 1.17755
  Prefactor  = 1.09321
 **********
 **   18 **HESSE 
 **********

 FCN=   8643.911     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7980        1.0386        .58268E-04   -1.5440    
   2  alpha         1.7045        .38504        .11134E-01   -.32384    
   3  Normalizat    1.1775        .18055        .24360E-03   -.87299    
   4  Prefactor     1.0932        .20562        .28658E-03   -.89684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35317e-09
Minuit parameter uncertainties:
  1  1.03859
  2  0.386756
  3  0.180644
  4  0.205769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230455': 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) = 8643.91102409
delta logL = 0.509962672542

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.798e+00  1.039e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.704e+00  3.868e-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.093e+00  2.058e-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.178e+00  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.79
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.70 +/- 0.39
Photon Flux (Free Index): 3.87e-08 +/- 2.59e-08
Energy Flux (Free Index): 3.81e-05 +/- 2.56e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='3.81e-05', photon_flux_error='2.60e-08', dlogl='5.10e-01', energy_flux='2.58e-05', photon_flux2='3.87e-08', job_status='DONE', time_completed='2021-09-04 19:22:25.559315', photon_index_error2='0.39', photon_index2='1.70', ts='14.76', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.16', time_epoch_completed='1630808545.56', return_code='0', job_id='230455', GAL2='1.09', EG2='1.18', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.59e-08', ts2='15.79', photon_index='2.10' WHERE bin_id='81' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:22:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 230455: <4FGL_J1159.5+2914_daily_bin81> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin81> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:24 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:06:27 2021
Terminated at Sat Sep  4 19:22:26 2021
Results reported at Sat Sep  4 19:22:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin81 179.884 29.2448 260323201 260582401 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 :                                   902.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            962 sec.

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

