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


Performing analysis on: 4FGL_J0823.1+4042_daily_bin1772
RA = 125.8, Dec = 40.7077
tmin = 698630401, tmax = 698889601
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='622126', job_status='RUN', time_executed='2023-02-24 01:00:30.296806', time_epoch_executed='1677229230.3' WHERE source_name='4FGL J0823.1+4042' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622126/ft1_4FGL_J0823.1+4042_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622126/ft2_4FGL_J0823.1+4042_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622126/ft1_4FGL_J0823.1+4042_daily_bin1772.fits outfile=/scratch/kocevski/622126/ft1_filteredMKT_4FGL_J0823.1+4042_daily_bin1772.fits ra=125.8 dec=40.7077 rad=12.0 tmin=698630401.0 tmax=698889601.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 2.98
user 2.80
sys 0.17

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

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

Number of photons that the gtmktime cut: 212

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622126/ft1_filtered_4FGL_J0823.1+4042_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/622126/ft2_4FGL_J0823.1+4042_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/622126/ltcube_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.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/622126/ft2_4FGL_J0823.1+4042_daily_bin1772.fits
.....................!
real 12.68
user 12.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622126/ft1_filtered_4FGL_J0823.1+4042_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/622126/ft2_4FGL_J0823.1+4042_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/622126/ltcube_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.fits outfile=/scratch/kocevski/622126/expmap_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.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/622126/ltcube_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.fits
.....................!
real 189.26
user 184.53
sys 4.36

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/622126/ft1_filtered_4FGL_J0823.1+4042_daily_bin1772.fits scfile=/scratch/kocevski/622126/ft2_4FGL_J0823.1+4042_daily_bin1772.fits outfile=/scratch/kocevski/622126/cmap_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622126/ft1_filtered_4FGL_J0823.1+4042_daily_bin1772.fits scfile=/scratch/kocevski/622126/ft2_4FGL_J0823.1+4042_daily_bin1772.fits outfile=/scratch/kocevski/622126/cmap_HighResolution_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75905E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12229E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32294E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .15668E-02   1.0000          .0000       .10000E+07
     5 'norm      '    2.6255       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.7947       1.0000          .0000       .10000E+07
     7 'Prefactor '    .31020E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    20.627       1.0000          .0000       .10000E+07
     9 'norm      '    7.2569       1.0000          .0000       .10000E+07
    10 'norm      '    .90318       1.0000          .0000       .10000E+07
    11 'Prefactor '    .62140E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .31138E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .94478E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    21.645       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.913       1.0000          .0000       .10000E+07
    16 'norm      '    .42832E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .26968E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .30355E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11371E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    104.59       1.0000          .0000       .10000E+07
    21 'norm      '    3.6855       1.0000          .0000       .10000E+07
    22 'Prefactor '    .36820E-01   1.0000          .0000       .10000E+07
    23 'norm      '    22.816       1.0000          .0000       .10000E+07
    24 'Prefactor '    .13825E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.4142       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54494       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=   2418.295     FROM MIGRAD    STATUS=CONVERGED    252 CALLS     2868 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94369E-09    21.324       -.24043E-06** at limit **
   2  Prefactor     .17880E-05    73.350       -.58715E-06** at limit **
   3  Prefactor      .0000        41.124       -.77681E-07** at limit **
   4  norm           .0000        10.314       -.11267E-06** at limit **
   5  norm          2.6200        4.1578       -.49051E-06    .28018E-02
   6  Prefactor     3.9672        8.0489        .13962E-07    .17599E-03
   7  Prefactor     .13323E-08    48.945       -.43748E-06** at limit **
   8  Prefactor     20.561        12.201        .14443E-06   -.96606E-04
   9  norm          7.2553        3.9395       -.41470E-07    .66194E-03
  10  norm          .90183        .86767       -.12460E-07   -.43458E-03
  11  Prefactor     .11119E-05    67.889       -.10478E-05** at limit **
  12  Prefactor     .33307E-09    23.610        .36021E-07** at limit **
  13  Prefactor     .49960E-09    17.349       -.79188E-06** at limit **
  14  Prefactor     25.568        17.464        .78453E-07   -.15451E-01
  15  Prefactor     9.6672        8.1281       -.25119E-08    .96128E-01
  16  norm           .0000        6.2458        .26411E-07** at limit **
  17  norm           .0000        5.1741       -.53763E-07** at limit **
  18  Prefactor     .16653E-07    94.333        .28787E-07** at limit **
  19  Prefactor      .0000        5.7981        .37339E-07** at limit **
  20  Prefactor     111.62        117.40        .58453E-07    .10190E-01
  21  norm          3.6959        2.6915        .18345E-07    .95574E-04
  22  Prefactor      .0000        43.246       -.48166E-06** at limit **
  23  norm          .50696E-05    249.80       -.63898E-06** at limit **
  24  Prefactor      .0000        9.3586       -.16545E-06** at limit **
  25  Normalizat    1.4169        .36033       -.72092E-05    .52818E-04
  26  Prefactor     .54385        .23770        .16993E-05    .43298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.4369e-10
  Prefactor  = 1.78796e-06
  Prefactor  = 0
  norm       = 0
  norm       = 2.61997
  Prefactor  = 3.96721
  Prefactor  = 1.33227e-09
  Prefactor  = 20.5614
  norm       = 7.25528
  norm       = 0.901827
  Prefactor  = 1.11194e-06
  Prefactor  = 3.33067e-10
  Prefactor  = 4.996e-10
  Prefactor  = 25.5676
  Prefactor  = 9.66725
  norm       = 0
  norm       = 0
  Prefactor  = 1.66533e-08
  Prefactor  = 0
  Prefactor  = 111.618
  norm       = 3.6959
  Prefactor  = 0
  norm       = 5.06961e-06
  Prefactor  = 0
  Normalizat = 1.41685
  Prefactor  = 0.543854
 **********
 **   18 **HESSE 
 **********

 FCN=   2418.295     FROM HESSE     STATUS=OK           504 CALLS     3372 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94369E-09    21.389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17880E-05    78.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        39.972        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        10.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6200        4.1914        .62913E-03   -1.5676    
   6  Prefactor     3.9672        8.0742        .51795E-03   -1.5668    
   7  Prefactor     .13323E-08    49.056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.561        12.251        .22025E-03   -1.5617    
   9  norm          7.2553        3.9362        .37210E-03   -1.5654    
  10  norm          .90183        .87479        .45540E-03   -1.5689    
  11  Prefactor     .11119E-05    70.920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33307E-09    23.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .49960E-09    17.149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.568        277.11        .21500E-03   -1.5607    
  15  Prefactor     9.6672        90.529        .30303E-03   -1.5646    
  16  norm           .0000        6.2668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        5.1702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16653E-07    94.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        5.8149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     111.62        117.99        .97786E-04   -1.5497    
  21  norm          3.6959        2.7047        .52585E-03   -1.5670    
  22  Prefactor      .0000        41.990        .16110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .50696E-05    250.76        .20941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        9.3634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4169        .31674        .55790E-01   -.80143    
  26  Prefactor     .54385        .20705        .40298E-01   -1.1000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34834e-06
