/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 136 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0824.9+3915_daily_bin4
RA = 126.236, Dec = 39.2574
tmin = 240364801, tmax = 240624001
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='452650', job_status='RUN', time_executed='2021-08-29 19:18:43.326337', time_epoch_executed='1630289923.33' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452650/ft1_4FGL_J0824.9+3915_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452650/ft2_4FGL_J0824.9+3915_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452650/ft1_4FGL_J0824.9+3915_daily_bin4.fits outfile=/scratch/kocevski/452650/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin4.fits ra=126.236 dec=39.2574 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.49
user 1.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452650/ft2_4FGL_J0824.9+3915_daily_bin4.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/452650/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/452650/ft1_filtered_4FGL_J0824.9+3915_daily_bin4.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.63
user 0.33
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452650/ft1_filtered_4FGL_J0824.9+3915_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/452650/ft2_4FGL_J0824.9+3915_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/452650/ltcube_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.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/452650/ft2_4FGL_J0824.9+3915_daily_bin4.fits
.....................!
real 14.07
user 13.44
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452650/ft1_filtered_4FGL_J0824.9+3915_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/452650/ft2_4FGL_J0824.9+3915_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/452650/ltcube_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.fits outfile=/scratch/kocevski/452650/expmap_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.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/452650/ltcube_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.fits
.....................!
real 191.24
user 185.66
sys 4.84

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/452650/ft1_filtered_4FGL_J0824.9+3915_daily_bin4.fits scfile=/scratch/kocevski/452650/ft2_4FGL_J0824.9+3915_daily_bin4.fits outfile=/scratch/kocevski/452650/cmap_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.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.62
user 0.37
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452650/ft1_filtered_4FGL_J0824.9+3915_daily_bin4.fits scfile=/scratch/kocevski/452650/ft2_4FGL_J0824.9+3915_daily_bin4.fits outfile=/scratch/kocevski/452650/cmap_HighResolution_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.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.63
user 0.37
sys 0.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0813       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2812       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3557       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.540       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.389       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38258       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    74.378       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12924E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.511       1.0000         .10000E-03   10000.    
    22 'norm      '    .58734       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1664       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90601       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=   6053.309     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3135 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6425        11.060        .17102E-06   -.15475E-04
   2  Prefactor     .10000E-03    10.788       -.27983E-06** at limit **
   3  norm          5.0817        10.961        .59173E-05   -.14531E-03
   4  norm          1.2815        2.5614        .42401E-06   -.52145E-04
   5  Prefactor     2.3605        7.4337        .63583E-07   -.76143E-04
   6  Prefactor     23.569        44.199        .78108E-05    .24994E-03
   7  Prefactor     .10000E-03    4.1713        .22823E-06** at limit **
   8  Prefactor     .10000E-03    19.394        .65392E-06** at limit **
   9  norm          2.4589        .76552       -.44357E-07    .32779E-04
  10  Prefactor     .10000E-03    11.740       -.19864E-06** at limit **
  11  Prefactor     .10000E-03    20.126       -.18464E-06** at limit **
  12  Prefactor     13.398        13.832        .37253E-06    .14712E-03
  13  Prefactor     .37997        2.1068       -.14016E-06    .15854E-03
  14  Prefactor     23.766        20.674       -.48177E-06   -.51641E-04
  15  Prefactor     .10000E-03    3.6000        .36784E-08** at limit **
  16  norm          .10000E-03    8.7819        .58848E-06** at limit **
  17  Prefactor     3.9806        3.7694        .30096E-06    .47696E-04
  18  Prefactor     .25478        2.3803        .47809E-06   -.24253E-03
  19  Prefactor     74.368        54.097       -.12006E-05   -.13049E-03
  20  Prefactor     .10001E-03    2.9006       -.78379E-06** at limit **
  21  Prefactor     27.499        27.197       -.12236E-05   -.17768E-03
  22  norm          .58718        .67342        .13186E-06    .43878E-03
  23  norm          .10000E-03    5.7869       -.47327E-06** at limit **
  24  Prefactor     .10000E-03    1.0881       -.16989E-06** at limit **
  25  Normalizat    1.1664        .19194       -.43255E-06    .75185E-04
  26  Prefactor     .90599        .14803       -.99538E-06    .87323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.64254
  Prefactor  = 0.0001
  norm       = 5.08173
  norm       = 1.2815
  Prefactor  = 2.36051
  Prefactor  = 23.569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3975
  Prefactor  = 0.37997
  Prefactor  = 23.7658
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.98062
  Prefactor  = 0.254781
  Prefactor  = 74.3676
  Prefactor  = 0.000100007
  Prefactor  = 27.4986
  norm       = 0.587178
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16641
  Prefactor  = 0.905993
 **********
 **   18 **HESSE 
 **********

 FCN=   6053.309     FROM HESSE     STATUS=OK           462 CALLS     3597 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6425        11.051        .16911E-03   -1.5233    
   2  Prefactor     .10000E-03    10.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.0817        11.396        .89185E-03   -1.5257    
   4  norm          1.2815        2.5313        .16991E-03   -1.5482    
   5  Prefactor     2.3605        7.4529        .26704E-03   -1.5401    
   6  Prefactor     23.569        46.115        .82559E-04   -1.4737    
   7  Prefactor     .10000E-03    4.3361        .30981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4589        .76536        .36032E-04   -1.5394    
  10  Prefactor     .10000E-03    11.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.398        13.910        .10947E-03   -1.4976    
  13  Prefactor     .37997        7.4190        .19385E-02   -1.5585    
  14  Prefactor     23.766        20.691        .82162E-04   -1.4733    
  15  Prefactor     .10000E-03    3.6052        .14416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.0867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9806        3.7670        .13821E-03   -1.5309    
  18  Prefactor     .25478        5.3275        .23198E-02   -1.5607    
  19  Prefactor     74.368        54.201        .23278E-03   -1.3981    
  20  Prefactor     .10001E-03    5.7583        .24666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.499        27.279        .76380E-04   -1.4659    
  22  norm          .58718        .63501        .64968E-03   -1.5555    
  23  norm          .10000E-03    5.7954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.0908        .79159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1664        .22032        .25761E-03   -.87647    
  26  Prefactor     .90599        .17078        .23243E-03   -.95932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84181e-08
