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


Performing analysis on: 4FGL_J0823.1+4042_weekly_bin759
RA = 125.8, Dec = 40.7077
tmin = 698025601, tmax = 698630401
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='582437', job_status='RUN', time_executed='2023-02-21 03:05:40.435006', time_epoch_executed='1676977540.44' WHERE source_name='4FGL J0823.1+4042' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/582437

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/582437/ft1_4FGL_J0823.1+4042_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/582437/ft1_4FGL_J0823.1+4042_weekly_bin759.fits outfile=/scratch/kocevski/582437/ft1_filteredMKT_4FGL_J0823.1+4042_weekly_bin759.fits ra=125.8 dec=40.7077 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.48
user 8.19
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.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/582437/ft1_filteredMKT_4FGL_J0823.1+4042_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/582437/ft1_filtered_4FGL_J0823.1+4042_weekly_bin759.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.58
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 859

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/582437/ft1_filtered_4FGL_J0823.1+4042_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/582437/ltcube_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.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/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits
.....................!
real 27.28
user 26.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/582437/ft1_filtered_4FGL_J0823.1+4042_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/582437/ltcube_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.fits outfile=/scratch/kocevski/582437/expmap_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.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/582437/ltcube_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.fits
.....................!
real 190.65
user 185.31
sys 4.81

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/582437/ft1_filtered_4FGL_J0823.1+4042_weekly_bin759.fits scfile=/scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits outfile=/scratch/kocevski/582437/cmap_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/582437/ft1_filtered_4FGL_J0823.1+4042_weekly_bin759.fits scfile=/scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits outfile=/scratch/kocevski/582437/cmap_HighResolution_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.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.60
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/582437/ft1_filtered_4FGL_J0823.1+4042_weekly_bin759.fits', '/scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits', expMap='/scratch/kocevski/582437/expmap_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.fits', expCube='/scratch/kocevski/582437/ltcube_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/582437/Model_4FGL_J0823.1+4042_weekly_bin759.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/582437/ft1_filtered_4FGL_J0823.1+4042_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/582437/ft2_4FGL_J0823.1+4042_weekly_bin759.fits
Exposure map: /scratch/kocevski/582437/expmap_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.fits
Exposure cube: /scratch/kocevski/582437/ltcube_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/582437/Model_4FGL_J0823.1+4042_weekly_bin759.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9430.76215799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99609E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.0302       1.0000          .0000       .10000E+07
     3 'Prefactor '    12.575       1.0000          .0000       .10000E+07
     4 'norm      '    .18129E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .10772E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.6453       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.967       1.0000          .0000       .10000E+07
     8 'Prefactor '    24.631       1.0000          .0000       .10000E+07
     9 'norm      '    .52439       1.0000          .0000       .10000E+07
    10 'norm      '    .81210       1.0000          .0000       .10000E+07
    11 'Prefactor '    19.012       1.0000          .0000       .10000E+07
    12 'Prefactor '    .78271E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3870       1.0000          .0000       .10000E+07
    14 'Prefactor '    .29172E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12003E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .78165E-06   1.0000          .0000       .10000E+07
    17 'norm      '    2.1405       1.0000          .0000       .10000E+07
    18 'Prefactor '    21.753       1.0000          .0000       .10000E+07
    19 'Prefactor '    13.421       1.0000          .0000       .10000E+07
    20 'Prefactor '    .44227E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .12157E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    4.9739       1.0000          .0000       .10000E+07
    23 'norm      '    6.2308       1.0000          .0000       .10000E+07
    24 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    25 'Normalizat'    .99052       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86350       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=   9427.256     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1345 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26856E-06    1.8206        .33905E-06** at limit **
   2  Prefactor     9.1965        9.9419       -.13240E-06   -.23724E-01
   3  Prefactor     12.522        3.3657        .47959E-07    .68627E-02
   4  norm          .65503E-08    1.1275        .26152E-06** at limit **
   5  norm          .52708E-06    7.6916        .18692E-06** at limit **
   6  Prefactor     8.6125        6.0113       -.89382E-07   -.24520E-01
   7  Prefactor     21.995        2.3409        .49903E-07   -.77626E-02
   8  Prefactor     24.711        6.2199        .22770E-07    .13523E-01
   9  norm          .52429        .94440        .10093E-06    .18972E-02
  10  norm          .81149        .41046       -.32124E-07   -.30548E-02
  11  Prefactor     19.154        1.3358        .18109E-07    .59883E-02
  12  Prefactor     .38858E-09    2.3007       -.23584E-06** at limit **
  13  Prefactor     4.3852        2.2422        .16760E-06    .38495E-02
  14  Prefactor     .45858E-06    14.874       -.88557E-06** at limit **
  15  Prefactor     .26001E-06    2.1318        .12782E-06** at limit **
  16  norm          .44409E-09    1.2623        .14855E-06** at limit **
  17  norm          2.1426        2.8766        .11299E-06    .61363E-03
  18  Prefactor     21.224        24.531       -.61642E-06    .37647E-01
  19  Prefactor     13.466        4.9624        .98123E-07    .93562E-02
  20  Prefactor     .22649E-06    13.051       -.12045E-05** at limit **
  21  norm           .0000        .40263        .48556E-07** at limit **
  22  Prefactor     4.9664        3.8214       -.80049E-07   -.25644E-02
  23  norm          6.2262        7.4534       -.69964E-07   -.64290E-01
  24  Prefactor     .22204E-09    1.0630       -.14832E-06** at limit **
  25  Normalizat    .99006        .18074        .29431E-05    .11070E-04
  26  Prefactor     .86343        .13373       -.28590E-05   -.29673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68563e-07
  Prefactor  = 9.19646
  Prefactor  = 12.5219
  norm       = 6.55032e-09
  norm       = 5.27078e-07
  Prefactor  = 8.61249
  Prefactor  = 21.9953
  Prefactor  = 24.7106
  norm       = 0.524294
  norm       = 0.811488
  Prefactor  = 19.1536
  Prefactor  = 3.88578e-10
  Prefactor  = 4.38516
  Prefactor  = 4.58578e-07
  Prefactor  = 2.60014e-07
  norm       = 4.44089e-10
  norm       = 2.14265
  Prefactor  = 21.2245
  Prefactor  = 13.4662
  Prefactor  = 2.26485e-07
  norm       = 0
  Prefactor  = 4.96635
  norm       = 6.22618
  Prefactor  = 2.22045e-10
  Normalizat = 0.990058
  Prefactor  = 0.863431
 **********
 **   18 **HESSE 
 **********

 FCN=   9427.256     FROM HESSE     STATUS=OK           518 CALLS     1863 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26856E-06    3.1823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1965        10.513        .33329E-03   -1.5647    
   3  Prefactor     12.522        12.270        .28223E-03   -1.5637    
   4  norm          .65503E-08    3.2534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52708E-06    1.0628        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.6125        6.3233        .34068E-03   -1.5649    
   7  Prefactor     21.995        29.422        .21342E-03   -1.5614    
   8  Prefactor     24.711        6.2309        .20154E-03   -1.5609    
   9  norm          .52429        1.1245        .28753E-02   -1.5693    
  10  norm          .81149        .41182        .52037E-03   -1.5690    
  11  Prefactor     19.154        21.466        .22942E-03   -1.5620    
  12  Prefactor     .38858E-09    2.3047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3852        2.2459        .48061E-03   -1.5666    
  14  Prefactor     .45858E-06    16.093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .26001E-06    3.3457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44409E-09    1.2629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1426        2.8883        .70420E-03   -1.5679    
  18  Prefactor     21.224        26.608        .21447E-03   -1.5616    
  19  Prefactor     13.466        4.9579        .27315E-03   -1.5635    
  20  Prefactor     .22649E-06    13.649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        .39815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9664        3.8730        .45069E-03   -1.5663    
  23  norm          6.2262        8.0833        .40192E-03   -1.5658    
  24  Prefactor     .22204E-09    1.0632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99006        .15803        .46048E-01   -.93364    
  26  Prefactor     .86343        .11682        .44538E-01   -.97431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76366e-07
