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


Performing analysis on: 4FGL_J1111.8+4858_weekly_bin759
RA = 167.969, Dec = 48.9798
tmin = 698025601, tmax = 698630401
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='588505', job_status='RUN', time_executed='2023-02-21 03:27:21.430807', time_epoch_executed='1676978841.43' WHERE source_name='4FGL J1111.8+4858' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588505

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588505/ft1_4FGL_J1111.8+4858_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588505/ft1_4FGL_J1111.8+4858_weekly_bin759.fits outfile=/scratch/kocevski/588505/ft1_filteredMKT_4FGL_J1111.8+4858_weekly_bin759.fits ra=167.969 dec=48.9798 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.51
user 8.26
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.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/588505/ft1_filteredMKT_4FGL_J1111.8+4858_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.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 1.07
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 563

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/588505/ltcube_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.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/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits
.....................!
real 26.86
user 26.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/588505/ltcube_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.fits outfile=/scratch/kocevski/588505/expmap_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.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/588505/ltcube_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.fits
.....................!
real 190.16
user 185.39
sys 4.33

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

Setting source of interest to:
4FGL J1111.8+4858 @ 167.969 48.9798

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits scfile=/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits outfile=/scratch/kocevski/588505/cmap_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.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=167.969 yref=48.9798 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.59
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits scfile=/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits outfile=/scratch/kocevski/588505/cmap_HighResolution_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.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=167.969 yref=48.9798 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/588505/Model_4FGL_J1111.8+4858_weekly_bin759.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/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits.....................!
real 51.17
user 49.93
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits', '/scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits', expMap='/scratch/kocevski/588505/expmap_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.fits', expCube='/scratch/kocevski/588505/ltcube_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588505/Model_4FGL_J1111.8+4858_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1111.8+4858'

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  2.239e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  1.825e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/588505/ft1_filtered_4FGL_J1111.8+4858_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/588505/ft2_4FGL_J1111.8+4858_weekly_bin759.fits
Exposure map: /scratch/kocevski/588505/expmap_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.fits
Exposure cube: /scratch/kocevski/588505/ltcube_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588505/Model_4FGL_J1111.8+4858_weekly_bin759.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) = 6068.95597633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45260E-02   1.0000          .0000       .10000E+07
     2 'norm      '    5.4823       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.929       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8333       1.0000          .0000       .10000E+07
     5 'norm      '    3.6152       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13162E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29458E-01   1.0000          .0000       .10000E+07
     8 'norm      '    3.0823       1.0000          .0000       .10000E+07
     9 'Prefactor '    .51689E-03   1.0000          .0000       .10000E+07
    10 'norm      '    2.1887       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.881       1.0000          .0000       .10000E+07
    12 'Prefactor '    .39801E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .93578E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .65370E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .82734E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    9.9930       1.0000          .0000       .10000E+07
    17 'norm      '    7.7575       1.0000          .0000       .10000E+07
    18 'Prefactor '    55.804       1.0000          .0000       .10000E+07
    19 'norm      '    .30938       1.0000          .0000       .10000E+07
    20 'norm      '    .47573E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23087E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .22183E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    5.9502       1.0000          .0000       .10000E+07
    24 'norm      '    .16931E-07   1.0000          .0000       .10000E+07
    25 'norm      '    3.3237       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .77347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6068.949     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     2383 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61617E-08    8.4382       -.27179E-05** at limit **
   2  norm          5.4829        2.6569        .34166E-07    .21971E-02
   3  Prefactor     10.927        1.1644       -.11011E-06   -.96654E-02
   4  Prefactor     1.8338        2.1475       -.16047E-06   -.26436E-02
   5  norm          3.6156        1.7490        .26891E-06   -.70518E-04
   6  Prefactor     .40723E-06    42.611       -.46167E-05** at limit **
   7  Prefactor      .0000        49.431       -.12143E-05** at limit **
   8  norm          3.0830        1.8781       -.35150E-06    .17466E-02
   9  Prefactor     .53579E-06    15.187        .27528E-05** at limit **
  10  norm          2.1888        .41123       -.93725E-07   -.15723E-01
  11  Prefactor     12.859        1.2677        .34558E-07    .19992E-01
  12  Prefactor     .77716E-09    5.5249        .23352E-06** at limit **
  13  Prefactor     .11036E-06    15.463        .28664E-05** at limit **
  14  norm          .15432E-07    12.923       -.22792E-05** at limit **
  15  Prefactor     .55511E-10    1.9045       -.38826E-06** at limit **
  16  Prefactor     10.020        1.0522        .20774E-08   -.45026E-02
  17  norm          7.7580        3.1149       -.40395E-06    .60323E-03
  18  Prefactor     55.784        1.8432       -.12235E-06    .20782E-01
  19  norm          .30948        .62518       -.66725E-06   -.22516E-03
  20  norm          .16653E-09    2.6531        .56477E-06** at limit **
  21  Prefactor     .11102E-09    6.5049        .87144E-06** at limit **
  22  Prefactor     .70705E-06    21.419       -.27970E-05** at limit **
  23  Prefactor     5.9846        7.4819        .17931E-05    .72398E-01
  24  norm           .0000        .96168       -.34867E-06** at limit **
  25  norm          3.3665        8.1639        .75006E-06   -.16162E-02
  26  Normalizat    1.0023        .17672        .20083E-04    .11197E-04
  27  Prefactor     .77336        .22917       -.26530E-04   -.31131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16174e-09
  norm       = 5.48288
  Prefactor  = 10.9271
  Prefactor  = 1.83377
  norm       = 3.61557
  Prefactor  = 4.0723e-07
  Prefactor  = 0
  norm       = 3.083
  Prefactor  = 5.35794e-07
  norm       = 2.18878
  Prefactor  = 12.8594
  Prefactor  = 7.77156e-10
  Prefactor  = 1.10356e-07
  norm       = 1.54321e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 10.0196
  norm       = 7.75804
  Prefactor  = 55.7838
  norm       = 0.309476
  norm       = 1.66533e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 7.07046e-07
  Prefactor  = 5.98462
  norm       = 0
  norm       = 3.36652
  Normalizat = 1.00226
  Prefactor  = 0.773362
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.949     FROM HESSE     STATUS=OK           544 CALLS     2927 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61617E-08    8.3896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4829        2.6594        .42889E-03   -1.5661    
   3  Prefactor     10.927        20.555        .30281E-03   -1.5642    
   4  Prefactor     1.8338        2.1545        .77038E-03   -1.5681    
   5  norm          3.6156        1.7535        .53115E-03   -1.5670    
   6  Prefactor     .40723E-06    43.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        49.224        .16479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0830        1.8866        .57745E-03   -1.5673    
   9  Prefactor     .53579E-06    32.610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1888        .41108        .47567E-03   -1.5678    
  11  Prefactor     12.859        13.679        .27884E-03   -1.5636    
  12  Prefactor     .77716E-09    5.5273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11036E-06    31.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15432E-07    12.966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    1.9034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.020        21.397        .31674E-03   -1.5645    
  17  norm          7.7580        3.1595        .35979E-03   -1.5652    
  18  Prefactor     55.784        41.166        .13387E-03   -1.5559    
  19  norm          .30948        .74208        .20447E-02   -1.5697    
  20  norm          .16653E-09    2.6540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11102E-09    6.4240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .70705E-06    23.465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.9846        18.352        .41142E-03   -1.5659    
  24  norm           .0000        .94796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3665        8.2049        .55498E-03   -1.5671    
  26  Normalizat    1.0023        .15191        .46195E-01   -.92955    
  27  Prefactor     .77336        .19353        .70128E-01   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35934e-07
