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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1764
RA = 167.969, Dec = 48.9798
tmin = 696556801, tmax = 696816001
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='443591', job_status='RUN', time_executed='2023-01-31 00:41:29.945260', time_epoch_executed='1675154489.95' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443591/ft1_4FGL_J1111.8+4858_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443591/ft2_4FGL_J1111.8+4858_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443591/ft1_4FGL_J1111.8+4858_daily_bin1764.fits outfile=/scratch/kocevski/443591/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1764.fits ra=167.969 dec=48.9798 rad=12.0 tmin=696556801.0 tmax=696816001.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 3.72
user 3.46
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443591/ft2_4FGL_J1111.8+4858_daily_bin1764.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/443591/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/443591/ft1_filtered_4FGL_J1111.8+4858_daily_bin1764.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.16

Number of photons that the gtmktime cut: 562

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443591/ft1_filtered_4FGL_J1111.8+4858_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/443591/ft2_4FGL_J1111.8+4858_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/443591/ltcube_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.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/443591/ft2_4FGL_J1111.8+4858_daily_bin1764.fits
.....................!
real 14.39
user 14.00
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443591/ft1_filtered_4FGL_J1111.8+4858_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/443591/ft2_4FGL_J1111.8+4858_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/443591/ltcube_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.fits outfile=/scratch/kocevski/443591/expmap_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.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/443591/ltcube_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.fits
.....................!
real 193.49
user 187.70
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/443591/ft1_filtered_4FGL_J1111.8+4858_daily_bin1764.fits scfile=/scratch/kocevski/443591/ft2_4FGL_J1111.8+4858_daily_bin1764.fits outfile=/scratch/kocevski/443591/cmap_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443591/ft1_filtered_4FGL_J1111.8+4858_daily_bin1764.fits scfile=/scratch/kocevski/443591/ft2_4FGL_J1111.8+4858_daily_bin1764.fits outfile=/scratch/kocevski/443591/cmap_HighResolution_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.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.59
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21855E-05   1.0000          .0000       .10000E+07
     2 'norm      '    5.6688       1.0000          .0000       .10000E+07
     3 'Prefactor '    34.828       1.0000          .0000       .10000E+07
     4 'Prefactor '    .62172E-08   1.0000          .0000       .10000E+07
     5 'norm      '    2.4320       1.0000          .0000       .10000E+07
     6 'Prefactor '    .22644       1.0000          .0000       .10000E+07
     7 'Prefactor '    41.699       1.0000          .0000       .10000E+07
     8 'norm      '    1.8871       1.0000          .0000       .10000E+07
     9 'Prefactor '    41.901       1.0000          .0000       .10000E+07
    10 'norm      '    2.5878       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12202E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .54134E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .27795E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .47724E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    9.6383       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12788E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.9575       1.0000          .0000       .10000E+07
    18 'Prefactor '    31.722       1.0000          .0000       .10000E+07
    19 'norm      '    1.7498       1.0000          .0000       .10000E+07
    20 'norm      '    .19243E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.9801       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20195E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    19.524       1.0000          .0000       .10000E+07
    24 'norm      '    2.1686       1.0000          .0000       .10000E+07
    25 'norm      '    .33206E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    .87373       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97512       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=   6184.088     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2369 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8894       -.47417E-07** at limit **
   2  norm          5.6924        2.5065       -.27357E-07   -.19963E-02
   3  Prefactor     35.317        10.151        .39061E-07    .63734E-01
   4  Prefactor      .0000        4.6742        .24536E-07** at limit **
   5  norm          2.4327        1.3307        .90598E-08    .14865E-02
   6  Prefactor     .16653E-09    51.255       -.17797E-06** at limit **
   7  Prefactor     43.857        89.068       -.29572E-06   -.57124E-02
   8  norm          1.8844        1.5330        .52657E-07    .35831E-02
   9  Prefactor     45.590        64.821       -.63252E-06    .91691E-02
  10  norm          2.5883        .45611       -.20206E-08   -.33579E-03
  11  Prefactor     .24425E-08    15.404        .23392E-06** at limit **
  12  Prefactor     .11102E-09    7.4002        .17560E-07** at limit **
  13  Prefactor      .0000        27.131        .29373E-09** at limit **
  14  norm          .29976E-08    18.761       -.63146E-07** at limit **
  15  Prefactor     9.5914        6.2080        .19215E-08   -.17786E-03
  16  Prefactor     .55511E-10    5.2086       -.47448E-07** at limit **
  17  norm          1.9513        2.0865        .48352E-07    .21056E-02
  18  Prefactor     33.417        52.505       -.13372E-06   -.88723E-02
  19  norm          1.7280        1.4954        .32580E-07    .35357E-02
  20  norm          .18580E-06    27.908       -.33313E-06** at limit **
  21  Prefactor     2.9775        2.9994       -.69990E-08    .23344E-02
  22  Prefactor     .11102E-09    22.531       -.72358E-07** at limit **
  23  Prefactor     19.633        3.7885       -.15692E-07   -.13783    
  24  norm          2.1790        1.9925       -.32336E-08    .47472E-03
  25  norm          .55511E-10    6.5032       -.33919E-08** at limit **
  26  Normalizat    .86896        .20475        .31662E-05    .11802E-03
  27  Prefactor     .97783        .24617       -.14355E-05    .80907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.69242
  Prefactor  = 35.3172
  Prefactor  = 0
  norm       = 2.43266
  Prefactor  = 1.66533e-10
  Prefactor  = 43.8573
  norm       = 1.88443
  Prefactor  = 45.5897
  norm       = 2.58825
  Prefactor  = 2.44249e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 2.9976e-09
  Prefactor  = 9.59144
  Prefactor  = 5.55112e-11
  norm       = 1.95127
  Prefactor  = 33.417
  norm       = 1.72804
  norm       = 1.85796e-07
  Prefactor  = 2.97746
  Prefactor  = 1.11022e-10
  Prefactor  = 19.6333
  norm       = 2.17897
  norm       = 5.55112e-11
  Normalizat = 0.868961
  Prefactor  = 0.977826
 **********
 **   18 **HESSE 
 **********

 FCN=   6184.088     FROM HESSE     STATUS=OK           546 CALLS     2915 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.6924        2.5054        .42166E-03   -1.5660    
   3  Prefactor     35.317        26.439        .16947E-03   -1.5589    
   4  Prefactor      .0000        4.6586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4327        1.3280        .65591E-03   -1.5677    
   6  Prefactor     .16653E-09    51.238        .11323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.857        89.399        .15487E-03   -1.5576    
   8  norm          1.8844        1.5353        .75730E-03   -1.5681    
   9  Prefactor     45.590        64.265        .15450E-03   -1.5573    
  10  norm          2.5883        .45597        .48876E-03   -1.5676    
  11  Prefactor     .24425E-08    15.412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    7.3925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        27.096        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .29976E-08    18.816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5914        6.1834        .32254E-03   -1.5646    
  16  Prefactor     .55511E-10    5.2153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9513        2.1014        .74122E-03   -1.5680    
  18  Prefactor     33.417        52.462        .17757E-03   -1.5592    
  19  norm          1.7280        1.5082        .79234E-03   -1.5682    
  20  norm          .18580E-06    30.505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.9775        3.1266        .58786E-03   -1.5673    
  22  Prefactor     .11102E-09    22.675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.633        20.169        .22639E-03   -1.5619    
  24  norm          2.1790        2.0010        .69903E-03   -1.5678    
  25  norm          .55511E-10    6.4984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86896        .17069        .44565E-01   -.97560    
  27  Prefactor     .97783        .20536        .66130E-01   -.93472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93767e-07
