/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 65 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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0824.9+3915_daily_bin8
RA = 126.236, Dec = 39.2574
tmin = 241401601, tmax = 241660801
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='452657', job_status='RUN', time_executed='2021-08-29 19:18:54.453346', time_epoch_executed='1630289934.45' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452657/ft1_4FGL_J0824.9+3915_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452657/ft2_4FGL_J0824.9+3915_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452657/ft1_4FGL_J0824.9+3915_daily_bin8.fits outfile=/scratch/kocevski/452657/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin8.fits ra=126.236 dec=39.2574 rad=12.0 tmin=241401601.0 tmax=241660801.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 6.29
user 1.25
sys 4.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452657/ft2_4FGL_J0824.9+3915_daily_bin8.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/452657/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/452657/ft1_filtered_4FGL_J0824.9+3915_daily_bin8.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 5.20
user 0.34
sys 4.72

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452657/ft1_filtered_4FGL_J0824.9+3915_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/452657/ft2_4FGL_J0824.9+3915_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/452657/ltcube_241401601_241660801_4FGL_J0824.9+3915_daily_bin8.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/452657/ft2_4FGL_J0824.9+3915_daily_bin8.fits
.....................!
real 17.74
user 12.17
sys 5.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452657/ft1_filtered_4FGL_J0824.9+3915_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/452657/ft2_4FGL_J0824.9+3915_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/452657/ltcube_241401601_241660801_4FGL_J0824.9+3915_daily_bin8.fits outfile=/scratch/kocevski/452657/expmap_241401601_241660801_4FGL_J0824.9+3915_daily_bin8.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/452657/ltcube_241401601_241660801_4FGL_J0824.9+3915_daily_bin8.fits
.....................!
real 195.93
user 185.14
sys 10.07

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/452657/ft1_filtered_4FGL_J0824.9+3915_daily_bin8.fits scfile=/scratch/kocevski/452657/ft2_4FGL_J0824.9+3915_daily_bin8.fits outfile=/scratch/kocevski/452657/cmap_241401601_241660801_4FGL_J0824.9+3915_daily_bin8.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 5.08
user 0.36
sys 4.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452657/ft1_filtered_4FGL_J0824.9+3915_daily_bin8.fits scfile=/scratch/kocevski/452657/ft2_4FGL_J0824.9+3915_daily_bin8.fits outfile=/scratch/kocevski/452657/cmap_HighResolution_241401601_241660801_4FGL_J0824.9+3915_daily_bin8.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 5.05
user 0.36
sys 4.63

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4746       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.615       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4810       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6359       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8922       1.0000         .10000E-03   10000.    
    16 'norm      '    18.934       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5877       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17472E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.582       1.0000         .10000E-03   10000.    
    22 'norm      '    .92360       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3236       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86182       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94717       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=   6138.988     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3078 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.979        12.646        .11556E-06    .62960E-05
   2  Prefactor     9.4730        20.800        .60984E-07    .11706E-04
   3  norm          .10000E-03    2.7903       -.85442E-07** at limit **
   4  norm          .10000E-03    .98423        .16397E-08** at limit **
   5  Prefactor     5.2399        7.8877        .17829E-05    .39250E-03
   6  Prefactor     44.613        51.760       -.53088E-06    .11962E-04
   7  Prefactor     .10000E-03    2.7606        .57618E-06** at limit **
   8  Prefactor     .10000E-03    7.8993        .13138E-05** at limit **
   9  norm          1.4810        .65055       -.12038E-08    .23192E-03
  10  Prefactor     17.042        21.657        .11886E-06   -.11805E-05
  11  Prefactor     .10000E-03    5.7978       -.10255E-05** at limit **
  12  Prefactor     .10000E-03    9.3703       -.14940E-05** at limit **
  13  Prefactor     5.6358        3.2468        .30550E-06    .34578E-03
  14  Prefactor     40.848        28.196        .23108E-06    .47910E-04
  15  Prefactor     6.8933        10.623        .12300E-05    .22537E-03
  16  norm          18.933        8.4031       -.21325E-07    .22707E-06
  17  Prefactor     3.5879        2.7539        .19053E-06    .95252E-04
  18  Prefactor     .10000E-03    1.4647       -.44739E-07** at limit **
  19  Prefactor     .10000E-03    17.306        .83733E-06** at limit **
  20  Prefactor     .10001E-03    2.6095       -.14715E-05** at limit **
  21  Prefactor     12.583        17.865       -.10731E-05    .36465E-10
  22  norm          .92373        .63231       -.19112E-07    .14466E-03
  23  norm          .10000E-03    3.6151        .26493E-06** at limit **
  24  Prefactor     4.3244        2.6425       -.16883E-07    .14443E-03
  25  Normalizat    .86183        .18319       -.30226E-06    .11283E-03
  26  Prefactor     .94718        .14469       -.15284E-06    .58697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9795
  Prefactor  = 9.47297
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.23989
  Prefactor  = 44.613
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.481
  Prefactor  = 17.0423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63584
  Prefactor  = 40.8479
  Prefactor  = 6.89327
  norm       = 18.9334
  Prefactor  = 3.5879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 12.583
  norm       = 0.923733
  norm       = 0.0001
  Prefactor  = 4.32439
  Normalizat = 0.861832
  Prefactor  = 0.947184
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.988     FROM HESSE     STATUS=OK           466 CALLS     3544 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.979        12.651        .97197E-04   -1.4884    
   2  Prefactor     9.4730        20.762        .13020E-03   -1.5092    
   3  norm          .10000E-03    2.7933        .12781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .98923        .75893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2399        8.2016        .87799E-03   -1.5250    
   6  Prefactor     44.613        51.812        .60023E-04   -1.4371    
   7  Prefactor     .10000E-03    9.0784        .23523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4810        .64107        .39510E-04   -1.5465    
  10  Prefactor     17.042        21.653        .97018E-04   -1.4882    
  11  Prefactor     .10000E-03    5.7823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6358        3.2442        .10133E-03   -1.5233    
  14  Prefactor     40.848        28.180        .62717E-04   -1.4429    
  15  Prefactor     6.8933        10.761        .76411E-03   -1.5183    
  16  norm          18.933        8.4016        .92047E-04   -1.4837    
  17  Prefactor     3.5879        2.7472        .10779E-03   -1.5329    
  18  Prefactor     .10000E-03    1.4874        .92569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    6.7692        .18019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.583        17.808        .11293E-03   -1.4998    
  22  norm          .92373        .61060        .49053E-03   -1.5516    
  23  norm          .10000E-03    3.6334        .14556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.3244        2.6152        .93780E-04   -1.5292    
  25  Normalizat    .86183        .20663        .27402E-03   -.97815    
  26  Prefactor     .94718        .16478        .21914E-03   -.94511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94716e-09
