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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin991
RA = 126.236, Dec = 39.2574
tmin = 496195201, tmax = 496454401
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='459160', job_status='RUN', time_executed='2021-08-29 19:36:05.045637', time_epoch_executed='1630290965.05' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='991'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459160/ft1_4FGL_J0824.9+3915_daily_bin991.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459160/ft2_4FGL_J0824.9+3915_daily_bin991.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459160/ft1_4FGL_J0824.9+3915_daily_bin991.fits outfile=/scratch/kocevski/459160/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin991.fits ra=126.236 dec=39.2574 rad=12.0 tmin=496195201.0 tmax=496454401.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 3.86
user 3.19
sys 0.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459160/ft1_filtered_4FGL_J0824.9+3915_daily_bin991.fits" evtable="EVENTS" scfile=/scratch/kocevski/459160/ft2_4FGL_J0824.9+3915_daily_bin991.fits sctable="SC_DATA" outfile=/scratch/kocevski/459160/ltcube_496195201_496454401_4FGL_J0824.9+3915_daily_bin991.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/459160/ft2_4FGL_J0824.9+3915_daily_bin991.fits
.....................!
real 14.36
user 11.66
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459160/ft1_filtered_4FGL_J0824.9+3915_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/459160/ft2_4FGL_J0824.9+3915_daily_bin991.fits sctable="SC_DATA" expcube=/scratch/kocevski/459160/ltcube_496195201_496454401_4FGL_J0824.9+3915_daily_bin991.fits outfile=/scratch/kocevski/459160/expmap_496195201_496454401_4FGL_J0824.9+3915_daily_bin991.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/459160/ltcube_496195201_496454401_4FGL_J0824.9+3915_daily_bin991.fits
.....................!
real 192.09
user 186.09
sys 5.50

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/459160/ft1_filtered_4FGL_J0824.9+3915_daily_bin991.fits scfile=/scratch/kocevski/459160/ft2_4FGL_J0824.9+3915_daily_bin991.fits outfile=/scratch/kocevski/459160/cmap_496195201_496454401_4FGL_J0824.9+3915_daily_bin991.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.00
user 0.38
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459160/ft1_filtered_4FGL_J0824.9+3915_daily_bin991.fits scfile=/scratch/kocevski/459160/ft2_4FGL_J0824.9+3915_daily_bin991.fits outfile=/scratch/kocevski/459160/cmap_HighResolution_496195201_496454401_4FGL_J0824.9+3915_daily_bin991.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.98
user 0.38
sys 0.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.266       1.0000         .10000E-03   10000.    
     3 'norm      '    52.428       1.0000         .10000E-03   10000.    
     4 'norm      '    8.5649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.831       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .78237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.010       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28610       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6457       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.924       1.0000         .10000E-03   10000.    
    22 'norm      '    .77124       1.0000         .10000E-03   10000.    
    23 'norm      '    .13437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9998       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0366       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87299       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=   7971.020     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3622 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.970        14.071        .42648E-06    .61993E-04
   2  Prefactor     32.268        18.406        .18834E-07   -.72524E-04
   3  norm          52.427        15.991        .42838E-06    .13613E-03
   4  norm          8.5652        3.2161        .48502E-07   -.15016E-04
   5  Prefactor     .10000E-03    3.3595       -.59567E-07** at limit **
   6  Prefactor     30.821        49.640       -.85503E-06   -.71472E-04
   7  Prefactor     4.7549        5.3287        .62764E-07   -.22419E-03
   8  Prefactor     .10000E-03    9.1074        .12424E-06** at limit **
   9  norm          .78235        .48256        .17234E-07    .13178E-03
  10  Prefactor     46.005        32.774        .79547E-06    .58535E-04
  11  Prefactor     .10000E-03    9.4582       -.68988E-07** at limit **
  12  Prefactor     .10000E-03    12.780        .29316E-07** at limit **
  13  Prefactor     6.4575        2.9742        .80626E-07   -.30697E-04
  14  Prefactor     .10000E-03    36.697       -.28404E-06** at limit **
  15  Prefactor     .10000E-03    5.4756       -.10159E-07** at limit **
  16  norm          .10000E-03    1.5637        .18328E-07** at limit **
  17  Prefactor     .28610        .95714        .28399E-06   -.39174E-03
  18  Prefactor     1.7350        2.3894        .89814E-07   -.46533E-04
  19  Prefactor     14.427        26.749       -.97697E-05   -.33933E-03
  20  Prefactor     4.6449        3.8025        .25814E-05   -.14294E-02
  21  Prefactor     14.997        24.521        .13857E-05    .43908E-03
  22  norm          .77123        .49304       -.88727E-07   -.47891E-03
  23  norm          .97325E-01    7.5643        .10639E-06    .14715E-04
  24  Prefactor     3.0009        3.0446       -.11260E-05   -.13419E-03
  25  Normalizat    1.0366        .17553       -.25478E-05    .93979E-04
  26  Prefactor     .87298        .13281        .89693E-06   -.13601E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9702
  Prefactor  = 32.2675
  norm       = 52.4272
  norm       = 8.56517
  Prefactor  = 0.0001
  Prefactor  = 30.8206
  Prefactor  = 4.75486
  Prefactor  = 0.0001
  norm       = 0.782351
  Prefactor  = 46.0047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.4575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.286098
  Prefactor  = 1.73501
  Prefactor  = 14.4269
  Prefactor  = 4.6449
  Prefactor  = 14.9971
  norm       = 0.771226
  norm       = 0.097325
  Prefactor  = 3.00086
  Normalizat = 1.0366
  Prefactor  = 0.872981
 **********
 **   18 **HESSE 
 **********

 FCN=   7971.020     FROM HESSE     STATUS=OK           468 CALLS     4090 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.970        14.075        .81815E-04   -1.4728    
   2  Prefactor     32.268        18.400        .70541E-04   -1.4571    
   3  norm          52.427        15.999        .55391E-04   -1.4259    
   4  norm          8.5652        3.2163        .94690E-04   -1.5123    
   5  Prefactor     .10000E-03    3.3648        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.821        49.776        .72160E-04   -1.4597    
   7  Prefactor     4.7549        5.3071        .18452E-03   -1.5272    
   8  Prefactor     .10000E-03    9.1098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .78235        .48139        .46100E-04   -1.5531    
  10  Prefactor     46.005        32.785        .59110E-04   -1.4350    
  11  Prefactor     .10000E-03    9.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4575        2.9713        .99104E-04   -1.5200    
  14  Prefactor     .10000E-03    36.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5698        .10902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .28610        1.0907        .15390E-02   -1.5601    
  18  Prefactor     1.7350        2.3688        .15736E-03   -1.5445    
  19  Prefactor     14.427        28.470        .10538E-03   -1.4948    
  20  Prefactor     4.6449        3.9889        .72762E-03   -1.5277    
  21  Prefactor     14.997        29.064        .10368E-03   -1.4933    
  22  norm          .77123        .48081        .48105E-04   -1.5532    
  23  norm          .97325E-01    15.485        .66035E-01   -1.5646    
  24  Prefactor     3.0009        3.0366        .14109E-03   -1.5361    
  25  Normalizat    1.0366        .20057        .27616E-03   -.91814    
  26  Prefactor     .87298        .15209        .24005E-03   -.97092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23038e-08
