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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1747
RA = 244.516, Dec = 51.6653
tmin = 692150401, tmax = 692409601
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='806264', job_status='RUN', time_executed='2022-12-11 01:12:19.129495', time_epoch_executed='1670749939.13' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806264

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806264/ft1_4FGL_J1618.0+5139_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806264/ft2_4FGL_J1618.0+5139_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806264/ft1_4FGL_J1618.0+5139_daily_bin1747.fits outfile=/scratch/kocevski/806264/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1747.fits ra=244.516 dec=51.6653 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.76
sys 0.21

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

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

Number of photons that the gtmktime cut: 617

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806264/ft1_filtered_4FGL_J1618.0+5139_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/806264/ft2_4FGL_J1618.0+5139_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/806264/ltcube_692150401_692409601_4FGL_J1618.0+5139_daily_bin1747.fits outfile=/scratch/kocevski/806264/expmap_692150401_692409601_4FGL_J1618.0+5139_daily_bin1747.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/806264/ltcube_692150401_692409601_4FGL_J1618.0+5139_daily_bin1747.fits
.....................!
real 189.65
user 185.35
sys 3.93

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/806264/ft1_filtered_4FGL_J1618.0+5139_daily_bin1747.fits scfile=/scratch/kocevski/806264/ft2_4FGL_J1618.0+5139_daily_bin1747.fits outfile=/scratch/kocevski/806264/cmap_692150401_692409601_4FGL_J1618.0+5139_daily_bin1747.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806264/ft1_filtered_4FGL_J1618.0+5139_daily_bin1747.fits scfile=/scratch/kocevski/806264/ft2_4FGL_J1618.0+5139_daily_bin1747.fits outfile=/scratch/kocevski/806264/cmap_HighResolution_692150401_692409601_4FGL_J1618.0+5139_daily_bin1747.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12914E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19961E-03   1.0000          .0000       .10000E+07
     3 'norm      '    2.0586       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13112E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1603       1.0000          .0000       .10000E+07
     6 'norm      '    5.9702       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15046E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .22234E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.3032       1.0000          .0000       .10000E+07
    10 'Prefactor '    21.375       1.0000          .0000       .10000E+07
    11 'Prefactor '    .51775E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14023E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .57192       1.0000          .0000       .10000E+07
    14 'norm      '    .70854E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .67305       1.0000          .0000       .10000E+07
    16 'Prefactor '    .86274E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .48493E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10190E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.5522       1.0000          .0000       .10000E+07
    20 'Prefactor '    .45219       1.0000          .0000       .10000E+07
    21 'Prefactor '    .56421E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .66613E-09   1.0000          .0000       .10000E+07
    23 'Prefactor '    1.1130       1.0000          .0000       .10000E+07
    24 'Prefactor '    .41511E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .58642E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .65182       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2488       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=   6775.537     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     1889 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-07    6.6215       -.52030E-07** at limit **
   2  Prefactor     .54845E-07    3.6833       -.12224E-06** at limit **
   3  norm          2.0590        2.2759        .88745E-07    .20434E-02
   4  Prefactor     .56066E-08    5.9334        .60792E-07** at limit **
   5  Prefactor     1.1406        10.909       -.38982E-06    .12810E-01
   6  norm          5.9418        6.7686       -.90898E-07   -.42767E-01
   7  Prefactor     .12761E-05    25.603       -.13408E-06** at limit **
   8  Prefactor     .13894E-06    49.165       -.10044E-05** at limit **
   9  Prefactor     2.3317        5.3287        .12062E-06    .13372E-03
  10  Prefactor     21.006        2.2803       -.20920E-07   -.91079E-02
  11  Prefactor     .21222E-06    14.148       -.41338E-06** at limit **
  12  Prefactor     .49960E-09    2.9519       -.38663E-06** at limit **
  13  norm          .18136        1.2730       -.17762E-06** at limit **
  14  norm          .11374E-06    2.9792       -.23375E-06** at limit **
  15  Prefactor     .67663        3.1595       -.81478E-07   -.81154E-03
  16  Prefactor     .23375E-04    31.516       -.37812E-07** at limit **
  17  norm          .10387E-05    19.058       -.43691E-06** at limit **
  18  Prefactor     .93869E-07    3.8282       -.31189E-06** at limit **
  19  Prefactor     2.5482        2.2212       -.10593E-06   -.19314E-02
  20  Prefactor     .45148        .81539        .53390E-08   -.55759E-02
  21  Prefactor     .26312E-07    4.3351       -.22873E-06** at limit **
  22  norm           .0000        .21499       -.18245E-07** at limit **
  23  Prefactor     1.1042        6.2583       -.98488E-07   -.29794E-03
  24  Prefactor     .27756E-09    3.4357       -.85681E-07** at limit **
  25  Prefactor      .0000        1.1104       -.41899E-07** at limit **
  26  Normalizat    .65285        .18432       -.14268E-06   -.11648E-05
  27  Prefactor     1.2489        .18822        .18676E-06    .12031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-08
  Prefactor  = 5.4845e-08
  norm       = 2.05895
  Prefactor  = 5.60663e-09
  Prefactor  = 1.14064
  norm       = 5.94178
  Prefactor  = 1.27609e-06
  Prefactor  = 1.38944e-07
  Prefactor  = 2.33165
  Prefactor  = 21.0057
  Prefactor  = 2.12219e-07
  Prefactor  = 4.996e-10
  norm       = 0.181357
  norm       = 1.13742e-07
  Prefactor  = 0.676632
  Prefactor  = 2.33753e-05
  norm       = 1.03867e-06
  Prefactor  = 9.38694e-08
  Prefactor  = 2.54819
  Prefactor  = 0.451478
  Prefactor  = 2.63123e-08
  norm       = 0
  Prefactor  = 1.10424
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Normalizat = 0.652846
  Prefactor  = 1.24889
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.537     FROM HESSE     STATUS=OK           556 CALLS     2445 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-07    6.9208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .54845E-07    4.1649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0590        2.2983        .72000E-03   -1.5679    
   4  Prefactor     .56066E-08    6.3187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1406        16.990        .10694E-02   -1.5687    
   6  norm          5.9418        8.8613        .41072E-03   -1.5659    
   7  Prefactor     .12761E-05    29.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13894E-06    49.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3317        6.3922        .67590E-03   -1.5677    
  10  Prefactor     21.006        19.115        .21635E-03   -1.5616    
  11  Prefactor     .21222E-06    15.368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .49960E-09    2.9507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18136        10.827        .98094E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11374E-06    4.5187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .67663        3.2268        .62923E-03   -1.5692    
  16  Prefactor     .23375E-04    2.2636        .97760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10387E-05    23.089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .93869E-07    2.1106        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5482        2.2345        .63886E-03   -1.5676    
  20  Prefactor     .45148        14.075        .83673E-03   -1.5695    
  21  Prefactor     .26312E-07    4.8914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        .21425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1042        6.1654        .11175E-02   -1.5687    
  24  Prefactor     .27756E-09    3.4594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        1.1110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .65285        .16124        .61222E-01   -1.0578    
  27  Prefactor     1.2489        .16239        .33567E-01   -.84840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23298e-06
