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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin1752
RA = 125.8, Dec = 40.7077
tmin = 693446401, tmax = 693705601
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='257834', job_status='RUN', time_executed='2022-12-26 00:37:14.699250', time_epoch_executed='1672043834.7' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257834/ft1_4FGL_J0823.1+4042_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257834/ft1_4FGL_J0823.1+4042_daily_bin1752.fits outfile=/scratch/kocevski/257834/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1752.fits ra=125.8 dec=40.7077 rad=12.0 tmin=693446401.0 tmax=693705601.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.82
user 3.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.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/257834/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.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.34
sys 0.15

Number of photons that the gtmktime cut: 648

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/257834/ltcube_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.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/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits
.....................!
real 13.72
user 13.19
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/257834/ltcube_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.fits outfile=/scratch/kocevski/257834/expmap_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.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/257834/ltcube_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.fits
.....................!
real 192.57
user 186.33
sys 4.84

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

Setting source of interest to:
4FGL J0823.1+4042 @ 125.8 40.7077

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits scfile=/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits outfile=/scratch/kocevski/257834/cmap_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.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=125.8 yref=40.7077 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 1.11
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits scfile=/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits outfile=/scratch/kocevski/257834/cmap_HighResolution_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.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=125.8 yref=40.7077 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257834/Model_4FGL_J0823.1+4042_daily_bin1752.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/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits.....................!
real 63.10
user 61.71
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits', '/scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits', expMap='/scratch/kocevski/257834/expmap_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.fits', expCube='/scratch/kocevski/257834/ltcube_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/257834/Model_4FGL_J0823.1+4042_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0823.1+4042'

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.674e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/257834/ft1_filtered_4FGL_J0823.1+4042_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/257834/ft2_4FGL_J0823.1+4042_daily_bin1752.fits
Exposure map: /scratch/kocevski/257834/expmap_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.fits
Exposure cube: /scratch/kocevski/257834/ltcube_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/257834/Model_4FGL_J0823.1+4042_daily_bin1752.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) = 6961.15914207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84309E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.5277       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4004       1.0000          .0000       .10000E+07
     4 'norm      '    1.4166       1.0000          .0000       .10000E+07
     5 'norm      '    .92809       1.0000          .0000       .10000E+07
     6 'Prefactor '    .52119E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    20.898       1.0000          .0000       .10000E+07
     8 'Prefactor '    21.324       1.0000          .0000       .10000E+07
     9 'norm      '    1.0607       1.0000          .0000       .10000E+07
    10 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    .90503E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .44430E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.0313       1.0000          .0000       .10000E+07
    14 'Prefactor '    .28952E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.4832       1.0000          .0000       .10000E+07
    16 'norm      '    .20539E-07   1.0000          .0000       .10000E+07
    17 'norm      '    .11505E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .34669E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.9676       1.0000          .0000       .10000E+07
    20 'Prefactor '    9.6002       1.0000          .0000       .10000E+07
    21 'norm      '    .29860       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24020E-06   1.0000          .0000       .10000E+07
    23 'norm      '    .41696E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .89447       1.0000          .0000       .10000E+07
    25 'Normalizat'    .89032       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6959.590     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1339 TOTAL
                     EDM=   .61E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.4676        .12020E-06** at limit **
   2  Prefactor     4.3430        2.2669       -.23302E-07    .45578E-02
   3  Prefactor     3.4467        1.7465       -.16318E-07    .13717E-02
   4  norm          1.6028        11.520        .17678E-06    .62527E-04
   5  norm          .94977        2.4161       -.56777E-09   -.11526E-02
   6  Prefactor      .0000        2.0209        .70643E-07** at limit **
   7  Prefactor     19.707        8.6747        .70439E-07   -.35657E-02
   8  Prefactor     21.341        5.9986       -.83811E-08    .28378E-03
   9  norm          1.0611        1.1715       -.89222E-08    .18942E-03
  10  norm           .0000        .19102       -.16314E-07** at limit **
  11  Prefactor      .0000        13.589       -.25331E-06** at limit **
  12  Prefactor     .21094E-08    31.659        .42993E-06** at limit **
  13  Prefactor     4.0369        2.7613       -.53854E-07    .57073E-03
  14  Prefactor      .0000        21.562        .13289E-06** at limit **
  15  Prefactor     6.5842        8.8868       -.15216E-07    .27735E-03
  16  norm           .0000        1.2844        .40685E-07** at limit **
  17  norm           .0000        2.4914       -.25343E-07** at limit **
  18  Prefactor      .0000        10.347       -.11128E-06** at limit **
  19  Prefactor     2.9712        2.4991       -.40687E-07    .58493E-03
  20  Prefactor     9.6987        13.460       -.13013E-06   -.47687E-03
  21  norm          .29866        .29520       -.23124E-08    .28385E-03
  22  Prefactor      .0000        1.2431        .42134E-07** at limit **
  23  norm          .22204E-09    28.982        .58323E-06** at limit **
  24  Prefactor     .88755        1.6104       -.68602E-07    .57987E-03
  25  Normalizat    .89063        .19497        .30435E-06    .21334E-04
  26  Prefactor     1.0234        .16049       -.99489E-06    .26897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 4.34303
  Prefactor  = 3.44674
  norm       = 1.6028
  norm       = 0.94977
  Prefactor  = 0
  Prefactor  = 19.7066
  Prefactor  = 21.3412
  norm       = 1.06115
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.10942e-09
  Prefactor  = 4.03692
  Prefactor  = 0
  Prefactor  = 6.58421
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.97122
  Prefactor  = 9.69871
  norm       = 0.298662
  Prefactor  = 0
  norm       = 2.22045e-10
  Prefactor  = 0.887553
  Normalizat = 0.890631
  Prefactor  = 1.02339
 **********
 **   18 **HESSE 
 **********

 FCN=   6959.590     FROM HESSE     STATUS=OK           510 CALLS     1849 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.4599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3430        13.041        .47289E-03   -1.5666    
   3  Prefactor     3.4467        23.999        .54839E-03   -1.5671    
   4  norm          1.6028        11.503        .90909E-03   -1.5683    
   5  norm          .94977        2.8283        .43837E-03   -1.5688    
   6  Prefactor      .0000        2.0246        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.707        26.416        .21881E-03   -1.5619    
   8  Prefactor     21.341        6.0121        .21661E-03   -1.5616    
   9  norm          1.0611        1.1726        .11891E-02   -1.5687    
  10  norm           .0000        .18712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        13.602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21094E-08    35.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0369        2.7744        .50200E-03   -1.5668    
  14  Prefactor      .0000        20.910        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5842        8.9230        .39392E-03   -1.5657    
  16  norm           .0000        1.2850        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        2.4892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        10.381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9712        2.5170        .58917E-03   -1.5673    
  20  Prefactor     9.6987        13.562        .32319E-03   -1.5646    
  21  norm          .29866        .30917        .98892E-03   -1.5697    
  22  Prefactor      .0000        1.2406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .22204E-09    28.652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .88755        1.6256        .46143E-03   -1.5689    
  25  Normalizat    .89063        .17037        .44778E-01   -.96790    
  26  Prefactor     1.0234        .14046        .41810E-01   -.91954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75039e-07
