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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1780
RA = 244.516, Dec = 51.6653
tmin = 700704001, tmax = 700963201
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='69534', job_status='RUN', time_executed='2023-03-20 01:16:04.365092', time_epoch_executed='1679300164.37' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69534/ft1_4FGL_J1618.0+5139_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69534/ft2_4FGL_J1618.0+5139_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69534/ft1_4FGL_J1618.0+5139_daily_bin1780.fits outfile=/scratch/kocevski/69534/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1780.fits ra=244.516 dec=51.6653 rad=12.0 tmin=700704001.0 tmax=700963201.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.16
user 3.91
sys 0.21

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

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

Number of photons that the gtmktime cut: 876

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69534/ft1_filtered_4FGL_J1618.0+5139_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/69534/ft2_4FGL_J1618.0+5139_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/69534/ltcube_700704001_700963201_4FGL_J1618.0+5139_daily_bin1780.fits outfile=/scratch/kocevski/69534/expmap_700704001_700963201_4FGL_J1618.0+5139_daily_bin1780.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/69534/ltcube_700704001_700963201_4FGL_J1618.0+5139_daily_bin1780.fits
.....................!
real 190.67
user 184.73
sys 5.60

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/69534/ft1_filtered_4FGL_J1618.0+5139_daily_bin1780.fits scfile=/scratch/kocevski/69534/ft2_4FGL_J1618.0+5139_daily_bin1780.fits outfile=/scratch/kocevski/69534/cmap_700704001_700963201_4FGL_J1618.0+5139_daily_bin1780.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69534/ft1_filtered_4FGL_J1618.0+5139_daily_bin1780.fits scfile=/scratch/kocevski/69534/ft2_4FGL_J1618.0+5139_daily_bin1780.fits outfile=/scratch/kocevski/69534/cmap_HighResolution_700704001_700963201_4FGL_J1618.0+5139_daily_bin1780.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/69534/ft1_filtered_4FGL_J1618.0+5139_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/69534/ft2_4FGL_J1618.0+5139_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69534/Model_4FGL_J1618.0+5139_daily_bin1780.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/69534/ft1_filtered_4FGL_J1618.0+5139_daily_bin1780.fits.....................!
real 71.03
user 69.68
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17749E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .30673E-03   1.0000          .0000       .10000E+07
     3 'norm      '    1.8494       1.0000          .0000       .10000E+07
     4 'Prefactor '    .69657E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.1178       1.0000          .0000       .10000E+07
     6 'norm      '    .12111E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .57791E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .48498       1.0000          .0000       .10000E+07
     9 'Prefactor '    .70911E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.195       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13423E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    13 'norm      '    8.7520       1.0000          .0000       .10000E+07
    14 'norm      '    .15424E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .25313E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    13.213       1.0000          .0000       .10000E+07
    17 'norm      '    17.904       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.8782       1.0000          .0000       .10000E+07
    19 'Prefactor '    .32215E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .26759       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.2386       1.0000          .0000       .10000E+07
    22 'norm      '    .50737E-07   1.0000          .0000       .10000E+07
    23 'Prefactor '    6.8264       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.6266       1.0000          .0000       .10000E+07
    25 'Prefactor '    .38576E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .86451       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0035       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=   9544.288     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     2335 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.5215        .89559E-08** at limit **
   2  Prefactor     .33307E-09    2.3095        .13632E-05** at limit **
   3  norm          1.8499        1.3462        .78932E-07   -.92917E-02
   4  Prefactor     .15543E-08    5.3958       -.11561E-05** at limit **
   5  Prefactor     5.1306        5.6515        .70708E-06   -.27177E-02
   6  norm          .24958E-06    5.0035        .19815E-05** at limit **
   7  Prefactor     .17319E-07    24.236        .35496E-05** at limit **
   8  Prefactor     .44154E-06    120.24       -.13299E-04** at limit **
   9  Prefactor     .33407E-06    3.6679        .30513E-05** at limit **
  10  Prefactor     13.504        13.417        .18789E-05   -.26748E-01
  11  Prefactor      .0000        2.1016       -.20879E-05** at limit **
  12  Prefactor      .0000        .68708        .27442E-06** at limit **
  13  norm          8.7611        1.0630        .11971E-07    .10928E-01
  14  norm          .72164E-09    2.7537       -.90308E-06** at limit **
  15  Prefactor      .0000        .80462       -.56013E-06** at limit **
  16  Prefactor     13.252        3.8203        .91737E-07   -.28400E-01
  17  norm          18.004        2.4807        .75797E-08   -.45128E-01
  18  Prefactor     3.8800        1.9033       -.26718E-06   -.15176E-03
  19  Prefactor     .72164E-09    2.0747        .78469E-06** at limit **
  20  Prefactor     .26833        8.9267       -.24633E-05   -.59412E-02
  21  Prefactor     7.2060        1.8274       -.16355E-06   -.27011E-01
  22  norm           .0000        .34939       -.21997E-06** at limit **
  23  Prefactor     6.7839        5.1641       -.28521E-06   -.12768E-01
  24  Prefactor     1.6371        1.6569        .21289E-07   -.18916E-01
  25  Prefactor      .0000        .68108        .41033E-07** at limit **
  26  Normalizat    .86389        .15418        .54549E-05    .12115E-03
  27  Prefactor     1.0039        .15210       -.56053E-05    .14511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  norm       = 1.84994
  Prefactor  = 1.55431e-09
  Prefactor  = 5.13057
  norm       = 2.49578e-07
  Prefactor  = 1.73195e-08
  Prefactor  = 4.41536e-07
  Prefactor  = 3.34066e-07
  Prefactor  = 13.5036
  Prefactor  = 0
  Prefactor  = 0
  norm       = 8.76115
  norm       = 7.21645e-10
  Prefactor  = 0
  Prefactor  = 13.2518
  norm       = 18.0041
  Prefactor  = 3.87996
  Prefactor  = 7.21645e-10
  Prefactor  = 0.26833
  Prefactor  = 7.20604
  norm       = 0
  Prefactor  = 6.78392
  Prefactor  = 1.63714
  Prefactor  = 0
  Normalizat = 0.863888
  Prefactor  = 1.00387
 **********
 **   18 **HESSE 
 **********

 FCN=   9544.288     FROM HESSE     STATUS=OK           542 CALLS     2877 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.5210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    2.3169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8499        1.3449        .76638E-03   -1.5681    
   4  Prefactor     .15543E-08    5.4614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1306        5.9313        .44418E-03   -1.5663    
   6  norm          .24958E-06    7.6714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17319E-07    24.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44154E-06    121.58        .80235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33407E-06    7.0859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.504        14.686        .27550E-03   -1.5634    
  11  Prefactor      .0000        2.1186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .68671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.7611        9.5386        .33858E-03   -1.5649    
  14  norm          .72164E-09    2.7616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        .79976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.252        6.0777        .27531E-03   -1.5635    
  17  norm          18.004        18.105        .23643E-03   -1.5623    
  18  Prefactor     3.8800        1.9076        .51214E-03   -1.5669    
  19  Prefactor     .72164E-09    2.0423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26833        2.9763        .59780E-02   -1.5698    
  21  Prefactor     7.2060        14.341        .37258E-03   -1.5654    
  22  norm           .0000        .33881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.7839        5.6992        .38378E-03   -1.5656    
  24  Prefactor     1.6371        16.045        .82910E-03   -1.5682    
  25  Prefactor      .0000        .68090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86389        .13505        .44446E-01   -.97741    
  27  Prefactor     1.0039        .13022        .44538E-01   -.92601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19772e-07
