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


Performing analysis on: 4FGL_J1018.4+3540_daily_bin1746
RA = 154.607, Dec = 35.6802
tmin = 691891201, tmax = 692150401
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='720003', job_status='RUN', time_executed='2022-12-08 00:35:43.100040', time_epoch_executed='1670488543.1' WHERE source_name='4FGL J1018.4+3540' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/720003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/720003/ft1_4FGL_J1018.4+3540_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/720003/ft1_4FGL_J1018.4+3540_daily_bin1746.fits outfile=/scratch/kocevski/720003/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1746.fits ra=154.607 dec=35.6802 rad=12.0 tmin=691891201.0 tmax=692150401.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.71
user 4.46
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.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/720003/ft1_filteredMKT_4FGL_J1018.4+3540_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.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.14

Number of photons that the gtmktime cut: 549

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/720003/ltcube_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.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/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/720003/ltcube_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.fits outfile=/scratch/kocevski/720003/expmap_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.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/720003/ltcube_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.fits
.....................!
real 191.60
user 186.68
sys 4.55

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 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1018.4+3540 @ 154.607 35.6802

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits scfile=/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits outfile=/scratch/kocevski/720003/cmap_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.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=154.607 yref=35.6802 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits scfile=/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits outfile=/scratch/kocevski/720003/cmap_HighResolution_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.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=154.607 yref=35.6802 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/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/720003/Model_4FGL_J1018.4+3540_daily_bin1746.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/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits.....................!
real 54.16
user 52.82
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits', '/scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits', expMap='/scratch/kocevski/720003/expmap_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.fits', expCube='/scratch/kocevski/720003/ltcube_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/720003/Model_4FGL_J1018.4+3540_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+3540'

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  1.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/720003/ft1_filtered_4FGL_J1018.4+3540_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/720003/ft2_4FGL_J1018.4+3540_daily_bin1746.fits
Exposure map: /scratch/kocevski/720003/expmap_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.fits
Exposure cube: /scratch/kocevski/720003/ltcube_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/720003/Model_4FGL_J1018.4+3540_daily_bin1746.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) = 6133.83405785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49930       1.0000          .0000       .10000E+07
     2 'norm      '    .12131E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    86.416       1.0000          .0000       .10000E+07
     4 'Prefactor '    .53377       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28316E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .85728E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .30181E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.5052       1.0000          .0000       .10000E+07
     9 'norm      '    4.2947       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.3954       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14513E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .16653E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    117.76       1.0000          .0000       .10000E+07
    14 'Prefactor '    .31524E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .68616E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .44169E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    52.165       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.0622       1.0000          .0000       .10000E+07
    19 'norm      '    2.4116       1.0000          .0000       .10000E+07
    20 'Prefactor '    .35431E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20360       1.0000          .0000       .10000E+07
    22 'norm      '    39.819       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2396       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6133.829     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     2004 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49955        1.0215        .46400E-06   -.16991E-02
   2  norm          .99143E-07    8.9778        .63202E-06** at limit **
   3  Prefactor     86.641        15.673        .76355E-06    .13821E-01
   4  Prefactor     .41223E-05    98.963       -.47486E-06** at limit **
   5  Prefactor     .15266E-06    6.4268        .61313E-06** at limit **
   6  Prefactor     .63283E-08    3.3664       -.86594E-08** at limit **
   7  Prefactor     .11879E-07    4.2358       -.13682E-05** at limit **
   8  Prefactor     2.5018        2.3185        .24721E-06    .49623E-04
   9  norm          4.2782        8.3068       -.35146E-06    .91527E-05
  10  Prefactor     2.3941        3.1457       -.10790E-06    .21597E-02
  11  Prefactor     .37081E-07    4.7155       -.97444E-06** at limit **
  12  norm          .25480E-07    6.2043       -.14735E-05** at limit **
  13  Prefactor     117.60        26.684       -.11874E-05    .24698    
  14  Prefactor     .94369E-09    8.3298       -.27702E-05** at limit **
  15  Prefactor     .36917E-04    34.576       -.55195E-05** at limit **
  16  Prefactor     .54956E-08    6.6702       -.13515E-05** at limit **
  17  Prefactor     52.288        13.924        .93520E-06   -.98685E-01
  18  Prefactor     4.0646        1.6421        .21474E-06    .96135E-02
  19  norm          2.4129        .40500        .72909E-07    .91434E-02
  20  Prefactor     .12329E-06    7.7315        .13508E-06** at limit **
  21  Prefactor     .69110E-05    10.428        .23151E-05** at limit **
  22  norm          39.906        4.2101        .60819E-07   -.64739E-01
  23  Normalizat    1.2404        .19313       -.57879E-05    .13609E-03
  24  Prefactor     .60898        .22451        .10357E-04    .66190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.499554
  norm       = 9.91429e-08
  Prefactor  = 86.6412
  Prefactor  = 4.12231e-06
  Prefactor  = 1.52656e-07
  Prefactor  = 6.32827e-09
  Prefactor  = 1.18794e-08
  Prefactor  = 2.50184
  norm       = 4.27821
  Prefactor  = 2.39407
  Prefactor  = 3.70814e-08
  norm       = 2.54796e-08
  Prefactor  = 117.602
  Prefactor  = 9.4369e-10
  Prefactor  = 3.69172e-05
  Prefactor  = 5.4956e-09
  Prefactor  = 52.2885
  Prefactor  = 4.06465
  norm       = 2.41294
  Prefactor  = 1.2329e-07
  Prefactor  = 6.91097e-06
  norm       = 39.9058
  Normalizat = 1.24037
  Prefactor  = 0.608984
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.829     FROM HESSE     STATUS=OK           451 CALLS     2455 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49955        7.2174        .78780E-02   -1.5694    
   2  norm          .99143E-07    10.494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     86.641        41.901        .10758E-03   -1.5522    
   4  Prefactor     .41223E-05    99.881        .75383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15266E-06    13.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .63283E-08    3.3698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11879E-07    4.2433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5018        2.3362        .64535E-03   -1.5676    
   9  norm          4.2782        8.3365        .48589E-03   -1.5667    
  10  Prefactor     2.3941        3.1699        .66140E-03   -1.5677    
  11  Prefactor     .37081E-07    5.0155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .25480E-07    6.2800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     117.60        64.145        .92157E-04   -1.5491    
  14  Prefactor     .94369E-09    9.2208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36917E-04    2.1021        .62742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .54956E-08    6.9325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.288        71.024        .13847E-03   -1.5563    
  18  Prefactor     4.0646        11.569        .50002E-03   -1.5668    
  19  norm          2.4129        .40707        .44743E-03   -1.5677    
  20  Prefactor     .12329E-06    13.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .69110E-05    34.954        .11712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          39.906        18.617        .15849E-03   -1.5582    
  23  Normalizat    1.2404        .16961        .48984E-01   -.85364    
  24  Prefactor     .60898        .19458        .77926E-01   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32655e-06
