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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin789
RA = 126.236, Dec = 39.2574
tmin = 443836801, tmax = 444096001
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='457506', job_status='RUN', time_executed='2021-08-29 19:31:13.028525', time_epoch_executed='1630290673.03' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457506/ft1_4FGL_J0824.9+3915_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457506/ft2_4FGL_J0824.9+3915_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457506/ft1_4FGL_J0824.9+3915_daily_bin789.fits outfile=/scratch/kocevski/457506/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin789.fits ra=126.236 dec=39.2574 rad=12.0 tmin=443836801.0 tmax=444096001.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.66
user 3.21
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/457506/ft1_filtered_4FGL_J0824.9+3915_daily_bin789.fits" evtable="EVENTS" scfile=/scratch/kocevski/457506/ft2_4FGL_J0824.9+3915_daily_bin789.fits sctable="SC_DATA" outfile=/scratch/kocevski/457506/ltcube_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.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/457506/ft2_4FGL_J0824.9+3915_daily_bin789.fits
.....................!
real 13.05
user 11.49
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457506/ft1_filtered_4FGL_J0824.9+3915_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/457506/ft2_4FGL_J0824.9+3915_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/457506/ltcube_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.fits outfile=/scratch/kocevski/457506/expmap_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.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/457506/ltcube_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.fits
.....................!
real 198.37
user 185.63
sys 5.69

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/457506/ft1_filtered_4FGL_J0824.9+3915_daily_bin789.fits scfile=/scratch/kocevski/457506/ft2_4FGL_J0824.9+3915_daily_bin789.fits outfile=/scratch/kocevski/457506/cmap_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.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 1.19
user 0.38
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457506/ft1_filtered_4FGL_J0824.9+3915_daily_bin789.fits scfile=/scratch/kocevski/457506/ft2_4FGL_J0824.9+3915_daily_bin789.fits outfile=/scratch/kocevski/457506/cmap_HighResolution_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.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 1.16
user 0.38
sys 0.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1819       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.693       1.0000         .10000E-03   10000.    
     3 'norm      '    4.5920       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4544       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .82629       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8184       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.490       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.570       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5080       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.935       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.711       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0979       1.0000         .10000E-03   10000.    
    23 'norm      '    6.2290       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .62394       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1595       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=   6322.979     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2667 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1830        10.485        .17254E-06   -.47426E-04
   2  Prefactor     11.691        16.127        .31204E-07   -.34900E-04
   3  norm          4.5869        8.4590        .50811E-05   -.68995E-03
   4  norm          .10000E-03    1.3831        .48366E-07** at limit **
   5  Prefactor     .10000E-03    7.1910       -.11979E-06** at limit **
   6  Prefactor     .10000E-03    34.900        .29190E-06** at limit **
   7  Prefactor     2.4548        4.5227        .61242E-06   -.22480E-04
   8  Prefactor     .10000E-03    8.8089        .83987E-06** at limit **
   9  norm          .82621        .50850       -.17116E-07   -.21170E-03
  10  Prefactor     .10000E-03    10.199       -.99638E-06** at limit **
  11  Prefactor     .10000E-03    12.572        .42863E-06** at limit **
  12  Prefactor     .10000E-03    4.1911       -.54464E-10** at limit **
  13  Prefactor     1.8183        2.1478        .10029E-06   -.12421E-03
  14  Prefactor     41.490        30.646       -.37432E-06   -.27635E-05
  15  Prefactor     16.567        13.784        .72529E-06   -.14995E-03
  16  norm          .10000E-03    2.0716        .11248E-07** at limit **
  17  Prefactor     1.4236        2.4796        .35551E-06   -.13694E-03
  18  Prefactor     2.5079        2.4089       -.16268E-07   -.46381E-04
  19  Prefactor     10.912        27.195       -.80469E-05   -.43272E-03
  20  Prefactor     .10000E-03    .64807       -.24757E-07** at limit **
  21  Prefactor     10.712        11.496        .68171E-06    .57787E-04
  22  norm          1.0979        .50755       -.92637E-09   -.40225E-04
  23  norm          6.2284        6.5790        .20919E-06   -.57331E-05
  24  Prefactor     .10000E-03    .86491        .22830E-08** at limit **
  25  Normalizat    .62406        .17033       -.32821E-06   -.48303E-04
  26  Prefactor     1.1594        .14265       -.52991E-06   -.91653E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18304
  Prefactor  = 11.691
  norm       = 4.58688
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45479
  Prefactor  = 0.0001
  norm       = 0.826212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8183
  Prefactor  = 41.4899
  Prefactor  = 16.5673
  norm       = 0.0001
  Prefactor  = 1.42357
  Prefactor  = 2.50787
  Prefactor  = 10.9121
  Prefactor  = 0.0001
  Prefactor  = 10.7116
  norm       = 1.09786
  norm       = 6.22843
  Prefactor  = 0.0001
  Normalizat = 0.624061
  Prefactor  = 1.15941
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.979     FROM HESSE     STATUS=OK           460 CALLS     3127 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1830        10.491        .19708E-03   -1.5299    
   2  Prefactor     11.691        16.125        .11715E-03   -1.5024    
   3  norm          4.5869        8.8630        .93919E-03   -1.5280    
   4  norm          .10000E-03    1.4223        .18258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4548        4.4735        .21203E-03   -1.5395    
   8  Prefactor     .10000E-03    8.8416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .82621        .49786        .41942E-04   -1.5526    
  10  Prefactor     .10000E-03    10.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1950        .15891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8183        2.1241        .12066E-03   -1.5438    
  14  Prefactor     41.490        30.631        .62233E-04   -1.4419    
  15  Prefactor     16.567        13.800        .49196E-03   -1.4894    
  16  norm          .10000E-03    2.0784        .11175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4236        2.4578        .15652E-03   -1.5469    
  18  Prefactor     2.5079        2.4141        .11770E-03   -1.5391    
  19  Prefactor     10.912        29.651        .12115E-03   -1.5047    
  20  Prefactor     .10000E-03    .65052        .62492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.712        11.531        .12242E-03   -1.5053    
  22  norm          1.0979        .50435        .37297E-04   -1.5498    
  23  norm          6.2284        6.5730        .16084E-03   -1.5209    
  24  Prefactor     .10000E-03    .87518        .72174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .62406        .19132        .29700E-03   -1.0697    
  26  Prefactor     1.1594        .16153        .19426E-03   -.87590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52856e-09
