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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin1747
RA = 171.964, Dec = 36.314
tmin = 692150401, tmax = 692409601
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='798344', job_status='RUN', time_executed='2022-12-11 00:47:13.323935', time_epoch_executed='1670748433.32' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/798344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/798344/ft1_4FGL_J1127.8+3618_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/798344/ft1_4FGL_J1127.8+3618_daily_bin1747.fits outfile=/scratch/kocevski/798344/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1747.fits ra=171.964 dec=36.314 rad=12.0 tmin=692150401.0 tmax=692409601.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.03
user 3.77
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.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/798344/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.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.54
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 848

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/798344/ltcube_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.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/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits
.....................!
real 12.86
user 12.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/798344/ltcube_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.fits outfile=/scratch/kocevski/798344/expmap_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.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/798344/ltcube_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.fits
.....................!
real 193.57
user 186.56
sys 5.74

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

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits scfile=/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits outfile=/scratch/kocevski/798344/cmap_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.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=171.964 yref=36.314 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits scfile=/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits outfile=/scratch/kocevski/798344/cmap_HighResolution_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.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=171.964 yref=36.314 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/798344/Model_4FGL_J1127.8+3618_daily_bin1747.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/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits.....................!
real 75.63
user 74.05
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits', '/scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits', expMap='/scratch/kocevski/798344/expmap_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.fits', expCube='/scratch/kocevski/798344/ltcube_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/798344/Model_4FGL_J1127.8+3618_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/798344/ft1_filtered_4FGL_J1127.8+3618_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/798344/ft2_4FGL_J1127.8+3618_daily_bin1747.fits
Exposure map: /scratch/kocevski/798344/expmap_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.fits
Exposure cube: /scratch/kocevski/798344/ltcube_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/798344/Model_4FGL_J1127.8+3618_daily_bin1747.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8833.19763267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.152       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27763E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .64948E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    113.20       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.2486       1.0000          .0000       .10000E+07
     6 'norm      '    1.7787       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.1880       1.0000          .0000       .10000E+07
     8 'Prefactor '    35.762       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14752E-04   1.0000          .0000       .10000E+07
    10 'norm      '    26.558       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27200E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17990E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    11.112       1.0000          .0000       .10000E+07
    14 'norm      '    2.9973       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11100E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.9229       1.0000          .0000       .10000E+07
    17 'Prefactor '    82.478       1.0000          .0000       .10000E+07
    18 'norm      '    1.2028       1.0000          .0000       .10000E+07
    19 'Prefactor '    19.225       1.0000          .0000       .10000E+07
    20 'norm      '    6.2642       1.0000          .0000       .10000E+07
    21 'Prefactor '    .19946       1.0000          .0000       .10000E+07
    22 'norm      '    40.817       1.0000          .0000       .10000E+07
    23 'Prefactor '    .22049E-06   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8827.374     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1314 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.236        13.655       -.13548E-06    .15316E-01
   2  Prefactor      .0000        2.4126       -.26981E-06** at limit **
   3  Prefactor     .27756E-09    7.7280        .49328E-06** at limit **
   4  Prefactor     112.39        76.091        .67182E-07    .62329E-01
   5  Prefactor     1.0767        26.264       -.31314E-05   -.51297E-03
   6  norm          1.7791        .36587        .68404E-07    .47681E-02
   7  Prefactor     7.2071        3.9124        .13405E-06    .62462E-03
   8  Prefactor     35.668        6.9583       -.86862E-07    .29323E-02
   9  Prefactor     .12212E-08    7.1153        .63834E-06** at limit **
  10  norm          26.588        12.756       -.15642E-06   -.28630E-01
  11  Prefactor      .0000        1.4400       -.18189E-06** at limit **
  12  Prefactor     .29876E-06    24.337        .79427E-06** at limit **
  13  Prefactor     11.202        19.218       -.58621E-06   -.81260E-01
  14  norm          2.9932        2.4792        .10406E-06    .48152E-04
  15  Prefactor     .10658E-07    15.542       -.12422E-05** at limit **
  16  Prefactor     5.9157        5.2310        .52080E-06    .26218E-02
  17  Prefactor     82.774        30.953       -.30133E-06    .19817    
  18  norm          1.2009        1.0596        .47026E-07   -.70082E-04
  19  Prefactor     18.944        22.596        .10719E-06    .11421    
  20  norm          6.2445        8.2080       -.40242E-06   -.10760E-02
  21  Prefactor     .55511E-10    45.496       -.11140E-05** at limit **
  22  norm          40.822        3.4509       -.24735E-07   -.40017E-02
  23  Prefactor      .0000        2.1126        .30817E-06** at limit **
  24  Normalizat    1.0843        .21549       -.47216E-05    .20580E-05
  25  Prefactor     .81488        .23882        .72929E-05    .33526E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.2361
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 112.39
  Prefactor  = 1.0767
  norm       = 1.77907
  Prefactor  = 7.20708
  Prefactor  = 35.6677
  Prefactor  = 1.22125e-09
  norm       = 26.5885
  Prefactor  = 0
  Prefactor  = 2.98761e-07
  Prefactor  = 11.2024
  norm       = 2.99324
  Prefactor  = 1.06581e-08
  Prefactor  = 5.91567
  Prefactor  = 82.7737
  norm       = 1.20086
  Prefactor  = 18.9438
  norm       = 6.24449
  Prefactor  = 5.55112e-11
  norm       = 40.8222
  Prefactor  = 0
  Normalizat = 1.08426
  Prefactor  = 0.814882
 **********
 **   18 **HESSE 
 **********

 FCN=   8827.374     FROM HESSE     STATUS=OK           481 CALLS     1795 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.236        37.790        .12894E-03   -1.5553    
   2  Prefactor      .0000        2.4102        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27756E-09    7.7203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     112.39        80.751        .93996E-04   -1.5496    
   5  Prefactor     1.0767        27.108        .10009E-02   -1.5687    
   6  norm          1.7791        .37141        .55734E-03   -1.5681    
   7  Prefactor     7.2071        4.0196        .37390E-03   -1.5654    
   8  Prefactor     35.668        18.084        .16724E-03   -1.5589    
   9  Prefactor     .12212E-08    7.1124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.588        15.558        .19408E-03   -1.5605    
  11  Prefactor      .0000        1.4282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .29876E-06    24.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.202        20.343        .30029E-03   -1.5641    
  14  norm          2.9932        2.5127        .58607E-03   -1.5673    
  15  Prefactor     .10658E-07    15.530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9157        5.2445        .41238E-03   -1.5659    
  17  Prefactor     82.774        47.883        .11012E-03   -1.5526    
  18  norm          1.2009        1.1396        .10339E-02   -1.5686    
  19  Prefactor     18.944        27.983        .22815E-03   -1.5621    
  20  norm          6.2445        8.2225        .40084E-03   -1.5658    
  21  Prefactor     .55511E-10    45.355        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          40.822        3.4652        .15654E-03   -1.5580    
  23  Prefactor      .0000        2.1098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0843        .18025        .64548E-01   -.90259    
  25  Prefactor     .81488        .20051        .84375E-01   -.99182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28753e-06
