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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin60
RA = 179.884, Dec = 29.2448
tmin = 254880001, tmax = 255139201
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='230424', job_status='RUN', time_executed='2021-09-04 19:06:36.159899', time_epoch_executed='1630807596.16' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230424

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230424/ft1_4FGL_J1159.5+2914_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230424/ft2_4FGL_J1159.5+2914_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230424/ft1_4FGL_J1159.5+2914_daily_bin60.fits outfile=/scratch/kocevski/230424/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin60.fits ra=179.884 dec=29.2448 rad=12.0 tmin=254880001.0 tmax=255139201.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.41
user 1.22
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230424/ft1_filtered_4FGL_J1159.5+2914_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/230424/ft2_4FGL_J1159.5+2914_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/230424/ltcube_254880001_255139201_4FGL_J1159.5+2914_daily_bin60.fits outfile=/scratch/kocevski/230424/expmap_254880001_255139201_4FGL_J1159.5+2914_daily_bin60.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/230424/ltcube_254880001_255139201_4FGL_J1159.5+2914_daily_bin60.fits
.....................!
real 190.67
user 186.56
sys 3.74

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/230424/ft1_filtered_4FGL_J1159.5+2914_daily_bin60.fits scfile=/scratch/kocevski/230424/ft2_4FGL_J1159.5+2914_daily_bin60.fits outfile=/scratch/kocevski/230424/cmap_254880001_255139201_4FGL_J1159.5+2914_daily_bin60.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230424/ft1_filtered_4FGL_J1159.5+2914_daily_bin60.fits scfile=/scratch/kocevski/230424/ft2_4FGL_J1159.5+2914_daily_bin60.fits outfile=/scratch/kocevski/230424/cmap_HighResolution_254880001_255139201_4FGL_J1159.5+2914_daily_bin60.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6004       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7241       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20079E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4951       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.666       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.473       1.0000         .10000E-03   10000.    
    17 'norm      '    .79959       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2896       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1887       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3053       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2447       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .78892E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    5.6985       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.0794       1.0000         .10000E-03   10000.    
    29 'Prefactor '    41.820       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .70763       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3442       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=   6596.087     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4207 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6004        2.3015        .76497E-08   -.41242E-04
   2  norm          .10000E-03    6.2801        .19728E-06** at limit **
   3  norm          6.2027        7.9710        .27821E-05    .49654E-04
   4  Prefactor     .10000E-03    4.2449        .18265E-07** at limit **
   5  Prefactor     4.7268        2.6576       -.22124E-07   -.81153E-03
   6  Prefactor     .10000E-03    34.582        .11932E-07** at limit **
   7  Prefactor     .10000E-03    7.1061       -.13943E-06** at limit **
   8  norm          .10000E-03    .68237        .34336E-08** at limit **
   9  Prefactor     .10000E-03    3.9650        .39800E-08** at limit **
  10  Prefactor     .10001E-03    4.9481        .16601E-05** at limit **
  11  norm          1.0547        1.0261        .15258E-06    .24364E-04
  12  Prefactor     .10000E-03    4.3423       -.10202E-07** at limit **
  13  Prefactor     .10000E-03    5.3386       -.18263E-06** at limit **
  14  Prefactor     2.4949        1.7253        .73353E-07   -.11981E-03
  15  Prefactor     26.687        29.135        .15543E-06   -.11419E-03
  16  Prefactor     56.509        53.040        .94891E-06    .19468E-03
  17  norm          .79951        .74869        .55311E-07   -.88326E-04
  18  Prefactor     2.2874        4.1516        .84367E-06    .25355E-04
  19  Prefactor     .10000E-03    81.140        .22033E-05** at limit **
  20  Prefactor     .10000E-03    1.3723       -.89362E-07** at limit **
  21  norm          2.1886        2.7087        .12730E-06   -.29212E-04
  22  Prefactor     .10000E-03    13.771       -.28397E-06** at limit **
  23  Prefactor     2.3052        2.3505        .50500E-07   -.14138E-05
  24  Prefactor     9.2448        2.7736        .48390E-07   -.14514E-03
  25  Prefactor     .10000E-03    3.9934        .25973E-06** at limit **
  26  norm          .83244E-02    .14432        .99532E-07   -.10006E-02
  27  norm          5.6986        3.5639        .10115E-06   -.17655E-03
  28  Prefactor     9.0792        8.1327        .93907E-07   -.20290E-04
  29  Prefactor     41.824        79.338        .12761E-05    .10699E-06
  30  Normalizat    .70754        .17447       -.23919E-05   -.31398E-03
  31  Prefactor     1.3444        .19104        .48761E-06   -.40209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60037
  norm       = 0.0001
  norm       = 6.20271
  Prefactor  = 0.0001
  Prefactor  = 4.72682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 1.05474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49492
  Prefactor  = 26.6869
  Prefactor  = 56.5092
  norm       = 0.799515
  Prefactor  = 2.28742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18859
  Prefactor  = 0.0001
  Prefactor  = 2.30524
  Prefactor  = 9.24482
  Prefactor  = 0.0001
  norm       = 0.00832443
  norm       = 5.6986
  Prefactor  = 9.07918
  Prefactor  = 41.8236
  Normalizat = 0.707538
  Prefactor  = 1.34438
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.087     FROM HESSE     STATUS=OK           632 CALLS     4839 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6004        2.2960        .11283E-03   -1.5385    
   2  norm          .10000E-03    6.3163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2027        7.9857        .80595E-03   -1.5210    
   4  Prefactor     .10000E-03    4.2502        .16342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7268        2.6106        .93343E-04   -1.5273    
   6  Prefactor     .10000E-03    34.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .68615        .65470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9731        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    12.680        .31229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0547        .99635        .74638E-03   -1.5503    
  12  Prefactor     .10000E-03    4.3472        .16527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4949        1.7183        .84530E-04   -1.5392    
  15  Prefactor     26.687        28.809        .77578E-04   -1.4674    
  16  Prefactor     56.509        53.044        .26691E-03   -1.4203    
  17  norm          .79951        .75492        .65455E-04   -1.5529    
  18  Prefactor     2.2874        4.1194        .20641E-03   -1.5405    
  19  Prefactor     .10000E-03    82.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1162        .18277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1886        2.7025        .12897E-03   -1.5412    
  22  Prefactor     .10000E-03    14.288        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.3052        2.3469        .10932E-03   -1.5404    
  24  Prefactor     9.2448        2.7684        .69353E-04   -1.5100    
  25  Prefactor     .10000E-03    13.305        .30632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .83244E-02    .71253        .57531E-03   -1.5690    
  27  norm          5.6986        3.4970        .11497E-03   -1.5230    
  28  Prefactor     9.0792        8.1312        .13301E-03   -1.5105    
  29  Prefactor     41.824        79.542        .61988E-04   -1.4414    
  30  Normalizat    .70754        .20309        .27973E-03   -1.0360    
  31  Prefactor     1.3444        .22575        .24870E-03   -.81997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39271e-08
