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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1402
RA = 179.884, Dec = 29.2448
tmin = 602726401, tmax = 602985601
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='237814', job_status='RUN', time_executed='2021-09-04 19:33:30.998761', time_epoch_executed='1630809211.0' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237814/ft1_4FGL_J1159.5+2914_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237814/ft2_4FGL_J1159.5+2914_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237814/ft1_4FGL_J1159.5+2914_daily_bin1402.fits outfile=/scratch/kocevski/237814/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1402.fits ra=179.884 dec=29.2448 rad=12.0 tmin=602726401.0 tmax=602985601.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.06
user 2.86
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237814/ft2_4FGL_J1159.5+2914_daily_bin1402.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/237814/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1402.fits evtable="EVENTS" outfile="/scratch/kocevski/237814/ft1_filtered_4FGL_J1159.5+2914_daily_bin1402.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/237814/ft1_filtered_4FGL_J1159.5+2914_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/237814/ft2_4FGL_J1159.5+2914_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/237814/ltcube_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.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/237814/ft2_4FGL_J1159.5+2914_daily_bin1402.fits
.....................!
real 12.62
user 12.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237814/ft1_filtered_4FGL_J1159.5+2914_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/237814/ft2_4FGL_J1159.5+2914_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/237814/ltcube_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.fits outfile=/scratch/kocevski/237814/expmap_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.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/237814/ltcube_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.fits
.....................!
real 190.35
user 185.72
sys 4.27

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/237814/ft1_filtered_4FGL_J1159.5+2914_daily_bin1402.fits scfile=/scratch/kocevski/237814/ft2_4FGL_J1159.5+2914_daily_bin1402.fits outfile=/scratch/kocevski/237814/cmap_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237814/ft1_filtered_4FGL_J1159.5+2914_daily_bin1402.fits scfile=/scratch/kocevski/237814/ft2_4FGL_J1159.5+2914_daily_bin1402.fits outfile=/scratch/kocevski/237814/cmap_HighResolution_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .22356E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5006       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.892       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2417       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.385       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21148E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23990E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .16199E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.343       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56887       1.0000         .10000E-03   10000.    
    15 'Prefactor '    128.82       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38799E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0125       1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.536       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9147       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .53664E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.379       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1636       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41313E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.6524       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18822E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.5447       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4231       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .47252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1938.783     FROM MIGRAD    STATUS=CONVERGED    247 CALLS     3336 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.058        .39766E-05** at limit **
   2  norm          .10000E-03    102.24        .25549E-04** at limit **
   3  norm          .10000E-03    18.013        .96808E-05** at limit **
   4  Prefactor     10.786        71.570       -.30835E-04   -.63254E-03
   5  Prefactor     20.947        23.038        .72705E-06   -.32271E-03
   6  Prefactor     .10113E-03    547.66        .14022E-03** at limit **
   7  Prefactor     15.773        19.051       -.16710E-04    .37026E-02
   8  norm          5.7708        17.261        .27499E-04    .11337E-04
   9  Prefactor     .10000E-03    110.89        .80938E-05** at limit **
  10  Prefactor     .10000E-03    32.047        .54529E-05** at limit **
  11  norm          .10000E-03    5.2832       -.21137E-06** at limit **
  12  Prefactor     45.606        38.123       -.18804E-04    .15225E-02
  13  Prefactor     .10000E-03    24.210        .13945E-04** at limit **
  14  Prefactor     .50953        11.585        .37628E-04   -.17378E-04
  15  Prefactor     138.23        65.476       -.24642E-04   -.24102E-02
  16  Prefactor     .10000E-03    73.595        .27037E-05** at limit **
  17  norm          3.3518        3.1968       -.30932E-05   -.77576E-04
  18  Prefactor     8.0132        7.5079       -.38455E-05   -.12522E-04
  19  Prefactor     75.977        77.033       -.13272E-04   -.88948E-03
  20  Prefactor     .10000E-03    2.4698       -.74776E-06** at limit **
  21  norm          3.9305        5.8232        .73907E-05    .28954E-04
  22  Prefactor     .10000E-03    9.1721        .55713E-06** at limit **
  23  Prefactor     10.358        6.2461       -.19264E-05   -.75879E-05
  24  Prefactor     3.1728        3.0652       -.15992E-05   -.28442E-04
  25  Prefactor     .10000E-03    3.8943       -.88289E-06** at limit **
  26  norm          .10000E-03    .12576       -.84704E-06** at limit **
  27  norm          1.8285        6.1225        .47793E-05    .84839E-05
  28  Prefactor     .10000E-03    16.145       -.57623E-05** at limit **
  29  Prefactor     15.894        137.09       -.91275E-05    .93183E-03
  30  Normalizat    1.3982        .41932        .25129E-05   -.30707E-04
  31  Prefactor     .48352        .40403       -.10886E-04   -.15290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7856
  Prefactor  = 20.9471
  Prefactor  = 0.000101129
  Prefactor  = 15.7726
  norm       = 5.77083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.6059
  Prefactor  = 0.0001
  Prefactor  = 0.509533
  Prefactor  = 138.228
  Prefactor  = 0.0001
  norm       = 3.35176
  Prefactor  = 8.0132
  Prefactor  = 75.9766
  Prefactor  = 0.0001
  norm       = 3.93052
  Prefactor  = 0.0001
  Prefactor  = 10.3584
  Prefactor  = 3.17283
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.82851
  Prefactor  = 0.0001
  Prefactor  = 15.8935
  Normalizat = 1.3982
  Prefactor  = 0.48352
 **********
 **   18 **HESSE 
 **********

 FCN=   1938.783     FROM HESSE     STATUS=OK           696 CALLS     4032 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.004        .10515E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    102.07        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.786        73.041        .32504E-02   -1.5051    
   5  Prefactor     20.947        23.269        .21907E-02   -1.4792    
   6  Prefactor     .10113E-03    854.89        .56240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.773        71.736        .25528E-02   -1.4913    
   8  norm          5.7708        17.500        .41162E-02   -1.5227    
   9  Prefactor     .10000E-03    110.44        .91283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0626        .29596E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.606        74.255        .15223E-02   -1.4356    
  13  Prefactor     .10000E-03    24.045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .50953        9.1461        .36323E-01   -1.5565    
  15  Prefactor     138.23        104.11        .88680E-03   -1.3351    
  16  Prefactor     .10000E-03    73.491        .92153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3518        3.2208        .54790E-02   -1.5342    
  18  Prefactor     8.0132        7.5292        .35411E-02   -1.5142    
  19  Prefactor     75.977        92.243        .12121E-02   -1.3962    
  20  Prefactor     .10000E-03    2.4756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9305        5.8219        .50977E-02   -1.5311    
  22  Prefactor     .10000E-03    9.1580        .10561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.358        6.2277        .31093E-02   -1.5064    
  24  Prefactor     3.1728        3.0616        .56967E-02   -1.5352    
  25  Prefactor     .10000E-03    3.9085        .10624E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .12314        .69252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8285        6.1717        .82100E-02   -1.5438    
  28  Prefactor     .10000E-03    16.033        .10141E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.894        169.24        .36501E-02   -1.4910    
  30  Normalizat    1.3982        .36180        .52421E-01   -.80681    
  31  Prefactor     .48352        .36077        .88871E-01   -1.1274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5485e-07
