/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 8 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 = 7668
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0824.9+3915_daily_bin720
RA = 126.236, Dec = 39.2574
tmin = 425952001, tmax = 426211201
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='457406', job_status='RUN', time_executed='2021-08-29 19:31:06.436330', time_epoch_executed='1630290666.44' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457406/ft1_4FGL_J0824.9+3915_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457406/ft2_4FGL_J0824.9+3915_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457406/ft1_4FGL_J0824.9+3915_daily_bin720.fits outfile=/scratch/kocevski/457406/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin720.fits ra=126.236 dec=39.2574 rad=12.0 tmin=425952001.0 tmax=426211201.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 5.82
user 3.40
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/457406/ft1_filtered_4FGL_J0824.9+3915_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/457406/ft2_4FGL_J0824.9+3915_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/457406/ltcube_425952001_426211201_4FGL_J0824.9+3915_daily_bin720.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/457406/ft2_4FGL_J0824.9+3915_daily_bin720.fits
.....................!
real 12.62
user 11.73
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457406/ft1_filtered_4FGL_J0824.9+3915_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/457406/ft2_4FGL_J0824.9+3915_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/457406/ltcube_425952001_426211201_4FGL_J0824.9+3915_daily_bin720.fits outfile=/scratch/kocevski/457406/expmap_425952001_426211201_4FGL_J0824.9+3915_daily_bin720.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/457406/ltcube_425952001_426211201_4FGL_J0824.9+3915_daily_bin720.fits
.....................!
real 192.45
user 184.81
sys 5.46

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/457406/ft1_filtered_4FGL_J0824.9+3915_daily_bin720.fits scfile=/scratch/kocevski/457406/ft2_4FGL_J0824.9+3915_daily_bin720.fits outfile=/scratch/kocevski/457406/cmap_425952001_426211201_4FGL_J0824.9+3915_daily_bin720.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.76
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457406/ft1_filtered_4FGL_J0824.9+3915_daily_bin720.fits scfile=/scratch/kocevski/457406/ft2_4FGL_J0824.9+3915_daily_bin720.fits outfile=/scratch/kocevski/457406/cmap_HighResolution_425952001_426211201_4FGL_J0824.9+3915_daily_bin720.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.85
user 0.38
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.828       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.526       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4889       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .88485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.890       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7407       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23475E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.449       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .86498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7091       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.206       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.656       1.0000         .10000E-03   10000.    
    22 'norm      '    .63921       1.0000         .10000E-03   10000.    
    23 'norm      '    9.0159       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2403       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70350       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2761       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=   7778.981     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3176 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.828        11.110       -.59161E-06   -.40646E-04
   2  Prefactor     16.528        14.962        .44465E-06   -.21955E-04
   3  norm          6.4890        11.570       -.14822E-05   -.90755E-04
   4  norm          .10000E-03    .86841       -.15413E-07** at limit **
   5  Prefactor     .10000E-03    3.8019       -.48314E-08** at limit **
   6  Prefactor     .10000E-03    17.249        .29515E-07** at limit **
   7  Prefactor     .10000E-03    2.2454       -.65176E-07** at limit **
   8  Prefactor     .10000E-03    13.189       -.15017E-06** at limit **
   9  norm          .88496        .45201       -.42088E-08   -.27376E-04
  10  Prefactor     16.885        28.359        .13102E-04   -.37753E-07
  11  Prefactor     3.7405        30.799       -.94996E-05   -.45154E-04
  12  Prefactor     .10089E-03    4.9766       -.68538E-07** at limit **
  13  Prefactor     1.9844        1.8429       -.40527E-07    .33329E-06
  14  Prefactor     .10000E-03    6.1290        .13176E-08** at limit **
  15  Prefactor     .10000E-03    2.4289       -.28322E-07** at limit **
  16  norm          27.448        7.7397       -.78000E-06    .42917E-04
  17  Prefactor     .86586        1.7157       -.29093E-06   -.14073E-02
  18  Prefactor     2.7091        2.9173       -.12405E-06   -.35906E-03
  19  Prefactor     29.206        27.859       -.22654E-05   -.16350E-06
  20  Prefactor     .10000E-03    1.7173        .10933E-06** at limit **
  21  Prefactor     16.655        17.555        .64327E-06   -.19052E-04
  22  norm          .63897        .53582       -.32132E-07   -.94585E-03
  23  norm          9.0153        7.9325       -.15480E-05   -.66577E-04
  24  Prefactor     4.2395        2.5329        .73659E-07   -.98785E-04
  25  Normalizat    .70341        .17385        .88717E-06   -.63613E-05
  26  Prefactor     1.2762        .14614       -.14792E-06    .82540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8283
  Prefactor  = 16.5284
  norm       = 6.489
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.884959
  Prefactor  = 16.8851
  Prefactor  = 3.74054
  Prefactor  = 0.000100894
  Prefactor  = 1.98437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.4484
  Prefactor  = 0.865865
  Prefactor  = 2.70914
  Prefactor  = 29.2058
  Prefactor  = 0.0001
  Prefactor  = 16.6553
  norm       = 0.638968
  norm       = 9.01528
  Prefactor  = 4.23951
  Normalizat = 0.703413
  Prefactor  = 1.2762
 **********
 **   18 **HESSE 
 **********

 FCN=   7778.981     FROM HESSE     STATUS=OK           478 CALLS     3654 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.828        11.117        .11648E-03   -1.5020    
   2  Prefactor     16.528        14.961        .98522E-04   -1.4895    
   3  norm          6.4890        11.590        .15755E-03   -1.5198    
   4  norm          .10000E-03    .88444        .80246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8370        .16787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7180        .25267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .88496        .44544        .40568E-04   -1.5520    
  10  Prefactor     16.885        27.979        .97455E-04   -1.4886    
  11  Prefactor     3.7405        31.240        .20876E-03   -1.5321    
  12  Prefactor     .10089E-03    6.9508        .67014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9844        1.8418        .10968E-03   -1.5426    
  14  Prefactor     .10000E-03    6.1339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4315        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.448        7.6843        .76466E-04   -1.4660    
  17  Prefactor     .86586        1.4683        .15652E-02   -1.5522    
  18  Prefactor     2.7091        2.9103        .15195E-03   -1.5379    
  19  Prefactor     29.206        27.831        .74136E-04   -1.4627    
  20  Prefactor     .10000E-03    3.2281        .21663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.655        17.493        .98136E-04   -1.4892    
  22  norm          .63897        .50367        .56290E-03   -1.5548    
  23  norm          9.0153        7.9267        .13348E-03   -1.5107    
  24  Prefactor     4.2395        2.4906        .10142E-03   -1.5296    
  25  Normalizat    .70341        .19262        .31278E-03   -1.0376    
  26  Prefactor     1.2762        .16516        .20710E-03   -.84018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24777e-10