Minuit parameter uncertainties:
  1  6.75903e-06
  2  2.50545
  3  26.4388
  4  3.18905e-06
  5  1.32802
  6  0.000186923
  7  89.4017
  8  1.53527
  9  64.2658
  10  0.455966
  11  0.000389208
  12  5.52818e-05
  13  8.79801e-07
  14  0.000472816
  15  6.18341
  16  2.97274e-05
  17  2.10139
  18  52.4629
  19  1.50822
  20  0.00476111
  21  3.1266
  22  8.91714e-05
  23  20.1695
  24  2.00102
  25  3.80643e-05
  26  0.170792
  27  0.205521
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  0.000e+00  8.798e-07  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:  9.778e-01  2.055e-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.690e-01  1.708e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443591/likelihoodResults_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.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) = 6184.10521431
delta logL = -0.0175960639808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6184.08761879
delta logL = -5.47093804926e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11608E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .28895       1.0000          .0000       10.000    
     3 'Normalizat'    .86904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97766       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=   6184.088     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      206 TOTAL
                     EDM=   .72E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        41.018        .11062E-06** at limit **
   2  Index         1.4441        6.6900       -.56281E-05     .0000    
   3  Normalizat    .86896        .18945        .39214E-05    .33455E-04
   4  Prefactor     .97783        .24440       -.18994E-05    .21255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.44411
  Normalizat = 0.868961
  Prefactor  = 0.977826
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6184.088     FROM HESSE     STATUS=FAILED        11 CALLS      217 TOTAL
                     EDM=   .72E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        41.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .18064        1.4993       -.56281E-05   -.79117    
   3  Normalizat    .86896        1.2056        .39214E-05   -.97560    
   4  Prefactor     .97783        1.3183       -.18994E-05   -.93472    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.21182e-13
Minuit parameter uncertainties:
  1  2.3414e-05
  2  1.28736
  3  1.24639
  4  1.36592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443591': 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) = 6184.08761824
delta logL = 6.36646291241e-12

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  0.000e+00  2.341e-05  0.000e+00  1.000e+06 ( 1.000e-15)
373        Index:  1.444e+00  1.287e+00  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:  9.778e-01  1.366e+00  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.690e-01  1.246e+00  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/443591/cmap_HighResolution_696556801_696816001_4FGL_J1111.8+4858_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-03', job_status='DONE', photon_flux_upper_limit='3.00e-08', time_completed='2023-01-31 00:54:16.437687', job_id='443591', GAL2='0.98', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1675155256.44', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.37e-12', ts2='0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1764' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:54:16 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 443591: <4FGL_J1111.8+4858_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1764> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan 31 00:40:13 2023
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:40:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:40:30 2023
Terminated at Tue Jan 31 00:54:17 2023
Results reported at Tue Jan 31 00:54:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1764 167.969 48.9798 696556801 696816001 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 :                                   768.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            844 sec.

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

