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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin1712
RA = 125.8, Dec = 40.7077
tmin = 683078401, tmax = 683337601
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='67917', job_status='RUN', time_executed='2022-09-16 13:58:17.077517', time_epoch_executed='1663361897.08' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67917/ft1_4FGL_J0823.1+4042_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67917/ft1_4FGL_J0823.1+4042_daily_bin1712.fits outfile=/scratch/kocevski/67917/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1712.fits ra=125.8 dec=40.7077 rad=12.0 tmin=683078401.0 tmax=683337601.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.75
user 4.50
sys 0.21

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

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

Number of photons that the gtmktime cut: 639

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/67917/ltcube_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.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/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits
.....................!
real 12.76
user 12.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/67917/ltcube_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.fits outfile=/scratch/kocevski/67917/expmap_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.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/67917/ltcube_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.fits
.....................!
real 193.15
user 187.52
sys 4.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 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/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits scfile=/scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits outfile=/scratch/kocevski/67917/cmap_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.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 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits scfile=/scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits outfile=/scratch/kocevski/67917/cmap_HighResolution_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.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/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67917/Model_4FGL_J0823.1+4042_daily_bin1712.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/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits.....................!
real 68.98
user 67.37
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits', '/scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits', expMap='/scratch/kocevski/67917/expmap_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.fits', expCube='/scratch/kocevski/67917/ltcube_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67917/Model_4FGL_J0823.1+4042_daily_bin1712.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/67917/ft1_filtered_4FGL_J0823.1+4042_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/67917/ft2_4FGL_J0823.1+4042_daily_bin1712.fits
Exposure map: /scratch/kocevski/67917/expmap_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.fits
Exposure cube: /scratch/kocevski/67917/ltcube_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67917/Model_4FGL_J0823.1+4042_daily_bin1712.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) = 7022.02363226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1581       1.0000          .0000       .10000E+07
     2 'Prefactor '    .44747E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.6751       1.0000          .0000       .10000E+07
     4 'norm      '    23.521       1.0000          .0000       .10000E+07
     5 'norm      '    .35242       1.0000          .0000       .10000E+07
     6 'Prefactor '    .93580E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    33.956       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.7140       1.0000          .0000       .10000E+07
     9 'norm      '    2.4041       1.0000          .0000       .10000E+07
    10 'norm      '    1.1279       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19628E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .84898E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .63063       1.0000          .0000       .10000E+07
    14 'Prefactor '    31.781       1.0000          .0000       .10000E+07
    15 'Prefactor '    .38721E-02   1.0000          .0000       .10000E+07
    16 'norm      '    3.5984       1.0000          .0000       .10000E+07
    17 'norm      '    .13809E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .51015E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.6613       1.0000          .0000       .10000E+07
    20 'Prefactor '    .29577E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .36970E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    5.7845       1.0000          .0000       .10000E+07
    23 'norm      '    11.755       1.0000          .0000       .10000E+07
    24 'Prefactor '    .75790       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2278       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89006       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=   7021.904     FROM MIGRAD    STATUS=CONVERGED    200 CALLS     2316 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2351        2.5341        .15916E-06    .39330E-02
   2  Prefactor     .11102E-09    5.4997        .30944E-07** at limit **
   3  Prefactor     7.5448        4.4118       -.42661E-06   -.33489E-02
   4  norm          23.701        8.1864        .18526E-05    .10460    
   5  norm          .34890        2.7629        .43547E-06   -.15391E-02
   6  Prefactor     .26485E-05    20.646       -.10585E-04** at limit **
   7  Prefactor     38.140        51.564        .59880E-06   -.25825E-03
   8  Prefactor     5.6884        5.2719       -.11391E-06    .32508E-02
   9  norm          2.4055        1.9451        .12160E-08   -.44746E-02
  10  norm          1.1233        .56392        .23902E-07    .15324E-01
  11  Prefactor     .15155E-07    10.774       -.16603E-06** at limit **
  12  Prefactor     .28993E-06    20.199       -.24468E-05** at limit **
  13  Prefactor     .61676        5.4785        .56030E-06    .47472E-02
  14  Prefactor     33.066        32.660       -.15230E-05    .11808E-01
  15  Prefactor     .64948E-08    8.4681        .69772E-06** at limit **
  16  norm          3.6669        5.7252        .49759E-08   -.95520E-03
  17  norm           .0000        2.2594        .98386E-07** at limit **
  18  Prefactor     .88546E-06    12.566       -.29716E-05** at limit **
  19  Prefactor     3.6780        4.1722       -.45423E-07   -.25895E-02
  20  Prefactor     .15756E-05    11.977        .50199E-05** at limit **
  21  norm           .0000        .82740        .76698E-07** at limit **
  22  Prefactor     5.7993        4.0283        .13908E-06    .54015E-02
  23  norm          11.785        11.626        .91449E-06    .19323E-01
  24  Prefactor     .76302        3.4364       -.57150E-06   -.54092E-02
  25  Normalizat    1.2235        .22229        .21300E-06    .20098E-03
  26  Prefactor     .89056        .16170       -.27923E-05    .79749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23507
  Prefactor  = 1.11022e-10
  Prefactor  = 7.54479
  norm       = 23.7006
  norm       = 0.348901
  Prefactor  = 2.64849e-06
  Prefactor  = 38.14
  Prefactor  = 5.68836
  norm       = 2.40553
  norm       = 1.12331
  Prefactor  = 1.51545e-08
  Prefactor  = 2.89935e-07
  Prefactor  = 0.616765
  Prefactor  = 33.0656
  Prefactor  = 6.4948e-09
  norm       = 3.66686
  norm       = 0
  Prefactor  = 8.85458e-07
  Prefactor  = 3.67797
  Prefactor  = 1.57557e-06
  norm       = 0
  Prefactor  = 5.79929
  norm       = 11.7847
  Prefactor  = 0.763016
  Normalizat = 1.22347
  Prefactor  = 0.890557
 **********
 **   18 **HESSE 
 **********

 FCN=   7021.904     FROM HESSE     STATUS=OK           528 CALLS     2844 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2351        13.317        .57009E-03   -1.5672    
   2  Prefactor     .11102E-09    5.4981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5448        19.871        .36173E-03   -1.5653    
   4  norm          23.701        13.009        .20624E-03   -1.5611    
   5  norm          .34890        2.7451        .95220E-03   -1.5696    
   6  Prefactor     .26485E-05    5.1409        .99771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.140        53.746        .17163E-03   -1.5584    
   8  Prefactor     5.6884        5.3384        .41997E-03   -1.5660    
   9  norm          2.4055        1.9485        .66008E-03   -1.5677    
  10  norm          1.1233        .56545        .96220E-03   -1.5687    
  11  Prefactor     .15155E-07    10.804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28993E-06    21.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .61676        5.6442        .66528E-03   -1.5692    
  14  Prefactor     33.066        33.043        .17741E-03   -1.5593    
  15  Prefactor     .64948E-08    8.4643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6669        5.7349        .53244E-03   -1.5670    
  17  norm           .0000        2.2553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .88546E-06    15.819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6780        4.2443        .52765E-03   -1.5670    
  20  Prefactor     .15756E-05    17.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        .43826        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7993        4.5762        .41736E-03   -1.5660    
  23  norm          11.785        12.022        .29193E-03   -1.5639    
  24  Prefactor     .76302        3.6336        .56127E-03   -1.5690    
  25  Normalizat    1.2235        .19403        .60088E-01   -.85881    
  26  Prefactor     .89056        .14075        .44878E-01   -.96472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18513e-06