Minuit parameter uncertainties:
  1  0.00184898
  2  10.5127
  3  12.2699
  4  0.000292045
  5  0.00149694
  6  6.3233
  7  29.4225
  8  6.23086
  9  1.12447
  10  0.411824
  11  21.4663
  12  5.83741e-05
  13  2.24595
  14  0.00543315
  15  0.00186545
  16  4.78711e-05
  17  2.88833
  18  26.6085
  19  4.95788
  20  0.00351648
  21  2.10719e-06
  22  3.87296
  23  8.08335
  24  3.04481e-05
  25  0.158104
  26  0.11685
Done.

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

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  3.886e-10  5.837e-05  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.634e-01  1.169e-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:  9.901e-01  1.581e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/582437/likelihoodResults_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.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) = 9427.25789596
delta logL = -0.00190847339582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9427.25599039
delta logL = -2.90385287371e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60507E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .99221       1.0000          .0000       10.000    
     3 'Normalizat'    .98973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86356       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9427.256     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      230 TOTAL
                     EDM=   .45E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.0342        .42118E-03** at limit **
   2  Index         2.5637        1.9450       -.12749E-05     .0000    
   3  Normalizat    .99006        1.3202       -.32281E-05    .10418E-04
   4  Prefactor     .86343        1.2100        .22771E-05    .29242E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.56373
  Normalizat = 0.990058
  Prefactor  = 0.863432
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9427.256     FROM HESSE     STATUS=FAILED         9 CALLS      239 TOTAL
                     EDM=   .45E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.0342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .74223        2.0766       -.12749E-05   -.50894    
   3  Normalizat    .99006        1.3202       -.32281E-05   -.93364    
   4  Prefactor     .86343        1.2100        .22771E-05   -.97431    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.46041e-13
Minuit parameter uncertainties:
  1  2.95126e-06
  2  2.0159
  3  1.36806
  4  1.25096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/582437': 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): 101
logL (Free Index) = 9427.25598749
delta logL = 8.73114913702e-11

Extracting fit parameters...

4FGL J0823.1+4042
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  2.951e-06  0.000e+00  1.000e+06 ( 1.000e-13)
303        Index:  2.564e+00  2.016e+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:  8.634e-01  1.251e+00  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:  9.901e-01  1.368e+00  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/582437/cmap_HighResolution_698025601_698630401_4FGL_J0823.1+4042_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2023-02-21 03:19:08.413747', job_id='582437', GAL2='0.86', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1676978348.41', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='8.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='759' AND source_name='4FGL J0823.1+4042' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:19:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 582437: <4FGL_J0823.1+4042_weekly_bin759> in cluster <slac> Done

Job <4FGL_J0823.1+4042_weekly_bin759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 03:05:28 2023
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:05:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:05:29 2023
Terminated at Tue Feb 21 03:19:09 2023
Results reported at Tue Feb 21 03:19:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0823.1+4042_weekly_bin759 125.8 40.7077 698025601 698630401 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 :                                   808.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