Minuit parameter uncertainties:
  1  0.000285936
  2  0.0236259
  3  1.5095e-05
  4  1.14914e-05
  5  4.19145
  6  8.07424
  7  0.00051128
  8  12.2511
  9  3.93624
  10  0.874786
  11  0.0177605
  12  0.000181197
  13  0.000187302
  14  168.356
  15  59.1674
  16  5.54064e-06
  17  6.23309e-07
  18  0.00250405
  19  5.62817e-06
  20  117.993
  21  2.70473
  22  2.22958e-05
  23  0.0713119
  24  1.88186e-05
  25  0.317182
  26  0.207339
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  3.331e-10  1.812e-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:  5.439e-01  2.073e-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.417e+00  3.172e-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: 2.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/622126/likelihoodResults_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.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) = 2418.31567825
delta logL = -0.020441923089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2417.9488519
delta logL = 0.346384422824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22809       1.0000          .0000       .10000E+07
     2 'Index     '    5.0437       1.0000          .0000       10.000    
     3 'Normalizat'    1.2954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59596       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=   2417.949     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22681        5.6472        .63308E-03** at limit **
   2  Index         5.0459        3.1610        .11845        .42639E-04
   3  Normalizat    1.2955        .69045E-01    .57727E-01   -.29266E-04
   4  Prefactor     .59593        .46323E-01    .40999E-01   -.94260E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.226813
  Index      = 5.04594
  Normalizat = 1.29552
  Prefactor  = 0.595929
 **********
 **   18 **HESSE 
 **********

 FCN=   2417.949     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22681        17.401        .28501E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0459        7.5229        .41040E-02    .91882E-02
   3  Normalizat    1.2955        .33659        .25528E-03   -.83700    
   4  Prefactor     .59593        .21746        .24240E-03   -1.0776    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.83093e-10
Minuit parameter uncertainties:
  1  3.97334
  2  7.85423
  3  0.337157
  4  0.217771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622126': 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) = 2417.94885125
delta logL = 0.34638507722

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  2.268e-01  3.973e+00  0.000e+00  1.000e+06 ( 1.000e-13)
303        Index:  5.046e+00  7.854e+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:  5.959e-01  2.178e-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.296e+00  3.372e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/622126/cmap_HighResolution_698630401_698889601_4FGL_J0823.1+4042_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', job_status='DONE', photon_flux_upper_limit='2.03e-07', time_completed='2023-02-24 01:08:23.242060', job_id='622126', GAL2='0.60', fit_tolerance='1e-08', EG2='1.30', EG='1.42', time_epoch_completed='1677229703.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='3.46e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1772' AND source_name='4FGL J0823.1+4042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:08:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 622126: <4FGL_J0823.1+4042_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0823.1+4042_daily_bin1772> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Feb 24 01:00:17 2023
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:00:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:00:18 2023
Terminated at Fri Feb 24 01:08:23 2023
Results reported at Fri Feb 24 01:08:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_daily_bin1772 125.8 40.7077 698630401 698889601 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 :                                   475.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             374.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   485 sec.
    Turnaround time :                            486 sec.

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

