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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1746
RA = 126.236, Dec = 39.2574
tmin = 691891201, tmax = 692150401
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='718733', job_status='RUN', time_executed='2022-12-08 00:34:20.952235', time_epoch_executed='1670488460.95' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718733/ft1_4FGL_J0824.9+3915_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718733/ft2_4FGL_J0824.9+3915_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718733/ft1_4FGL_J0824.9+3915_daily_bin1746.fits outfile=/scratch/kocevski/718733/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1746.fits ra=126.236 dec=39.2574 rad=12.0 tmin=691891201.0 tmax=692150401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.69
user 4.47
sys 0.21

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

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

Number of photons that the gtmktime cut: 605

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718733/ft1_filtered_4FGL_J0824.9+3915_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/718733/ft2_4FGL_J0824.9+3915_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/718733/ltcube_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.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/718733/ft2_4FGL_J0824.9+3915_daily_bin1746.fits
.....................!
real 11.98
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718733/ft1_filtered_4FGL_J0824.9+3915_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/718733/ft2_4FGL_J0824.9+3915_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/718733/ltcube_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.fits outfile=/scratch/kocevski/718733/expmap_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.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/718733/ltcube_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.fits
.....................!
real 190.46
user 185.57
sys 4.58

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/718733/ft1_filtered_4FGL_J0824.9+3915_daily_bin1746.fits scfile=/scratch/kocevski/718733/ft2_4FGL_J0824.9+3915_daily_bin1746.fits outfile=/scratch/kocevski/718733/cmap_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718733/ft1_filtered_4FGL_J0824.9+3915_daily_bin1746.fits scfile=/scratch/kocevski/718733/ft2_4FGL_J0824.9+3915_daily_bin1746.fits outfile=/scratch/kocevski/718733/cmap_HighResolution_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4830       1.0000          .0000       .10000E+07
     2 'Prefactor '    15.966       1.0000          .0000       .10000E+07
     3 'norm      '    .24970E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .28290E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.6591       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.3041       1.0000          .0000       .10000E+07
     7 'Prefactor '    28.316       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.020       1.0000          .0000       .10000E+07
     9 'norm      '    .90370E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .19815E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11012E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.5334       1.0000          .0000       .10000E+07
    13 'Prefactor '    .58289E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.3447       1.0000          .0000       .10000E+07
    15 'norm      '    .11822E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .22874E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.761       1.0000          .0000       .10000E+07
    18 'Prefactor '    .38891E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .41216       1.0000          .0000       .10000E+07
    20 'norm      '    .35663       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.0150       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1746       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95802       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=   6604.039     FROM MIGRAD    STATUS=CONVERGED    267 CALLS     2108 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4711        7.4706       -.28694E-06   -.77236E-03
   2  Prefactor     15.843        6.6246        .48889E-06   -.10834E-01
   3  norm           .0000        24.926       -.18599E-05** at limit **
   4  norm          .22204E-09    2.5137        .37205E-06** at limit **
   5  Prefactor     7.9118        11.132       -.53781E-06    .20005E-02
   6  Prefactor     11.758        65.930        .27475E-05   -.18992E-02
   7  Prefactor     28.230        7.9579       -.12500E-06    .20303E-02
   8  Prefactor     12.068        35.809        .34927E-05    .41567E-02
   9  norm          .40503E-02    9.6883        .30235E-05** at limit **
  10  Prefactor      .0000        19.167        .52025E-06** at limit **
  11  Prefactor     .44409E-09    9.5830        .10772E-05** at limit **
  12  Prefactor     4.5487        3.3239       -.32178E-06   -.10770E-02
  13  Prefactor     .25535E-08    10.995       -.24728E-05** at limit **
  14  Prefactor     1.3172        15.542       -.49067E-06    .20171E-03
  15  norm           .0000        5.6631       -.12573E-05** at limit **
  16  Prefactor     .94369E-09    19.457        .15395E-05** at limit **
  17  Prefactor     12.797        5.1661       -.29547E-06    .35289E-03
  18  Prefactor     .33279E-06    58.538        .28043E-05** at limit **
  19  norm          .41271        .50240        .23843E-07   -.48151E-02
  20  norm          .37336        49.993        .32767E-05    .14933E-02
  21  Prefactor     2.0130        2.2644        .15917E-06    .38777E-02
  22  Normalizat    1.1724        .23467        .76951E-05   -.38916E-05
  23  Prefactor     .95809        .17843       -.47925E-06   -.52784E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47114
  Prefactor  = 15.8432
  norm       = 0
  norm       = 2.22045e-10
  Prefactor  = 7.9118
  Prefactor  = 11.7579
  Prefactor  = 28.2295
  Prefactor  = 12.0684
  norm       = 0.00405027
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 4.54871
  Prefactor  = 2.55351e-09
  Prefactor  = 1.31725
  norm       = 0
  Prefactor  = 9.4369e-10
  Prefactor  = 12.7966
  Prefactor  = 3.32789e-07
  norm       = 0.412708
  norm       = 0.373361
  Prefactor  = 2.01302
  Normalizat = 1.17244
  Prefactor  = 0.958094
 **********
 **   18 **HESSE 
 **********

 FCN=   6604.039     FROM HESSE     STATUS=OK           430 CALLS     2538 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4711        7.5180        .54156E-03   -1.5671    
   2  Prefactor     15.843        16.121        .25039E-03   -1.5628    
   3  norm           .0000        25.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .22204E-09    2.4809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9118        11.995        .34040E-03   -1.5652    
   6  Prefactor     11.758        83.067        .43617E-03   -1.5639    
   7  Prefactor     28.230        8.0040        .18796E-03   -1.5602    
   8  Prefactor     12.068        44.463        .28869E-03   -1.5638    
   9  norm          .40503E-02    .25264        .24239E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        19.055        .17049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44409E-09    9.7644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5487        3.3365        .47259E-03   -1.5665    
  13  Prefactor     .25535E-08    11.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3172        15.410        .94412E-03   -1.5685    
  15  norm           .0000        5.6602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .94369E-09    19.438        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.797        5.2224        .28015E-03   -1.5636    
  18  Prefactor     .33279E-06    104.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .41271        .56762        .14338E-02   -1.5695    
  20  norm          .37336        6.3873        .94694E-02   -1.5696    
  21  Prefactor     2.0130        2.2963        .72891E-03   -1.5680    
  22  Normalizat    1.1724        .20139        .62538E-01   -.87459    
  23  Prefactor     .95809        .15351        .45740E-01   -.94140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99543e-08
