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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin1779
RA = 176.74, Dec = 39.9775
tmin = 700444801, tmax = 700704001
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='22163', job_status='RUN', time_executed='2023-03-17 01:31:48.119449', time_epoch_executed='1679041908.12' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22163/ft1_4FGL_J1146.9+3958_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22163/ft1_4FGL_J1146.9+3958_daily_bin1779.fits outfile=/scratch/kocevski/22163/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin1779.fits ra=176.74 dec=39.9775 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.28
user 5.00
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.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/22163/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin1779.fits evtable="EVENTS" outfile="/scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 542

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/22163/ltcube_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.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/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits
.....................!
real 11.90
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/22163/ltcube_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.fits outfile=/scratch/kocevski/22163/expmap_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.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/22163/ltcube_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.fits
.....................!
real 190.87
user 185.75
sys 4.79

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

Setting source of interest to:
4FGL J1146.9+3958 @ 176.74 39.9775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits scfile=/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits outfile=/scratch/kocevski/22163/cmap_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.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=176.74 yref=39.9775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits scfile=/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits outfile=/scratch/kocevski/22163/cmap_HighResolution_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.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=176.74 yref=39.9775 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/22163/Model_4FGL_J1146.9+3958_daily_bin1779.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/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits.....................!
real 54.32
user 53.01
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits', '/scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits', expMap='/scratch/kocevski/22163/expmap_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.fits', expCube='/scratch/kocevski/22163/ltcube_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/22163/Model_4FGL_J1146.9+3958_daily_bin1779.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1146.9+3958'

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  2.705e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
334        alpha:  2.323e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  6.653e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/22163/ft1_filtered_4FGL_J1146.9+3958_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/22163/ft2_4FGL_J1146.9+3958_daily_bin1779.fits
Exposure map: /scratch/kocevski/22163/expmap_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.fits
Exposure cube: /scratch/kocevski/22163/ltcube_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/22163/Model_4FGL_J1146.9+3958_daily_bin1779.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) = 6053.91919835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37794E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.5215       1.0000          .0000       .10000E+07
     3 'Prefactor '    .31481E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .38637       1.0000          .0000       .10000E+07
     5 'Prefactor '    91.566       1.0000          .0000       .10000E+07
     6 'norm      '    .12365E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .25679E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .34000E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    23.823       1.0000          .0000       .10000E+07
    10 'Prefactor '    .71260E-03   1.0000          .0000       .10000E+07
    11 'norm      '    4.3779       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.950       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4071       1.0000          .0000       .10000E+07
    14 'Prefactor '    54.377       1.0000          .0000       .10000E+07
    15 'norm      '    .25523       1.0000          .0000       .10000E+07
    16 'norm      '    .64906E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .38006E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    62.123       1.0000          .0000       .10000E+07
    19 'Prefactor '    27.706       1.0000          .0000       .10000E+07
    20 'norm      '    28.379       1.0000          .0000       .10000E+07
    21 'norm      '    3.3777       1.0000          .0000       .10000E+07
    22 'Prefactor '    15.385       1.0000          .0000       .10000E+07
    23 'norm      '    2.5888       1.0000          .0000       .10000E+07
    24 'Prefactor '    .83416E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3433       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .50565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6053.894     FROM MIGRAD    STATUS=CONVERGED    224 CALLS     2331 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11430E-06    27.474        .22450E-07** at limit **
   2  norm          2.5208        .47018       -.19297E-08   -.82452E-02
   3  Prefactor     .56066E-08    41.742        .31589E-06** at limit **
   4  Prefactor     .43103        12.354        .63463E-07   -.43607E-01
   5  Prefactor     91.340        24.526       -.12932E-07    .96296E-01
   6  norm          .14266E-06    13.343        .94579E-07** at limit **
   7  norm          .13495E-06    14.277       -.61189E-08** at limit **
   8  Prefactor     .33307E-09    7.4720       -.24970E-07** at limit **
   9  Prefactor     22.604        52.378       -.24037E-07    .34700E-02
  10  Prefactor     .17175E-06    20.199        .49547E-07** at limit **
  11  norm          4.4628        4.3157       -.61156E-07   -.66246E-02
  12  Prefactor     11.887        15.236        .28573E-07    .13200E-01
  13  Prefactor     1.4720        10.690        .26993E-06    .28530E-02
  14  Prefactor     51.661        68.153        .92158E-07   -.27565E-02
  15  norm          .30464        2.4010       -.34928E-07   -.36449E-02
  16  norm          .11102E-08    5.0145       -.12071E-06** at limit **
  17  Prefactor     .72164E-09    2.2138       -.10295E-06** at limit **
  18  Prefactor     59.600        64.379        .25237E-07   -.42321E-02
  19  Prefactor     27.661        3.4880       -.99777E-08    .57928E-01
  20  norm          28.373        3.8151        .67708E-08    .75063E-02
  21  norm          3.3759        3.1698       -.34367E-07   -.48912E-02
  22  Prefactor     15.332        11.950        .24302E-07    .19810E-02
  23  norm          2.5988        8.2685        .69188E-07    .11026E-02
  24  Prefactor     .35527E-08    10.787        .13858E-06** at limit **
  25  Normalizat    1.3456        .24185       -.16702E-05    .16037E-03
  26  Prefactor     .50464        .25861        .30939E-05    .17721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14297e-07
  norm       = 2.52081
  Prefactor  = 5.60663e-09
  Prefactor  = 0.431028
  Prefactor  = 91.3396
  norm       = 1.42664e-07
  norm       = 1.34948e-07
  Prefactor  = 3.33067e-10
  Prefactor  = 22.6037
  Prefactor  = 1.71752e-07
  norm       = 4.46282
  Prefactor  = 11.8872
  Prefactor  = 1.47197
  Prefactor  = 51.6609
  norm       = 0.304637
  norm       = 1.11022e-09
  Prefactor  = 7.21645e-10
  Prefactor  = 59.5999
  Prefactor  = 27.661
  norm       = 28.3731
  norm       = 3.37592
  Prefactor  = 15.3321
  norm       = 2.59882
  Prefactor  = 3.55271e-09
  Normalizat = 1.34565
  Prefactor  = 0.504637
 **********
 **   18 **HESSE 
 **********

 FCN=   6053.894     FROM HESSE     STATUS=OK           530 CALLS     2861 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11430E-06    27.639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5208        .49162        .49954E-03   -1.5676    
   3  Prefactor     .56066E-08    13.131        .87534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .43103        11.218        .13720E-01   -1.5695    
   5  Prefactor     91.340        112.75        .10451E-03   -1.5517    
   6  norm          .14266E-06    13.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .13495E-06    14.424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-09    7.4904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.604        83.505        .20493E-03   -1.5613    
  10  Prefactor     .17175E-06    20.552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4628        5.4010        .48112E-03   -1.5666    
  12  Prefactor     11.887        15.340        .28953E-03   -1.5639    
  13  Prefactor     1.4720        11.229        .91346E-03   -1.5684    
  14  Prefactor     51.661        66.146        .13562E-03   -1.5564    
  15  norm          .30464        1.0242        .27202E-02   -1.5719    
  16  norm          .11102E-08    5.0176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .72164E-09    2.2050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     59.600        74.067        .12688E-03   -1.5554    
  19  Prefactor     27.661        21.698        .19001E-03   -1.5603    
  20  norm          28.373        3.8208        .18775E-03   -1.5601    
  21  norm          3.3759        3.1674        .55032E-03   -1.5671    
  22  Prefactor     15.332        11.972        .25509E-03   -1.5630    
  23  norm          2.5988        8.2965        .63394E-03   -1.5676    
  24  Prefactor     .35527E-08    10.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3456        .21098        .54749E-01   -.82214    
  26  Prefactor     .50464        .22902        .95292E-01   -1.1176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48819e-06
