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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin76
RA = 126.236, Dec = 39.2574
tmin = 259027201, tmax = 259286401
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='452769', job_status='RUN', time_executed='2021-08-29 19:19:16.972939', time_epoch_executed='1630289956.97' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452769

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452769/ft1_4FGL_J0824.9+3915_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452769/ft2_4FGL_J0824.9+3915_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452769/ft1_4FGL_J0824.9+3915_daily_bin76.fits outfile=/scratch/kocevski/452769/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin76.fits ra=126.236 dec=39.2574 rad=12.0 tmin=259027201.0 tmax=259286401.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.36
user 1.27
sys 2.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452769/ft2_4FGL_J0824.9+3915_daily_bin76.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/452769/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/452769/ft1_filtered_4FGL_J0824.9+3915_daily_bin76.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.31
user 0.34
sys 2.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452769/ft1_filtered_4FGL_J0824.9+3915_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/452769/ft2_4FGL_J0824.9+3915_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/452769/ltcube_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.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/452769/ft2_4FGL_J0824.9+3915_daily_bin76.fits
.....................!
real 16.15
user 12.44
sys 3.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452769/ft1_filtered_4FGL_J0824.9+3915_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/452769/ft2_4FGL_J0824.9+3915_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/452769/ltcube_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.fits outfile=/scratch/kocevski/452769/expmap_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.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/452769/ltcube_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.fits
.....................!
real 195.16
user 186.25
sys 7.30

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/452769/ft1_filtered_4FGL_J0824.9+3915_daily_bin76.fits scfile=/scratch/kocevski/452769/ft2_4FGL_J0824.9+3915_daily_bin76.fits outfile=/scratch/kocevski/452769/cmap_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.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 3.02
user 0.36
sys 2.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452769/ft1_filtered_4FGL_J0824.9+3915_daily_bin76.fits scfile=/scratch/kocevski/452769/ft2_4FGL_J0824.9+3915_daily_bin76.fits outfile=/scratch/kocevski/452769/cmap_HighResolution_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.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.01
user 0.38
sys 2.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .86903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .72801       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5106       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1062       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9061       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3390       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72213       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=   5288.399     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2596 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5303        .23655E-05** at limit **
   2  Prefactor     .10000E-03    16.614       -.30783E-05** at limit **
   3  norm          .10000E-03    3.6000        .13717E-06** at limit **
   4  norm          .86793        2.0413       -.43193E-06   -.11506E-02
   5  Prefactor     12.035        9.4447       -.55840E-08   -.27236E-04
   6  Prefactor     .10001E-03    40.527        .18550E-04** at limit **
   7  Prefactor     .72799        3.0669       -.21883E-05   -.10320E-02
   8  Prefactor     .10000E-03    9.3165        .11405E-05** at limit **
   9  norm          2.5107        .85449        .45177E-07    .49944E-03
  10  Prefactor     .10000E-03    14.919        .95648E-06** at limit **
  11  Prefactor     .10000E-03    14.483        .23918E-05** at limit **
  12  Prefactor     .10000E-03    4.0608       -.29625E-05** at limit **
  13  Prefactor     .10000E-03    1.1766       -.18060E-07** at limit **
  14  Prefactor     .10000E-03    21.000        .14368E-05** at limit **
  15  Prefactor     .10000E-03    16.675       -.33180E-05** at limit **
  16  norm          .10000E-03    2.0461        .63095E-08** at limit **
  17  Prefactor     .10000E-03    3.2687        .12989E-05** at limit **
  18  Prefactor     .10000E-03    2.6380        .21183E-05** at limit **
  19  Prefactor     .10001E-03    47.845       -.18928E-04** at limit **
  20  Prefactor     .10000E-03    2.3307       -.21938E-06** at limit **
  21  Prefactor     .10000E-03    6.8313       -.11969E-05** at limit **
  22  norm          2.1064        .88125       -.14569E-07   -.13247E-03
  23  norm          .10000E-03    2.7705       -.24074E-05** at limit **
  24  Prefactor     2.9056        2.4970        .77012E-08    .51660E-04
  25  Normalizat    1.3389        .19041        .18363E-06    .31422E-04
  26  Prefactor     .72221        .15140        .11540E-06    .28662E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.867932
  Prefactor  = 12.0347
  Prefactor  = 0.000100005
  Prefactor  = 0.727986
  Prefactor  = 0.0001
  norm       = 2.51073
  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  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1064
  norm       = 0.0001
  Prefactor  = 2.90562
  Normalizat = 1.33886
  Prefactor  = 0.722208
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.399     FROM HESSE     STATUS=OK           448 CALLS     3044 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5231        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6037        .13475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .86793        1.6457        .15652E-02   -1.5522    
   5  Prefactor     12.035        9.4348        .11547E-03   -1.5014    
   6  Prefactor     .10001E-03    39.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .72799        3.2062        .25395E-03   -1.5537    
   8  Prefactor     .10000E-03    9.3191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5107        .85187        .37359E-04   -1.5391    
  10  Prefactor     .10000E-03    14.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0390        .14267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1909        .76999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0478        .10159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3758        .25608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6587        .11497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    47.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4046        .21644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1064        .88044        .42645E-04   -1.5418    
  23  norm          .10000E-03    2.7584        .11791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.9056        2.4959        .10311E-03   -1.5367    
  25  Normalizat    1.3389        .22050        .23274E-03   -.82414    
  26  Prefactor     .72221        .17530        .24361E-03   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15033e-09