Minuit parameter uncertainties:
  1  37.7898
  2  2.95323e-06
  3  9.58693e-05
  4  80.7517
  5  10.8051
  6  0.371407
  7  4.01964
  8  18.0838
  9  0.000186955
  10  15.5578
  11  7.0577e-07
  12  0.00540863
  13  20.3434
  14  2.51273
  15  0.000813639
  16  5.24451
  17  47.8834
  18  1.13956
  19  27.9836
  20  8.22255
  21  7.64755e-05
  22  3.46517
  23  6.56022e-06
  24  0.180348
  25  0.200687
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  7.058e-07  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  8.149e-01  2.007e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.084e+00  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/798344/likelihoodResults_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8827.37604816
delta logL = -0.00195438828632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8827.37409382
delta logL = -4.83778421767e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33307E-08   1.0000          .0000       .10000E+07
     2 'Index     '    2.2885       1.0000          .0000       10.000    
     3 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8827.374     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      245 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .59187        .42118E-03** at limit **
   2  Index         1.3600        .82670       -.25550E-03     .0000    
   3  Normalizat    1.0843        1.1674        .76763E-04    .25364E-03
   4  Prefactor     .81488        1.1631       -.80920E-04    .29166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.36003
  Normalizat = 1.08426
  Prefactor  = 0.814885
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8827.374     FROM HESSE     STATUS=FAILED         9 CALLS      254 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .59187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .14981        1.3177       -.25550E-03   -.81539    
   3  Normalizat    1.0843        1.1674        .76763E-04   -.90259    
   4  Prefactor     .81488        1.1631       -.80920E-04   -.99182    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.36482e-10
Minuit parameter uncertainties:
  1  6.21584e-06
  2  0.834929
  3  1.19705
  4  1.20133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/798344': 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) = 8827.37409377
delta logL = -8.54925019667e-11

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  6.216e-06  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  1.360e+00  8.349e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  8.149e-01  1.201e+00  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.084e+00  1.197e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 171.964 36.314

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/798344/cmap_HighResolution_692150401_692409601_4FGL_J1127.8+3618_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2022-12-11 00:59:37.834018', job_id='798344', GAL2='0.81', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1670749177.83', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-8.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1747' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:59:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 798344: <4FGL_J1127.8+3618_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin1747> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Dec 11 00:45:15 2022
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:45:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:45:17 2022
Terminated at Sun Dec 11 00:59:38 2022
Results reported at Sun Dec 11 00:59:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin1747 171.964 36.314 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.8+3618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