Minuit parameter uncertainties:
  1  3.79763
  2  0.00204003
  3  41.9011
  4  0.0405836
  5  0.00285267
  6  0.000292562
  7  0.000449092
  8  2.33624
  9  8.33655
  10  3.16991
  11  0.000862269
  12  0.000800356
  13  64.1455
  14  0.000185025
  15  0.0176184
  16  0.000390899
  17  71.0247
  18  11.5695
  19  0.407071
  20  0.00260397
  21  0.0310849
  22  18.617
  23  0.169689
  24  0.194791
Done.

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

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  3.708e-08  8.623e-04  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.590e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.090e-01  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.240e+00  1.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.607 35.680
Photon Flux Upper Limit: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/720003/likelihoodResults_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.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) = 6133.83188852
delta logL = -0.00270696005373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6133.82918159
delta logL = -2.59706212091e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-09   1.0000          .0000       .10000E+07
     2 'Index     '    1.4549       1.0000          .0000       10.000    
     3 'Normalizat'    1.2404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60898       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6133.829     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      241 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.9400       -.23740E-06** at limit **
   2  Index         2.9569        2.1399        .16717E-04     .0000    
   3  Normalizat    1.2404        .19140       -.43253E-05    .14984E-03
   4  Prefactor     .60898        .22166        .73648E-05    .77900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.95687
  Normalizat = 1.24037
  Prefactor  = 0.608984
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6133.829     FROM HESSE     STATUS=FAILED        11 CALLS      252 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.8923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .98907        2.0611        .16717E-04   -.42095    
   3  Normalizat    1.2404        1.0938       -.43253E-05   -.85364    
   4  Prefactor     .60898        .95712        .73648E-05   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.10441e-11
Minuit parameter uncertainties:
  1  1.19375e-05
  2  1.38475
  3  1.11514
  4  0.984709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/720003': 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) = 6133.82918156
delta logL = 3.67435859516e-09

Extracting fit parameters...

4FGL J1018.4+3540
   Spectrum: PowerLaw
303    Prefactor:  0.000e+00  1.194e-05  0.000e+00  1.000e+06 ( 1.000e-12)
304        Index:  2.957e+00  1.385e+00  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  6.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  6.090e-01  9.847e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.240e+00  1.115e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.607 35.680

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/720003/cmap_HighResolution_691891201_692150401_4FGL_J1018.4+3540_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2022-12-08 00:46:13.485203', job_id='720003', GAL2='0.61', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1670489173.49', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.67e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1746' AND source_name='4FGL J1018.4+3540' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:46:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 720003: <4FGL_J1018.4+3540_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1018.4+3540_daily_bin1746> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Dec  8 00:35:18 2022
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:35:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:35:18 2022
Terminated at Thu Dec  8 00:46:14 2022
Results reported at Thu Dec  8 00:46:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+3540_daily_bin1746 154.607 35.6802 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+3540 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.57 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            656 sec.

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

