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


Performing analysis on: 4FGL_J1618.0+5139_daily_bin1769
RA = 244.516, Dec = 51.6653
tmin = 697852801, tmax = 698112001
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='438497', job_status='RUN', time_executed='2023-02-15 01:01:51.683980', time_epoch_executed='1676451711.68' WHERE source_name='4FGL J1618.0+5139' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438497/ft1_4FGL_J1618.0+5139_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438497/ft2_4FGL_J1618.0+5139_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438497/ft1_4FGL_J1618.0+5139_daily_bin1769.fits outfile=/scratch/kocevski/438497/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1769.fits ra=244.516 dec=51.6653 rad=12.0 tmin=697852801.0 tmax=698112001.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.39
user 4.16
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438497/ft2_4FGL_J1618.0+5139_daily_bin1769.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/438497/ft1_filteredMKT_4FGL_J1618.0+5139_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/438497/ft1_filtered_4FGL_J1618.0+5139_daily_bin1769.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.48
user 0.35
sys 0.12

Number of photons that the gtmktime cut: 546

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438497/ft1_filtered_4FGL_J1618.0+5139_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/438497/ft2_4FGL_J1618.0+5139_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/438497/ltcube_697852801_698112001_4FGL_J1618.0+5139_daily_bin1769.fits outfile=/scratch/kocevski/438497/expmap_697852801_698112001_4FGL_J1618.0+5139_daily_bin1769.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/438497/ltcube_697852801_698112001_4FGL_J1618.0+5139_daily_bin1769.fits
.....................!
real 192.05
user 187.37
sys 4.37

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/438497/ft1_filtered_4FGL_J1618.0+5139_daily_bin1769.fits scfile=/scratch/kocevski/438497/ft2_4FGL_J1618.0+5139_daily_bin1769.fits outfile=/scratch/kocevski/438497/cmap_697852801_698112001_4FGL_J1618.0+5139_daily_bin1769.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438497/ft1_filtered_4FGL_J1618.0+5139_daily_bin1769.fits scfile=/scratch/kocevski/438497/ft2_4FGL_J1618.0+5139_daily_bin1769.fits outfile=/scratch/kocevski/438497/cmap_HighResolution_697852801_698112001_4FGL_J1618.0+5139_daily_bin1769.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31710E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.486       1.0000          .0000       .10000E+07
     3 'norm      '    2.6548       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14792E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .49812E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .19113E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.750       1.0000          .0000       .10000E+07
     8 'Prefactor '    .58056E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .23759E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    36.272       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5988       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13656E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .40784E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .50553E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.8960       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.6806       1.0000          .0000       .10000E+07
    17 'norm      '    .11704E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6401       1.0000          .0000       .10000E+07
    19 'Prefactor '    .60507E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '    2.2996       1.0000          .0000       .10000E+07
    21 'Prefactor '    11.930       1.0000          .0000       .10000E+07
    22 'norm      '    .11408E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .84114E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .81869E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .29595E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .83069       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1077       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=   5931.806     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2438 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56344E-07    5.6810        .45778E-06** at limit **
   2  Prefactor     11.496        1.4550        .56949E-07    .63968E-02
   3  norm          2.6580        3.7090       -.41975E-06   -.40401E-05
   4  Prefactor     .40962E-06    6.6240        .14293E-06** at limit **
   5  Prefactor     .11220E-05    4.1594       -.14760E-06** at limit **
   6  norm          .12553E-05    13.259       -.77438E-06** at limit **
   7  Prefactor     11.765        2.6771       -.83067E-07    .82588E-02
   8  Prefactor      .0000        38.774        .74079E-06** at limit **
   9  Prefactor     .29976E-08    4.3216       -.18159E-06** at limit **
  10  Prefactor     36.341        2.2687       -.77262E-07    .10426E-01
  11  Prefactor     3.6754        7.0466       -.31440E-06   -.49423E-03
  12  Prefactor      .0000        .64602        .20988E-06** at limit **
  13  norm          .66946E-07    3.8555        .51880E-06** at limit **
  14  norm          .43837E-06    27.109        .26417E-05** at limit **
  15  Prefactor     3.8613        4.2299        .98070E-07    .52252E-03
  16  Prefactor     7.7460        7.4048       -.11571E-06    .48066E-04
  17  norm          .15155E-07    3.8647        .57208E-06** at limit **
  18  Prefactor     1.6599        3.5678       -.21092E-06   -.11118E-04
  19  Prefactor     .55511E-10    1.0591        .57660E-06** at limit **
  20  Prefactor     2.2632        6.3891        .48828E-07    .38972E-03
  21  Prefactor     11.906        1.8597       -.57204E-07   -.11853E-01
  22  norm           .0000        .79298       -.23873E-06** at limit **
  23  Prefactor     .10799E-05    46.490        .41671E-06** at limit **
  24  Prefactor     .10771E-05    4.8588        .71523E-06** at limit **
  25  Prefactor     .50959E-07    6.1931       -.64170E-06** at limit **
  26  Normalizat    .82964        .21741        .77993E-05    .24808E-04
  27  Prefactor     1.1083        .20936        .59595E-05    .35884E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.63438e-08
  Prefactor  = 11.4963
  norm       = 2.65797
  Prefactor  = 4.09617e-07
  Prefactor  = 1.12205e-06
  norm       = 1.25533e-06
  Prefactor  = 11.7648
  Prefactor  = 0
  Prefactor  = 2.9976e-09
  Prefactor  = 36.3414
  Prefactor  = 3.67539
  Prefactor  = 0
  norm       = 6.69464e-08
  norm       = 4.38372e-07
  Prefactor  = 3.86135
  Prefactor  = 7.74596
  norm       = 1.51545e-08
  Prefactor  = 1.65991
  Prefactor  = 5.55112e-11
  Prefactor  = 2.26323
  Prefactor  = 11.9058
  norm       = 0
  Prefactor  = 1.07986e-06
  Prefactor  = 1.07714e-06
  Prefactor  = 5.09592e-08
  Normalizat = 0.829644
  Prefactor  = 1.1083
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.806     FROM HESSE     STATUS=OK           546 CALLS     2984 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56344E-07    5.8408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.496        11.092        .29534E-03   -1.5640    
   3  norm          2.6580        3.7300        .62536E-03   -1.5675    
   4  Prefactor     .40962E-06    7.9559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11220E-05    13.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .12553E-05    16.706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.765        27.667        .29200E-03   -1.5639    
   8  Prefactor      .0000        38.645        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .29976E-08    4.3282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.341        26.278        .16606E-03   -1.5587    
  11  Prefactor     3.6754        7.0975        .53240E-03   -1.5670    
  12  Prefactor      .0000        .64509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .66946E-07    11.160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .43837E-06    28.279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8613        4.3201        .51093E-03   -1.5669    
  16  Prefactor     7.7460        7.5404        .36160E-03   -1.5652    
  17  norm          .15155E-07    11.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6599        3.6479        .82479E-03   -1.5682    
  19  Prefactor     .55511E-10    1.0569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2632        6.4376        .67648E-03   -1.5678    
  21  Prefactor     11.906        15.986        .28978E-03   -1.5639    
  22  norm           .0000        .76841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10799E-05    4.6263        .53826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10771E-05    9.4565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .50959E-07    6.1217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82964        .19643        .44009E-01   -.98978    
  27  Prefactor     1.1083        .18053        .37302E-01   -.89202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04269e-07
