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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1527
RA = 179.884, Dec = 29.2448
tmin = 635126401, tmax = 635385601
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='237978', job_status='RUN', time_executed='2021-09-04 19:31:28.785677', time_epoch_executed='1630809088.79' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237978/ft1_4FGL_J1159.5+2914_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237978/ft2_4FGL_J1159.5+2914_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237978/ft1_4FGL_J1159.5+2914_daily_bin1527.fits outfile=/scratch/kocevski/237978/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1527.fits ra=179.884 dec=29.2448 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.99
user 2.71
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237978/ft1_filtered_4FGL_J1159.5+2914_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/237978/ft2_4FGL_J1159.5+2914_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/237978/ltcube_635126401_635385601_4FGL_J1159.5+2914_daily_bin1527.fits outfile=/scratch/kocevski/237978/expmap_635126401_635385601_4FGL_J1159.5+2914_daily_bin1527.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/237978/ltcube_635126401_635385601_4FGL_J1159.5+2914_daily_bin1527.fits
.....................!
real 193.94
user 186.22
sys 4.81

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/237978/ft1_filtered_4FGL_J1159.5+2914_daily_bin1527.fits scfile=/scratch/kocevski/237978/ft2_4FGL_J1159.5+2914_daily_bin1527.fits outfile=/scratch/kocevski/237978/cmap_635126401_635385601_4FGL_J1159.5+2914_daily_bin1527.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237978/ft1_filtered_4FGL_J1159.5+2914_daily_bin1527.fits scfile=/scratch/kocevski/237978/ft2_4FGL_J1159.5+2914_daily_bin1527.fits outfile=/scratch/kocevski/237978/cmap_HighResolution_635126401_635385601_4FGL_J1159.5+2914_daily_bin1527.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.114       1.0000         .10000E-03   10000.    
     2 'norm      '    41.777       1.0000         .10000E-03   10000.    
     3 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43895E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    4.5858       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11926E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.3377       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0144       1.0000         .10000E-03   10000.    
    21 'norm      '    2.9499       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .52968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.855       1.0000         .10000E-03   10000.    
    26 'norm      '    .20842       1.0000         .10000E-03   10000.    
    27 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    46.033       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89751       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2457       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=   2406.319     FROM MIGRAD    STATUS=CONVERGED   1471 CALLS     4787 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.116        33.096        .67628E-04   -.25216E-06
   2  norm          41.761        86.939        .62020E-04    .10284E-04
   3  norm          .10000E-03    45.298        .18142E-02** at limit **
   4  Prefactor     .10000E-03    223.87        .18142E-02** at limit **
   5  Prefactor     .10000E-03    3.2987        .86878E-03** at limit **
   6  Prefactor     .10000E-03    40.644        .18142E-02** at limit **
   7  Prefactor     .10000E-03    16.574        .18142E-02** at limit **
   8  norm          .10000E-03    2.1345        .69953E-03** at limit **
   9  Prefactor     .10000E-03    21.687        .18142E-02** at limit **
  10  Prefactor     .14784E-01    18.502        .57395E-01    .49029E-04
  11  norm          4.5854        2.8587        .62691E-04    .30058E-03
  12  Prefactor     .10000E-03    47.416        .18142E-02** at limit **
  13  Prefactor     .10000E-03    12.900        .17210E-02** at limit **
  14  Prefactor     .10000E-03    21.003        .16625E-02** at limit **
  15  Prefactor     .10000E-03    18.984        .18142E-02** at limit **
  16  Prefactor     .10000E-03    131.58        .18142E-02** at limit **
  17  norm          9.3377        3.5624        .54256E-04    .79100E-04
  18  Prefactor     28.146        15.134        .75517E-04    .38464E-04
  19  Prefactor     .10000E-03    21.766        .18142E-02** at limit **
  20  Prefactor     4.0127        9.8289        .10064E-02    .10110E-03
  21  norm          2.9494        2.9594        .81147E-04    .46864E-04
  22  Prefactor     .10000E-03    13.532        .17554E-02** at limit **
  23  Prefactor     .10000E-03    1.5961        .60322E-03** at limit **
  24  Prefactor     .52319        8.3897        .19023E-02    .17941E-03
  25  Prefactor     12.852        11.825        .11172E-03    .22184E-04
  26  norm          .20849        .35524        .38378E-03   -.42805E-03
  27  norm          .10000E-03    16.914        .36285E-03** at limit **
  28  Prefactor     46.019        29.822        .59095E-04    .42708E-04
  29  Prefactor     .10000E-03    69.036        .18142E-02** at limit **
  30  Normalizat    .89712        .38089        .30358E-03    .40426E-04
  31  Prefactor     1.2461        .43324        .30071E-03    .35633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1161
  norm       = 41.7608
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0147836
  norm       = 4.58543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.33772
  Prefactor  = 28.1458
  Prefactor  = 0.0001
  Prefactor  = 4.01268
  norm       = 2.94943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.523188
  Prefactor  = 12.8521
  norm       = 0.20849
  norm       = 0.0001
  Prefactor  = 46.0192
  Prefactor  = 0.0001
  Normalizat = 0.897116
  Prefactor  = 1.24605
 **********
 **   18 **HESSE 
 **********

 FCN=   2406.319     FROM HESSE     STATUS=OK           606 CALLS     5393 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.116        33.103        .27051E-05   -1.4522    
   2  norm          41.761        86.937        .12404E-04   -1.4415    
   3  norm          .10000E-03    45.302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    223.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2988        .17376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1345        .13991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14784E-01    17.446        .59821E-01   -1.5684    
  11  norm          4.5854        2.8586        .25076E-05   -1.5280    
  12  Prefactor     .10000E-03    47.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.900        .34419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.250        .33250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    131.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.3377        3.5622        .21702E-05   -1.5097    
  18  Prefactor     28.146        15.121        .30207E-05   -1.4646    
  19  Prefactor     .10000E-03    21.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0127        9.8150        .40255E-04   -1.5307    
  21  norm          2.9494        2.9565        .32459E-05   -1.5364    
  22  Prefactor     .10000E-03    13.536        .35108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5962        .12064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .52319        8.2398        .76092E-04   -1.5563    
  25  Prefactor     12.852        11.821        .44688E-05   -1.4991    
  26  norm          .20849        .35496        .15351E-04   -1.5617    
  27  norm          .10000E-03    16.914        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     46.019        29.702        .23638E-05   -1.4350    
  29  Prefactor     .10000E-03    69.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .89712        .38107        .12143E-04   -.96562    
  31  Prefactor     1.2461        .43350        .12028E-04   -.84926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08517e-10