Minuit parameter uncertainties:
  1  3.80235e-05
  2  0.000104056
  3  2.4321e-06
  4  1.64583
  5  9.43598
  6  0.000902738
  7  3.05562
  8  2.63554e-05
  9  0.851869
  10  2.9397e-05
  11  7.04659e-05
  12  4.66108e-05
  13  1.65767e-06
  14  3.9962e-05
  15  0.000115475
  16  5.72671e-07
  17  2.80484e-05
  18  3.12005e-05
  19  0.00100064
  20  4.78323e-06
  21  2.53069e-05
  22  0.880441
  23  2.98685e-05
  24  2.49597
  25  0.220658
  26  0.175433
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.658e-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:  7.222e-01  1.754e-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.339e+00  2.207e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452769/likelihoodResults_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.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) = 5288.40323844
delta logL = -0.00393695193634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5288.39930146
delta logL = 3.20696926792e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4224       1.0000          .0000       10.000    
     3 'Normalizat'    1.3389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72224       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5288.399     FROM MIGRAD    STATUS=FAILED        90 CALLS      241 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    40.017        .77296E-03** at limit **
   2  Index         2.3740        7.0961        .50000        .56264E-04
   3  Normalizat    1.3389        .29544E-01    .23274E-03   -.32630E-04
   4  Prefactor     .72221        .23592E-01    .24361E-03   -.67108E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5288.399     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      372 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    40.017        .20531E-03** at limit **
   2  Index         2.3740        7.0961        .44512E-03    .56264E-04
   3  Normalizat    1.3389        .29544E-01    .60544E-05   -.32630E-04
   4  Prefactor     .72221        .23592E-01    .51998E-05   -.67108E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5288.399     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      414 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    221.61        .15459E-03** at limit **
   2  Index         2.1432        5.1720        .50000        .81013E-07
   3  Normalizat    1.3389        .93138E-01    .93094E-05    .53293E-03
   4  Prefactor     .72221        .74320E-01    .97445E-05    .52034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14322
  Normalizat = 1.33886
  Prefactor  = 0.722209
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.399     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4550        .30919E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1432        8.6843        .50000       -.60816    
   3  Normalizat    1.3389        .21871        .18619E-05   -.82414    
   4  Prefactor     .72221        .17466        .19489E-05   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39735e-10
Minuit parameter uncertainties:
  1  3.68048e-06
  2  66.5796
  3  0.21886
  4  0.174792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452769': 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) = 5288.39929915
delta logL = 2.34166509472e-06

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.680e-06  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.143e+00  6.658e+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:  7.222e-01  1.748e-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.339e+00  2.189e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/452769/cmap_HighResolution_259027201_259286401_4FGL_J0824.9+3915_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-08-29 19:31:28.992935', job_id='452769', GAL2='0.72', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630290688.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='76' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 452769: <4FGL_J0824.9+3915_daily_bin76> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin76> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:50 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:50 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:50 2021
Terminated at Sun Aug 29 19:31:31 2021
Results reported at Sun Aug 29 19:31:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin76 126.236 39.2574 259027201 259286401 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 :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

