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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1749
RA = 244.516, Dec = 51.6653
tmin = 692668801, tmax = 692928001
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='956881', job_status='RUN', time_executed='2022-12-17 01:03:24.969138', time_epoch_executed='1671267804.97' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956881/ft1_4FGL_J1618.0+5139_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956881/ft2_4FGL_J1618.0+5139_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956881/ft1_4FGL_J1618.0+5139_daily_bin1749.fits outfile=/scratch/kocevski/956881/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1749.fits ra=244.516 dec=51.6653 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956881/ft2_4FGL_J1618.0+5139_daily_bin1749.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/956881/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/956881/ft1_filtered_4FGL_J1618.0+5139_daily_bin1749.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.34
sys 0.14

Number of photons that the gtmktime cut: 578

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956881/ft1_filtered_4FGL_J1618.0+5139_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/956881/ft2_4FGL_J1618.0+5139_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/956881/ltcube_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.fits outfile=/scratch/kocevski/956881/expmap_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.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/956881/ltcube_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.fits
.....................!
real 190.23
user 185.16
sys 4.70

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/956881/ft1_filtered_4FGL_J1618.0+5139_daily_bin1749.fits scfile=/scratch/kocevski/956881/ft2_4FGL_J1618.0+5139_daily_bin1749.fits outfile=/scratch/kocevski/956881/cmap_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956881/ft1_filtered_4FGL_J1618.0+5139_daily_bin1749.fits scfile=/scratch/kocevski/956881/ft2_4FGL_J1618.0+5139_daily_bin1749.fits outfile=/scratch/kocevski/956881/cmap_HighResolution_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956881/ft1_filtered_4FGL_J1618.0+5139_daily_bin1749.fits', '/scratch/kocevski/956881/ft2_4FGL_J1618.0+5139_daily_bin1749.fits', expMap='/scratch/kocevski/956881/expmap_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.fits', expCube='/scratch/kocevski/956881/ltcube_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956881/Model_4FGL_J1618.0+5139_daily_bin1749.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/956881/ft1_filtered_4FGL_J1618.0+5139_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/956881/ft2_4FGL_J1618.0+5139_daily_bin1749.fits
Exposure map: /scratch/kocevski/956881/expmap_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.fits
Exposure cube: /scratch/kocevski/956881/ltcube_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956881/Model_4FGL_J1618.0+5139_daily_bin1749.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) = 6247.81407704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44548E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5188       1.0000          .0000       .10000E+07
     3 'norm      '    3.7278       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11027E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .46669E-04   1.0000          .0000       .10000E+07
     6 'norm      '    8.6428       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2341       1.0000          .0000       .10000E+07
     8 'Prefactor '    .96114E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .78049E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.4964       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.4857       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11687E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .17346E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .67965E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .14117E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.620       1.0000          .0000       .10000E+07
    17 'norm      '    .26780E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.7169       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.4482       1.0000          .0000       .10000E+07
    20 'Prefactor '    9.2762       1.0000          .0000       .10000E+07
    21 'Prefactor '    .76269E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .80991E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.6005       1.0000          .0000       .10000E+07
    24 'Prefactor '    .38032E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    3.7566       1.0000          .0000       .10000E+07
    26 'Normalizat'    .84819       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98220       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=   6247.739     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     1890 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16420E-06    9.6060        .10799E-05** at limit **
   2  Prefactor     6.4582        6.3471       -.43079E-06   -.19321E-01
   3  norm          3.7287        2.7252        .26694E-06    .14288E-02
   4  Prefactor     .12634E-06    6.4651       -.17608E-05** at limit **
   5  Prefactor     .49960E-09    2.4345        .25258E-06** at limit **
   6  norm          8.6460        6.7066        .18008E-06    .88264E-02
   7  Prefactor     1.2332        1.4304       -.13323E-06    .25460E-02
   8  Prefactor     .73275E-08    75.267       -.53680E-05** at limit **
   9  Prefactor     .55511E-10    4.6831        .14050E-05** at limit **
  10  Prefactor     4.3170        8.6463        .11681E-05   -.70595E-01
  11  Prefactor     6.4932        6.5920        .67283E-06    .16273E-01
  12  Prefactor      .0000        1.2323        .12592E-06** at limit **
  13  norm          .40917E-06    6.8215        .12861E-05** at limit **
  14  norm          .33862E-08    2.7203       -.37092E-06** at limit **
  15  Prefactor      .0000        1.2387        .30928E-06** at limit **
  16  Prefactor     12.595        4.6016       -.41917E-07    .52426E-01
  17  norm          .18874E-06    1.7720        .19281E-06** at limit **
  18  Prefactor     5.7243        3.3972        .51548E-07    .25988E-02
  19  Prefactor     3.4487        2.5851        .55914E-07    .15448E-02
  20  Prefactor     9.2670        2.1019       -.74989E-07   -.46791E-01
  21  Prefactor     .67613E-07    24.814        .10142E-05** at limit **
  22  norm           .0000        2.3014       -.27164E-07** at limit **
  23  Prefactor     1.5703        8.1355       -.11919E-05    .65126E-02
  24  Prefactor     .30198E-07    2.7368       -.54073E-07** at limit **
  25  Prefactor     3.7754        3.4132       -.12740E-06   -.76252E-03
  26  Normalizat    .84888        .20484        .84435E-05    .67922E-04
  27  Prefactor     .98184        .19335       -.51223E-05    .27418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64202e-07
  Prefactor  = 6.45819
  norm       = 3.72865
  Prefactor  = 1.26343e-07
  Prefactor  = 4.996e-10
  norm       = 8.64601
  Prefactor  = 1.23318
  Prefactor  = 7.32747e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 4.31703
  Prefactor  = 6.49324
  Prefactor  = 0
  norm       = 4.09173e-07
  norm       = 3.38618e-09
  Prefactor  = 0
  Prefactor  = 12.5955
  norm       = 1.88738e-07
  Prefactor  = 5.72431
  Prefactor  = 3.44868
  Prefactor  = 9.26704
  Prefactor  = 6.76126e-08
  norm       = 0
  Prefactor  = 1.57031
  Prefactor  = 3.01981e-08
  Prefactor  = 3.77538
  Normalizat = 0.84888
  Prefactor  = 0.981843
 **********
 **   18 **HESSE 
 **********

 FCN=   6247.739     FROM HESSE     STATUS=OK           546 CALLS     2436 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16420E-06    9.9803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4582        7.6021        .39283E-03   -1.5657    
   3  norm          3.7287        2.7326        .52275E-03   -1.5669    
   4  Prefactor     .12634E-06    6.9166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .49960E-09    2.4464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.6460        6.9120        .34073E-03   -1.5649    
   7  Prefactor     1.2332        121.39        .10108E-02   -1.5686    
   8  Prefactor     .73275E-08    75.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    4.6920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3170        19.007        .47457E-03   -1.5666    
  11  Prefactor     6.4932        6.6564        .39384E-03   -1.5657    
  12  Prefactor      .0000        1.2259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40917E-06    7.9117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .33862E-08    5.3944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.2349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.595        7.3298        .28172E-03   -1.5637    
  17  norm          .18874E-06    36.512        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7243        3.4648        .41986E-03   -1.5660    
  19  Prefactor     3.4487        2.5925        .54441E-03   -1.5671    
  20  Prefactor     9.2670        8.0685        .32881E-03   -1.5647    
  21  Prefactor     .67613E-07    24.914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        .43645        .28251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.5703        9.2273        .83769E-03   -1.5683    
  24  Prefactor     .30198E-07    5.3570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7754        3.4167        .52066E-03   -1.5669    
  26  Normalizat    .84888        .17668        .44236E-01   -.98280    
  27  Prefactor     .98184        .16439        .46044E-01   -.93337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13243e-07
