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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin3
RA = 126.236, Dec = 39.2574
tmin = 240105601, tmax = 240364801
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='452649', job_status='RUN', time_executed='2021-08-29 19:16:38.090896', time_epoch_executed='1630289798.09' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452649/ft1_4FGL_J0824.9+3915_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452649/ft2_4FGL_J0824.9+3915_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452649/ft1_4FGL_J0824.9+3915_daily_bin3.fits outfile=/scratch/kocevski/452649/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin3.fits ra=126.236 dec=39.2574 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.42
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452649/ft1_filtered_4FGL_J0824.9+3915_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/452649/ft2_4FGL_J0824.9+3915_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/452649/ltcube_240105601_240364801_4FGL_J0824.9+3915_daily_bin3.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/452649/ft2_4FGL_J0824.9+3915_daily_bin3.fits
.....................!
real 13.61
user 13.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452649/ft1_filtered_4FGL_J0824.9+3915_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/452649/ft2_4FGL_J0824.9+3915_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/452649/ltcube_240105601_240364801_4FGL_J0824.9+3915_daily_bin3.fits outfile=/scratch/kocevski/452649/expmap_240105601_240364801_4FGL_J0824.9+3915_daily_bin3.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/452649/ltcube_240105601_240364801_4FGL_J0824.9+3915_daily_bin3.fits
.....................!
real 192.42
user 185.88
sys 4.92

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/452649/ft1_filtered_4FGL_J0824.9+3915_daily_bin3.fits scfile=/scratch/kocevski/452649/ft2_4FGL_J0824.9+3915_daily_bin3.fits outfile=/scratch/kocevski/452649/cmap_240105601_240364801_4FGL_J0824.9+3915_daily_bin3.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452649/ft1_filtered_4FGL_J0824.9+3915_daily_bin3.fits scfile=/scratch/kocevski/452649/ft2_4FGL_J0824.9+3915_daily_bin3.fits outfile=/scratch/kocevski/452649/cmap_HighResolution_240105601_240364801_4FGL_J0824.9+3915_daily_bin3.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8129       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16804E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.769       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23127       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3202       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.894       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.837       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .78443       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .93149       1.0000         .10000E-03   10000.    
    23 'norm      '    3.5013       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.8071       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2197       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87424       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=   6420.224     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3236 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9177       -.79586E-07** at limit **
   2  Prefactor     .10000E-03    16.583        .10663E-06** at limit **
   3  norm          7.8130        7.5349        .10869E-06   -.44550E-04
   4  norm          .10000E-03    .84768        .23471E-07** at limit **
   5  Prefactor     .10002E-03    6.8166        .19213E-05** at limit **
   6  Prefactor     53.895        45.187       -.24951E-05   -.26135E-03
   7  Prefactor     .10000E-03    1.9063        .37623E-07** at limit **
   8  Prefactor     .10000E-03    22.426       -.34522E-07** at limit **
   9  norm          2.5509        .81459       -.61879E-08   -.87343E-03
  10  Prefactor     .10000E-03    21.788       -.14331E-07** at limit **
  11  Prefactor     .57442        29.929        .44197E-05   -.32500E-03
  12  Prefactor     .10000E-03    6.9350       -.46673E-08** at limit **
  13  Prefactor     4.3200        3.0706        .11008E-06   -.14687E-03
  14  Prefactor     .10000E-03    20.074       -.12998E-06** at limit **
  15  Prefactor     14.896        11.868        .66231E-06   -.30324E-04
  16  norm          .10000E-03    3.6492       -.34603E-07** at limit **
  17  Prefactor     .10000E-03    1.6516       -.62297E-07** at limit **
  18  Prefactor     .49541        3.2248        .84738E-06   -.28479E-03
  19  Prefactor     29.771        35.376       -.43742E-06    .67015E-04
  20  Prefactor     .78553        3.2836        .26729E-05    .10575E-03
  21  Prefactor     .10000E-03    44.974        .10317E-04** at limit **
  22  norm          .93161        .74496       -.25392E-07   -.60469E-03
  23  norm          3.5057        7.9350        .13100E-06   -.14678E-03
  24  Prefactor     8.8078        3.8493       -.31752E-06   -.53021E-03
  25  Normalizat    1.2196        .19407       -.20358E-05   -.60163E-03
  26  Prefactor     .87434        .14973        .56503E-06   -.66711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.81299
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 53.8948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55094
  Prefactor  = 0.0001
  Prefactor  = 0.574415
  Prefactor  = 0.0001
  Prefactor  = 4.31999
  Prefactor  = 0.0001
  Prefactor  = 14.8964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.495407
  Prefactor  = 29.7711
  Prefactor  = 0.78553
  Prefactor  = 0.0001
  norm       = 0.93161
  norm       = 3.50569
  Prefactor  = 8.80783
  Normalizat = 1.21957
  Prefactor  = 0.874342
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.224     FROM HESSE     STATUS=OK           464 CALLS     3700 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8130        7.5360        .14346E-03   -1.5149    
   4  norm          .10000E-03    .85144        .72040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    28.448        .37102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.895        43.292        .54700E-04   -1.4238    
   7  Prefactor     .10000E-03    1.9177        .10798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5509        .81255        .38834E-04   -1.5389    
  10  Prefactor     .10000E-03    21.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57442        29.734        .11616       -1.5556    
  12  Prefactor     .10000E-03    6.9516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3200        3.0670        .11285E-03   -1.5292    
  14  Prefactor     .10000E-03    20.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.896        11.863        .51891E-03   -1.4936    
  16  norm          .10000E-03    3.6710        .14944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3743        .19852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .49541        6.5467        .27174E-02   -1.5567    
  19  Prefactor     29.771        35.024        .73349E-04   -1.4616    
  20  Prefactor     .78553        3.2144        .26532E-03   -1.5531    
  21  Prefactor     .10000E-03    44.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .93161        .70815        .58536E-03   -1.5515    
  23  norm          3.5057        7.9005        .21607E-03   -1.5333    
  24  Prefactor     8.8078        3.8246        .96192E-04   -1.5114    
  25  Normalizat    1.2196        .22392        .25534E-03   -.86000    
  26  Prefactor     .87434        .17390        .24005E-03   -.97044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37034e-09
