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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1180
RA = 179.884, Dec = 29.2448
tmin = 545184001, tmax = 545443201
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='236746', job_status='RUN', time_executed='2021-09-04 19:28:28.110316', time_epoch_executed='1630808908.11' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236746/ft1_4FGL_J1159.5+2914_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236746/ft2_4FGL_J1159.5+2914_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236746/ft1_4FGL_J1159.5+2914_daily_bin1180.fits outfile=/scratch/kocevski/236746/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1180.fits ra=179.884 dec=29.2448 rad=12.0 tmin=545184001.0 tmax=545443201.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.99
user 3.75
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236746/ft1_filtered_4FGL_J1159.5+2914_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/236746/ft2_4FGL_J1159.5+2914_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/236746/ltcube_545184001_545443201_4FGL_J1159.5+2914_daily_bin1180.fits outfile=/scratch/kocevski/236746/expmap_545184001_545443201_4FGL_J1159.5+2914_daily_bin1180.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/236746/ltcube_545184001_545443201_4FGL_J1159.5+2914_daily_bin1180.fits
.....................!
real 190.07
user 184.71
sys 4.89

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/236746/ft1_filtered_4FGL_J1159.5+2914_daily_bin1180.fits scfile=/scratch/kocevski/236746/ft2_4FGL_J1159.5+2914_daily_bin1180.fits outfile=/scratch/kocevski/236746/cmap_545184001_545443201_4FGL_J1159.5+2914_daily_bin1180.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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236746/ft1_filtered_4FGL_J1159.5+2914_daily_bin1180.fits scfile=/scratch/kocevski/236746/ft2_4FGL_J1159.5+2914_daily_bin1180.fits outfile=/scratch/kocevski/236746/cmap_HighResolution_545184001_545443201_4FGL_J1159.5+2914_daily_bin1180.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.63
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2090       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.3925       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.805       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.106       1.0000         .10000E-03   10000.    
     8 'norm      '    10.517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18666E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.399       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8598       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9326       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4555       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.598       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0263       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3513       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3166       1.0000         .10000E-03   10000.    
    26 'norm      '    .88772       1.0000         .10000E-03   10000.    
    27 'norm      '    1.5749       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90235       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0406       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=   4998.051     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     4271 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2087        7.5911       -.19392E-07   -.66675E-04
   2  norm          .10000E-03    42.328       -.33947E-06** at limit **
   3  norm          8.3921        15.200        .65677E-07   -.38897E-04
   4  Prefactor     14.805        14.277        .66846E-07   -.94812E-05
   5  Prefactor     .10000E-03    7.8957        .13944E-06** at limit **
   6  Prefactor     .10000E-03    157.85       -.38703E-05** at limit **
   7  Prefactor     28.080        33.935       -.30604E-05   -.21538E-03
   8  norm          10.516        8.4342       -.24668E-07    .11367E-03
   9  Prefactor     .10024E-03    35.973        .61755E-05** at limit **
  10  Prefactor     .10000E-03    8.8577        .19247E-06** at limit **
  11  norm          1.9032        2.3914        .10286E-07   -.17373E-04
  12  Prefactor     55.890        39.588       -.14522E-06   -.84506E-04
  13  Prefactor     .10000E-03    3.1717        .21402E-08** at limit **
  14  Prefactor     .10000E-03    .67546        .14543E-07** at limit **
  15  Prefactor     29.379        55.143        .52884E-06   -.54871E-04
  16  Prefactor     .10000E-03    76.330        .11252E-05** at limit **
  17  norm          22.923        3.8823       -.16132E-07   -.62976E-03
  18  Prefactor     3.8595        4.8086        .97822E-07   -.70095E-05
  19  Prefactor     .10000E-03    223.96        .53643E-05** at limit **
  20  Prefactor     5.9326        3.4109        .79039E-07    .52835E-04
  21  norm          3.4554        3.3429        .19396E-07   -.63079E-04
  22  Prefactor     11.597        11.747        .83327E-07   -.61721E-04
  23  Prefactor     3.0262        2.6977        .83184E-08   -.50866E-04
  24  Prefactor     4.3514        3.0365        .36205E-08   -.68168E-04
  25  Prefactor     2.3166        3.4985       -.52623E-07    .55210E-05
  26  norm          .88773        .32468        .78958E-08   -.17170E-03
  27  norm          1.5747        3.5913        .11189E-05    .34478E-03
  28  Prefactor     .10000E-03    4.7565        .21273E-08** at limit **
  29  Prefactor     .10000E-03    36.377        .18947E-06** at limit **
  30  Normalizat    .90241        .25893       -.40008E-06   -.14089E-03
  31  Prefactor     1.0405        .25201       -.41177E-06   -.15754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.20874
  norm       = 0.0001
  norm       = 8.39213
  Prefactor  = 14.8047
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 28.08
  norm       = 10.5158
  Prefactor  = 0.000100235
  Prefactor  = 0.0001
  norm       = 1.90321
  Prefactor  = 55.8905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3792
  Prefactor  = 0.0001
  norm       = 22.9233
  Prefactor  = 3.85951
  Prefactor  = 0.0001
  Prefactor  = 5.93262
  norm       = 3.45543
  Prefactor  = 11.5974
  Prefactor  = 3.02621
  Prefactor  = 4.35139
  Prefactor  = 2.31664
  norm       = 0.887732
  norm       = 1.57472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.902414
  Prefactor  = 1.04052
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.051     FROM HESSE     STATUS=OK           624 CALLS     4895 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2087        7.5917        .13993E-03   -1.5135    
   2  norm          .10000E-03    42.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.3921        15.207        .13838E-03   -1.5129    
   4  Prefactor     14.805        14.292        .10409E-03   -1.4938    
   5  Prefactor     .10000E-03    8.0737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    158.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.080        35.048        .75569E-04   -1.4648    
   8  norm          10.516        8.3917        .12355E-03   -1.5059    
   9  Prefactor     .10024E-03    128.36        .62043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9032        2.3819        .11887E-03   -1.5432    
  12  Prefactor     55.890        39.841        .53655E-04   -1.4211    
  13  Prefactor     .10000E-03    3.1756        .12295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .67789        .56681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.379        55.079        .73892E-04   -1.4623    
  16  Prefactor     .10000E-03    76.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.923        3.8840        .52231E-04   -1.4750    
  18  Prefactor     3.8595        4.8047        .15586E-03   -1.5315    
  19  Prefactor     .10000E-03    224.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9326        3.4048        .46220E-03   -1.5221    
  21  norm          3.4554        3.3402        .11970E-03   -1.5336    
  22  Prefactor     11.597        11.751        .11763E-03   -1.5027    
  23  Prefactor     3.0262        2.7011        .10366E-03   -1.5360    
  24  Prefactor     4.3514        3.0317        .97129E-04   -1.5291    
  25  Prefactor     2.3166        3.4818        .15695E-03   -1.5404    
  26  norm          .88773        .32440        .22474E-04   -1.5520    
  27  norm          1.5747        3.6816        .99439E-03   -1.5457    
  28  Prefactor     .10000E-03    4.7625        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    36.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90241        .30481        .32625E-03   -.96375    
  31  Prefactor     1.0405        .29497        .32406E-03   -.91391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06268e-09