Minuit parameter uncertainties:
  1  0.00256036
  2  7.60211
  3  2.73263
  4  0.00186973
  5  6.80532e-05
  6  6.912
  7  24.4703
  8  0.0014825
  9  3.70734e-05
  10  18.1166
  11  6.65636
  12  6.21745e-06
  13  0.00359859
  14  0.0002714
  15  5.55496e-06
  16  7.32986
  17  0.00524988
  18  3.46476
  19  2.59254
  20  8.06854
  21  0.00259592
  22  7.13202e-07
  23  7.61308
  24  0.000804424
  25  3.41674
  26  0.176803
  27  0.164472
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  6.493e+00  6.656e+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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.818e-01  1.645e-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:  8.489e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 244.516 51.665
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 9.70e-06 +/- 9.94e-06

TS (Fixed Index): 1.24
Ra Dec: 244.516 51.665
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/956881/likelihoodResults_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.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) = 6246.17851244
delta logL = 1.56095182972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6245.9498123
delta logL = 1.78965197709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26219E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.5571       1.0000          .0000       10.000    
     3 'Normalizat'    .75477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0596       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.

 FCN=   6245.950     FROM MIGRAD    STATUS=CONVERGED    188 CALLS      471 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25993E-02    .23002E-01    .42118E-04** at limit **
   2  Index         8.5625        7.3115        .16539       -.34940E-03
   3  Normalizat    .75481        .52103E-01    .43017E-01    .52954E-03
   4  Prefactor     1.0595        .52398E-01    .39377E-01    .78523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00259931
  Index      = 8.56249
  Normalizat = 0.754808
  Prefactor  = 1.05953
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.950     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      498 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25993E-02    .40755E-01    .21522E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.5625        8.1863        .71416E-03    .79305    
   3  Normalizat    .75481        .19491        .26169E-03   -1.0177    
   4  Prefactor     1.0595        .19231        .22526E-03   -.90771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.97288e-08
Minuit parameter uncertainties:
  1  0.0205849
  2  4.87622
  3  0.195086
  4  0.19244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956881': 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): 102
logL (Free Index) = 6245.94981109
delta logL = 1.78965318027

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.599e-03  2.058e-02  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  8.562e+00  4.876e+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.060e+00  1.924e-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.548e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 244.516 51.665
Photon Index (Free Index): 8.56 +/- 4.88
Photon Flux (Free Index): 9.39e-08 +/- 5.28e-08
Energy Flux (Free Index): 1.08e-05 +/- 6.37e-06

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/956881/cmap_HighResolution_692668801_692928001_4FGL_J1618.0+5139_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.60e-03', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.08e-05', photon_flux_error='4.04e-08', dlogl='1.79e+00', energy_flux='9.70e-06', photon_flux2='9.39e-08', job_status='DONE', time_completed='2022-12-17 01:15:18.926621', photon_index_error2='4.88', photon_index2='8.56', ts='1.24', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='6.37e-06', EG='0.85', time_epoch_completed='1671268518.93', return_code='0', job_id='956881', GAL2='1.06', EG2='0.75', return_code2='102', energy_flux_error='9.94e-06', photon_flux_error2='5.28e-08', ts2='5.18', photon_index='2.67' WHERE bin_id='1749' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:15:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 956881: <4FGL_J1618.0+5139_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1749> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Dec 17 01:00:25 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:00:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:00:26 2022
Terminated at Sat Dec 17 01:15:19 2022
Results reported at Sat Dec 17 01:15:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1749 244.516 51.6653 692668801 692928001 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

