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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1753
RA = 167.969, Dec = 48.9798
tmin = 693705601, tmax = 693964801
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='452600', job_status='RUN', time_executed='2022-12-29 00:48:37.205316', time_epoch_executed='1672303717.21' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452600/ft1_4FGL_J1111.8+4858_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452600/ft1_4FGL_J1111.8+4858_daily_bin1753.fits outfile=/scratch/kocevski/452600/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1753.fits ra=167.969 dec=48.9798 rad=12.0 tmin=693705601.0 tmax=693964801.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.67
user 4.38
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.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/452600/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/452600/ft1_filtered_4FGL_J1111.8+4858_daily_bin1753.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.53
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 550

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452600/ft1_filtered_4FGL_J1111.8+4858_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/452600/ltcube_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.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/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits
.....................!
real 15.52
user 14.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452600/ft1_filtered_4FGL_J1111.8+4858_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/452600/ltcube_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.fits outfile=/scratch/kocevski/452600/expmap_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.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/452600/ltcube_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.fits
.....................!
real 196.19
user 188.54
sys 5.41

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/452600/ft1_filtered_4FGL_J1111.8+4858_daily_bin1753.fits scfile=/scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits outfile=/scratch/kocevski/452600/cmap_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452600/ft1_filtered_4FGL_J1111.8+4858_daily_bin1753.fits scfile=/scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits outfile=/scratch/kocevski/452600/cmap_HighResolution_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452600/ft1_filtered_4FGL_J1111.8+4858_daily_bin1753.fits', '/scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits', expMap='/scratch/kocevski/452600/expmap_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.fits', expCube='/scratch/kocevski/452600/ltcube_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452600/Model_4FGL_J1111.8+4858_daily_bin1753.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/452600/ft1_filtered_4FGL_J1111.8+4858_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/452600/ft2_4FGL_J1111.8+4858_daily_bin1753.fits
Exposure map: /scratch/kocevski/452600/expmap_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.fits
Exposure cube: /scratch/kocevski/452600/ltcube_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452600/Model_4FGL_J1111.8+4858_daily_bin1753.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) = 5910.81654289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35520E-05   1.0000          .0000       .10000E+07
     2 'norm      '    2.1952       1.0000          .0000       .10000E+07
     3 'Prefactor '    .99579E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11046E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .81029       1.0000          .0000       .10000E+07
     6 'Prefactor '    .25374E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .18215       1.0000          .0000       .10000E+07
     8 'norm      '    4.0891       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27427E-02   1.0000          .0000       .10000E+07
    10 'norm      '    2.3625       1.0000          .0000       .10000E+07
    11 'Prefactor '    .98305E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10526E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13963E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .25408E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.450       1.0000          .0000       .10000E+07
    16 'Prefactor '    37.432       1.0000          .0000       .10000E+07
    17 'norm      '    2.0107       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.1310       1.0000          .0000       .10000E+07
    19 'norm      '    .28228       1.0000          .0000       .10000E+07
    20 'norm      '    5.9513       1.0000          .0000       .10000E+07
    21 'Prefactor '    .27151E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .12725E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    6.0880       1.0000          .0000       .10000E+07
    24 'norm      '    3.0944       1.0000          .0000       .10000E+07
    25 'norm      '    20.118       1.0000          .0000       .10000E+07
    26 'Normalizat'    .81299       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0558       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=   5910.783     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1812 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.4222        .49750E-06** at limit **
   2  norm          2.1937        1.7292        .13576E-06    .64488E-03
   3  Prefactor     .14361E-06    16.289       -.32960E-06** at limit **
   4  Prefactor      .0000        1.8484       -.18405E-07** at limit **
   5  norm          .81068        .90702        .77020E-07    .23434E-03
   6  Prefactor     .40912E-07    7.2061       -.54028E-06** at limit **
   7  Prefactor     .32367E-05    19.005       -.82467E-06** at limit **
   8  norm          4.0908        1.9101       -.53735E-07   -.41890E-03
   9  Prefactor     .21516E-06    4.1740       -.34292E-06** at limit **
  10  norm          2.3628        .42124       -.21821E-07   -.45419E-02
  11  Prefactor     .94924E-08    6.6382        .75969E-07** at limit **
  12  Prefactor     .11102E-09    5.5654        .21955E-06** at limit **
  13  Prefactor     .16825E-06    8.6135       -.58650E-06** at limit **
  14  norm          .23359E-06    4.8064       -.30620E-06** at limit **
  15  Prefactor     12.503        7.1845        .28820E-07    .23038E-02
  16  Prefactor     37.738        4.6493        .68336E-07   -.51983E-01
  17  norm          2.0131        2.2554        .73421E-07   -.24650E-03
  18  Prefactor     6.2039        1.6087        .42778E-07   -.45683E-02
  19  norm          .28330        .64312       -.14693E-06   -.34694E-03
  20  norm          5.8870        6.0133        .74988E-08    .13955E-05
  21  Prefactor      .0000        2.1245        .31640E-06** at limit **
  22  Prefactor     .18596E-07    5.1587       -.45611E-06** at limit **
  23  Prefactor     6.1329        14.005        .58484E-06   -.14690E-01
  24  norm          3.0912        2.3821       -.40410E-08   -.17830E-03
  25  norm          20.116        1.5492        .18347E-07    .49678E-01
  26  Normalizat    .81268        .18009        .70864E-05    .12147E-04
  27  Prefactor     1.0559        .23474       -.49898E-05    .37403E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 2.19367
  Prefactor  = 1.43607e-07
  Prefactor  = 0
  norm       = 0.810678
  Prefactor  = 4.09117e-08
  Prefactor  = 3.23669e-06
  norm       = 4.09081
  Prefactor  = 2.15161e-07
  norm       = 2.36283
  Prefactor  = 9.49241e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 1.68254e-07
  norm       = 2.33591e-07
  Prefactor  = 12.5032
  Prefactor  = 37.7375
  norm       = 2.01308
  Prefactor  = 6.20395
  norm       = 0.283298
  norm       = 5.88698
  Prefactor  = 0
  Prefactor  = 1.85962e-08
  Prefactor  = 6.1329
  norm       = 3.09119
  norm       = 20.1159
  Normalizat = 0.812678
  Prefactor  = 1.05594
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.783     FROM HESSE     STATUS=OK           544 CALLS     2356 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.4091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1937        1.7276        .69427E-03   -1.5678    
   3  Prefactor     .14361E-06    21.319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.8431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .81068        .90861        .52171E-03   -1.5690    
   6  Prefactor     .40912E-07    24.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .32367E-05    60.060        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0908        1.9104        .49832E-03   -1.5668    
   9  Prefactor     .21516E-06    23.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3628        .42081        .46158E-03   -1.5677    
  11  Prefactor     .94924E-08    6.7814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    5.5785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16825E-06    24.895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23359E-06    22.981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.503        7.4064        .28364E-03   -1.5637    
  16  Prefactor     37.738        27.349        .16347E-03   -1.5585    
  17  norm          2.0131        2.2815        .72980E-03   -1.5680    
  18  Prefactor     6.2039        18.812        .40522E-03   -1.5658    
  19  norm          .28330        .69782        .21369E-02   -1.5697    
  20  norm          5.8870        6.0120        .41138E-03   -1.5659    
  21  Prefactor      .0000        2.1154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .18596E-07    24.235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.1329        17.154        .40667E-03   -1.5658    
  24  norm          3.0912        2.3938        .57626E-03   -1.5673    
  25  norm          20.116        10.378        .22302E-03   -1.5618    
  26  Normalizat    .81268        .15342        .43780E-01   -.99600    
  27  Prefactor     1.0559        .19924        .62323E-01   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71218e-07
