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


Performing analysis on: 4FGL_J0824.9+3915_weekly_bin754
RA = 126.236, Dec = 39.2574
tmin = 695001601, tmax = 695606401
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='948463', job_status='RUN', time_executed='2023-01-17 00:47:43.908870', time_epoch_executed='1673945263.91' WHERE source_name='4FGL J0824.9+3915' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948463

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948463/ft1_4FGL_J0824.9+3915_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948463/ft1_4FGL_J0824.9+3915_weekly_bin754.fits outfile=/scratch/kocevski/948463/ft1_filteredMKT_4FGL_J0824.9+3915_weekly_bin754.fits ra=126.236 dec=39.2574 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.62
user 5.31
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.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/948463/ft1_filteredMKT_4FGL_J0824.9+3915_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.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.36
sys 0.18

Number of photons that the gtmktime cut: 82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/948463/ltcube_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.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/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits
.....................!
real 36.15
user 34.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/948463/ltcube_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.fits outfile=/scratch/kocevski/948463/expmap_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.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/948463/ltcube_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.fits
.....................!
real 193.70
user 186.96
sys 5.57

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/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits scfile=/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits outfile=/scratch/kocevski/948463/cmap_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.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.58
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits scfile=/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits outfile=/scratch/kocevski/948463/cmap_HighResolution_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.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.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948463/Model_4FGL_J0824.9+3915_weekly_bin754.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/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits.....................!
real 21.25
user 19.86
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits', '/scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits', expMap='/scratch/kocevski/948463/expmap_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.fits', expCube='/scratch/kocevski/948463/ltcube_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948463/Model_4FGL_J0824.9+3915_weekly_bin754.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/948463/ft1_filtered_4FGL_J0824.9+3915_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/948463/ft2_4FGL_J0824.9+3915_weekly_bin754.fits
Exposure map: /scratch/kocevski/948463/expmap_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.fits
Exposure cube: /scratch/kocevski/948463/ltcube_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948463/Model_4FGL_J0824.9+3915_weekly_bin754.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) = 1046.66951734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.521       1.0000          .0000       .10000E+07
     2 'Prefactor '    .66076       1.0000          .0000       .10000E+07
     3 'norm      '    184.99       1.0000          .0000       .10000E+07
     4 'norm      '    36.733       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10530       1.0000          .0000       .10000E+07
     6 'Prefactor '    .53982       1.0000          .0000       .10000E+07
     7 'Prefactor '    .87972E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .90683       1.0000          .0000       .10000E+07
     9 'norm      '    .77438E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .54553       1.0000          .0000       .10000E+07
    11 'Prefactor '    .29835E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    18.675       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29534E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14572E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .10812E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .37803E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    28.431       1.0000          .0000       .10000E+07
    18 'Prefactor '    23.139       1.0000          .0000       .10000E+07
    19 'norm      '    1.2044       1.0000          .0000       .10000E+07
    20 'norm      '    .66308E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .30362E-05   1.0000          .0000       .10000E+07
    22 'Normalizat'    .54413       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89010       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=   1046.626     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1799 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.777        13.843        .23983E-06   -.27958E-01
   2  Prefactor     .43476E-06    362.98       -.81805E-05** at limit **
   3  norm          185.23        13.008        .10700E-06   -.55458E-01
   4  norm          36.738        1.1646       -.14510E-08   -.26997E-01
   5  Prefactor      .0000        79.250       -.14213E-05** at limit **
   6  Prefactor     .16227E-03    117.12       -.48113E-06** at limit **
   7  Prefactor     .45297E-07    53.336       -.25816E-05** at limit **
   8  Prefactor     .14926E-05    2519.8       -.11620E-04** at limit **
   9  norm           .0000        3.1429        .57859E-06** at limit **
  10  Prefactor     .15307E-03    128.43       -.27915E-06** at limit **
  11  Prefactor      .0000        66.219       -.33339E-05** at limit **
  12  Prefactor     18.604        18.370       -.59587E-06   -.39291E-03
  13  Prefactor     .37748E-08    39.743       -.35924E-06** at limit **
  14  Prefactor      .0000        10.763        .56819E-06** at limit **
  15  norm           .0000        8.1208       -.18936E-05** at limit **
  16  Prefactor     .55511E-09    35.675        .50276E-06** at limit **
  17  Prefactor     28.527        10.938        .22503E-06    .16003E-03
  18  Prefactor     22.875        2.1055       -.26658E-07   -.78374E-02
  19  norm          1.2027        1.0418       -.34674E-06    .24473E-03
  20  norm           .0000        45.481        .58923E-05** at limit **
  21  Prefactor      .0000        2.9566        .46551E-06** at limit **
  22  Normalizat    .54414        .51253       -.48635E-04   -.14745E-05
  23  Prefactor     .89056        .50245        .37639E-04   -.26881E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.777
  Prefactor  = 4.34763e-07
  norm       = 185.23
  norm       = 36.7379
  Prefactor  = 0
  Prefactor  = 0.000162266
  Prefactor  = 4.52971e-08
  Prefactor  = 1.49258e-06
  norm       = 0
  Prefactor  = 0.000153067
  Prefactor  = 0
  Prefactor  = 18.6042
  Prefactor  = 3.77476e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 28.5273
  Prefactor  = 22.875
  norm       = 1.20268
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.544145
  Prefactor  = 0.890561
 **********
 **   18 **HESSE 
 **********

 FCN=   1046.626     FROM HESSE     STATUS=OK           410 CALLS     2209 TOTAL
                     EDM=   .35E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.777        .61220E+06    .15521E-03   -1.5579    
   2  Prefactor     .43476E-06    361.69        .63952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          185.23        .20589E+06    .73531E-04   -1.5436    
   4  norm          36.738        33.986        .16501E-03   -1.5587    
   5  Prefactor      .0000        79.150        .13789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16227E-03    240.46        .74801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .45297E-07    53.434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14926E-05    2455.8        .45289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        3.1014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15307E-03    245.13        .74256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        66.128        .16459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.604        18.360        .23149E-03   -1.5622    
  13  Prefactor     .37748E-08    39.728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        10.751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        8.1028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-09    35.657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.527        11.291        .18758E-03   -1.5601    
  18  Prefactor     22.875        39.932        .20794E-03   -1.5612    
  19  norm          1.2027        1.0551        .63512E-03   -1.5686    
  20  norm           .0000        29.896        .51957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        2.9478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .54414        .42329        .82658E-01   -1.1041    
  23  Prefactor     .89056        .41694        .64331E-01   -.96472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00351141