Minuit parameter uncertainties:
  1  2.29612
  2  4.83656e-05
  3  7.98711
  4  9.62019e-06
  5  2.61067
  6  5.84582e-06
  7  3.57046e-05
  8  1.03717e-07
  9  3.19003e-06
  10  0.000870452
  11  0.996361
  12  2.81879e-09
  13  2.25594e-05
  14  1.71829
  15  28.8241
  16  53.0882
  17  0.754929
  18  4.11996
  19  0.000274881
  20  5.39089e-06
  21  2.70266
  22  1.16258e-05
  23  2.34699
  24  2.7684
  25  0.000127576
  26  0.153106
  27  3.49709
  28  8.13222
  29  79.745
  30  0.203307
  31  0.225918
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  7.995e-01  7.549e-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.344e+00  2.259e-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.075e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.17e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 9.72e-06 +/- 9.18e-06

TS (Fixed Index): 3.53
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230424/likelihoodResults_254880001_255139201_4FGL_J1159.5+2914_daily_bin60.txt

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) = 6595.95915077
delta logL = 0.128164188199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6595.9503295
delta logL = 0.13698545821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69859       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7406       1.0000          .0000       5.0000    
     3 'Normalizat'    .71443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3404       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=   6595.950     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69759        .70378        .12056E-01   -.67668E-04
   2  alpha         1.7402        .50478        .43853       -.29511E-04
   3  Normalizat    .71436        .15785        .62955E-01    .26259E-04
   4  Prefactor     1.3405        .18810        .56317E-01    .38789E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.697593
  alpha      = 1.74016
  Normalizat = 0.714359
  Prefactor  = 1.34047
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.950     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69759        .75862        .62431E-04   -1.5541    
   2  alpha         1.7402        .66304        .15889E-01   -.30882    
   3  Normalizat    .71436        .18669        .27851E-03   -1.0333    
   4  Prefactor     1.3405        .22258        .24901E-03   -.82111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68624e-12
Minuit parameter uncertainties:
  1  0.758629
  2  0.671922
  3  0.186857
  4  0.222743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230424': 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) = 6595.95032846
delta logL = 0.136986495746

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.976e-01  7.586e-01  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.740e+00  6.719e-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.340e+00  2.227e-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.144e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.74 +/- 0.67
Photon Flux (Free Index): 1.52e-08 +/- 1.89e-08
Energy Flux (Free Index): 1.38e-05 +/- 1.72e-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/230424/cmap_HighResolution_254880001_255139201_4FGL_J1159.5+2914_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-05', comment='SUCCESS', photon_flux='2.17e-08', energy_flux2='1.38e-05', photon_flux_error='2.05e-08', dlogl='1.37e-01', energy_flux='9.72e-06', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-09-04 19:22:28.951409', photon_index_error2='0.67', photon_index2='1.74', ts='3.53', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='7.63e-08', energy_flux_error2='1.72e-05', EG='0.71', time_epoch_completed='1630808548.95', return_code='0', job_id='230424', GAL2='1.34', EG2='0.71', return_code2='0', energy_flux_error='9.18e-06', photon_flux_error2='1.89e-08', ts2='3.81', photon_index='2.10' WHERE bin_id='60' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:22:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 230424: <4FGL_J1159.5+2914_daily_bin60> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin60> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:22 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06:23 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:23 2021
Terminated at Sat Sep  4 19:22:29 2021
Results reported at Sat Sep  4 19:22:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin60 179.884 29.2448 254880001 255139201 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 :                                   949.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            967 sec.

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

