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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1063
RA = 126.236, Dec = 39.2574
tmin = 514857601, tmax = 515116801
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='460645', job_status='RUN', time_executed='2021-08-29 19:41:02.145713', time_epoch_executed='1630291262.15' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460645/ft1_4FGL_J0824.9+3915_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460645/ft2_4FGL_J0824.9+3915_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460645/ft1_4FGL_J0824.9+3915_daily_bin1063.fits outfile=/scratch/kocevski/460645/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1063.fits ra=126.236 dec=39.2574 rad=12.0 tmin=514857601.0 tmax=515116801.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.10
user 3.24
sys 1.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460645/ft2_4FGL_J0824.9+3915_daily_bin1063.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/460645/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1063.fits evtable="EVENTS" outfile="/scratch/kocevski/460645/ft1_filtered_4FGL_J0824.9+3915_daily_bin1063.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 1.75
user 0.31
sys 1.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460645/ft1_filtered_4FGL_J0824.9+3915_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/460645/ft2_4FGL_J0824.9+3915_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/460645/ltcube_514857601_515116801_4FGL_J0824.9+3915_daily_bin1063.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/460645/ft2_4FGL_J0824.9+3915_daily_bin1063.fits
.....................!
real 14.01
user 11.52
sys 1.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460645/ft1_filtered_4FGL_J0824.9+3915_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/460645/ft2_4FGL_J0824.9+3915_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/460645/ltcube_514857601_515116801_4FGL_J0824.9+3915_daily_bin1063.fits outfile=/scratch/kocevski/460645/expmap_514857601_515116801_4FGL_J0824.9+3915_daily_bin1063.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/460645/ltcube_514857601_515116801_4FGL_J0824.9+3915_daily_bin1063.fits
.....................!
real 198.84
user 185.65
sys 8.56

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/460645/ft1_filtered_4FGL_J0824.9+3915_daily_bin1063.fits scfile=/scratch/kocevski/460645/ft2_4FGL_J0824.9+3915_daily_bin1063.fits outfile=/scratch/kocevski/460645/cmap_514857601_515116801_4FGL_J0824.9+3915_daily_bin1063.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.68
user 0.35
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460645/ft1_filtered_4FGL_J0824.9+3915_daily_bin1063.fits scfile=/scratch/kocevski/460645/ft2_4FGL_J0824.9+3915_daily_bin1063.fits outfile=/scratch/kocevski/460645/cmap_HighResolution_514857601_515116801_4FGL_J0824.9+3915_daily_bin1063.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.66
user 0.32
sys 1.08

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.753       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.825       1.0000         .10000E-03   10000.    
     3 'norm      '    44.610       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1493       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-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 '    1.2649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5998       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.606       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8025       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14681E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3481       1.0000         .10000E-03   10000.    
    23 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12214E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4380       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .67255       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=   7239.514     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3152 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.755        15.999       -.99798E-07    .65733E-06
   2  Prefactor     27.828        18.607       -.78706E-07   -.30365E-06
   3  norm          44.612        16.162       -.48870E-07   -.27919E-06
   4  norm          .10000E-03    .79922        .19171E-07** at limit **
   5  Prefactor     .10000E-03    8.3991        .34732E-06** at limit **
   6  Prefactor     45.626        43.077       -.18631E-06   -.93864E-06
   7  Prefactor     1.0947        .26256        .10137E-07   -.53911E-03
   8  Prefactor     .10000E-03    10.478        .74527E-06** at limit **
   9  norm          1.6914        .70806        .50190E-07   -.58053E-03
  10  Prefactor     .10000E-03    10.137       -.11161E-05** at limit **
  11  Prefactor     13.755        15.098       -.55727E-07    .14917E-05
  12  Prefactor     .10000E-03    35.682        .51955E-06** at limit **
  13  Prefactor     3.1488        2.6208        .21014E-06   -.29394E-03
  14  Prefactor     .10000E-03    32.878       -.99976E-06** at limit **
  15  Prefactor     .10000E-03    4.1645       -.85723E-07** at limit **
  16  norm          .10000E-03    1.6494       -.29046E-07** at limit **
  17  Prefactor     1.2656        3.1435       -.34767E-06   -.30763E-04
  18  Prefactor     4.5996        3.3494       -.16986E-07    .13111E-04
  19  Prefactor     49.448        41.674        .57070E-07    .55008E-04
  20  Prefactor     6.8039        4.5550        .73268E-06    .11423E-03
  21  Prefactor     .10000E-03    65.476       -.16248E-05** at limit **
  22  norm          2.3487        .87758        .64290E-07    .19969E-03
  23  norm          .10000E-03    4.1057       -.15848E-06** at limit **
  24  Prefactor     .10000E-03    12.140       -.29690E-05** at limit **
  25  Normalizat    1.4378        .19065        .60840E-06   -.12813E-05
  26  Prefactor     .67261        .14009       -.21566E-06    .40818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7547
  Prefactor  = 27.8279
  norm       = 44.6123
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.6258
  Prefactor  = 1.09473
  Prefactor  = 0.0001
  norm       = 1.69139
  Prefactor  = 0.0001
  Prefactor  = 13.755
  Prefactor  = 0.0001
  Prefactor  = 3.14879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.26556
  Prefactor  = 4.59959
  Prefactor  = 49.4485
  Prefactor  = 6.80386
  Prefactor  = 0.0001
  norm       = 2.34867
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43781
  Prefactor  = 0.672612
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.514     FROM HESSE     STATUS=OK           460 CALLS     3612 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.755        16.013        .92490E-04   -1.4842    
   2  Prefactor     27.828        18.609        .75949E-04   -1.4652    
   3  norm          44.612        16.170        .60026E-04   -1.4371    
   4  norm          .10000E-03    .80902        .74266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.626        43.148        .59362E-04   -1.4356    
   7  Prefactor     1.0947        6.9718        .19785E-02   -1.5499    
   8  Prefactor     .10000E-03    10.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6914        .72387        .43890E-04   -1.5448    
  10  Prefactor     .10000E-03    10.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.755        15.102        .10800E-03   -1.4966    
  12  Prefactor     .10000E-03    36.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1488        2.6104        .11928E-03   -1.5353    
  14  Prefactor     .10000E-03    33.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1757        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6535        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2656        3.1229        .21954E-03   -1.5483    
  18  Prefactor     4.5996        3.3523        .12916E-03   -1.5279    
  19  Prefactor     49.448        41.600        .56937E-04   -1.4300    
  20  Prefactor     6.8039        4.5939        .13570E-03   -1.5186    
  21  Prefactor     .10000E-03    67.609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3487        .87194        .45206E-04   -1.5401    
  23  norm          .10000E-03    4.1236        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.017        .19592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4378        .22661        .25224E-03   -.79541    
  26  Prefactor     .67261        .16282        .27370E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38511e-10