Minuit parameter uncertainties:
  1  12.6528
  2  20.7775
  3  2.45891e-07
  4  8.59503e-07
  5  8.20334
  6  51.8638
  7  0.000201882
  8  1.15896e-05
  9  0.64107
  10  21.663
  11  6.65669e-06
  12  5.44248e-05
  13  3.2443
  14  28.1887
  15  10.7641
  16  8.40212
  17  2.74732
  18  2.14067e-06
  19  6.30791e-05
  20  0.000527242
  21  17.8154
  22  0.610608
  23  2.25168e-05
  24  2.61528
  25  0.206816
  26  0.16487
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  5.636e+00  3.244e+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:  9.472e-01  1.649e-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:  8.618e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.20e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.30e-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) = 6138.9712312
delta logL = 0.0166756670342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6138.95933669
delta logL = 0.0285701816238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0350       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5584       1.0000          .0000       10.000    
     3 'Normalizat'    .85517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95082       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=   6138.959     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0355        54.075        .44801E-02    .90301E-04
   2  Index         2.5583        3.3443        .14975        .99908E-04
   3  Normalizat    .85507        .79966E-01    .44326E-01    .16877E-04
   4  Prefactor     .95090        .58620E-01    .45649E-01    .84708E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.03547
  Index      = 2.55832
  Normalizat = 0.855074
  Prefactor  = 0.950897
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.959     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0355        4.1414        .93955E-04   -1.5259    
   2  Index         2.5583        .57229        .55542E-02   -.51018    
   3  Normalizat    .85507        .19644        .27495E-03   -.98057    
   4  Prefactor     .95090        .16291        .21876E-03   -.94385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68667e-11
Minuit parameter uncertainties:
  1  4.14167
  2  0.573941
  3  0.196599
  4  0.162993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452657': 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) = 6138.95933652
delta logL = 0.0285703461213

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  5.035e+00  4.142e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.558e+00  5.739e-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:  9.509e-01  1.630e-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:  8.551e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.56 +/- 0.57
Photon Flux (Free Index): 7.75e-08 +/- 4.78e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.36e-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/452657/cmap_HighResolution_241401601_241660801_4FGL_J0824.9+3915_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.20e-08', energy_flux2='2.12e-05', photon_flux_error='4.14e-08', dlogl='2.86e-02', energy_flux='2.26e-05', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-08-29 19:31:17.709646', photon_index_error2='0.57', photon_index2='2.56', ts='5.83', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.86', time_epoch_completed='1630290677.71', return_code='0', job_id='452657', GAL2='0.95', EG2='0.86', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.78e-08', ts2='5.89', photon_index='2.43' WHERE bin_id='8' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:31:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 452657: <4FGL_J0824.9+3915_daily_bin8> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin8> 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) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:15:43 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:43 2021
Terminated at Sun Aug 29 19:31:19 2021
Results reported at Sun Aug 29 19:31:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin8 126.236 39.2574 241401601 241660801 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 :                                   810.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