Minuit parameter uncertainties:
  1  7.51807
  2  16.1208
  3  2.42051e-05
  4  4.76219e-05
  5  11.9954
  6  62.5053
  7  8.00401
  8  44.4642
  9  0.0639767
  10  1.63509e-05
  11  0.000130616
  12  3.33652
  13  0.000337194
  14  9.01083
  15  1.67761e-06
  16  0.000274801
  17  5.22242
  18  0.0118088
  19  0.567616
  20  3.08854
  21  2.29629
  22  0.20152
  23  0.153581
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  4.549e+00  3.337e+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:  9.581e-01  1.536e-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.172e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/718733/likelihoodResults_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.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) = 6603.91485091
delta logL = 0.123814783667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6603.90863331
delta logL = 0.130032385201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4082       1.0000          .0000       .10000E+07
     2 'Index     '    2.8444       1.0000          .0000       10.000    
     3 'Normalizat'    1.1453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97204       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=   6603.909     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      271 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4077        45.363        .54773E-03    .35060E-02
   2  Index         2.8445        6.4080        .13004        .13529E-03
   3  Normalizat    1.1451        .86444E-01    .63137E-01    .12058E-04
   4  Prefactor     .97227        .57491E-01    .45917E-01    .10220E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40768
  Index      = 2.84453
  Normalizat = 1.14506
  Prefactor  = 0.972274
 **********
 **   18 **HESSE 
 **********

 FCN=   6603.909     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4077        4.2837        .93317E-05   -1.5671    
   2  Index         2.8445        .98607        .70273E-02   -.44571    
   3  Normalizat    1.1451        .22837        .27928E-03   -.88318    
   4  Prefactor     .97227        .17922        .24081E-03   -.93659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41335e-11
Minuit parameter uncertainties:
  1  4.28371
  2  0.99409
  3  0.228563
  4  0.179329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718733': 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) = 6603.90863237
delta logL = 0.130033322876

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  3.408e+00  4.284e+00  0.000e+00  1.000e+06 ( 1.000e-12)
315        Index:  2.845e+00  9.941e-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:  9.723e-01  1.793e-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.145e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.84 +/- 0.99
Photon Flux (Free Index): 8.18e-08 +/- 6.81e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/718733/cmap_HighResolution_691891201_692150401_4FGL_J0824.9+3915_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='1.78e-05', photon_flux_error='4.26e-08', dlogl='1.30e-01', energy_flux='1.83e-05', photon_flux2='8.18e-08', job_status='DONE', time_completed='2022-12-08 00:45:47.330293', photon_index_error2='0.99', photon_index2='2.84', ts='3.49', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.18e-05', EG='1.17', time_epoch_completed='1670489147.33', return_code='0', job_id='718733', GAL2='0.97', EG2='1.15', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.81e-08', ts2='3.80', photon_index='2.43' WHERE bin_id='1746' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 00:45:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 718733: <4FGL_J0824.9+3915_daily_bin1746> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1746> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  8 00:30:14 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:30:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:30:15 2022
Terminated at Thu Dec  8 00:45:47 2022
Results reported at Thu Dec  8 00:45:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1746 126.236 39.2574 691891201 692150401 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 :                                   689.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