Minuit parameter uncertainties:
  1  0.00355503
  2  0.49162
  3  0.00054206
  4  4.39783
  5  112.748
  6  0.00277031
  7  0.00279007
  8  9.78236e-05
  9  83.5091
  10  0.00375765
  11  5.40101
  12  15.3403
  13  8.13106
  14  66.1469
  15  1.0242
  16  0.000149548
  17  8.07188e-05
  18  74.0682
  19  21.6978
  20  3.82084
  21  3.16745
  22  11.9716
  23  8.29651
  24  0.00039271
  25  0.211115
  26  0.229443
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  3.046e-01  1.024e+00  0.000e+00  1.000e+06 ( 1.000e-11)
334        alpha:  2.323e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  6.653e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  5.046e-01  2.294e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.346e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 176.740 39.977
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/22163/likelihoodResults_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.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) = 6051.77515737
delta logL = 2.11911839447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6051.76397366
delta logL = 2.13030210191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17795       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6051.764     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      309 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17795        .10112        .17060E-05** at limit **
   2  alpha         5.0000        3.2605        .49044E-01** at limit **
   3  Normalizat    1.1785        .24097        .25468E-03   -.48526E-03
   4  Prefactor     .62939        .26318        .38073E-03   -.25519E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.177953
  alpha      = 5
  Normalizat = 1.17846
  Prefactor  = 0.629394
 **********
 **   18 **HESSE 
 **********

 FCN=   6051.764     FROM HESSE     STATUS=OK            23 CALLS      332 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17795        .99646E-01    .74861E-07   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.2614        .19617E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1785        .24119        .50936E-04   -.87271    
   4  Prefactor     .62939        .26342        .15229E-04   -1.0636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49373e-10
Minuit parameter uncertainties:
  1  0.0996463
  2  3.14529e-05
  3  0.241416
  4  0.263936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22163': 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) = 6051.76397362
delta logL = 2.13030214919

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.780e-01  9.965e-02  0.000e+00  1.000e+06 ( 1.000e-11)
334        alpha:  5.000e+00  3.145e-05  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  6.653e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  6.294e-01  2.639e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.178e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 176.740 39.977
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.65e-07 +/- 9.19e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.24e-05

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/22163/cmap_HighResolution_700444801_700704001_4FGL_J1146.9+3958_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', comment='SUCCESS', energy_flux2='2.22e-05', dlogl='2.13e+00', photon_flux2='1.65e-07', job_status='DONE', time_completed='2023-03-17 01:44:06.320650', photon_index_error2='0.00', photon_index2='5.00', ts='0.06', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.24e-05', EG='1.35', time_epoch_completed='1679042646.32', return_code='0', job_id='22163', GAL2='0.63', EG2='1.18', return_code2='0', photon_flux_error2='9.19e-08', ts2='4.67', photon_index='2.32' WHERE bin_id='1779' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:44:06 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 22163: <4FGL_J1146.9+3958_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin1779> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 17 01:30:20 2023
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:30:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:30:23 2023
Terminated at Fri Mar 17 01:44:06 2023
Results reported at Fri Mar 17 01:44:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin1779 176.74 39.9775 700444801 700704001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1146.9+3958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