Minuit parameter uncertainties:
  1  0.00114719
  2  11.092
  3  3.73005
  4  0.00361047
  5  0.00764517
  6  0.0091591
  7  27.6678
  8  4.35428e-06
  9  0.000228173
  10  26.2784
  11  7.09751
  12  2.42522e-06
  13  0.00172844
  14  0.00704179
  15  4.32011
  16  7.54044
  17  0.000818624
  18  3.64792
  19  1.27171e-05
  20  6.43766
  21  15.9856
  22  2.99264e-06
  23  0.00447027
  24  0.00638301
  25  0.00111681
  26  0.1966
  27  0.180632
Done.

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

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  3.675e+00  7.098e+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.108e+00  1.806e-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.296e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438497/likelihoodResults_697852801_698112001_4FGL_J1618.0+5139_daily_bin1769.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) = 5931.50343158
delta logL = 0.302341219716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5931.50319788
delta logL = 0.302574925407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3909       1.0000          .0000       .10000E+07
     2 'Index     '    3.6448       1.0000          .0000       10.000    
     3 'Normalizat'    .79217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1318       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=   5931.503     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      267 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3964        56.079        .66208E-03    .50632E-02
   2  Index         3.6423        4.0435        .20968        .68250E-04
   3  Normalizat    .79199        .43649E-01    .43508E-01   -.24349E-03
   4  Prefactor     1.1318        .43529E-01    .36488E-01   -.61886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39643
  Index      = 3.64225
  Normalizat = 0.791993
  Prefactor  = 1.13185
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.503     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3964        6.4013        .12294E-04   -1.5677    
   2  Index         3.6423        1.8025        .81878E-02   -.27500    
   3  Normalizat    .79199        .21789        .26384E-03   -1.0037    
   4  Prefactor     1.1318        .21197        .22430E-03   -.88455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54914e-08
Minuit parameter uncertainties:
  1  6.40135
  2  1.84756
  3  0.218126
  4  0.212132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438497': 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) = 5931.50319481
delta logL = 0.302577992413

Extracting fit parameters...

4FGL J1618.0+5139
   Spectrum: PowerLaw
304    Prefactor:  2.396e+00  6.401e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  3.642e+00  1.848e+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.132e+00  2.121e-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.920e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 244.516 51.665
Photon Index (Free Index): 3.64 +/- 1.85
Photon Flux (Free Index): 4.93e-08 +/- 5.59e-08
Energy Flux (Free Index): 7.91e-06 +/- 9.38e-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/438497/cmap_HighResolution_697852801_698112001_4FGL_J1618.0+5139_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', comment='SUCCESS', energy_flux2='7.91e-06', dlogl='3.03e-01', photon_flux2='4.93e-08', job_status='DONE', time_completed='2023-02-15 01:13:54.955926', photon_index_error2='1.85', photon_index2='3.64', ts='0.34', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='9.38e-06', EG='0.83', time_epoch_completed='1676452434.96', return_code='0', job_id='438497', GAL2='1.13', EG2='0.79', return_code2='0', photon_flux_error2='5.59e-08', ts2='1.06', photon_index='2.67' WHERE bin_id='1769' AND source_name='4FGL J1618.0+5139' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:13:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 438497: <4FGL_J1618.0+5139_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1618.0+5139_daily_bin1769> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Feb 15 01:00:30 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:00:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:00:31 2023
Terminated at Wed Feb 15 01:13:55 2023
Results reported at Wed Feb 15 01:13:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1618.0+5139_daily_bin1769 244.516 51.6653 697852801 698112001 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 :                                   725.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

