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 135 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_J0824.9+3915_weekly_bin759
RA = 126.236, Dec = 39.2574
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='582442', job_status='RUN', time_executed='2023-02-21 03:07:52.877665', time_epoch_executed='1676977672.88' WHERE source_name='4FGL J0824.9+3915' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/582442

Creating custom pfile directory:
/scratch/kocevski/582442/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/582442/ft1_4FGL_J0824.9+3915_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/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/582442/ft1_4FGL_J0824.9+3915_weekly_bin759.fits outfile=/scratch/kocevski/582442/ft1_filteredMKT_4FGL_J0824.9+3915_weekly_bin759.fits ra=126.236 dec=39.2574 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.61
user 8.29
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_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/582442/ft1_filteredMKT_4FGL_J0824.9+3915_weekly_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_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.55
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 813

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/582442/ltcube_698025601_698630401_4FGL_J0824.9+3915_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/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits
.....................!
real 28.04
user 27.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/582442/ltcube_698025601_698630401_4FGL_J0824.9+3915_weekly_bin759.fits outfile=/scratch/kocevski/582442/expmap_698025601_698630401_4FGL_J0824.9+3915_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/582442/ltcube_698025601_698630401_4FGL_J0824.9+3915_weekly_bin759.fits
.....................!
real 190.31
user 185.37
sys 4.35

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

Setting source of interest to:
4FGL J0824.9+3915 @ 126.236 39.2574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits scfile=/scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits outfile=/scratch/kocevski/582442/cmap_698025601_698630401_4FGL_J0824.9+3915_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=126.236 yref=39.2574 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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits scfile=/scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits outfile=/scratch/kocevski/582442/cmap_HighResolution_698025601_698630401_4FGL_J0824.9+3915_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=126.236 yref=39.2574 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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/582442/Model_4FGL_J0824.9+3915_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/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits.....................!
real 81.23
user 79.74
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits', '/scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits', expMap='/scratch/kocevski/582442/expmap_698025601_698630401_4FGL_J0824.9+3915_weekly_bin759.fits', expCube='/scratch/kocevski/582442/ltcube_698025601_698630401_4FGL_J0824.9+3915_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/582442/Model_4FGL_J0824.9+3915_weekly_bin759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.9+3915'

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.301e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/582442/ft1_filtered_4FGL_J0824.9+3915_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/582442/ft2_4FGL_J0824.9+3915_weekly_bin759.fits
Exposure map: /scratch/kocevski/582442/expmap_698025601_698630401_4FGL_J0824.9+3915_weekly_bin759.fits
Exposure cube: /scratch/kocevski/582442/ltcube_698025601_698630401_4FGL_J0824.9+3915_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/582442/Model_4FGL_J0824.9+3915_weekly_bin759.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) = 8939.77277262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20446E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    12.809       1.0000          .0000       .10000E+07
     3 'norm      '    .33772E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .28315       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.7080       1.0000          .0000       .10000E+07
     6 'Prefactor '    23.291       1.0000          .0000       .10000E+07
     7 'Prefactor '    24.903       1.0000          .0000       .10000E+07
     8 'Prefactor '    .31520E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .81800       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.517       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13521E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.4428       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16861E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .77979E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .30156E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    21.881       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.258       1.0000          .0000       .10000E+07
    18 'Prefactor '    .28214E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .25437       1.0000          .0000       .10000E+07
    20 'norm      '    3.4383       1.0000          .0000       .10000E+07
    21 'Prefactor '    .13690E-05   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83169       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8939.772     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1859 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77716E-09    3.0972        .25567E-06** at limit **
   2  Prefactor     12.769        11.519       -.13249E-06   -.45848E-01
   3  norm          .35305E-07    2.0503        .42363E-06** at limit **
   4  norm          .28272        2.2909       -.40108E-07   -.32787E-03
   5  Prefactor     8.7184        3.7113        .11820E-07   -.54594E-01
   6  Prefactor     23.161        14.431       -.22379E-06    .63149E-01
   7  Prefactor     24.906        4.7789       -.44999E-07    .20874E-01
   8  Prefactor     .55844E-07    21.749       -.96024E-06** at limit **
   9  norm          .81803        .41077        .88932E-08    .61819E-03
  10  Prefactor     19.517        3.4109       -.36965E-07   -.19597E-01
  11  Prefactor      .0000        2.3063        .52981E-06** at limit **
  12  Prefactor     4.4421        2.2533       -.25356E-08   -.11134E-02
  13  Prefactor     .28966E-05    11.113       -.39866E-06** at limit **
  14  Prefactor     .59674E-07    1.5855        .42903E-06** at limit **
  15  norm           .0000        1.2014        .71693E-07** at limit **
  16  Prefactor     21.969        18.490        .27330E-06   -.32901E-01
  17  Prefactor     14.239        4.8265       -.71723E-07   -.11329E-01
  18  Prefactor     .24479E-05    11.109       -.16414E-06** at limit **
  19  norm          .25463        .65775       -.15531E-06   -.36225E-02
  20  norm          3.4420        3.0415       -.19047E-06    .12828E-01
  21  Prefactor      .0000        1.0318       -.59231E-07** at limit **
  22  Normalizat    1.0072        .18099       -.37497E-05   -.49754E-04
  23  Prefactor     .83170        .13749        .36876E-05   -.46951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77156e-10
  Prefactor  = 12.7695
  norm       = 3.53051e-08
  norm       = 0.282724
  Prefactor  = 8.71836
  Prefactor  = 23.1608
  Prefactor  = 24.9064
  Prefactor  = 5.58442e-08
  norm       = 0.818029
  Prefactor  = 19.5169
  Prefactor  = 0
  Prefactor  = 4.44205
  Prefactor  = 2.89657e-06
  Prefactor  = 5.96745e-08
  norm       = 0
  Prefactor  = 21.9692
  Prefactor  = 14.2393
  Prefactor  = 2.44793e-06
  norm       = 0.254628
  norm       = 3.442
  Prefactor  = 0
  Normalizat = 1.00722
  Prefactor  = 0.831697
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.772     FROM HESSE     STATUS=OK           424 CALLS     2283 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77716E-09    3.1236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.769        12.257        .27962E-03   -1.5636    
   3  norm          .35305E-07    3.4326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .28272        1.2238        .34989E-02   -1.5697    
   5  Prefactor     8.7184        6.3556        .33944E-03   -1.5649    
   6  Prefactor     23.161        29.783        .20726E-03   -1.5612    
   7  Prefactor     24.906        6.2417        .20043E-03   -1.5608    
   8  Prefactor     .55844E-07    25.004        .16371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .81803        .41333        .51603E-03   -1.5690    
  10  Prefactor     19.517        21.497        .22643E-03   -1.5620    
  11  Prefactor      .0000        2.3135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.4421        2.2584        .47750E-03   -1.5666    
  13  Prefactor     .28966E-05    17.160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .59674E-07    3.4131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.1986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.969        27.150        .21384E-03   -1.5614    
  17  Prefactor     14.239        5.1082        .26500E-03   -1.5632    
  18  Prefactor     .24479E-05    16.205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .25463        .56204        .25219E-02   -1.5698    
  20  norm          3.4420        6.2960        .54522E-03   -1.5671    
  21  Prefactor      .0000        1.0312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0072        .15876        .46255E-01   -.92789    
  23  Prefactor     .83170        .11996        .44128E-01   -.98570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16466e-07