Minuit parameter uncertainties:
  1  16.0168
  2  18.6128
  3  16.1714
  4  7.42401e-07
  5  3.32359e-05
  6  43.1777
  7  5.52598
  8  1.85469e-06
  9  0.723872
  10  4.34244e-06
  11  15.106
  12  0.000266275
  13  2.61047
  14  4.05459e-05
  15  2.17382e-06
  16  7.2427e-08
  17  3.12334
  18  3.35242
  19  41.6247
  20  4.5941
  21  0.000285688
  22  0.871948
  23  3.14568e-06
  24  4.77401e-06
  25  0.226771
  26  0.162931
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  3.149e+00  2.610e+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:  6.726e-01  1.629e-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.438e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.02e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.05e-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) = 7239.33047495
delta logL = 0.183734070529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7239.32702998
delta logL = 0.187179042914

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3015       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0054       1.0000          .0000       10.000    
     3 'Normalizat'    1.4539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66689       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=   7239.327     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2987        124.33        .55704E-02   -.75545E-05
   2  Index         2.0047        5.1915        .25758       -.73329E-05
   3  Normalizat    1.4540        .15964        .56780E-01   -.12314E-04
   4  Prefactor     .66685        .85184E-01    .62124E-01    .19944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.29872
  Index      = 2.0047
  Normalizat = 1.45401
  Prefactor  = 0.666853
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.327     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2987        3.0407        .13387E-03   -1.5345    
   2  Index         2.0047        .69756        .10445E-01   -.64233    
   3  Normalizat    1.4540        .20513        .25108E-03   -.79079    
   4  Prefactor     .66685        .15819        .27482E-03   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38041e-13
Minuit parameter uncertainties:
  1  3.04088
  2  0.701136
  3  0.205248
  4  0.158295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460645': 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) = 7239.32702915
delta logL = 0.187179871635

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  3.299e+00  3.041e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.005e+00  7.011e-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:  6.669e-01  1.583e-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.454e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.00 +/- 0.70
Photon Flux (Free Index): 2.40e-08 +/- 3.28e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.85e-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/460645/cmap_HighResolution_514857601_515116801_4FGL_J0824.9+3915_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.02e-08', energy_flux2='1.64e-05', photon_flux_error='3.33e-08', dlogl='1.87e-01', energy_flux='1.26e-05', photon_flux2='2.40e-08', job_status='DONE', time_completed='2021-08-29 19:54:32.271599', photon_index_error2='0.70', photon_index2='2.00', ts='4.19', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.44', time_epoch_completed='1630292072.27', return_code='0', job_id='460645', GAL2='0.67', EG2='1.45', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.28e-08', ts2='4.57', photon_index='2.43' WHERE bin_id='1063' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:54:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 460645: <4FGL_J0824.9+3915_daily_bin1063> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1063 126.236 39.2574 514857601 515116801 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 :                                   813.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            849 sec.

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

