aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 97 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).
nnumber of points = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1692
RA = 244.516, Dec = 51.6653
tmin = 677894401, tmax = 678153601
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='405988', job_status='RUN', time_executed='2022-06-29 04:51:59.923442', time_epoch_executed='1656503519.92' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405988

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405988/ft1_4FGL_J1618.0+5139_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405988/ft1_4FGL_J1618.0+5139_daily_bin1692.fits outfile=/scratch/kocevski/405988/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1692.fits ra=244.516 dec=51.6653 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.46
user 4.19
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.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/405988/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 749

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405988/ltcube_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.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/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits
.....................!
real 14.02
user 13.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405988/ltcube_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.fits outfile=/scratch/kocevski/405988/expmap_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.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/405988/ltcube_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.fits
.....................!
real 191.86
user 185.98
sys 5.31

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 214 point sources and 0 extended sources

Setting source of interest to:
4FGL J1618.0+5139 @ 244.516 51.6653

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits scfile=/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits outfile=/scratch/kocevski/405988/cmap_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.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=244.516 yref=51.6653 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits scfile=/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits outfile=/scratch/kocevski/405988/cmap_HighResolution_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.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=244.516 yref=51.6653 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405988/Model_4FGL_J1618.0+5139_daily_bin1692.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/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits.....................!
real 63.17
user 61.77
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits', '/scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits', expMap='/scratch/kocevski/405988/expmap_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.fits', expCube='/scratch/kocevski/405988/ltcube_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405988/Model_4FGL_J1618.0+5139_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1618.0+5139'

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.224e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.675e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405988/ft1_filtered_4FGL_J1618.0+5139_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/405988/ft2_4FGL_J1618.0+5139_daily_bin1692.fits
Exposure map: /scratch/kocevski/405988/expmap_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.fits
Exposure cube: /scratch/kocevski/405988/ltcube_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405988/Model_4FGL_J1618.0+5139_daily_bin1692.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) = 8080.90906862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46231E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.044       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1556       1.0000         .10000E-03   10000.    
     6 'norm      '    6.3349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4965       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17826E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13697E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .77826       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8080.902     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3319 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    51.235       -.65838E-05** at limit **
   2  Prefactor     22.993        10.652       -.23461E-06   -.84502E-03
   3  norm          1.1859        1.9240        .70263E-07   -.13027E-03
   4  Prefactor     .10000E-03    12.561       -.69136E-06** at limit **
   5  Prefactor     5.1552        8.9409       -.11889E-05   -.97361E-04
   6  norm          6.3363        8.8427        .17247E-05   -.17272E-03
   7  Prefactor     .10000E-03    13.306        .80813E-06** at limit **
   8  Prefactor     .10000E-03    47.376        .98297E-06** at limit **
   9  Prefactor     .10000E-03    2.1478        .11105E-06** at limit **
  10  Prefactor     18.659        19.999       -.20997E-06   -.67720E-05
  11  Prefactor     2.8016        5.5703        .51371E-05    .67651E-04
  12  Prefactor     .10000E-03    .95907        .41639E-07** at limit **
  13  norm          .10000E-03    6.9693        .86810E-07** at limit **
  14  norm          .10000E-03    3.6521        .71865E-08** at limit **
  15  Prefactor     3.4972        2.7965       -.29250E-07    .67277E-04
  16  Prefactor     .10000E-03    4.7299        .95514E-07** at limit **
  17  norm          .10000E-03    35.985       -.11100E-05** at limit **
  18  Prefactor     .14414E-01    1.4751       -.17305E-05    .10592E-02
  19  Prefactor     .10000E-03    .72665        .36311E-07** at limit **
  20  Prefactor     12.729        12.132       -.25869E-06    .26934E-04
  21  Prefactor     11.479        13.847        .23308E-06   -.33488E-05
  22  norm          .10000E-03    .22445        .44141E-07** at limit **
  23  Prefactor     .10000E-03    1.1509        .10171E-07** at limit **
  24  Prefactor     .10000E-03    5.0943       -.50569E-06** at limit **
  25  Prefactor     .10000E-03    1.2310        .35952E-08** at limit **
  26  Normalizat    .77812        .16722       -.11907E-05   -.25811E-04
  27  Prefactor     1.3117        .15958       -.40377E-06   -.18303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100067
  Prefactor  = 22.9926
  norm       = 1.18591
  Prefactor  = 0.0001
  Prefactor  = 5.15521
  norm       = 6.33634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6592
  Prefactor  = 2.80163
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.49721
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0144142
  Prefactor  = 0.0001
  Prefactor  = 12.7293
  Prefactor  = 11.4794
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.778117
  Prefactor  = 1.31175  **********
 **   18 **HESSE 
 **********

 FCN=   8080.902     FROM HESSE     STATUS=OK           494 CALLS     3813 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    54.326        .38617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.993        10.663        .83442E-04   -1.4749    
   3  norm          1.1859        1.8827        .15394E-03   -1.5490    
   4  Prefactor     .10000E-03    12.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1552        8.8432        .17706E-03   -1.5254    
   6  norm          6.3363        8.7809        .79738E-03   -1.5204    
   7  Prefactor     .10000E-03    13.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1507        .12843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.659        20.002        .92731E-04   -1.4844    
  11  Prefactor     2.8016        5.6207        .12155E-02   -1.5373    
  12  Prefactor     .10000E-03    .97025        .85958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.9780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6525        .16778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4972        2.7892        .12870E-03   -1.5334    
  16  Prefactor     .10000E-03    4.8267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    36.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14414E-01    2.3036        .32448E-01   -1.5684    
  19  Prefactor     .10000E-03    .73489        .74825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.729        12.138        .11229E-03   -1.4994    
  21  Prefactor     11.479        13.821        .11825E-03   -1.5030    
  22  norm          .10000E-03    .28528        .82269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1529        .94173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.242        .39186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.2493        .97389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .77812        .20322        .28313E-03   -1.0089    
  27  Prefactor     1.3117        .19445        .22562E-03   -.82958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99238e-09