Minuit parameter uncertainties:
  1  8.14737e-06
  2  2.05338e-05
  3  7.53695
  4  1.25758e-06
  5  0.00132377
  6  43.3172
  7  3.71676e-06
  8  1.14261e-05
  9  0.812554
  10  1.81555e-05
  11  8.26912
  12  4.50341e-06
  13  3.06709
  14  2.64889e-05
  15  11.8653
  16  5.22368e-06
  17  4.01385e-05
  18  3.60195
  19  35.0486
  20  3.17815
  21  0.000248987
  22  0.708154
  23  7.90288
  24  3.82467
  25  0.224099
  26  0.174013
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  4.320e+00  3.067e+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.743e-01  1.740e-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.220e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.38
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.23e-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) = 6420.05409731
delta logL = 0.170054670286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6420.05385243
delta logL = 0.170299550506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3882       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1324       1.0000          .0000       10.000    
     3 'Normalizat'    1.2321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86696       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6420.054     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3834        4.0184        .12789E-03    .19257E-02
   2  Index         2.1316        .49321        .72741E-02    .34014E-03
   3  Normalizat    1.2320        .21319        .25426E-03    .10910E-03
   4  Prefactor     .86710        .17309        .24093E-03   -.12873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38338
  Index      = 2.13159
  Normalizat = 1.23201
  Prefactor  = 0.867098
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.054     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3834        3.9791        .51155E-05   -1.5244    
   2  Index         2.1316        .48832        .29096E-03   -.61099    
   3  Normalizat    1.2320        .21335        .10170E-04   -.85619    
   4  Prefactor     .86710        .17322        .96371E-05   -.97300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14476e-09
Minuit parameter uncertainties:
  1  3.97933
  2  0.48948
  3  0.213501
  4  0.173326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452649': 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) = 6420.05384904
delta logL = 0.170302942561

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  5.383e+00  3.979e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.132e+00  4.895e-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.671e-01  1.733e-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.232e+00  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.13 +/- 0.49
Photon Flux (Free Index): 4.57e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.35e-05 +/- 2.16e-05

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/452649/cmap_HighResolution_240105601_240364801_4FGL_J0824.9+3915_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='2.35e-05', photon_flux_error='3.91e-08', dlogl='1.70e-01', energy_flux='1.74e-05', photon_flux2='4.57e-08', job_status='DONE', time_completed='2021-08-29 19:28:43.401521', photon_index_error2='0.49', photon_index2='2.13', ts='4.38', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.16e-05', EG='1.22', time_epoch_completed='1630290523.4', return_code='0', job_id='452649', GAL2='0.87', EG2='1.23', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.80e-08', ts2='4.72', photon_index='2.43' WHERE bin_id='3' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:28:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 452649: <4FGL_J0824.9+3915_daily_bin3> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin3> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 19:15:41 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:15:42 2021
Terminated at Sun Aug 29 19:28:44 2021
Results reported at Sun Aug 29 19:28:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin3 126.236 39.2574 240105601 240364801 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 :                                   722.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

