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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1159
RA = 126.236, Dec = 39.2574
tmin = 539740801, tmax = 540000001
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='460802', job_status='RUN', time_executed='2021-08-29 19:42:11.196611', time_epoch_executed='1630291331.2' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460802

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460802/ft1_4FGL_J0824.9+3915_daily_bin1159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460802/ft2_4FGL_J0824.9+3915_daily_bin1159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460802/ft1_4FGL_J0824.9+3915_daily_bin1159.fits outfile=/scratch/kocevski/460802/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1159.fits ra=126.236 dec=39.2574 rad=12.0 tmin=539740801.0 tmax=540000001.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 7.41
user 3.84
sys 3.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460802/ft1_filtered_4FGL_J0824.9+3915_daily_bin1159.fits" evtable="EVENTS" scfile=/scratch/kocevski/460802/ft2_4FGL_J0824.9+3915_daily_bin1159.fits sctable="SC_DATA" outfile=/scratch/kocevski/460802/ltcube_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.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/460802/ft2_4FGL_J0824.9+3915_daily_bin1159.fits
.....................!
real 15.15
user 11.33
sys 3.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460802/ft1_filtered_4FGL_J0824.9+3915_daily_bin1159.fits evtable="EVENTS" scfile=/scratch/kocevski/460802/ft2_4FGL_J0824.9+3915_daily_bin1159.fits sctable="SC_DATA" expcube=/scratch/kocevski/460802/ltcube_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.fits outfile=/scratch/kocevski/460802/expmap_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.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/460802/ltcube_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.fits
.....................!
real 195.03
user 185.25
sys 8.80

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/460802/ft1_filtered_4FGL_J0824.9+3915_daily_bin1159.fits scfile=/scratch/kocevski/460802/ft2_4FGL_J0824.9+3915_daily_bin1159.fits outfile=/scratch/kocevski/460802/cmap_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.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 3.74
user 0.37
sys 3.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460802/ft1_filtered_4FGL_J0824.9+3915_daily_bin1159.fits scfile=/scratch/kocevski/460802/ft2_4FGL_J0824.9+3915_daily_bin1159.fits outfile=/scratch/kocevski/460802/cmap_HighResolution_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.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 3.71
user 0.39
sys 3.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14607E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5764       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8676       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4265       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6098       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1510       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.979       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1926       1.0000         .10000E-03   10000.    
    23 'norm      '    13.748       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4990       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67096       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1391       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=   6403.625     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3108 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1303        7.6704       -.79531E-07   -.32704E-04
   2  Prefactor     .10000E-03    3.2052        .57437E-07** at limit **
   3  norm          .10000E-03    17.842        .26587E-05** at limit **
   4  norm          .10005E-03    1.2221       -.28363E-06** at limit **
   5  Prefactor     .10000E-03    3.2923       -.65460E-07** at limit **
   6  Prefactor     36.616        36.623       -.26507E-07    .21168E-04
   7  Prefactor     .48173        2.3835        .54165E-07   -.18019E-03
   8  Prefactor     .10000E-03    10.149        .16047E-05** at limit **
   9  norm          1.5763        .62153       -.12579E-07    .92546E-04
  10  Prefactor     .10000E-03    10.369        .80312E-06** at limit **
  11  Prefactor     .10000E-03    6.9115       -.28595E-06** at limit **
  12  Prefactor     .10000E-03    4.6310        .77098E-07** at limit **
  13  Prefactor     2.8679        2.9039       -.81964E-07   -.73400E-04
  14  Prefactor     .10000E-03    12.450       -.38658E-05** at limit **
  15  Prefactor     1.4281        16.549       -.22073E-06   -.48998E-04
  16  norm          2.6095        2.3987        .67530E-06   -.25460E-02
  17  Prefactor     .10000E-03    1.1072       -.79974E-07** at limit **
  18  Prefactor     3.1512        3.9850        .12875E-07   -.87479E-04
  19  Prefactor     58.965        45.192       -.12311E-04   -.14719E-03
  20  Prefactor     .10000E-03    1.3800        .87327E-07** at limit **
  21  Prefactor     .10000E-03    19.476        .29299E-05** at limit **
  22  norm          1.1926        .65482       -.14724E-07   -.22047E-06
  23  norm          13.746        10.464        .99823E-06   -.50048E-04
  24  Prefactor     5.4990        3.2913        .17399E-06   -.69597E-04
  25  Normalizat    .67095        .17182        .11487E-05   -.25823E-04
  26  Prefactor     1.1391        .14030       -.23757E-06    .62829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.13033
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 36.6162
  Prefactor  = 0.481734
  Prefactor  = 0.0001
  norm       = 1.57634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86793
  Prefactor  = 0.0001
  Prefactor  = 1.42813
  norm       = 2.60951
  Prefactor  = 0.0001
  Prefactor  = 3.15118
  Prefactor  = 58.9649
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.19262
  norm       = 13.746
  Prefactor  = 5.49897
  Normalizat = 0.670955
  Prefactor  = 1.13906
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.625     FROM HESSE     STATUS=OK           460 CALLS     3568 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1303        7.6671        .17750E-03   -1.5255    
   2  Prefactor     .10000E-03    3.2066        .13991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10005E-03    21.965        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3074        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.616        36.499        .66231E-04   -1.4497    
   7  Prefactor     .48173        8.6265        .22606E-02   -1.5569    
   8  Prefactor     .10000E-03    10.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5763        .61826        .37405E-04   -1.5457    
  10  Prefactor     .10000E-03    10.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6375        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8679        2.8830        .12860E-03   -1.5369    
  14  Prefactor     .10000E-03    12.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4281        16.652        .36191E-03   -1.5469    
  16  norm          2.6095        5.5465        .12625E-02   -1.5385    
  17  Prefactor     .10000E-03    1.1251        .82178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1512        3.9813        .17281E-03   -1.5353    
  19  Prefactor     58.965        45.444        .52241E-04   -1.4171    
  20  Prefactor     .10000E-03    1.3991        .91665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1926        .64330        .45828E-04   -1.5490    
  23  norm          13.746        10.451        .10802E-03   -1.4966    
  24  Prefactor     5.4990        3.2870        .10374E-03   -1.5239    
  25  Normalizat    .67095        .19363        .29227E-03   -1.0505    
  26  Prefactor     1.1391        .15910        .19791E-03   -.88228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71519e-09