Minuit parameter uncertainties:
  1  13.1272
  2  4.66242e-05
  3  19.8711
  4  13.0091
  5  1.95731
  6  0.00737992
  7  53.7464
  8  5.3384
  9  1.94851
  10  0.565452
  11  0.000809552
  12  0.00497098
  13  3.73158
  14  33.0433
  15  0.00046827
  16  5.73492
  17  7.78385e-06
  18  0.00748513
  19  4.24435
  20  0.0105065
  21  8.10544e-07
  22  4.57617
  23  12.0215
  24  3.33015
  25  0.194142
  26  0.140803
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.899e-07  4.971e-03  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:  8.906e-01  1.408e-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:  1.223e+00  1.941e-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: 9.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67917/likelihoodResults_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7021.92819198
delta logL = -0.0238262950324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7021.41365796
delta logL = 0.490707726702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11691E-01   1.0000          .0000       .10000E+07
     2 'Index     '    6.0032       1.0000          .0000       10.000    
     3 'Normalizat'    1.1593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92098       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=   7021.414     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      387 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11539E-01    .17962        .20885E-03** at limit **
   2  Index         6.0096        2.5403        .10959        .14586E-03
   3  Normalizat    1.1594        .36875E-01    .61425E-01    .29381E-04
   4  Prefactor     .92105        .28800E-01    .45272E-01    .35561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0115391
  Index      = 6.00956
  Normalizat = 1.15935
  Prefactor  = 0.921053
 **********
 **   18 **HESSE 
 **********

 FCN=   7021.414     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      422 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11539E-01    .64752        .94802E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0096        7.7597        .60998E-02    .20331    
   3  Normalizat    1.1594        .14501        .27168E-03   -.87868    
   4  Prefactor     .92105        .11114        .23399E-03   -.95409    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02939e-06
Minuit parameter uncertainties:
  1  0.172879
  2  6.50137
  3  0.145065
  4  0.111172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67917': 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) = 7021.4136546
delta logL = 0.490711080147

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  1.154e-02  1.729e-01  0.000e+00  1.000e+06 ( 1.000e-13)
303        Index:  6.010e+00  6.501e+00  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:  9.211e-01  1.112e-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:  1.159e+00  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 125.800 40.708
Photon Index (Free Index): 6.01 +/- 6.50
Photon Flux (Free Index): 6.23e-08 +/- 6.31e-08
Energy Flux (Free Index): 7.76e-06 +/- 8.80e-06

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/67917/cmap_HighResolution_683078401_683337601_4FGL_J0823.1+4042_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', energy_flux2='7.76e-06', dlogl='4.91e-01', photon_flux2='6.23e-08', job_status='DONE', time_completed='2022-09-16 14:11:07.633247', photon_index_error2='6.50', photon_index2='6.01', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='8.80e-06', EG='1.22', time_epoch_completed='1663362667.63', return_code='0', job_id='67917', GAL2='0.92', EG2='1.16', return_code2='102', photon_flux_error2='6.31e-08', ts2='1.06', photon_index='2.46' WHERE bin_id='1712' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 14:11:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 67917: <4FGL_J0823.1+4042_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin1712> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 13:55:16 2022
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 13:56:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 13:56:58 2022
Terminated at Fri Sep 16 14:11:08 2022
Results reported at Fri Sep 16 14:11:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin1712 125.8 40.7077 683078401 683337601 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 :                                   769.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            952 sec.

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