Minuit parameter uncertainties:
  1  2.86232e-06
  2  13.0411
  3  18.1902
  4  8.5878
  5  2.8283
  6  1.82734e-06
  7  26.4164
  8  6.0121
  9  1.17258
  10  1.52081e-07
  11  6.84158e-06
  12  0.000540872
  13  2.7744
  14  1.17077e-05
  15  8.92301
  16  1.07703e-06
  17  1.09354e-06
  18  2.3768e-05
  19  2.51701
  20  13.5624
  21  0.309166
  22  1.10091e-06
  23  0.000150112
  24  1.62562
  25  0.17047
  26  0.140514
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.109e-09  5.409e-04  0.000e+00  1.000e+06 ( 1.000e-13)
303        Index:  2.456e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.023e+00  1.405e-01  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  8.906e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 125.800 40.708
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257834/likelihoodResults_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.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) = 6959.60787929
delta logL = -0.017514156485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6959.59036515
delta logL = -1.40917109093e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80658E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.7358       1.0000          .0000       10.000    
     3 'Normalizat'    .89062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0234       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6959.590     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      233 TOTAL
                     EDM=   .99E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-09    .29847        .42118E-03** at limit **
   2  Index         2.0590        5.3144        .50000       -.22737E-10
   3  Normalizat    .89064        .38082E-03    .44782E-01    .54909E-03
   4  Prefactor     1.0234        .31898E-03    .41817E-01   -.12047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-10
  Index      = 2.05898
  Normalizat = 0.890639
  Prefactor  = 1.02339
 **********
 **   18 **HESSE 
 **********

 FCN=   6959.590     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-09    1.6342        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0590        5.9892        .50000       -.62884    
   3  Normalizat    .89064        .88726E-03    .26917E-03   -.96790    
   4  Prefactor     1.0234        .74340E-03    .21069E-03   -.91954    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.40798e-13
Minuit parameter uncertainties:
  1  5.73023e-05
  2  13285.8
  3  0.000887258
  4  0.000743402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257834': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6959.59036513
delta logL = -8.29459168017e-10

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  4.996e-10  5.730e-05  0.000e+00  1.000e+06 ( 1.000e-13)
303        Index:  2.059e+00  1.329e+04  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.174e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
630    Prefactor:  1.023e+00  7.434e-04  0.000e+00  1.000e+01 ( 1.000e+00)
631        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
632        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  8.906e-01  8.873e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 125.800 40.708

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/257834/cmap_HighResolution_693446401_693705601_4FGL_J0823.1+4042_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.53e-08', time_completed='2022-12-26 00:48:12.246188', job_id='257834', GAL2='1.02', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1672044492.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-8.29e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1752' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 00:48:12 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 257834: <4FGL_J0823.1+4042_daily_bin1752> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin1752> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec 26 00:35:18 2022
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:36:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:36:14 2022
Terminated at Mon Dec 26 00:48:13 2022
Results reported at Mon Dec 26 00:48:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin1752 125.8 40.7077 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0823.1+4042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   657.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            775 sec.

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

