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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin909
RA = 179.884, Dec = 29.2448
tmin = 474940801, tmax = 475200001
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='235099', job_status='RUN', time_executed='2021-09-04 19:21:03.452896', time_epoch_executed='1630808463.45' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/235099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/235099/ft1_4FGL_J1159.5+2914_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/235099/ft2_4FGL_J1159.5+2914_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/235099/ft1_4FGL_J1159.5+2914_daily_bin909.fits outfile=/scratch/kocevski/235099/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin909.fits ra=179.884 dec=29.2448 rad=12.0 tmin=474940801.0 tmax=475200001.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.57
user 3.38
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/235099/ft1_filtered_4FGL_J1159.5+2914_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/235099/ft2_4FGL_J1159.5+2914_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/235099/ltcube_474940801_475200001_4FGL_J1159.5+2914_daily_bin909.fits outfile=/scratch/kocevski/235099/expmap_474940801_475200001_4FGL_J1159.5+2914_daily_bin909.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/235099/ltcube_474940801_475200001_4FGL_J1159.5+2914_daily_bin909.fits
.....................!
real 190.44
user 185.67
sys 4.38

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/235099/ft1_filtered_4FGL_J1159.5+2914_daily_bin909.fits scfile=/scratch/kocevski/235099/ft2_4FGL_J1159.5+2914_daily_bin909.fits outfile=/scratch/kocevski/235099/cmap_474940801_475200001_4FGL_J1159.5+2914_daily_bin909.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/235099/ft1_filtered_4FGL_J1159.5+2914_daily_bin909.fits scfile=/scratch/kocevski/235099/ft2_4FGL_J1159.5+2914_daily_bin909.fits outfile=/scratch/kocevski/235099/cmap_HighResolution_474940801_475200001_4FGL_J1159.5+2914_daily_bin909.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .73826E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0929       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5904       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20386E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2671       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.162       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61107E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4116       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53602E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6197       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3844       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6521       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .61824       1.0000         .10000E-03   10000.    
    27 'norm      '    11.921       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .50945       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2793       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=   5907.396     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     3592 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6424       -.12083E-07** at limit **
   2  norm          .10004E-03    7.8067       -.37632E-05** at limit **
   3  norm          9.0940        9.6880        .97590E-07    .10549E-04
   4  Prefactor     .10000E-03    8.2642       -.12249E-06** at limit **
   5  Prefactor     2.5829        2.5722       -.23994E-06   -.52070E-03
   6  Prefactor     .10000E-03    88.374        .60461E-05** at limit **
   7  Prefactor     7.2666        13.705        .27494E-06    .38091E-04
   8  norm          5.4638        3.1563       -.13580E-06   -.39534E-03
   9  Prefactor     .10000E-03    4.9903       -.41076E-06** at limit **
  10  Prefactor     .10000E-03    5.3447        .17145E-06** at limit **
  11  norm          3.0042        1.2694        .11136E-06    .73202E-03
  12  Prefactor     2.0702        9.3384        .94914E-05    .37394E-03
  13  Prefactor     .54418        8.6276        .35293E-07    .38322E-04
  14  Prefactor     .10000E-03    .42970        .32985E-07** at limit **
  15  Prefactor     15.166        18.054        .16129E-06   -.13006E-04
  16  Prefactor     .10000E-03    75.879       -.10730E-04** at limit **
  17  norm          14.512        2.1696       -.50222E-07    .29062E-04
  18  Prefactor     .65975E-01    1.8378       -.15047E-05    .11015E-02
  19  Prefactor     6.4126        21.090        .35981E-06    .36496E-06
  20  Prefactor     .51309E-01    1.3389        .43434E-06   -.17740E-03
  21  norm          4.6199        2.8628        .91886E-08   -.20150E-05
  22  Prefactor     .10000E-03    1.6067       -.29776E-08** at limit **
  23  Prefactor     3.3845        2.0502        .50639E-08   -.29132E-04
  24  Prefactor     1.6522        1.4176        .17923E-07   -.11063E-04
  25  Prefactor     .10000E-03    1.4622       -.42257E-08** at limit **
  26  norm          .61827        .25416        .12528E-07    .16327E-03
  27  norm          11.921        5.2332        .47491E-07   -.61461E-05
  28  Prefactor     .10000E-03    4.5679        .12508E-06** at limit **
  29  Prefactor     .10000E-03    89.945        .74960E-05** at limit **
  30  Normalizat    .50936        .17271       -.92360E-06    .66247E-04
  31  Prefactor     1.2793        .19986       -.15463E-06    .67610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.00010004
  norm       = 9.09396
  Prefactor  = 0.0001
  Prefactor  = 2.58292
  Prefactor  = 0.0001
  Prefactor  = 7.26664
  norm       = 5.46382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00421
  Prefactor  = 2.07021
  Prefactor  = 0.544179
  Prefactor  = 0.0001
  Prefactor  = 15.1659
  Prefactor  = 0.000100002
  norm       = 14.5125
  Prefactor  = 0.0659747
  Prefactor  = 6.41261
  Prefactor  = 0.0513091
  norm       = 4.61992
  Prefactor  = 0.0001
  Prefactor  = 3.38452
  Prefactor  = 1.65219
  Prefactor  = 0.0001
  norm       = 0.618268
  norm       = 11.9211
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.509364
  Prefactor  = 1.27928
 **********
 **   18 **HESSE 
 **********

 FCN=   5907.396     FROM HESSE     STATUS=OK           634 CALLS     4226 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6631        .96160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10004E-03    24.483        .37657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0940        9.6889        .13291E-03   -1.5105    
   4  Prefactor     .10000E-03    8.3005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5829        2.5457        .11302E-03   -1.5387    
   6  Prefactor     .10000E-03    89.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2666        13.694        .14879E-03   -1.5169    
   8  norm          5.4638        3.1455        .95954E-04   -1.5240    
   9  Prefactor     .10000E-03    4.9981        .16754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5099        .34584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0042        1.2699        .54039E-04   -1.5361    
  12  Prefactor     2.0702        9.7861        .14359E-02   -1.5420    
  13  Prefactor     .54418        43.395        .42461E-02   -1.5560    
  14  Prefactor     .10000E-03    .43506        .49191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.166        18.041        .10286E-03   -1.4929    
  16  Prefactor     .10000E-03    76.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.512        2.1701        .41601E-04   -1.4946    
  18  Prefactor     .65975E-01    25.858        .18070E-02   -1.5657    
  19  Prefactor     6.4126        21.066        .15851E-03   -1.5201    
  20  Prefactor     .51309E-01    18.765        .16789E-02   -1.5663    
  21  norm          4.6199        2.8635        .95491E-04   -1.5278    
  22  Prefactor     .10000E-03    1.6080        .95140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3845        2.0542        .80506E-04   -1.5340    
  24  Prefactor     1.6522        1.4202        .40753E-03   -1.5451    
  25  Prefactor     .10000E-03    1.4630        .90741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .61827        .25171        .23546E-04   -1.5551    
  27  norm          11.921        5.2298        .11119E-03   -1.5017    
  28  Prefactor     .10000E-03    4.5959        .16039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    90.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .50936        .19761        .31305E-03   -1.1198    
  31  Prefactor     1.2793        .23565        .24670E-03   -.83925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61527e-08
