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 36 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1746
RA = 244.516, Dec = 51.6653
tmin = 691891201, tmax = 692150401
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='732523', job_status='RUN', time_executed='2022-12-08 01:16:12.666104', time_epoch_executed='1670490972.67' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732523/ft1_4FGL_J1618.0+5139_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732523/ft1_4FGL_J1618.0+5139_daily_bin1746.fits outfile=/scratch/kocevski/732523/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1746.fits ra=244.516 dec=51.6653 rad=12.0 tmin=691891201.0 tmax=692150401.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.77
user 4.51
sys 0.21

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

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

Number of photons that the gtmktime cut: 774

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732523/ft1_filtered_4FGL_J1618.0+5139_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/732523/ltcube_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.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/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits
.....................!
real 12.77
user 12.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732523/ft1_filtered_4FGL_J1618.0+5139_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/732523/ltcube_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.fits outfile=/scratch/kocevski/732523/expmap_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.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/732523/ltcube_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.fits
.....................!
real 193.40
user 188.10
sys 4.85

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/732523/ft1_filtered_4FGL_J1618.0+5139_daily_bin1746.fits scfile=/scratch/kocevski/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits outfile=/scratch/kocevski/732523/cmap_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732523/ft1_filtered_4FGL_J1618.0+5139_daily_bin1746.fits scfile=/scratch/kocevski/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits outfile=/scratch/kocevski/732523/cmap_HighResolution_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/732523/ft1_filtered_4FGL_J1618.0+5139_daily_bin1746.fits', '/scratch/kocevski/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits', expMap='/scratch/kocevski/732523/expmap_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.fits', expCube='/scratch/kocevski/732523/ltcube_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/732523/Model_4FGL_J1618.0+5139_daily_bin1746.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  0.000e+00  1.000e+06 ( 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/732523/ft1_filtered_4FGL_J1618.0+5139_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/732523/ft2_4FGL_J1618.0+5139_daily_bin1746.fits
Exposure map: /scratch/kocevski/732523/expmap_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.fits
Exposure cube: /scratch/kocevski/732523/ltcube_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/732523/Model_4FGL_J1618.0+5139_daily_bin1746.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) = 8362.90791173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48859       1.0000          .0000       .10000E+07
     2 'Prefactor '    14.375       1.0000          .0000       .10000E+07
     3 'norm      '    .10346E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    27.798       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18492E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .35195E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2245       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.1997       1.0000          .0000       .10000E+07
     9 'Prefactor '    .79651E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    20.639       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11443E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .27977E-04   1.0000          .0000       .10000E+07
    13 'norm      '    14.537       1.0000          .0000       .10000E+07
    14 'norm      '    12.156       1.0000          .0000       .10000E+07
    15 'Prefactor '    .72476E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.6209       1.0000          .0000       .10000E+07
    17 'norm      '    48.609       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.8716       1.0000          .0000       .10000E+07
    19 'Prefactor '    .14142E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.4068       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.664       1.0000          .0000       .10000E+07
    22 'norm      '    .50795       1.0000          .0000       .10000E+07
    23 'Prefactor '    .41616       1.0000          .0000       .10000E+07
    24 'Prefactor '    .89505E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.5816       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0011       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8362.907     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     2510 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45484        2.7852        .10274E-06   -.25421E-02
   2  Prefactor     14.389        4.7238       -.24754E-06    .23945E-01
   3  norm          .20650E-07    2.5696       -.46403E-06** at limit **
   4  Prefactor     28.009        8.1657       -.24960E-06    .55335E-01
   5  Prefactor      .0000        2.2255        .63328E-07** at limit **
   6  norm          .55511E-10    1.4730       -.16356E-06** at limit **
   7  Prefactor     1.2195        20.657       -.28097E-05    .33740E-02
   8  Prefactor     9.4166        15.602        .19473E-05   -.82266E-01
   9  Prefactor     .52180E-08    3.4137       -.31088E-06** at limit **
  10  Prefactor     21.035        21.237        .95432E-06   -.14505E-01
  11  Prefactor     .27756E-09    1.9423        .41099E-07** at limit **
  12  Prefactor     .55511E-10    1.3117        .24109E-06** at limit **
  13  norm          14.598        10.619       -.45536E-06   -.50475E-01
  14  norm          12.141        9.6005        .32349E-06   -.42010E-01
  15  Prefactor     .20539E-08    1.2374        .66073E-06** at limit **
  16  Prefactor     5.6159        5.5812        .59540E-07    .73074E-02
  17  norm          49.345        42.908        .12414E-05    .45708E-01
  18  Prefactor     2.8704        2.2881       -.23473E-07   -.50925E-03
  19  Prefactor     .22410E-06    2.2489        .40601E-06** at limit **
  20  Prefactor     5.3895        5.1083       -.61170E-07    .10696E-02
  21  Prefactor     11.648        14.364       -.60336E-06   -.44611E-01
  22  norm          .50764        .61645       -.93646E-07   -.24958E-02
  23  Prefactor     .42139        3.8128        .15935E-05    .43260E-01
  24  Prefactor     .16598E-07    2.5012        .10833E-06** at limit **
  25  Prefactor     2.5859        2.6245       -.24032E-06   -.42305E-03
  26  Normalizat    1.0006        .18281       -.38266E-05   -.19586E-04
  27  Prefactor     1.0124        .17845        .22319E-05   -.12235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.454836
  Prefactor  = 14.3889
  norm       = 2.06501e-08
  Prefactor  = 28.0085
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 1.21951
  Prefactor  = 9.41658
  Prefactor  = 5.21805e-09
  Prefactor  = 21.0353
  Prefactor  = 2.77556e-10
  Prefactor  = 5.55112e-11
  norm       = 14.5981
  norm       = 12.1406
  Prefactor  = 2.05391e-09
  Prefactor  = 5.6159
  norm       = 49.3448
  Prefactor  = 2.87039
  Prefactor  = 2.24099e-07
  Prefactor  = 5.38951
  Prefactor  = 11.6475
  norm       = 0.507637
  Prefactor  = 0.421389
  Prefactor  = 1.65978e-08
  Prefactor  = 2.58592
  Normalizat = 1.00056
  Prefactor  = 1.01238
 **********
 **   18 **HESSE 
 **********

 FCN=   8362.907     FROM HESSE     STATUS=OK           560 CALLS     3070 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45484        11.035        .96946E-02   -1.5694    
   2  Prefactor     14.389        9.8804        .26392E-03   -1.5632    
   3  norm          .20650E-07    2.6205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.009        23.883        .18970E-03   -1.5602    
   5  Prefactor      .0000        2.3317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    1.4769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2195        92.271        .10176E-02   -1.5686    
   8  Prefactor     9.4166        100.21        .33019E-03   -1.5647    
   9  Prefactor     .52180E-08    3.4549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.035        21.743        .22018E-03   -1.5616    
  11  Prefactor     .27756E-09    1.9675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    1.3117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.598        13.708        .26244E-03   -1.5632    
  14  norm          12.141        10.882        .28706E-03   -1.5638    
  15  Prefactor     .20539E-08    2.6195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6159        5.6077        .42349E-03   -1.5661    
  17  norm          49.345        43.760        .14344E-03   -1.5567    
  18  Prefactor     2.8704        2.3024        .59958E-03   -1.5674    
  19  Prefactor     .22410E-06    4.1920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3895        5.1072        .43193E-03   -1.5662    
  21  Prefactor     11.648        15.713        .29307E-03   -1.5640    
  22  norm          .50764        .64015        .77913E-03   -1.5694    
  23  Prefactor     .42139        2.9812        .51290E-02   -1.5695    
  24  Prefactor     .16598E-07    2.7388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5859        2.6278        .63490E-03   -1.5676    
  26  Normalizat    1.0006        .15972        .46181E-01   -.93012    
  27  Prefactor     1.0124        .15225        .42995E-01   -.92318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96984e-06
