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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin710
RA = 179.884, Dec = 29.2448
tmin = 423360001, tmax = 423619201
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='234810', job_status='RUN', time_executed='2021-09-04 19:20:44.222799', time_epoch_executed='1630808444.22' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234810/ft1_4FGL_J1159.5+2914_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234810/ft2_4FGL_J1159.5+2914_daily_bin710.fits


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

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

Done.
real 5.67
user 5.39
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/234810/ft1_filtered_4FGL_J1159.5+2914_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/234810/ft2_4FGL_J1159.5+2914_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/234810/ltcube_423360001_423619201_4FGL_J1159.5+2914_daily_bin710.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/234810/ft2_4FGL_J1159.5+2914_daily_bin710.fits
.....................!
real 11.98
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234810/ft1_filtered_4FGL_J1159.5+2914_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/234810/ft2_4FGL_J1159.5+2914_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/234810/ltcube_423360001_423619201_4FGL_J1159.5+2914_daily_bin710.fits outfile=/scratch/kocevski/234810/expmap_423360001_423619201_4FGL_J1159.5+2914_daily_bin710.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/234810/ltcube_423360001_423619201_4FGL_J1159.5+2914_daily_bin710.fits
.....................!
real 193.08
user 187.38
sys 5.34

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/234810/ft1_filtered_4FGL_J1159.5+2914_daily_bin710.fits scfile=/scratch/kocevski/234810/ft2_4FGL_J1159.5+2914_daily_bin710.fits outfile=/scratch/kocevski/234810/cmap_423360001_423619201_4FGL_J1159.5+2914_daily_bin710.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234810/ft1_filtered_4FGL_J1159.5+2914_daily_bin710.fits scfile=/scratch/kocevski/234810/ft2_4FGL_J1159.5+2914_daily_bin710.fits outfile=/scratch/kocevski/234810/cmap_HighResolution_423360001_423619201_4FGL_J1159.5+2914_daily_bin710.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/234810/ft1_filtered_4FGL_J1159.5+2914_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/234810/ft2_4FGL_J1159.5+2914_daily_bin710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/234810/Model_4FGL_J1159.5+2914_daily_bin710.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/234810/ft1_filtered_4FGL_J1159.5+2914_daily_bin710.fits.....................!
real 37.47
user 36.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4376       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19331E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10725E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93646E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8389       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .82788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1064       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5653       1.0000         .10000E-03   10000.    
    19 'Prefactor '    67.388       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0862       1.0000         .10000E-03   10000.    
    21 'norm      '    11.469       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.3382       1.0000         .10000E-03   10000.    
    26 'norm      '    .71940       1.0000         .10000E-03   10000.    
    27 'norm      '    .10456E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.007       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .69774       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3718       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=   3618.143     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4247 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4353        4.4697       -.41012E-07    .44187E-05
   2  norm          .10000E-03    18.225       -.87246E-06** at limit **
   3  norm          .10000E-03    5.0930       -.60781E-07** at limit **
   4  Prefactor     .10000E-03    11.823       -.23241E-06** at limit **
   5  Prefactor     .10011E-03    3.5057        .82273E-06** at limit **
   6  Prefactor     40.999        86.550       -.37997E-05   -.15828E-03
   7  Prefactor     .10000E-03    62.271        .14805E-05** at limit **
   8  norm          13.754        6.1722        .11302E-05   -.74367E-03
   9  Prefactor     .10000E-03    9.2535       -.12705E-06** at limit **
  10  Prefactor     .14455E-03    4.9317       -.20577E-06** at limit **
  11  norm          4.9563        1.8685        .12029E-07   -.72203E-04
  12  Prefactor     6.8445        54.401        .20327E-05    .32347E-04
  13  Prefactor     .10000E-03    7.7141       -.76861E-08** at limit **
  14  Prefactor     .82284        4.6800       -.10820E-05   -.13199E-03
  15  Prefactor     .10000E-03    67.960        .11789E-05** at limit **
  16  Prefactor     .10000E-03    52.986       -.16066E-05** at limit **
  17  norm          4.1060        2.2580       -.56124E-07    .14899E-03
  18  Prefactor     1.5612        9.8085        .57244E-05    .14155E-03
  19  Prefactor     67.364        52.723        .62825E-06    .12374E-04
  20  Prefactor     9.0854        5.3632       -.54491E-06    .47179E-04
  21  norm          11.468        5.5785       -.14966E-06    .18939E-03
  22  Prefactor     .10000E-03    3.9358       -.55415E-07** at limit **
  23  Prefactor     .10000E-03    1.2635       -.21822E-08** at limit **
  24  Prefactor     .10000E-03    2.5368       -.42622E-06** at limit **
  25  Prefactor     9.3379        12.114        .75447E-07    .14434E-03
  26  norm          .71924        .40650       -.31150E-07    .44028E-03
  27  norm          .10000E-03    7.7660       -.10469E-06** at limit **
  28  Prefactor     13.000        17.162       -.31709E-06    .11045E-03
  29  Prefactor     .10000E-03    77.486       -.23926E-05** at limit **
  30  Normalizat    .69875        .27180        .13661E-05    .47967E-04
  31  Prefactor     1.3714        .29041       -.48837E-07    .88681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43527
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100114
  Prefactor  = 40.9991
  Prefactor  = 0.000100001
  norm       = 13.7537
  Prefactor  = 0.0001
  Prefactor  = 0.000144546
  norm       = 4.95627
  Prefactor  = 6.84455
  Prefactor  = 0.0001
  Prefactor  = 0.822844
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.10595
  Prefactor  = 1.56119
  Prefactor  = 67.3639
  Prefactor  = 9.08538
  norm       = 11.468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.33789
  norm       = 0.719243
  norm       = 0.0001
  Prefactor  = 12.9995
  Prefactor  = 0.0001
  Normalizat = 0.698751
  Prefactor  = 1.37136
 **********
 **   18 **HESSE 
 **********

 FCN=   3618.143     FROM HESSE     STATUS=OK           634 CALLS     4881 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4353        4.4749        .12285E-03   -1.5287    
   2  norm          .10000E-03    18.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.1066        .13258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10011E-03    20.082        .17500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.999        88.968        .31377E-03   -1.4426    
   7  Prefactor     .10000E-03    64.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.754        6.1284        .80212E-04   -1.4966    
   9  Prefactor     .10000E-03    9.2868        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14455E-03    12.300        .40719E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9563        1.8675        .48451E-04   -1.5263    
  12  Prefactor     6.8445        48.244        .15342E-03   -1.5185    
  13  Prefactor     .10000E-03    7.7520        .16317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .82284        4.1642        .19915E-03   -1.5527    
  15  Prefactor     .10000E-03    68.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1060        2.2480        .61890E-04   -1.5303    
  18  Prefactor     1.5612        10.013        .16800E-02   -1.5458    
  19  Prefactor     67.364        52.988        .48893E-04   -1.4065    
  20  Prefactor     9.0854        5.3741        .99866E-04   -1.5105    
  21  norm          11.468        5.5019        .93360E-04   -1.5031    
  22  Prefactor     .10000E-03    3.9397        .11655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2664        .65983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.800        .17299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.3379        11.566        .13115E-03   -1.5097    
  26  norm          .71924        .40422        .27242E-04   -1.5538    
  27  norm          .10000E-03    23.117        .30753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.000        16.628        .11106E-03   -1.4987    
  29  Prefactor     .10000E-03    77.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .69875        .32662        .31348E-03   -1.0394    
  31  Prefactor     1.3714        .35115        .27184E-03   -.81209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46683e-09
