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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1744
RA = 126.236, Dec = 39.2574
tmin = 691372801, tmax = 691632001
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='570804', job_status='RUN', time_executed='2022-12-02 00:26:30.167027', time_epoch_executed='1669969590.17' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570804/ft1_4FGL_J0824.9+3915_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570804/ft2_4FGL_J0824.9+3915_daily_bin1744.fits


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

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

Done.
real 2.50
user 2.28
sys 0.21

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

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

Number of photons that the gtmktime cut: 503

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570804/ft1_filtered_4FGL_J0824.9+3915_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/570804/ft2_4FGL_J0824.9+3915_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/570804/ltcube_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.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/570804/ft2_4FGL_J0824.9+3915_daily_bin1744.fits
.....................!
real 12.37
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570804/ft1_filtered_4FGL_J0824.9+3915_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/570804/ft2_4FGL_J0824.9+3915_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/570804/ltcube_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.fits outfile=/scratch/kocevski/570804/expmap_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.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/570804/ltcube_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.fits
.....................!
real 192.84
user 186.80
sys 5.70

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/570804/ft1_filtered_4FGL_J0824.9+3915_daily_bin1744.fits scfile=/scratch/kocevski/570804/ft2_4FGL_J0824.9+3915_daily_bin1744.fits outfile=/scratch/kocevski/570804/cmap_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.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/570804/ft1_filtered_4FGL_J0824.9+3915_daily_bin1744.fits scfile=/scratch/kocevski/570804/ft2_4FGL_J0824.9+3915_daily_bin1744.fits outfile=/scratch/kocevski/570804/cmap_HighResolution_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.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/570804/ft1_filtered_4FGL_J0824.9+3915_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/570804/ft2_4FGL_J0824.9+3915_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/570804/Model_4FGL_J0824.9+3915_daily_bin1744.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/570804/ft1_filtered_4FGL_J0824.9+3915_daily_bin1744.fits.....................!
real 55.23
user 53.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82720E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    15.754       1.0000          .0000       .10000E+07
     3 'norm      '    .67626E-03   1.0000          .0000       .10000E+07
     4 'norm      '    1.4441       1.0000          .0000       .10000E+07
     5 'Prefactor '    15.989       1.0000          .0000       .10000E+07
     6 'Prefactor '    .91948E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    22.505       1.0000          .0000       .10000E+07
     8 'Prefactor '    .38427E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .79387       1.0000          .0000       .10000E+07
    10 'Prefactor '    65.468       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12898E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.1017       1.0000          .0000       .10000E+07
    13 'Prefactor '    .51227E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    26.042       1.0000          .0000       .10000E+07
    15 'norm      '    1.6740       1.0000          .0000       .10000E+07
    16 'Prefactor '    .41356E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.4768       1.0000          .0000       .10000E+07
    18 'Prefactor '    .85556       1.0000          .0000       .10000E+07
    19 'norm      '    .33973E-07   1.0000          .0000       .10000E+07
    20 'norm      '    6.2773       1.0000          .0000       .10000E+07
    21 'Prefactor '    .80977       1.0000          .0000       .10000E+07
    22 'Normalizat'    .74223       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3335       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=   5635.207     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1903 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.7961       -.15347E-06** at limit **
   2  Prefactor     16.124        5.7485        .26780E-06    .58458E-02
   3  norm           .0000        4.1882        .52283E-08** at limit **
   4  norm          1.4374        3.2300       -.18899E-06   -.11961E-02
   5  Prefactor     15.931        13.225       -.36993E-07   -.17946E-01
   6  Prefactor     .22182E-06    31.352        .12547E-05** at limit **
   7  Prefactor     22.486        8.8860       -.76191E-08    .29559E-02
   8  Prefactor     .16243E-05    6.4424       -.12357E-05** at limit **
   9  norm          .79393        .56874       -.12397E-07   -.17615E-02
  10  Prefactor     65.239        14.124       -.52996E-06   -.17103    
  11  Prefactor      .0000        6.2327       -.16002E-06** at limit **
  12  Prefactor     4.1055        3.5126        .80456E-07    .21494E-02
  13  Prefactor     .27756E-09    12.439        .21715E-06** at limit **
  14  Prefactor     26.051        3.2782       -.42030E-07   -.78315E-01
  15  norm          1.6798        4.7834        .13542E-06    .59600E-03
  16  Prefactor     .33823E-06    32.778       -.20473E-05** at limit **
  17  Prefactor     3.4349        3.7618        .17702E-06    .41992E-02
  18  Prefactor     .54722        228.79       -.70478E-05    .10410E-01
  19  norm           .0000        .43987        .74481E-07** at limit **
  20  norm          6.3307        9.8971        .53202E-06    .74636E-03
  21  Prefactor     .81326        1.2489        .18520E-07    .10284E-02
  22  Normalizat    .74352        .24837        .86091E-06    .12988E-03
  23  Prefactor     1.3329        .20767        .11905E-05    .17443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 16.1244
  norm       = 0
  norm       = 1.43737
  Prefactor  = 15.9313
  Prefactor  = 2.21823e-07
  Prefactor  = 22.486
  Prefactor  = 1.62426e-06
  norm       = 0.793934
  Prefactor  = 65.2391
  Prefactor  = 0
  Prefactor  = 4.10549
  Prefactor  = 2.77556e-10
  Prefactor  = 26.0506
  norm       = 1.6798
  Prefactor  = 3.38229e-07
  Prefactor  = 3.43488
  Prefactor  = 0.547224
  norm       = 0
  norm       = 6.33073
  Prefactor  = 0.813264
  Normalizat = 0.743518
  Prefactor  = 1.33285
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.207     FROM HESSE     STATUS=OK           430 CALLS     2333 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.7993        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.124        29.025        .25207E-03   -1.5628    
   3  norm           .0000        4.1862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4374        3.2658        .89694E-03   -1.5684    
   5  Prefactor     15.931        14.380        .25021E-03   -1.5628    
   6  Prefactor     .22182E-06    32.070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.486        8.9176        .21085E-03   -1.5613    
   8  Prefactor     .16243E-05    21.334        .16035E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .79393        .57210        .53393E-03   -1.5690    
  10  Prefactor     65.239        37.536        .12360E-03   -1.5546    
  11  Prefactor      .0000        6.2325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1055        3.5298        .49753E-03   -1.5667    
  13  Prefactor     .27756E-09    12.471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.051        14.864        .19600E-03   -1.5606    
  15  norm          1.6798        4.8348        .81427E-03   -1.5682    
  16  Prefactor     .33823E-06    34.832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4349        3.8572        .54206E-03   -1.5671    
  18  Prefactor     .54722        309.88        .48882E-03   -1.5693    
  19  norm           .0000        .27388        .15608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3307        10.791        .40041E-03   -1.5658    
  21  Prefactor     .81326        1.2631        .52209E-03   -1.5690    
  22  Normalizat    .74352        .22011        .76010E-01   -1.0220    
  23  Prefactor     1.3329        .18057        .50808E-01   -.82335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27683e-07