Minuit parameter uncertainties:
  1  1.49484e-07
  2  0.00198507
  3  9.69056
  4  3.30363e-06
  5  2.5458
  6  0.000266076
  7  13.6996
  8  3.14563
  9  2.74824e-06
  10  3.21219e-06
  11  1.26989
  12  9.00422
  13  9.72536
  14  6.4901e-08
  15  18.0471
  16  0.000751429
  17  2.17009
  18  2.6114
  19  21.0902
  20  1.96115
  21  2.86353
  22  5.70765e-08
  23  2.05427
  24  1.42022
  25  7.00272e-08
  26  0.251709
  27  5.23002
  28  2.25923e-06
  29  0.000530879
  30  0.197883
  31  0.235847
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.451e+01  2.170e+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.279e+00  2.358e-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:  5.094e-01  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 169.36
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 3.94e-07 +/- 5.89e-08
Energy Flux (Fixed Index): 1.76e-04 +/- 2.64e-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) = 5907.37400866
delta logL = 0.0216939554321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5907.36950803
delta logL = 0.0261945829152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.625       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0694       1.0000          .0000       5.0000    
     3 'Normalizat'    .51736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2726       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=   5907.370     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      200 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.625        2.3843        .26183E-02    .94140E-05
   2  alpha         2.0694        .15627        .96801E-01    .35850E-04
   3  Normalizat    .51736        .16660        .70227E-01    .48939E-04
   4  Prefactor     1.2726        .19871        .55925E-01   -.14534E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6254
  alpha      = 2.06945
  Normalizat = 0.51736
  Prefactor  = 1.27265
 **********
 **   18 **HESSE 
 **********

 FCN=   5907.370     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.625        2.2212        .41929E-04   -1.4943    
   2  alpha         2.0694        .14717        .42457E-03   -.17308    
   3  Normalizat    .51736        .19418        .31090E-03   -1.1162    
   4  Prefactor     1.2726        .23181        .24727E-03   -.84124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05428e-12
Minuit parameter uncertainties:
  1  2.22118
  2  0.147253
  3  0.194434
  4  0.232002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/235099': 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) = 5907.36950803
delta logL = 0.0261945829861

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.463e+01  2.221e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.069e+00  1.473e-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.273e+00  2.320e-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:  5.174e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 167.58
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.07 +/- 0.15
Photon Flux (Free Index): 3.87e-07 +/- 6.48e-08
Energy Flux (Free Index): 1.83e-04 +/- 4.01e-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/235099/cmap_HighResolution_474940801_475200001_4FGL_J1159.5+2914_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.94e-07', energy_flux2='1.83e-04', photon_flux_error='5.89e-08', dlogl='2.62e-02', energy_flux='1.76e-04', photon_flux2='3.87e-07', job_status='DONE', time_completed='2021-09-04 19:33:31.632239', photon_index_error2='0.15', photon_index2='2.07', ts='169.36', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='4.01e-05', EG='0.51', time_epoch_completed='1630809211.63', return_code='0', job_id='235099', GAL2='1.27', EG2='0.52', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='6.48e-08', ts2='167.58', photon_index='2.10' WHERE bin_id='909' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:33:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 235099: <4FGL_J1159.5+2914_daily_bin909> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin909> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 19:20:46 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:20:48 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:20:48 2021
Terminated at Sat Sep  4 19:33:32 2021
Results reported at Sat Sep  4 19:33:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin909 179.884 29.2448 474940801 475200001 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            766 sec.

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