Minuit parameter uncertainties:
  1  0.000554081
  2  0.000955737
  3  2.29827
  4  0.000377159
  5  8.8045
  6  8.86134
  7  0.0122682
  8  0.00526632
  9  6.3922
  10  19.1151
  11  0.00361186
  12  7.77759e-05
  13  2.80256
  14  0.001434
  15  2.95526
  16  0.0145483
  17  0.00979428
  18  0.000890305
  19  2.23453
  20  5.04163
  21  0.000717854
  22  9.17078e-08
  23  5.21848
  24  6.21987e-05
  25  1.87178e-06
  26  0.161357
  27  0.162455
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.122e-07  3.612e-03  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.249e+00  1.625e-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:  6.528e-01  1.614e-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: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806264/likelihoodResults_692150401_692409601_4FGL_J1618.0+5139_daily_bin1747.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): 102
logL (Free Index) = 6775.58688443
delta logL = -0.0503597903835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6775.20944018
delta logL = 0.327084458765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5294       1.0000          .0000       .10000E+07
     2 'Index     '    1.4554       1.0000          .0000       10.000    
     3 'Normalizat'    .66065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2338       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=   6775.209     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      225 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5227        3.7155        .64198E-03    .59191E-02
   2  Index         1.4545        .44880        .19870       -.13857E-03
   3  Normalizat    .66042        .15467        .60885E-01   -.45775E-04
   4  Prefactor     1.2340        .16072        .33877E-01   -.98068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52266
  Index      = 1.45454
  Normalizat = 0.66042
  Prefactor  = 1.23399
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.209     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5227        4.2690        .18690E-04   -1.5676    
   2  Index         1.4545        .63332        .10245E-01   -.78821    
   3  Normalizat    .66042        .18068        .26933E-03   -1.0548    
   4  Prefactor     1.2340        .18806        .20923E-03   -.85292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02375e-11
Minuit parameter uncertainties:
  1  4.26902
  2  0.636772
  3  0.180837
  4  0.18816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806264': 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) = 6775.20943802
delta logL = 0.327086611916

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.523e+00  4.269e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  1.455e+00  6.368e-01  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.234e+00  1.882e-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:  6.604e-01  1.808e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/806264/cmap_HighResolution_692150401_692409601_4FGL_J1618.0+5139_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2022-12-11 01:25:04.560056', job_id='806264', GAL2='1.23', fit_tolerance='1e-08', EG2='0.66', EG='0.65', time_epoch_completed='1670750704.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='3.27e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1747' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:25:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 806264: <4FGL_J1618.0+5139_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1747> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Dec 11 01:10:25 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:10:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:10:27 2022
Terminated at Sun Dec 11 01:25:05 2022
Results reported at Sun Dec 11 01:25:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1747 244.516 51.6653 692150401 692409601 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 :                                   767.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