Minuit parameter uncertainties:
  1  14.0771
  2  18.4034
  3  16.0008
  4  3.21636
  5  9.75301e-06
  6  49.8435
  7  5.3076
  8  5.26463e-06
  9  0.481389
  10  32.7983
  11  4.09187e-06
  12  2.60269e-05
  13  2.97132
  14  3.08735e-05
  15  8.98567e-06
  16  1.80148e-06
  17  1.09074
  18  2.36894
  19  28.4968
  20  3.98911
  21  29.0917
  22  0.480814
  23  2.45463
  24  3.03672
  25  0.20072
  26  0.15216
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  6.457e+00  2.971e+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:  8.730e-01  1.522e-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.037e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.09
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 8.25e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.19e-05

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) = 7968.74152975
delta logL = 2.27814864018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7968.72483653
delta logL = 2.29484186812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6807       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6259       1.0000          .0000       10.000    
     3 'Normalizat'    1.0853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85435       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=   7968.725     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6815        3.3304        .38812E-02   -.16111E-03
   2  Index         1.6260        .27841        .16028       -.74484E-04
   3  Normalizat    1.0852        .16146        .61205E-01    .16319E-04
   4  Prefactor     .85432        .13026        .44420E-01    .17550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.68148
  Index      = 1.62604
  Normalizat = 1.08519
  Prefactor  = 0.854321
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.725     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6815        3.8174        .11167E-03   -1.5191    
   2  Index         1.6260        .34535        .65406E-02   -.74068    
   3  Normalizat    1.0852        .18427        .27070E-03   -.90229    
   4  Prefactor     .85432        .14879        .24241E-03   -.97756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51983e-12
Minuit parameter uncertainties:
  1  3.81754
  2  0.345859
  3  0.18438
  4  0.148858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459160': 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) = 7968.72483496
delta logL = 2.29484343435

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  6.681e+00  3.818e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.626e+00  3.459e-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:  8.543e-01  1.489e-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.085e+00  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.67
Ra Dec: 126.236 39.257
Photon Index (Free Index): 1.63 +/- 0.35
Photon Flux (Free Index): 3.43e-08 +/- 2.42e-08
Energy Flux (Free Index): 7.11e-05 +/- 5.76e-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/459160/cmap_HighResolution_496195201_496454401_4FGL_J0824.9+3915_daily_bin991.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.25e-08', energy_flux2='7.11e-05', photon_flux_error='3.79e-08', dlogl='2.29e+00', energy_flux='2.59e-05', photon_flux2='3.43e-08', job_status='DONE', time_completed='2021-08-29 19:50:26.051154', photon_index_error2='0.35', photon_index2='1.63', ts='14.09', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='5.76e-05', EG='1.04', time_epoch_completed='1630291826.05', return_code='0', job_id='459160', GAL2='0.85', EG2='1.09', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.42e-08', ts2='18.67', photon_index='2.43' WHERE bin_id='991' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 459160: <4FGL_J0824.9+3915_daily_bin991> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin991 126.236 39.2574 496195201 496454401 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 :                                   860.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