Minuit parameter uncertainties:
  1  4.48927e-06
  2  29.025
  3  1.19653e-05
  4  3.26576
  5  14.3796
  6  0.00533407
  7  8.91759
  8  0.0117732
  9  0.5721
  10  37.536
  11  2.31201e-05
  12  3.52978
  13  0.000118133
  14  14.8643
  15  4.83482
  16  0.00686493
  17  3.8572
  18  26.0454
  19  2.23821e-06
  20  10.7914
  21  1.26311
  22  0.220369
  23  0.180654
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  4.105e+00  3.530e+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:  1.333e+00  1.807e-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:  7.435e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.14
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/570804/likelihoodResults_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.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) = 5635.17038391
delta logL = 0.036665712104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5635.16689236
delta logL = 0.0401572606788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7280       1.0000          .0000       .10000E+07
     2 'Index     '    2.2519       1.0000          .0000       10.000    
     3 'Normalizat'    .75042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3284       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=   5635.167     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7275        117.08        .46252E-03    .24930E-02
   2  Index         2.2522        6.0459        .21888        .33894E-04
   3  Normalizat    .75033        .97326E-01    .75701E-01    .36299E-04
   4  Prefactor     1.3285        .72696E-01    .50877E-01    .12453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72752
  Index      = 2.2522
  Normalizat = 0.750333
  Prefactor  = 1.32849
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.167     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7275        4.4242        .13293E-04   -1.5664    
   2  Index         2.2522        .61668        .76177E-02   -.58184    
   3  Normalizat    .75033        .23401        .33509E-03   -1.0194    
   4  Prefactor     1.3285        .20381        .22491E-03   -.82464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98162e-10
Minuit parameter uncertainties:
  1  4.42424
  2  0.61894
  3  0.234327
  4  0.20393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570804': 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) = 5635.16689221
delta logL = 0.0401574196167

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  4.728e+00  4.424e+00  0.000e+00  1.000e+06 ( 1.000e-12)
315        Index:  2.252e+00  6.189e-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:  1.328e+00  2.039e-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:  7.503e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.25 +/- 0.62
Photon Flux (Free Index): 4.70e-08 +/- 4.45e-08
Energy Flux (Free Index): 1.92e-05 +/- 2.02e-05

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/570804/cmap_HighResolution_691372801_691632001_4FGL_J0824.9+3915_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='1.92e-05', photon_flux_error='4.50e-08', dlogl='4.02e-02', energy_flux='1.65e-05', photon_flux2='4.70e-08', job_status='DONE', time_completed='2022-12-02 00:36:22.698193', photon_index_error2='0.62', photon_index2='2.25', ts='2.14', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.02e-05', EG='0.74', time_epoch_completed='1669970182.7', return_code='0', job_id='570804', GAL2='1.33', EG2='0.75', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.45e-08', ts2='2.23', photon_index='2.43' WHERE bin_id='1744' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:36:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 570804: <4FGL_J0824.9+3915_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:25:20 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:25:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:25:21 2022
Terminated at Fri Dec  2 00:36:23 2022
Results reported at Fri Dec  2 00:36:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1744 126.236 39.2574 691372801 691632001 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 :                                   595.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