Minuit parameter uncertainties:
  1  6463.43
  2  0.0250808
  3  12821
  4  33.986
  5  1.7097e-05
  6  0.395075
  7  0.00311107
  8  0.121137
  9  9.86877e-07
  10  0.387421
  11  1.41298e-06
  12  18.3603
  13  0.000776349
  14  1.31041e-06
  15  8.74581e-07
  16  0.000278558
  17  11.2908
  18  39.9325
  19  1.05511
  20  9.46546e-06
  21  1.30348e-06
  22  0.425839
  23  0.418442
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.860e+01  1.836e+01  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.906e-01  4.184e-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:  5.441e-01  4.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.38e-07 +/- 2.34e-07
Energy Flux (Fixed Index): 7.47e-05 +/- 7.37e-05

TS (Fixed Index): 2.42
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 8.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.90e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948463/likelihoodResults_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.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) = 1046.49332864
delta logL = 0.132621746329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1046.47754571
delta logL = 0.148404676063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.180       1.0000          .0000       .10000E+07
     2 'Index     '    1.9867       1.0000          .0000       10.000    
     3 'Normalizat'    .55559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88819       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1046.478     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.186        22.268        .23914E-06   -.95389E-04
   2  Index         1.9862        .78553        .20041E-04   -.42199E-05
   3  Normalizat    .55586        .44647        .15621E-07   -.49284E-04
   4  Prefactor     .88779        .44377       -.23536E-05   -.46210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1861
  Index      = 1.98619
  Normalizat = 0.555862
  Prefactor  = 0.887787
 **********
 **   18 **HESSE 
 **********

 FCN=   1046.478     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.186        22.260        .42478E-04   -1.5614    
   2  Index         1.9862        .78561        .58256E-02   -.64696    
   3  Normalizat    .55586        .50556        .36283E-03   -1.0989    
   4  Prefactor     .88779        .50259        .28482E-03   -.96569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37743e-11
Minuit parameter uncertainties:
  1  22.2603
  2  0.790777
  3  0.509831
  4  0.505245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948463': 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) = 1046.47754514
delta logL = 0.148405249958

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.219e+01  2.226e+01  0.000e+00  1.000e+06 ( 1.000e-12)
315        Index:  1.986e+00  7.908e-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.878e-01  5.052e-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:  5.559e-01  5.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 126.236 39.257
Photon Index (Free Index): 1.99 +/- 0.79
Photon Flux (Free Index): 1.58e-07 +/- 2.11e-07
Energy Flux (Free Index): 1.13e-04 +/- 1.69e-04

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/948463/cmap_HighResolution_695001601_695606401_4FGL_J0824.9+3915_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-02', comment='SUCCESS', photon_flux='2.38e-07', energy_flux2='1.13e-04', photon_flux_error='2.34e-07', dlogl='1.48e-01', energy_flux='7.47e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2023-01-17 00:54:43.138913', photon_index_error2='0.79', photon_index2='1.99', ts='2.42', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.91e-07', energy_flux_error2='1.69e-04', EG='0.54', time_epoch_completed='1673945683.14', return_code='0', job_id='948463', GAL2='0.89', EG2='0.56', return_code2='0', energy_flux_error='7.37e-05', photon_flux_error2='2.11e-07', ts2='2.70', photon_index='2.43' WHERE bin_id='754' AND source_name='4FGL J0824.9+3915' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 00:54:43 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 948463: <4FGL_J0824.9+3915_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0824.9+3915_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:45:24 2023
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:46:42 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:46:42 2023
Terminated at Tue Jan 17 00:54:43 2023
Results reported at Tue Jan 17 00:54:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_weekly_bin754 126.236 39.2574 695001601 695606401 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 :                                   418.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   481 sec.
    Turnaround time :                            559 sec.

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