Minuit parameter uncertainties:
  1  4.47528
  2  6.00615e-05
  3  9.98246e-06
  4  2.00493e-05
  5  0.00303312
  6  89.2576
  7  0.00060181
  8  6.1287
  9  3.26144e-05
  10  0.0468246
  11  1.86748
  12  36.3849
  13  1.28886e-05
  14  3.70235
  15  0.000470185
  16  6.72124e-05
  17  2.24802
  18  7.90935
  19  53.0247
  20  5.37437
  21  5.5021
  22  8.6525e-06
  23  5.36428e-07
  24  0.000354656
  25  11.5686
  26  0.404222
  27  0.00010018
  28  16.6343
  29  8.28986e-05
  30  0.327529
  31  0.351767
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.106e+00  2.248e+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.371e+00  3.518e-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:  6.988e-01  3.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.27
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 6.10e-08
Energy Flux (Fixed Index): 4.99e-05 +/- 2.73e-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) = 3617.79863261
delta logL = 0.344441162722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3617.78438858
delta logL = 0.358685194342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9366       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5452       1.0000          .0000       5.0000    
     3 'Normalizat'    .63869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4158       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3617.784     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      267 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9366        2.1147        .54285E-04    .68598E-03
   2  alpha         2.5452        .54256        .10175E-01    .30239E-04
   3  Normalizat    .63879        .30192        .32643E-03   -.66694E-05
   4  Prefactor     1.4157        .34745        .26802E-03   -.17985E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.93656
  alpha      = 2.54523
  Normalizat = 0.638789
  Prefactor  = 1.41573
 **********
 **   18 **HESSE 
 **********

 FCN=   3617.784     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9366        2.0871        .21714E-05   -1.5311    
   2  alpha         2.5452        .53505        .40700E-03    .18094E-01
   3  Normalizat    .63879        .30205        .13057E-04   -1.0636    
   4  Prefactor     1.4157        .34757        .53605E-04   -.79928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35859e-11
Minuit parameter uncertainties:
  1  2.08717
  2  0.53922
  3  0.302837
  4  0.348148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234810': 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) = 3617.78438852
delta logL = 0.358685250928

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.937e+00  2.087e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.545e+00  5.392e-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.416e+00  3.481e-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:  6.388e-01  3.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.96
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.55 +/- 0.54
Photon Flux (Free Index): 1.58e-07 +/- 9.12e-08
Energy Flux (Free Index): 4.25e-05 +/- 2.13e-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/234810/cmap_HighResolution_423360001_423619201_4FGL_J1159.5+2914_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='4.25e-05', photon_flux_error='6.10e-08', dlogl='3.59e-01', energy_flux='4.99e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-04 19:31:12.202368', photon_index_error2='0.54', photon_index2='2.55', ts='9.27', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.70', time_epoch_completed='1630809072.2', return_code='0', job_id='234810', GAL2='1.42', EG2='0.64', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='9.12e-08', ts2='9.96', photon_index='2.10' WHERE bin_id='710' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:31:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 234810: <4FGL_J1159.5+2914_daily_bin710> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin710> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 19:20:25 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:20: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:20:27 2021
Terminated at Sat Sep  4 19:31:12 2021
Results reported at Sat Sep  4 19:31:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin710 179.884 29.2448 423360001 423619201 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 :                                   625.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            647 sec.

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