Minuit parameter uncertainties:
  1  2.12926e-05
  2  1.72764
  3  0.00349913
  4  4.90429e-06
  5  0.908606
  6  0.00200871
  7  0.0278854
  8  1.91036
  9  0.00450249
  10  0.420809
  11  0.000506742
  12  5.35575e-05
  13  0.00409337
  14  0.00463386
  15  7.40637
  16  27.3491
  17  2.28148
  18  18.8126
  19  0.69782
  20  6.01199
  21  6.67203e-06
  22  0.00134291
  23  17.1538
  24  2.3938
  25  10.3781
  26  0.153502
  27  0.199378
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  1.683e-07  4.093e-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:  1.056e+00  1.994e-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:  8.127e-01  1.535e-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: 2.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452600/likelihoodResults_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.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) = 5910.80258365
delta logL = -0.0191618250137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5910.78342183
delta logL = -3.18323145621e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61395E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .39676       1.0000          .0000       10.000    
     3 'Normalizat'    .81268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0559       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=   5910.783     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      241 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40523E-08    1.8363        .42118E-03** at limit **
   2  Index         1.4917        9.2075        .38205        .17854E-09
   3  Normalizat    .81268        .83072E-03    .43776E-01   -.24086E-03
   4  Prefactor     1.0559        .11008E-02    .62323E-01   -.24128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.05231e-09
  Index      = 1.49172
  Normalizat = 0.812678
  Prefactor  = 1.05594
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.783     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      272 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40523E-08    4.9490        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4917        7.3086        .50000       -.77772    
   3  Normalizat    .81268        .13627E-02    .23540E-03   -.99600    
   4  Prefactor     1.0559        .18051E-02    .27564E-03   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.9063e-12
Minuit parameter uncertainties:
  1  0.000283517
  2  10561.8
  3  0.00136274
  4  0.00180508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452600': 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): 102
logL (Free Index) = 5910.78342182
delta logL = 3.2841853681e-09

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  4.052e-09  2.835e-04  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  1.492e+00  1.056e+04  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:  1.056e+00  1.805e-03  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:  8.127e-01  1.363e-03  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/452600/cmap_HighResolution_693705601_693964801_4FGL_J1111.8+4858_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-03', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2022-12-29 01:00:12.421113', job_id='452600', GAL2='1.06', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1672304412.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.28e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1753' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:00:12 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 452600: <4FGL_J1111.8+4858_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 00:45:17 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:48:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:48:20 2022
Terminated at Thu Dec 29 01:00:13 2022
Results reported at Thu Dec 29 01:00:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1753 167.969 48.9798 693705601 693964801 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 :                                   690.14 sec.
    Max Memory :                                 1083 MB
    Average Memory :                             326.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            896 sec.

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

