/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1626
RA = 126.236, Dec = 39.2574
tmin = 660787201, tmax = 661046401
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='162595', job_status='RUN', time_executed='2021-12-13 00:08:39.754230', time_epoch_executed='1639382919.75' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162595/ft1_4FGL_J0824.9+3915_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162595/ft1_4FGL_J0824.9+3915_daily_bin1626.fits outfile=/scratch/kocevski/162595/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1626.fits ra=126.236 dec=39.2574 rad=12.0 tmin=660787201.0 tmax=661046401.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.27
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.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/162595/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1626.fits evtable="EVENTS" outfile="/scratch/kocevski/162595/ft1_filtered_4FGL_J0824.9+3915_daily_bin1626.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 3.17
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162595/ft1_filtered_4FGL_J0824.9+3915_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/162595/ltcube_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.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/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits
.....................!
real 21.72
user 14.97
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162595/ft1_filtered_4FGL_J0824.9+3915_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/162595/ltcube_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.fits outfile=/scratch/kocevski/162595/expmap_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.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/162595/ltcube_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.fits
.....................!
real 236.50
user 185.71
sys 4.82

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/162595/ft1_filtered_4FGL_J0824.9+3915_daily_bin1626.fits scfile=/scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits outfile=/scratch/kocevski/162595/cmap_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.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 2.84
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162595/ft1_filtered_4FGL_J0824.9+3915_daily_bin1626.fits scfile=/scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits outfile=/scratch/kocevski/162595/cmap_HighResolution_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.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 3.11
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/162595/ft1_filtered_4FGL_J0824.9+3915_daily_bin1626.fits', '/scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits', expMap='/scratch/kocevski/162595/expmap_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.fits', expCube='/scratch/kocevski/162595/ltcube_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/162595/Model_4FGL_J0824.9+3915_daily_bin1626.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  1.000e-04  1.000e+04 ( 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/162595/ft1_filtered_4FGL_J0824.9+3915_daily_bin1626.fits
Spacecraft file(s): /scratch/kocevski/162595/ft2_4FGL_J0824.9+3915_daily_bin1626.fits
Exposure map: /scratch/kocevski/162595/expmap_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.fits
Exposure cube: /scratch/kocevski/162595/ltcube_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/162595/Model_4FGL_J0824.9+3915_daily_bin1626.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) = 7120.52378465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11737E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.713       1.0000         .10000E-03   10000.    
     3 'norm      '    8.8390       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13717E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16884E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17351E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .94266       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22153E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16420E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12328E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9400       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.505       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8857       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39420E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .70037       1.0000         .10000E-03   10000.    
    23 'norm      '    7.9685       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3158       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87728       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=   7120.423     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     2700 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9360       -.36098E-07** at limit **
   2  Prefactor     15.670        16.670        .11944E-05    .25979E-03
   3  norm          8.8560        9.7453        .19034E-05    .66619E-03
   4  norm          1.9256        2.0449        .39932E-06   -.49851E-03
   5  Prefactor     .10000E-03    2.9847        .96215E-07** at limit **
   6  Prefactor     .10000E-03    66.800       -.31086E-06** at limit **
   7  Prefactor     .10128E-03    1.9357       -.11743E-06** at limit **
   8  Prefactor     .10000E-03    7.0563        .27204E-06** at limit **
   9  norm          .94279        .52577        .24469E-07    .91800E-04
  10  Prefactor     .10000E-03    8.9216       -.13782E-06** at limit **
  11  Prefactor     .10000E-03    11.356       -.21040E-06** at limit **
  12  Prefactor     .10000E-03    4.9180        .24481E-06** at limit **
  13  Prefactor     .10000E-03    1.6130        .90151E-08** at limit **
  14  Prefactor     .10000E-03    15.620        .36260E-06** at limit **
  15  Prefactor     .10000E-03    4.2101       -.11103E-06** at limit **
  16  norm          .10000E-03    2.4545       -.15004E-07** at limit **
  17  Prefactor     .10000E-03    1.1199        .10672E-07** at limit **
  18  Prefactor     5.9478        4.2378        .14843E-05   -.12464E-02
  19  Prefactor     31.478        29.867       -.48979E-07    .21529E-04
  20  Prefactor     1.8798        3.6673        .51935E-06   -.14131E-03
  21  Prefactor     .10000E-03    7.7437       -.18985E-05** at limit **
  22  norm          .70038        .44839       -.21847E-08   -.11503E-03
  23  norm          7.9549        7.5318       -.42799E-07    .41020E-04
  24  Prefactor     3.3173        2.3558       -.44930E-07   -.26988E-04
  25  Normalizat    1.2720        .17606       -.51791E-06    .83799E-05
  26  Prefactor     .87729        .13734       -.52649E-06    .63974E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.6703
  norm       = 8.85595
  norm       = 1.92556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101284
  Prefactor  = 0.0001
  norm       = 0.942786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94776
  Prefactor  = 31.4776
  Prefactor  = 1.87985
  Prefactor  = 0.000100002
  norm       = 0.700381
  norm       = 7.95491
  Prefactor  = 3.31729
  Normalizat = 1.27198
  Prefactor  = 0.87729
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.423     FROM HESSE     STATUS=OK           462 CALLS     3162 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9430        .16350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.670        16.869        .10104E-03   -1.4916    
   3  norm          8.8560        10.241        .13482E-03   -1.5113    
   4  norm          1.9256        2.0535        .60729E-03   -1.5430    
   5  Prefactor     .10000E-03    2.9899        .14235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.217        .20375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10128E-03    2.9237        .41796E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94279        .52143        .43665E-04   -1.5514    
  10  Prefactor     .10000E-03    8.9253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6631        .20906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2219        .16909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4659        .12909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1392        .87161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9478        4.4480        .74172E-03   -1.5220    
  19  Prefactor     31.478        29.847        .71386E-04   -1.4585    
  20  Prefactor     1.8798        3.6450        .20539E-03   -1.5434    
  21  Prefactor     .10000E-03    8.1004        .21270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .70038        .44138        .43767E-04   -1.5541    
  23  norm          7.9549        7.5294        .14204E-03   -1.5144    
  24  Prefactor     3.3173        2.3430        .10313E-03   -1.5344    
  25  Normalizat    1.2720        .20441        .25283E-03   -.84407    
  26  Prefactor     .87729        .15981        .23733E-03   -.96939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53291e-09
