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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1774
RA = 244.516, Dec = 51.6653
tmin = 699148801, tmax = 699408001
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='687096', job_status='RUN', time_executed='2023-03-02 01:00:51.196395', time_epoch_executed='1677747651.2' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/687096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/687096/ft1_4FGL_J1618.0+5139_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/687096/ft2_4FGL_J1618.0+5139_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/687096/ft1_4FGL_J1618.0+5139_daily_bin1774.fits outfile=/scratch/kocevski/687096/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1774.fits ra=244.516 dec=51.6653 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.82
user 2.59
sys 0.20

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

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

Number of photons that the gtmktime cut: 879

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/687096/ft1_filtered_4FGL_J1618.0+5139_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/687096/ft2_4FGL_J1618.0+5139_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/687096/ltcube_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.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/687096/ft2_4FGL_J1618.0+5139_daily_bin1774.fits
.....................!
real 13.43
user 13.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/687096/ft1_filtered_4FGL_J1618.0+5139_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/687096/ft2_4FGL_J1618.0+5139_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/687096/ltcube_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.fits outfile=/scratch/kocevski/687096/expmap_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.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/687096/ltcube_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.fits
.....................!
real 192.59
user 186.28
sys 5.88

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/687096/ft1_filtered_4FGL_J1618.0+5139_daily_bin1774.fits scfile=/scratch/kocevski/687096/ft2_4FGL_J1618.0+5139_daily_bin1774.fits outfile=/scratch/kocevski/687096/cmap_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/687096/ft1_filtered_4FGL_J1618.0+5139_daily_bin1774.fits scfile=/scratch/kocevski/687096/ft2_4FGL_J1618.0+5139_daily_bin1774.fits outfile=/scratch/kocevski/687096/cmap_HighResolution_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27711E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.3219       1.0000          .0000       .10000E+07
     3 'norm      '    1.3672       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34230E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13502E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .14734E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.0761       1.0000          .0000       .10000E+07
     8 'Prefactor '    .72729E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .76702E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.9134       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.4722       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82878E-07   1.0000          .0000       .10000E+07
    13 'norm      '    12.996       1.0000          .0000       .10000E+07
    14 'norm      '    .14209E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.9495       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.0138       1.0000          .0000       .10000E+07
    17 'norm      '    3.7666       1.0000          .0000       .10000E+07
    18 'Prefactor '    .18441E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .37381E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    12.099       1.0000          .0000       .10000E+07
    21 'Prefactor '    .10538E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .84377E-08   1.0000          .0000       .10000E+07
    23 'Prefactor '    .35097       1.0000          .0000       .10000E+07
    24 'Prefactor '    3.4695       1.0000          .0000       .10000E+07
    25 'Prefactor '    3.0554       1.0000          .0000       .10000E+07
    26 'Normalizat'    .97326       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1515       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=   9521.056     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     1913 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15432E-07    5.1882       -.26422E-06** at limit **
   2  Prefactor     8.2545        7.3084        .86541E-07    .30244E-02
   3  norm          1.3648        2.5685        .19733E-06    .23262E-02
   4  Prefactor     .11241E-06    5.5446       -.25667E-06** at limit **
   5  Prefactor     .41445E-06    2.8054       -.71988E-07** at limit **
   6  norm          .55511E-09    1.8400       -.28638E-07** at limit **
   7  Prefactor     3.7727        6.2457       -.10546E-06   -.55613E-01
   8  Prefactor     .12768E-08    23.995       -.24275E-06** at limit **
   9  Prefactor     .55511E-10    2.0868       -.26287E-06** at limit **
  10  Prefactor     3.9374        5.1118        .46409E-07    .35103E-01
  11  Prefactor     1.4366        4.1956        .60956E-07    .33688E-03
  12  Prefactor     .16959E-06    6.4738       -.64258E-07** at limit **
  13  norm          13.002        1.0419       -.14400E-08   -.45284E-02
  14  norm          .10547E-07    4.3604       -.39373E-08** at limit **
  15  Prefactor     1.9472        1.9258       -.12128E-06   -.41126E-02
  16  Prefactor     4.9604        4.9643       -.22627E-08    .16179E-02
  17  norm          3.1972        55.196       -.59354E-06    .12904E-01
  18  Prefactor     .29976E-08    .92261       -.11269E-06** at limit **
  19  Prefactor      .0000        .74548        .84231E-08** at limit **
  20  Prefactor     12.045        1.5417       -.12640E-07   -.14968E-01
  21  Prefactor     .11596E-06    3.7753       -.85791E-07** at limit **
  22  norm           .0000        .50035        .15283E-07** at limit **
  23  Prefactor     .34982        1.2071        .26554E-08    .74898E-02
  24  Prefactor     3.4730        1.3898       -.15401E-07    .11513E-01
  25  Prefactor     3.0453        2.1336        .57826E-07    .20430E-02
  26  Normalizat    .97398        .18375       -.26288E-05   -.17533E-03
  27  Prefactor     1.1517        .17935        .62810E-08   -.16491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54321e-08
  Prefactor  = 8.25445
  norm       = 1.36478
  Prefactor  = 1.1241e-07
  Prefactor  = 4.14446e-07
  norm       = 5.55112e-10
  Prefactor  = 3.77269
  Prefactor  = 1.27676e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 3.93742
  Prefactor  = 1.43664
  Prefactor  = 1.69587e-07
  norm       = 13.0019
  norm       = 1.05471e-08
  Prefactor  = 1.94722
  Prefactor  = 4.96041
  norm       = 3.19719
  Prefactor  = 2.9976e-09
  Prefactor  = 0
  Prefactor  = 12.0454
  Prefactor  = 1.15963e-07
  norm       = 0
  Prefactor  = 0.349821
  Prefactor  = 3.47302
  Prefactor  = 3.04534
  Normalizat = 0.973978
  Prefactor  = 1.15167
 **********
 **   18 **HESSE 
 **********

 FCN=   9521.056     FROM HESSE     STATUS=OK           558 CALLS     2471 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15432E-07    10.560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2545        7.7422        .34728E-03   -1.5651    
   3  norm          1.3648        2.5940        .93258E-03   -1.5685    
   4  Prefactor     .11241E-06    10.252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .41445E-06    5.7396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-09    2.4470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7727        22.755        .49914E-03   -1.5669    
   8  Prefactor     .12768E-08    23.959        .14729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    2.2133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9374        18.564        .50975E-03   -1.5668    
  11  Prefactor     1.4366        4.2796        .88514E-03   -1.5684    
  12  Prefactor     .16959E-06    1.5052        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.002        11.225        .27760E-03   -1.5636    
  14  norm          .10547E-07    4.5158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9472        1.9276        .74299E-03   -1.5680    
  16  Prefactor     4.9604        4.9873        .44886E-03   -1.5663    
  17  norm          3.1972        61.273        .51995E-03   -1.5672    
  18  Prefactor     .29976E-08    2.6831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        .74423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.045        8.3168        .28775E-03   -1.5639    
  21  Prefactor     .11596E-06    5.6969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        .27126        .18478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .34982        1.9602        .73396E-02   -1.5696    
  24  Prefactor     3.4730        10.501        .54266E-03   -1.5671    
  25  Prefactor     3.0453        2.1349        .58013E-03   -1.5673    
  26  Normalizat    .97398        .15503        .45831E-01   -.93907    
  27  Prefactor     1.1517        .14779        .53272E-01   -.87832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40189e-07