Minuit parameter uncertainties:
  1  9.30448e-06
  2  7.36442e-05
  3  1.61591e-05
  4  56.2338
  5  23.2795
  6  0.0630621
  7  67.4085
  8  17.5154
  9  0.000244966
  10  4.49659e-06
  11  1.78567e-07
  12  74.4064
  13  2.14789e-05
  14  4.31787
  15  104.244
  16  3.18736e-06
  17  3.22093
  18  7.53004
  19  92.4174
  20  4.83903e-07
  21  5.82273
  22  1.26417e-06
  23  6.22806
  24  3.06176
  25  6.97017e-07
  26  1.0486e-07
  27  6.17381
  28  6.84342e-06
  29  104.104
  30  0.362463
  31  0.362489
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.398e+00  3.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 9.10e-08 +/- 8.74e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 3.92e-05

TS (Fixed Index): 1.61
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 2.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237814/likelihoodResults_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.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) = 1938.43649012
delta logL = 0.346842498581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1938.40791212
delta logL = 0.375420494148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8153       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0552       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56322       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=   1938.408     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8103        4.4408        .52691E-04   -.11700E-03
   2  alpha         3.0563        1.5025        .11774E-01   -.71280E-05
   3  Normalizat    1.2963        .40521        .23823E-03   -.20711E-04
   4  Prefactor     .56307        .42266        .36719E-03   -.65328E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.81035
  alpha      = 3.0563
  Normalizat = 1.29627
  Prefactor  = 0.563068
 **********
 **   18 **HESSE 
 **********

 FCN=   1938.408     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8103        3.9056        .21077E-05   -1.5373    
   2  alpha         3.0563        1.3429        .47097E-03    .22440    
   3  Normalizat    1.2963        .40167        .47647E-04   -.83678    
   4  Prefactor     .56307        .41759        .14688E-04   -1.0916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29574e-10
Minuit parameter uncertainties:
  1  3.90595
  2  1.42229
  3  0.40264
  4  0.419913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237814': 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) = 1938.40791085
delta logL = 0.375421767742

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.810e+00  3.906e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  3.056e+00  1.422e+00  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:  5.631e-01  4.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.296e+00  4.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 179.884 29.245
Photon Index (Free Index): 3.06 +/- 1.42
Photon Flux (Free Index): 1.95e-07 +/- 1.75e-07
Energy Flux (Free Index): 3.86e-05 +/- 2.99e-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/237814/cmap_HighResolution_602726401_602985601_4FGL_J1159.5+2914_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-04', comment='SUCCESS', photon_flux='9.10e-08', energy_flux2='3.86e-05', photon_flux_error='8.74e-08', dlogl='3.75e-01', energy_flux='4.08e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-04 19:45:18.729170', photon_index_error2='1.42', photon_index2='3.06', ts='1.61', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='2.84e-07', energy_flux_error2='2.99e-05', EG='1.40', time_epoch_completed='1630809918.73', return_code='0', job_id='237814', GAL2='0.56', EG2='1.30', return_code2='0', energy_flux_error='3.92e-05', photon_flux_error2='1.75e-07', ts2='2.39', photon_index='2.10' WHERE bin_id='1402' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:45:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 237814: <4FGL_J1159.5+2914_daily_bin1402> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1402 179.884 29.2448 602726401 602985601 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 :                                   489.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