Minuit parameter uncertainties:
  1  9.95604e-05
  2  12.2572
  3  0.000696199
  4  1.17642
  5  6.35564
  6  29.7833
  7  6.2417
  8  0.0023635
  9  0.41333
  10  21.4968
  11  2.80238e-06
  12  2.25837
  13  0.0141005
  14  0.000902685
  15  8.30492e-07
  16  27.1497
  17  5.10818
  18  0.0125965
  19  0.562045
  20  6.29597
  21  4.45734e-06
  22  0.158838
  23  0.119997
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  4.442e+00  2.258e+00  0.000e+00  1.000e+06 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  8.317e-01  1.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.007e+00  1.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.43
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 9.07e-06

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) = 8938.61557687
delta logL = 1.15670607875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8938.48726668
delta logL = 1.28501627497

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8938.487     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0563        3.8677        .40779E-03   -.72797E-02
   2  Index         1.8472        .38322        .17630       -.17105E-04
   3  Normalizat    1.0283        .15109        .42346E-01    .19422E-04
   4  Prefactor     .82030        .11885        .43982E-01    .17702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.05631
  Index      = 1.84717
  Normalizat = 1.02829
  Prefactor  = 0.820302
 **********
 **   18 **HESSE 
 **********

 FCN=   8938.487     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0563        3.0093        .56151E-04   -1.5659    
   2  Index         1.8472        .32879        .70507E-02   -.68228    
   3  Normalizat    1.0283        .17092        .26523E-03   -.92089    
   4  Prefactor     .82030        .13465        .23028E-03   -.98984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03554e-13
Minuit parameter uncertainties:
  1  3.00929
  2  0.32918
  3  0.171009
  4  0.134708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/582442': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8938.48726649
delta logL = 1.28501646391

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  6.056e+00  3.009e+00  0.000e+00  1.000e+06 ( 1.000e-12)
315        Index:  1.847e+00  3.292e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  8.203e-01  1.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  1.028e+00  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.05
Ra Dec: 126.236 39.257
Photon Index (Free Index): 1.85 +/- 0.33
Photon Flux (Free Index): 3.72e-08 +/- 2.23e-08
Energy Flux (Free Index): 3.88e-05 +/- 3.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/582442/cmap_HighResolution_698025601_698630401_4FGL_J0824.9+3915_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='3.88e-05', photon_flux_error='2.88e-08', dlogl='1.29e+00', energy_flux='1.78e-05', photon_flux2='3.72e-08', job_status='DONE', time_completed='2023-02-21 03:20:28.528950', photon_index_error2='0.33', photon_index2='1.85', ts='11.43', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.07e-05', EG='1.01', time_epoch_completed='1676978428.53', return_code='0', job_id='582442', GAL2='0.82', EG2='1.03', return_code2='0', energy_flux_error='9.07e-06', photon_flux_error2='2.23e-08', ts2='14.05', photon_index='2.43' WHERE bin_id='759' AND source_name='4FGL J0824.9+3915' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:20:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 582442: <4FGL_J0824.9+3915_weekly_bin759> in cluster <slac> Done

Job <4FGL_J0824.9+3915_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) <bullet0120>, 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:20:30 2023
Results reported at Tue Feb 21 03:20:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_weekly_bin759 126.236 39.2574 698025601 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.9+3915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            902 sec.

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