Minuit parameter uncertainties:
  1  0.000807885
  2  7.74217
  3  2.59399
  4  0.00214678
  5  0.00308464
  6  7.34648e-05
  7  18.5308
  8  0.000351612
  9  1.63834e-05
  10  17.099
  11  4.27956
  12  0.0010105
  13  11.2248
  14  0.000436015
  15  1.92764
  16  4.98728
  17  27.9933
  18  0.000179188
  19  4.21155e-06
  20  8.31685
  21  0.00162545
  22  6.68183e-07
  23  1.65617
  24  10.5009
  25  2.13488
  26  0.155101
  27  0.147845
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  1.437e+00  4.280e+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:  1.152e+00  1.478e-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:  9.740e-01  1.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/687096/likelihoodResults_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.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) = 9520.68808426
delta logL = 0.368168573616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9520.68666251
delta logL = 0.369590324908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9611       1.0000          .0000       .10000E+07
     2 'Index     '    1.9576       1.0000          .0000       10.000    
     3 'Normalizat'    .98274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1387       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=   9520.687     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      255 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9582        13.791        .50657E-03    .43981E-02
   2  Index         1.9579        1.3274        .26039       -.48456E-04
   3  Normalizat    .98265        .14746        .45950E-01    .13298E-04
   4  Prefactor     1.1388        .15053        .53507E-01    .11571E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.95818
  Index      = 1.95787
  Normalizat = 0.982646
  Prefactor  = 1.13877
 **********
 **   18 **HESSE 
 **********

 FCN=   9520.687     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9582        5.0048        .20263E-04   -1.5668    
   2  Index         1.9579        .62301        .11663E-01   -.65408    
   3  Normalizat    .98265        .17742        .25374E-03   -.93614    
   4  Prefactor     1.1388        .17763        .23658E-03   -.88237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62427e-12
Minuit parameter uncertainties:
  1  5.0048
  2  0.625593
  3  0.177523
  4  0.177723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/687096': 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) = 9520.68666187
delta logL = 0.369590967315

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  3.958e+00  5.005e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  1.958e+00  6.256e-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.139e+00  1.777e-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:  9.826e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/687096/cmap_HighResolution_699148801_699408001_4FGL_J1618.0+5139_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2023-03-02 01:15:53.172177', job_id='687096', GAL2='1.14', fit_tolerance='1e-08', EG2='0.98', EG='0.97', time_epoch_completed='1677748553.17', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.70e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1774' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:15:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 687096: <4FGL_J1618.0+5139_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1774> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Mar  2 01:00:23 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 01:00:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 01:00:39 2023
Terminated at Thu Mar  2 01:15:53 2023
Results reported at Thu Mar  2 01:15:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1774 244.516 51.6653 699148801 699408001 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 :                                   901.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            930 sec.

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