Minuit parameter uncertainties:
  1  0.000454265
  2  2.65935
  3  20.5553
  4  2.15449
  5  1.75351
  6  0.00845457
  7  4.08879e-05
  8  1.88657
  9  0.00836017
  10  0.411075
  11  13.6788
  12  0.000132739
  13  0.00374816
  14  0.000895333
  15  1.9178e-05
  16  21.397
  17  3.15952
  18  41.1665
  19  0.742079
  20  4.46222e-05
  21  5.401e-05
  22  0.00814645
  23  18.3523
  24  2.63625e-06
  25  8.20489
  26  0.151973
  27  0.193702
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.104e-07  3.748e-03  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  1.825e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  7.734e-01  1.937e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.002e+00  1.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 167.969 48.980
Photon Flux Upper Limit: 3.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588505/likelihoodResults_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.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) = 6068.96429096
delta logL = -0.0149914954018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6068.94929966
delta logL = -2.00078829948e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11974E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7775       1.0000          .0000       10.000    
     3 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6068.949     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      278 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20317E-07    14.692        .42118E-03** at limit **
   2  Index         .26169E-01    5.9296        .50000       -.65938E-09
   3  Normalizat    1.0023        .14733        .46194E-01   -.42925E-03
   4  Prefactor     .77336        .19190        .70128E-01   -.28498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03171e-08
  Index      = 0.0261692
  Normalizat = 1.00226
  Prefactor  = 0.773362
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.949     FROM HESSE     STATUS=OK            31 CALLS      309 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20317E-07    14.672        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .26169E-01    5.9283        .50000       -1.4684    
   3  Normalizat    1.0023        .17434        .21279E-03   -.92955    
   4  Prefactor     .77336        .22674        .31032E-03   -1.0072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54731e-09
Minuit parameter uncertainties:
  1  0.00109271
  2  0.510902
  3  0.174435
  4  0.227013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588505': 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) = 6068.94929946
delta logL = 9.65883373283e-10

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  2.032e-08  1.093e-03  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  2.617e-02  5.109e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  7.734e-01  2.270e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.002e+00  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 167.969 48.980

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/588505/cmap_HighResolution_698025601_698630401_4FGL_J1111.8+4858_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-03', job_status='DONE', photon_flux_upper_limit='3.30e-08', time_completed='2023-02-21 03:40:30.630990', job_id='588505', GAL2='0.77', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1676979630.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='9.66e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='759' AND source_name='4FGL J1111.8+4858' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:40:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 588505: <4FGL_J1111.8+4858_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1111.8+4858_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:25:21 2023
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:25:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:25:22 2023
Terminated at Tue Feb 21 03:40:31 2023
Results reported at Tue Feb 21 03:40:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_weekly_bin759 167.969 48.9798 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1111.8+4858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             310.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