Minuit parameter uncertainties:
  1  7.66852
  2  2.00403e-07
  3  3.69969e-05
  4  0.00205297
  5  2.09947e-06
  6  36.5208
  7  4.07735
  8  1.46748e-05
  9  0.618261
  10  5.56962e-06
  11  5.27744e-06
  12  7.0403e-07
  13  2.88314
  14  4.51953e-05
  15  9.75627
  16  5.54761
  17  1.47013e-06
  18  3.98167
  19  45.4712
  20  1.29349e-05
  21  0.000278641
  22  0.643307
  23  10.4526
  24  3.28706
  25  0.193825
  26  0.159171
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.868e+00  2.883e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.139e+00  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  6.710e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 126.236 39.257
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.16e-05

TS (Fixed Index): 1.30
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/460802/likelihoodResults_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6403.62251037
delta logL = 0.00228877184782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6403.62118509
delta logL = 0.00361405716558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4954       1.0000          .0000       10.000    
     3 'Normalizat'    .66910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1402       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=   6403.621     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6973        78.560        .62020E-02    .64069E-03
   2  Index         2.4948        6.2041        .15979        .11366E-03
   3  Normalizat    .66907        .60758E-01    .66139E-01    .18454E-04
   4  Prefactor     1.1403        .50233E-01    .36227E-01   -.15008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69727
  Index      = 2.49481
  Normalizat = 0.669075
  Prefactor  = 1.14026
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.621     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6973        3.6944        .12426E-03   -1.5379    
   2  Index         2.4948        .81040        .86148E-02   -.52480    
   3  Normalizat    .66907        .18331        .29265E-03   -1.0513    
   4  Prefactor     1.1403        .15783        .19782E-03   -.88190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46105e-11
Minuit parameter uncertainties:
  1  3.69473
  2  0.815211
  3  0.183481
  4  0.157899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460802': 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) = 6403.62118458
delta logL = 0.00361457012059

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  2.697e+00  3.695e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.495e+00  8.152e-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:  1.140e+00  1.579e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  6.691e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 126.236 39.257
Photon Index (Free Index): 2.49 +/- 0.82
Photon Flux (Free Index): 3.78e-08 +/- 3.88e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.31e-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/460802/cmap_HighResolution_539740801_540000001_4FGL_J0824.9+3915_daily_bin1159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.10e-05', photon_flux_error='3.68e-08', dlogl='3.61e-03', energy_flux='1.15e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-08-29 19:56:35.729872', photon_index_error2='0.82', photon_index2='2.49', ts='1.30', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.31e-05', EG='0.67', time_epoch_completed='1630292195.73', return_code='0', job_id='460802', GAL2='1.14', EG2='0.67', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.88e-08', ts2='1.31', photon_index='2.43' WHERE bin_id='1159' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 460802: <4FGL_J0824.9+3915_daily_bin1159> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin1159> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 29 19:40:33 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 19:40:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 19:40:34 2021
Terminated at Sun Aug 29 19:56:36 2021
Results reported at Sun Aug 29 19:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1159 126.236 39.2574 539740801 540000001 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 :                                   885.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            963 sec.

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