Minuit parameter uncertainties:
  1  4.48071
  2  9.88044
  3  0.000465159
  4  23.8835
  5  1.61395e-06
  6  1.60047e-05
  7  21.2159
  8  61.4384
  9  0.000268993
  10  21.7434
  11  4.68502e-05
  12  1.36908e-05
  13  13.7078
  14  10.8824
  15  0.000146928
  16  5.60767
  17  43.7604
  18  2.30243
  19  0.00193852
  20  5.1072
  21  15.713
  22  0.64015
  23  2.24165
  24  0.000426377
  25  2.62776
  26  0.1598
  27  0.152312
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.776e-10  4.685e-05  0.000e+00  1.000e+06 ( 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.012e+00  1.523e-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:  1.001e+00  1.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/732523/likelihoodResults_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.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) = 8362.90797167
delta logL = -0.00113641009193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8362.90683568
delta logL = -4.15260728914e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25757E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.2671       1.0000          .0000       10.000    
     3 'Normalizat'    1.0004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0125       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8362.907     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      248 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .88117        .42118E-03** at limit **
   2  Index         3.8219        1.5842        .35628E-04     .0000    
   3  Normalizat    1.0006        1.3301        .34486E-06    .66878E-04
   4  Prefactor     1.0124        1.2569        .24691E-05    .34827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.82189
  Normalizat = 1.00056
  Prefactor  = 1.01238
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8362.907     FROM HESSE     STATUS=FAILED         9 CALLS      257 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .88117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5997        2.2866        .35628E-04   -.23786    
   3  Normalizat    1.0006        1.3301        .34486E-06   -.93012    
   4  Prefactor     1.0124        1.2569        .24691E-05   -.92318    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.25796e-12
Minuit parameter uncertainties:
  1  1.59728e-06
  2  1.61367
  3  1.37856
  4  1.29648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732523': 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): 101
logL (Free Index) = 8362.90683526
delta logL = 6.73026079312e-11

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  0.000e+00  1.597e-06  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  3.822e+00  1.614e+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.012e+00  1.296e+00  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:  1.001e+00  1.379e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/732523/cmap_HighResolution_691891201_692150401_4FGL_J1618.0+5139_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2022-12-08 01:31:24.060340', job_id='732523', GAL2='1.01', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1670491884.06', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1746' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:31:24 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 732523: <4FGL_J1618.0+5139_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1746> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Dec  8 01:15:23 2022
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:15:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:15:24 2022
Terminated at Thu Dec  8 01:31:25 2022
Results reported at Thu Dec  8 01:31:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1746 244.516 51.6653 691891201 692150401 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 :                                   910.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