Minuit parameter uncertainties:
  1  10.4952
  2  16.131
  3  8.86558
  4  1.22727e-06
  5  1.89803e-05
  6  5.08124e-05
  7  4.47415
  8  0.000100783
  9  0.497862
  10  0.000134897
  11  5.45612e-05
  12  2.40085e-06
  13  2.12417
  14  30.6423
  15  13.8025
  16  5.84806e-07
  17  2.45795
  18  2.41419
  19  29.6913
  20  1.80321e-06
  21  11.5334
  22  0.504354
  23  6.57377
  24  1.36549e-06
  25  0.191526
  26  0.161598
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.818e+00  2.124e+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.159e+00  1.616e-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:  6.241e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.32e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 7.30e-06 +/- 8.53e-06

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

Saving results to:
/scratch/kocevski/457506/likelihoodResults_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.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) = 6322.94971931
delta logL = 0.0292542157804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6322.93534259
delta logL = 0.0436309339075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4281       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7115       1.0000          .0000       10.000    
     3 'Normalizat'    .61857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1623       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=   6322.935     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4260        33.523        .90404E-02    .66131E-03
   2  Index         2.7121        3.5552        .22856        .65635E-04
   3  Normalizat    .61854        .41473E-01    .67387E-01    .29714E-04
   4  Prefactor     1.1624        .34736E-01    .35589E-01   -.59059E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.42598
  Index      = 2.71209
  Normalizat = 0.618544
  Prefactor  = 1.16237
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.935     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4260        2.4848        .10241E-03   -1.5469    
   2  Index         2.7121        1.1008        .81848E-02   -.47527    
   3  Normalizat    .61854        .18335        .29822E-03   -1.0720    
   4  Prefactor     1.1624        .15922        .19404E-03   -.87497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80959e-12
Minuit parameter uncertainties:
  1  2.48499
  2  1.11241
  3  0.18353
  4  0.159284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457506': 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) = 6322.93534211
delta logL = 0.0436314193748

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.426e+00  2.485e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.712e+00  1.112e+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:  1.162e+00  1.593e-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:  6.185e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.71 +/- 1.11
Photon Flux (Free Index): 2.78e-08 +/- 3.26e-08
Energy Flux (Free Index): 6.62e-06 +/- 7.97e-06

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/457506/cmap_HighResolution_443836801_444096001_4FGL_J0824.9+3915_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', comment='SUCCESS', photon_flux='2.32e-08', energy_flux2='6.62e-06', photon_flux_error='2.71e-08', dlogl='4.36e-02', energy_flux='7.30e-06', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-08-29 19:43:53.604627', photon_index_error2='1.11', photon_index2='2.71', ts='1.05', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='8.80e-08', energy_flux_error2='7.97e-06', EG='0.62', time_epoch_completed='1630291433.6', return_code='0', job_id='457506', GAL2='1.16', EG2='0.62', return_code2='0', energy_flux_error='8.53e-06', photon_flux_error2='3.26e-08', ts2='1.14', photon_index='2.43' WHERE bin_id='789' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:43:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 457506: <4FGL_J0824.9+3915_daily_bin789> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin789 126.236 39.2574 443836801 444096001 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 :                                   759.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