Minuit parameter uncertainties:
  1  33.1203
  2  87.203
  3  1.28779e-05
  4  0.000210961
  5  1.28419e-05
  6  0.000104578
  7  3.08568e-05
  8  9.01744e-07
  9  2.88789e-05
  10  1.01255
  11  2.85867
  12  4.06852e-05
  13  2.53957e-06
  14  0.000567649
  15  8.20298e-05
  16  0.000662469
  17  3.56225
  18  15.123
  19  3.99431e-05
  20  9.81898
  21  2.95665
  22  6.05081e-06
  23  1.41485e-06
  24  4.15285
  25  11.8231
  26  0.354964
  27  1.44111e-05
  28  29.7119
  29  0.000291465
  30  0.382222
  31  0.434752
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  9.338e+00  3.562e+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.246e+00  4.348e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.971e-01  3.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.98
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.54e-07 +/- 9.67e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 4.33e-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) = 2406.05083682
delta logL = 0.267842113962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2406.03748152
delta logL = 0.28119741496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7524       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8530       1.0000          .0000       5.0000    
     3 'Normalizat'    .93576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2279       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=   2406.037     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7519        3.5296        .33872E-02   -.60399E-04
   2  alpha         1.8529        .30408        .13706       -.18101E-04
   3  Normalizat    .93577        .31577        .67478E-01    .10580E-04
   4  Prefactor     1.2279        .36098        .68498E-01    .90594E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.7519
  alpha      = 1.85286
  Normalizat = 0.935775
  Prefactor  = 1.22795
 **********
 **   18 **HESSE 
 **********

 FCN=   2406.037     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7519        3.7889        .55448E-04   -1.5116    
   2  alpha         1.8529        .33293        .59438E-03   -.26184    
   3  Normalizat    .93577        .37571        .29850E-03   -.95214    
   4  Prefactor     1.2279        .42868        .30303E-03   -.85476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72122e-12
Minuit parameter uncertainties:
  1  3.789
  2  0.333994
  3  0.376769
  4  0.429912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237978': 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) = 2406.03748147
delta logL = 0.28119746578

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  8.752e+00  3.789e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.853e+00  3.340e-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.228e+00  4.299e-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:  9.358e-01  3.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.30
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.85 +/- 0.33
Photon Flux (Free Index): 2.02e-07 +/- 1.07e-07
Energy Flux (Free Index): 1.42e-04 +/- 7.56e-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/237978/cmap_HighResolution_635126401_635385601_4FGL_J1159.5+2914_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-07', energy_flux2='1.42e-04', photon_flux_error='9.67e-08', dlogl='2.81e-01', energy_flux='1.14e-04', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-04 19:40:18.116572', photon_index_error2='0.33', photon_index2='1.85', ts='28.98', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='7.56e-05', EG='0.90', time_epoch_completed='1630809618.12', return_code='0', job_id='237978', GAL2='1.23', EG2='0.94', return_code2='0', energy_flux_error='4.33e-05', photon_flux_error2='1.07e-07', ts2='29.30', photon_index='2.10' WHERE bin_id='1527' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:40:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 237978: <4FGL_J1159.5+2914_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1527> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:30:57 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:30:59 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:30:59 2021
Terminated at Sat Sep  4 19:40:18 2021
Results reported at Sat Sep  4 19:40:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1527 179.884 29.2448 635126401 635385601 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 :                                   520.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            561 sec.

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