Minuit parameter uncertainties:
  1  11.0546
  2  4.54289e-05
  3  11.4009
  4  2.53156
  5  7.45581
  6  46.1852
  7  3.02365e-06
  8  7.43393e-05
  9  0.765362
  10  1.48529e-05
  11  1.28054e-05
  12  13.9131
  13  3.35801
  14  20.6968
  15  6.83982e-07
  16  3.04564e-05
  17  3.76725
  18  2.32988
  19  54.237
  20  0.000409254
  21  27.2909
  22  0.635021
  23  2.52742e-05
  24  2.56081e-06
  25  0.220499
  26  0.170877
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  3.800e-01  3.358e+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

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  9.060e-01  1.709e-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.166e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452650/likelihoodResults_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.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) = 6053.13359014
delta logL = 0.175866386298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6053.10249564
delta logL = 0.206960880914

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20643       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9902       1.0000          .0000       10.000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91988       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=   6053.102     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20322        4.0838        .10007E-01    .26352E-02
   2  Index         3.9986        2.6735        .20585        .84887E-04
   3  Normalizat    1.1338        .28681E-01    .58933E-01    .12060E-03
   4  Prefactor     .92021        .23261E-01    .45258E-01   -.56423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.203221
  Index      = 3.9986
  Normalizat = 1.13382
  Prefactor  = 0.920212
 **********
 **   18 **HESSE 
 **********

 FCN=   6053.102     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20322        25.787        .53728E-04   -1.5618    
   2  Index         3.9986        5.5355        .76737E-02   -.20164    
   3  Normalizat    1.1338        .19066        .26063E-03   -.88673    
   4  Prefactor     .92021        .15328        .23074E-03   -.95438    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.9543e-10
Minuit parameter uncertainties:
  1  4.57927
  2  12.3084
  3  0.190777
  4  0.153349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452650': 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): 102
logL (Free Index) = 6053.10248643
delta logL = 0.206970094941

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.032e-01  4.579e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  3.999e+00  1.231e+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.202e-01  1.533e-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.134e+00  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 126.236 39.257

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/452650/cmap_HighResolution_240364801_240624001_4FGL_J0824.9+3915_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.80e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-29 19:31:38.010694', job_id='452650', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.17', time_epoch_completed='1630290698.01', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.07e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='4' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 452650: <4FGL_J0824.9+3915_daily_bin4> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin4> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:41 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:15:43 2021
Terminated at Sun Aug 29 19:31:39 2021
Results reported at Sun Aug 29 19:31:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin4 126.236 39.2574 240364801 240624001 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 :                                   773.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