Minuit parameter uncertainties:
  1  1.6644e-05
  2  5.77031e-05
  3  1.34489
  4  0.00018409
  5  5.93135
  6  0.00276731
  7  0.00129787
  8  0.0146545
  9  0.00307702
  10  14.6859
  11  1.43672e-05
  12  7.82156e-06
  13  9.53859
  14  8.82664e-05
  15  6.85737e-06
  16  6.0777
  17  18.1051
  18  1.90759
  19  7.65433e-05
  20  1.78734
  21  14.341
  22  1.71519e-06
  23  5.69925
  24  10.2505
  25  4.29483e-06
  26  0.135098
  27  0.130259
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  0.000e+00  1.437e-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.004e+00  1.303e-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.639e-01  1.351e-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: 4.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69534/likelihoodResults_700704001_700963201_4FGL_J1618.0+5139_daily_bin1780.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) = 9544.29064039
delta logL = -0.00231851968238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9544.28832245
delta logL = -5.75188096263e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19867E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .89263       1.0000          .0000       10.000    
     3 'Normalizat'    .86385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0039       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=   9544.288     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      256 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .94979E-01    .21227E-02** at limit **
   2  Index         4.9466        2.1707        .28538E-04     .0000    
   3  Normalizat    .86389        1.2007       -.25961E-05   -.52232E-03
   4  Prefactor     1.0039        1.2922       -.11297E-04   -.59984E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.94663
  Normalizat = 0.863888
  Prefactor  = 1.00387
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9544.288     FROM HESSE     STATUS=FAILED         9 CALLS      265 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .94979E-01    .21227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5127        2.4392        .28538E-04   -.10675E-01
   3  Normalizat    .86389        1.2007       -.25961E-05   -.97741    
   4  Prefactor     1.0039        1.2922       -.11297E-04   -.92601    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.65816e-10
Minuit parameter uncertainties:
  1  1.0414e-06
  2  2.24542
  3  1.24118
  4  1.33571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69534': 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) = 9544.28832187
delta logL = -9.82254277915e-11

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  0.000e+00  1.041e-06  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  4.947e+00  2.245e+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.004e+00  1.336e+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:  8.639e-01  1.241e+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/69534/cmap_HighResolution_700704001_700963201_4FGL_J1618.0+5139_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2023-03-20 01:31:57.384796', job_id='69534', GAL2='1.00', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1679301117.38', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-9.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1780' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:31:57 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 69534: <4FGL_J1618.0+5139_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:15:44 2023
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:15:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:15:45 2023
Terminated at Mon Mar 20 01:31:58 2023
Results reported at Mon Mar 20 01:31:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1780 244.516 51.6653 700704001 700963201 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 :                                   954.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