Minuit parameter uncertainties:
  1  11.1194
  2  14.9647
  3  11.5937
  4  6.57617e-07
  5  4.12642e-06
  6  7.86812e-06
  7  4.63865e-06
  8  4.92568e-05
  9  0.44544
  10  28.0008
  11  21.6348
  12  0.00498691
  13  1.84188
  14  7.89616e-08
  15  1.9045e-07
  16  7.68456
  17  1.46835
  18  2.9104
  19  27.8436
  20  1.96087e-05
  21  17.4984
  22  0.503674
  23  7.92765
  24  2.49068
  25  0.192808
  26  0.16523
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.984e+00  1.842e+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:  1.276e+00  1.652e-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.034e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 7.40e-06

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) = 7778.68177529
delta logL = 0.298894027087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7778.67744084
delta logL = 0.303228475423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8109       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7455       1.0000          .0000       10.000    
     3 'Normalizat'    .72087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2696       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=   7778.677     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8107        2.0895        .77616E-02   -.29214E-03
   2  Index         1.7454        .63703        .27496       -.54970E-04
   3  Normalizat    .72082        .16511        .69873E-01    .31638E-04
   4  Prefactor     1.2697        .14301        .33161E-01   -.81940E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81071
  Index      = 1.74545
  Normalizat = 0.720819
  Prefactor  = 1.2697
 **********
 **   18 **HESSE 
 **********

 FCN=   7778.677     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8107        2.1134        .11637E-03   -1.5439    
   2  Index         1.7454        .81375        .12535E-01   -.70878    
   3  Normalizat    .72082        .18559        .30922E-03   -1.0308    
   4  Prefactor     1.2697        .16148        .20756E-03   -.84213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26312e-09
Minuit parameter uncertainties:
  1  2.11344
  2  0.820115
  3  0.185755
  4  0.161544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457406': 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) = 7778.67744078
delta logL = 0.30322853221

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.811e+00  2.113e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.745e+00  8.201e-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.270e+00  1.615e-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.208e-01  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 126.236 39.257
Photon Index (Free Index): 1.75 +/- 0.82
Photon Flux (Free Index): 1.01e-08 +/- 1.65e-08
Energy Flux (Free Index): 1.44e-05 +/- 2.35e-05

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/457406/cmap_HighResolution_425952001_426211201_4FGL_J0824.9+3915_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='1.44e-05', photon_flux_error='2.35e-08', dlogl='3.03e-01', energy_flux='7.97e-06', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-08-29 19:44:38.912612', photon_index_error2='0.82', photon_index2='1.75', ts='4.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='0.70', time_epoch_completed='1630291478.91', return_code='0', job_id='457406', GAL2='1.27', EG2='0.72', return_code2='0', energy_flux_error='7.40e-06', photon_flux_error2='1.65e-08', ts2='4.60', photon_index='2.43' WHERE bin_id='720' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:44:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 457406: <4FGL_J0824.9+3915_daily_bin720> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin720> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 29 19:30:27 2021
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:30:28 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:30:28 2021
Terminated at Sun Aug 29 19:44:39 2021
Results reported at Sun Aug 29 19:44:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin720 126.236 39.2574 425952001 426211201 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 :                                   807.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

