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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin1750
RA = 176.74, Dec = 39.9775
tmin = 692928001, tmax = 693187201
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='8711', job_status='RUN', time_executed='2022-12-20 00:41:37.361795', time_epoch_executed='1671525697.36' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8711/ft1_4FGL_J1146.9+3958_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8711/ft1_4FGL_J1146.9+3958_daily_bin1750.fits outfile=/scratch/kocevski/8711/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin1750.fits ra=176.74 dec=39.9775 rad=12.0 tmin=692928001.0 tmax=693187201.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.44
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.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/8711/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.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.14

Number of photons that the gtmktime cut: 695

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/8711/ltcube_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.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/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits
.....................!
real 11.79
user 11.38
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/8711/ltcube_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.fits outfile=/scratch/kocevski/8711/expmap_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.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/8711/ltcube_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.fits
.....................!
real 191.70
user 185.87
sys 5.46

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/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits scfile=/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits outfile=/scratch/kocevski/8711/cmap_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits scfile=/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits outfile=/scratch/kocevski/8711/cmap_HighResolution_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.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/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8711/Model_4FGL_J1146.9+3958_daily_bin1750.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/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits.....................!
real 62.40
user 60.99
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits', '/scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits', expMap='/scratch/kocevski/8711/expmap_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.fits', expCube='/scratch/kocevski/8711/ltcube_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8711/Model_4FGL_J1146.9+3958_daily_bin1750.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/8711/ft1_filtered_4FGL_J1146.9+3958_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/8711/ft2_4FGL_J1146.9+3958_daily_bin1750.fits
Exposure map: /scratch/kocevski/8711/expmap_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.fits
Exposure cube: /scratch/kocevski/8711/ltcube_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8711/Model_4FGL_J1146.9+3958_daily_bin1750.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) = 7255.77305175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10649E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.5581       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.795       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13847E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    46.869       1.0000          .0000       .10000E+07
     6 'norm      '    7.3624       1.0000          .0000       .10000E+07
     7 'norm      '    .68134E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17158E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8326       1.0000          .0000       .10000E+07
    10 'Prefactor '    .96726E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .90396E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16390E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.9769       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.114       1.0000          .0000       .10000E+07
    15 'norm      '    2.8140       1.0000          .0000       .10000E+07
    16 'norm      '    10.867       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4116       1.0000          .0000       .10000E+07
    18 'Prefactor '    .38478E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    38.877       1.0000          .0000       .10000E+07
    20 'norm      '    29.579       1.0000          .0000       .10000E+07
    21 'norm      '    5.6014       1.0000          .0000       .10000E+07
    22 'Prefactor '    .84657E-05   1.0000          .0000       .10000E+07
    23 'norm      '    8.7621       1.0000          .0000       .10000E+07
    24 'Prefactor '    16.014       1.0000          .0000       .10000E+07
    25 'Normalizat'    .94178       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87139       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=   7255.765     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     2411 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99920E-09    23.350        .14866E-06** at limit **
   2  norm          1.5583        .35249       -.84583E-09    .14082E-02
   3  Prefactor     11.694        5.8868        .50624E-07   -.70261E-02
   4  Prefactor     .50016E-07    8.2395        .15286E-06** at limit **
   5  Prefactor     42.646        90.461        .19782E-05    .13309E-01
   6  norm          7.3028        7.9872       -.33699E-07   -.88309E-01
   7  norm          .22204E-09    55.456        .89790E-06** at limit **
   8  Prefactor      .0000        2.3396       -.17002E-07** at limit **
   9  Prefactor     3.8401        45.056       -.35518E-06    .18771E-01
  10  Prefactor     .49905E-07    24.024        .53623E-06** at limit **
  11  norm          .92633E-01    7.8281       -.56656E-06** at limit **
  12  Prefactor     .23537E-07    7.5695       -.11837E-06** at limit **
  13  Prefactor     6.9701        5.7443        .30399E-07    .15625E-02
  14  Prefactor     9.6706        23.922        .68770E-06   -.82609E-01
  15  norm          2.8177        1.2132       -.33387E-07   -.88931E-03
  16  norm          10.874        9.7713        .83932E-07   -.11409E-02
  17  Prefactor     2.4116        3.3265       -.12446E-07    .46170E-03
  18  Prefactor     .12768E-08    15.647        .82968E-07** at limit **
  19  Prefactor     38.775        6.9024       -.10749E-07   -.52953E-01
  20  norm          29.574        3.0579        .57101E-08   -.81391E-03
  21  norm          5.6001        2.8466        .96013E-08    .18421E-03
  22  Prefactor      .0000        3.5925       -.51310E-07** at limit **
  23  norm          8.9425        15.603       -.50877E-06   -.16383E-01
  24  Prefactor     15.370        33.854        .59358E-06    .44513E-01
  25  Normalizat    .94341        .19008       -.20506E-06    .97505E-04
  26  Prefactor     .87099        .21735        .20049E-06    .71244E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99201e-10
  norm       = 1.55827
  Prefactor  = 11.6941
  Prefactor  = 5.00155e-08
  Prefactor  = 42.6464
  norm       = 7.30285
  norm       = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 3.84013
  Prefactor  = 4.99045e-08
  norm       = 0.092633
  Prefactor  = 2.35367e-08
  Prefactor  = 6.97008
  Prefactor  = 9.67058
  norm       = 2.81772
  norm       = 10.8738
  Prefactor  = 2.4116
  Prefactor  = 1.27676e-09
  Prefactor  = 38.7747
  norm       = 29.5739
  norm       = 5.60007
  Prefactor  = 0
  norm       = 8.94246
  Prefactor  = 15.3704
  Normalizat = 0.943411
  Prefactor  = 0.870993
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.765     FROM HESSE     STATUS=OK           522 CALLS     2933 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99920E-09    26.558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5583        .36554        .52299E-03   -1.5683    
   3  Prefactor     11.694        19.447        .29144E-03   -1.5640    
   4  Prefactor     .50016E-07    8.5034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.646        91.045        .14608E-03   -1.5577    
   6  norm          7.3028        16.513        .36940E-03   -1.5654    
   7  norm          .22204E-09    55.032        .14880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.3140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8401        51.856        .51528E-03   -1.5669    
  10  Prefactor     .49905E-07    28.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .92633E-01    1.0541        .47672E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .23537E-07    7.7347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9701        5.7792        .37957E-03   -1.5655    
  14  Prefactor     9.6706        61.798        .31483E-03   -1.5646    
  15  norm          2.8177        1.3723        .60610E-03   -1.5674    
  16  norm          10.874        9.7801        .30367E-03   -1.5642    
  17  Prefactor     2.4116        3.7131        .65894E-03   -1.5677    
  18  Prefactor     .12768E-08    15.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.775        22.553        .16040E-03   -1.5583    
  20  norm          29.574        3.0662        .18390E-03   -1.5599    
  21  norm          5.6001        2.8440        .42423E-03   -1.5661    
  22  Prefactor      .0000        3.5892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.9425        16.347        .33838E-03   -1.5648    
  24  Prefactor     15.370        35.718        .25002E-03   -1.5630    
  25  Normalizat    .94341        .16565        .45433E-01   -.94951    
  26  Prefactor     .87099        .18695        .70910E-01   -.97162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37869e-06