Minuit parameter uncertainties:
  1  7.59264
  2  5.02553e-06
  3  15.2139
  4  14.2953
  5  2.27593e-06
  6  0.00062188
  7  35.0739
  8  8.39268
  9  0.0110166
  10  3.39499e-05
  11  2.38206
  12  39.8602
  13  5.56272e-07
  14  8.24466e-08
  15  55.1749
  16  0.000123839
  17  3.884
  18  4.80521
  19  0.000589383
  20  3.40496
  21  3.34033
  22  11.7533
  23  2.70122
  24  3.03183
  25  3.48213
  26  0.3244
  27  3.68215
  28  1.08439e-06
  29  1.8035e-05
  30  0.305398
  31  0.295429
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.292e+01  3.884e+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.041e+00  2.954e-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.024e-01  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 144.69
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.22e-07 +/- 1.05e-07
Energy Flux (Fixed Index): 2.79e-04 +/- 4.72e-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) = 4998.05070173
delta logL = 0.000667820462695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4998.05064489
delta logL = 0.00072466614256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.923       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1096       1.0000          .0000       5.0000    
     3 'Normalizat'    .89965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0424       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=   4998.051     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      196 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.928        3.7994        .20915E-02   -.88410E-04
   2  alpha         2.1096        .16443        .99919E-01   -.21403E-04
   3  Normalizat    .89965        .24139        .73814E-01   -.49989E-04
   4  Prefactor     1.0424        .25087        .73178E-01   -.38586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.9284
  alpha      = 2.10957
  Normalizat = 0.899654
  Prefactor  = 1.0424
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.051     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.928        3.7445        .52177E-04   -1.4750    
   2  alpha         2.1096        .16445        .43761E-03   -.15681    
   3  Normalizat    .89965        .28549        .32665E-03   -.96472    
   4  Prefactor     1.0424        .29532        .32379E-03   -.91329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04502e-11
Minuit parameter uncertainties:
  1  3.74454
  2  0.164577
  3  0.285971
  4  0.295786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236746': 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) = 4998.05064384
delta logL = 0.000725713424799

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.293e+01  3.745e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.110e+00  1.646e-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.042e+00  2.958e-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.997e-01  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 142.86
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.11 +/- 0.16
Photon Flux (Free Index): 6.26e-07 +/- 1.30e-07
Energy Flux (Free Index): 2.77e-04 +/- 5.66e-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/236746/cmap_HighResolution_545184001_545443201_4FGL_J1159.5+2914_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.22e-07', energy_flux2='2.77e-04', photon_flux_error='1.05e-07', dlogl='7.26e-04', energy_flux='2.79e-04', photon_flux2='6.26e-07', job_status='DONE', time_completed='2021-09-04 19:40:33.983712', photon_index_error2='0.16', photon_index2='2.11', ts='144.69', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='5.66e-05', EG='0.90', time_epoch_completed='1630809633.98', return_code='0', job_id='236746', GAL2='1.04', EG2='0.90', return_code2='0', energy_flux_error='4.72e-05', photon_flux_error2='1.30e-07', ts2='142.86', photon_index='2.10' WHERE bin_id='1180' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:40:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 236746: <4FGL_J1159.5+2914_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1180> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 19:25:53 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:25:55 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:25:55 2021
Terminated at Sat Sep  4 19:40:34 2021
Results reported at Sat Sep  4 19:40:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1180 179.884 29.2448 545184001 545443201 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 :                                   718.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