Minuit parameter uncertainties:
  1  0.00381211
  2  10.6636
  3  1.88279
  4  0.000108439
  5  8.84547
  6  8.78267
  7  0.000108923
  8  0.000232386
  9  1.19726e-05
  10  20.0092
  11  5.62177
  12  3.14526e-06
  13  7.30706e-06
  14  1.68251e-06
  15  2.78928
  16  1.91062e-05
  17  0.000680859
  18  0.363191
  19  2.45132e-06
  20  12.1405
  21  13.8244
  22  3.51724e-06
  23  9.52816e-07
  24  0.000291758
  25  6.74413e-07
  26  0.20342
  27  0.194553DDone.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.802e+00  5.622e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.675e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.312e+00  1.946e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  7.781e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 244.516 51.665
Photon Flux Upper Limit: 9.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405988/likelihoodResults_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.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) = 8080.89195241
delta logL = 0.0104801898842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8080.88866222
delta logL = 0.013770377278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9571       1.0000          .0000       10.000    
     3 'Normalizat'    .77272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+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=   8080.889     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      270 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3240        7.0352        .24378E-03   -.97117E-03
   2  Index         2.9572        2.1304        .99099E-02   -.23202E-03
   3  Normalizat    .77271        .19531        .28405E-03    .42889E-03
   4  Prefactor     1.3160        .19438        .22532E-03    .70483E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32401
  Index      = 2.95719
  Normalizat = 0.772708
  Prefactor  = 1.31595
 **********
 **   18 **HESSE 
 **********

 FCN=   8080.889     FROM HESSE     STATUS=OK            23 CALLS      293 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3240        6.1095        .97512E-05   -1.5403    
   2  Index         2.9572        1.8657        .39639E-03   -.42088    
   3  Normalizat    .77271        .19527        .11362E-04   -1.0109    
   4  Prefactor     1.3160        .19407        .45064E-04   -.82834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45501e-09
Minuit parameter uncertainties:
  1  6.11116
  2  1.92197
  3  0.195452
  4  0.194174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405988': 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) = 8080.8886622
delta logL = 0.0137703958726

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.324e+00  6.111e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.957e+00  1.922e+00  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  5.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  1.316e+00  1.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  7.727e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 244.516 51.665

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405988/cmap_HighResolution_677894401_678153601_4FGL_J1618.0+5139_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2022-06-29 05:09:29.966664', job_id='405988', GAL2='1.32', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1656504569.97', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='1.38e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1692' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:09:30 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 405989: <4FGL_J1618.0+5139_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:20 2022
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:50:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:50:12 2022
Terminated at Wed Jun 29 05:09:28 2022
Results reported at Wed Jun 29 05:09:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1692 244.516 51.6653 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1618.0+5139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1048.49 sec.
    Max Memory :                                 619 MB
    Average Memory :                             284.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1156 sec.
    Turnaround time :                            18128 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 405988: <4FGL_J1618.0+5139_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:20 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:50:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:50:10 2022
Terminated at Wed Jun 29 05:09:30 2022
Results reported at Wed Jun 29 05:09:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1692 244.516 51.6653 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1618.0+5139 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1049.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1160 sec.
    Turnaround time :                            18130 sec.

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