Minuit parameter uncertainties:
  1  0.000329029
  2  0.365539
  3  19.4469
  4  0.00130424
  5  91.0484
  6  16.5132
  7  0.0002197
  8  3.33898e-07
  9  28.2232
  10  0.0023689
  11  0.624951
  12  0.000853294
  13  5.77923
  14  48.8933
  15  1.37235
  16  9.78015
  17  3.71312
  18  0.000282468
  19  22.5533
  20  3.06615
  21  2.84404
  22  8.9977e-06
  23  16.3473
  24  35.7189
  25  0.165737
  26  0.187083
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  2.818e+00  1.372e+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:  8.710e-01  1.871e-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:  9.434e-01  1.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.38
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 9.42e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 1.53e-05

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) = 7254.48528322
delta logL = 1.280154626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7254.45366297
delta logL = 1.31177488125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6559       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2256       1.0000          .0000       5.0000    
     3 'Normalizat'    .86328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94194       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.

 FCN=   7254.454     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      243 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6560        7.2275        .81981E-03    .41019E-02
   2  alpha         3.2256        4.0183        .23608        .60095E-04
   3  Normalizat    .86326        .67249E-01    .44431E-01    .16884E-04
   4  Prefactor     .94197        .78066E-01    .68545E-01    .14587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65605
  alpha      = 3.2256
  Normalizat = 0.863256
  Prefactor  = 0.941974
 **********
 **   18 **HESSE 
 **********

 FCN=   7254.454     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6560        1.4746        .36901E-05   -1.5682    
   2  alpha         3.2256        .77885        .10102E-01    .29448    
   3  Normalizat    .86326        .19126        .26385E-03   -.97764    
   4  Prefactor     .94197        .22496        .30320E-03   -.94689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74696e-12
Minuit parameter uncertainties:
  1  1.47459
  2  0.79331
  3  0.191409
  4  0.225186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8711': 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) = 7254.45366291
delta logL = 1.31177493745

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.656e+00  1.475e+00  0.000e+00  1.000e+06 ( 1.000e-11)
334        alpha:  3.226e+00  7.933e-01  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:  9.420e-01  2.252e-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:  8.633e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.13
Ra Dec: 176.740 39.977
Photon Index (Free Index): 3.23 +/- 0.79
Photon Flux (Free Index): 1.46e-07 +/- 5.56e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.04e-05

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/8711/cmap_HighResolution_692928001_693187201_4FGL_J1146.9+3958_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.42e-08', energy_flux2='2.70e-05', photon_flux_error='4.58e-08', dlogl='1.31e+00', energy_flux='3.14e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2022-12-20 00:54:14.562417', photon_index_error2='0.79', photon_index2='3.23', ts='11.38', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.94', time_epoch_completed='1671526454.56', return_code='0', job_id='8711', GAL2='0.94', EG2='0.86', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.56e-08', ts2='14.13', photon_index='2.32' WHERE bin_id='1750' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:54:14 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 8711: <4FGL_J1146.9+3958_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:40:15 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:40:17 2022
Terminated at Tue Dec 20 00:54:15 2022
Results reported at Tue Dec 20 00:54:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin1750 176.74 39.9775 692928001 693187201 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 :                                   758.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