Minuit parameter uncertainties:
  1  4.89473e-06
  2  16.8742
  3  10.2434
  4  2.05353
  5  3.97502e-06
  6  0.000170958
  7  0.00387595
  8  3.35888e-05
  9  0.521434
  10  1.76417e-05
  11  3.05097e-05
  12  2.76809e-05
  13  3.32544e-06
  14  7.52666e-05
  15  7.44638e-06
  16  9.32854e-07
  17  2.0036e-06
  18  4.44825
  19  29.8607
  20  3.64541
  21  0.00024688
  22  0.441386
  23  7.53029
  24  2.34309
  25  0.204544
  26  0.159897
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.325e-06  1.000e-04  1.000e+04 ( 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.773e-01  1.599e-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.272e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162595/likelihoodResults_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7120.42551174
delta logL = -0.00286552934722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7120.42264612
delta logL = 8.82964741322e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4464       1.0000          .0000       10.000    
     3 'Normalizat'    1.2720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87732       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7120.362     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      332 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82240E-02    1.0091        .47536E-02   -.76327E-02
   2  Index         5.3158        4.0221        .32442       -.17039E-04
   3  Normalizat    1.2527        .66235E-01    .25283E-03   -.17061E-03
   4  Prefactor     .88641        .40066E-01    .23733E-03   -.51687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.008224
  Index      = 5.3158
  Normalizat = 1.25271
  Prefactor  = 0.886412
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.362     FROM HESSE     STATUS=OK            31 CALLS      363 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82240E-02    .67513E-01    .17758E-03   -1.5726    
   2  Index         5.3158        2.7832        .82670E-02    .63203E-01
   3  Normalizat    1.2527        .20416        .50566E-04   -.84989    
   4  Prefactor     .88641        .15937        .94932E-05   -.96618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05364e-08
Minuit parameter uncertainties:
  1  0.0468392
  2  2.95248
  3  0.204292
  4  0.15945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162595': 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) = 7120.36151448
delta logL = 0.0611317347575

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  8.224e-03  4.684e-02  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  5.316e+00  2.952e+00  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.864e-01  1.594e-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.253e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

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/162595/cmap_HighResolution_660787201_661046401_4FGL_J0824.9+3915_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-12-13 00:23:19.849827', job_id='162595', GAL2='0.89', fit_tolerance='1e-08', EG2='1.25', EG='1.27', time_epoch_completed='1639383799.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.11e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1626' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:23:19 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 162669: <4FGL_J0824.9+3915_daily_bin1626> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1626> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec 13 00:06:49 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:06:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:06:50 2021
Terminated at Mon Dec 13 00:22:15 2021
Results reported at Mon Dec 13 00:22:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1626 126.236 39.2574 660787201 661046401 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 :                                   811.13 sec.
    Max Memory :                                 617 MB
    Average Memory :                             285.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            926 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 162595: <4FGL_J0824.9+3915_daily_bin1626> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1626> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec 13 00:06:43 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:06:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:06:45 2021
Terminated at Mon Dec 13 00:23:20 2021
Results reported at Mon Dec 13 00:23:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1626 126.236 39.2574 660787201 661046401 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 :                                   805.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

