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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin1199
RA = 126.236, Dec = 39.2574
tmin = 550108801, tmax = 550368001
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='460881', job_status='RUN', time_executed='2021-08-29 19:41:24.206736', time_epoch_executed='1630291284.21' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='1199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460881/ft1_4FGL_J0824.9+3915_daily_bin1199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460881/ft2_4FGL_J0824.9+3915_daily_bin1199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460881/ft1_4FGL_J0824.9+3915_daily_bin1199.fits outfile=/scratch/kocevski/460881/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1199.fits ra=126.236 dec=39.2574 rad=12.0 tmin=550108801.0 tmax=550368001.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 4.69
user 2.73
sys 1.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460881/ft2_4FGL_J0824.9+3915_daily_bin1199.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/460881/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin1199.fits evtable="EVENTS" outfile="/scratch/kocevski/460881/ft1_filtered_4FGL_J0824.9+3915_daily_bin1199.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.87
user 0.33
sys 1.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460881/ft1_filtered_4FGL_J0824.9+3915_daily_bin1199.fits" evtable="EVENTS" scfile=/scratch/kocevski/460881/ft2_4FGL_J0824.9+3915_daily_bin1199.fits sctable="SC_DATA" outfile=/scratch/kocevski/460881/ltcube_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.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/460881/ft2_4FGL_J0824.9+3915_daily_bin1199.fits
.....................!
real 13.55
user 11.55
sys 1.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460881/ft1_filtered_4FGL_J0824.9+3915_daily_bin1199.fits evtable="EVENTS" scfile=/scratch/kocevski/460881/ft2_4FGL_J0824.9+3915_daily_bin1199.fits sctable="SC_DATA" expcube=/scratch/kocevski/460881/ltcube_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.fits outfile=/scratch/kocevski/460881/expmap_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.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/460881/ltcube_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.fits
.....................!
real 192.91
user 186.72
sys 5.66

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/460881/ft1_filtered_4FGL_J0824.9+3915_daily_bin1199.fits scfile=/scratch/kocevski/460881/ft2_4FGL_J0824.9+3915_daily_bin1199.fits outfile=/scratch/kocevski/460881/cmap_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.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.87
user 0.37
sys 1.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460881/ft1_filtered_4FGL_J0824.9+3915_daily_bin1199.fits scfile=/scratch/kocevski/460881/ft2_4FGL_J0824.9+3915_daily_bin1199.fits outfile=/scratch/kocevski/460881/cmap_HighResolution_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.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.87
user 0.37
sys 1.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.412       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9714       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14324E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72640E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11904E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11733E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12817E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64231E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7738       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16136E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4256       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6453       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .67986       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=   4676.725     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3099 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.411        24.789       -.20367E-06    .28227E-05
   2  Prefactor     6.0229        23.609        .21545E-05    .70861E-05
   3  norm          .10000E-03    6.9287        .18877E-06** at limit **
   4  norm          .10000E-03    3.0498        .71397E-06** at limit **
   5  Prefactor     .10000E-03    18.345        .14541E-05** at limit **
   6  Prefactor     11.731        91.875       -.12145E-04   -.23599E-04
   7  Prefactor     8.6927        8.1086        .42244E-06    .14713E-03
   8  Prefactor     .10000E-03    25.215       -.21020E-06** at limit **
   9  norm          .10000E-03    .26349        .99202E-07** at limit **
  10  Prefactor     .10000E-03    12.322       -.46936E-06** at limit **
  11  Prefactor     .10000E-03    9.8825        .29385E-06** at limit **
  12  Prefactor     .10000E-03    7.8107       -.38723E-06** at limit **
  13  Prefactor     .10001E-03    2.6027       -.76450E-06** at limit **
  14  Prefactor     .10000E-03    18.003       -.20507E-06** at limit **
  15  Prefactor     .10000E-03    18.095        .34501E-06** at limit **
  16  norm          3.1894        5.9025        .37980E-06    .12964E-04
  17  Prefactor     2.7507        3.0287        .34470E-07    .40052E-04
  18  Prefactor     9.7115        5.3265        .89113E-09    .11583E-04
  19  Prefactor     .10000E-03    25.044       -.79965E-08** at limit **
  20  Prefactor     2.4264        4.3607        .76446E-07    .42459E-04
  21  Prefactor     .10000E-03    5.8875        .14998E-07** at limit **
  22  norm          .10000E-03    .42921       -.83072E-07** at limit **
  23  norm          3.6500        7.6076        .60222E-06    .13835E-04
  24  Prefactor     .10000E-03    .90716        .28213E-07** at limit **
  25  Normalizat    1.6454        .23934       -.74951E-06    .13549E-03
  26  Prefactor     .67971        .17939        .14639E-05    .69044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4114
  Prefactor  = 6.02292
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.7312
  Prefactor  = 8.69271
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.18944
  Prefactor  = 2.7507
  Prefactor  = 9.71146
  Prefactor  = 0.0001
  Prefactor  = 2.42644
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.64996
  Prefactor  = 0.0001
  Normalizat = 1.64545
  Prefactor  = 0.679711
 **********
 **   18 **HESSE 
 **********

 FCN=   4676.725     FROM HESSE     STATUS=OK           456 CALLS     3555 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.411        24.786        .12417E-03   -1.5063    
   2  Prefactor     6.0229        23.575        .16432E-03   -1.5217    
   3  norm          .10000E-03    6.9360        .17577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.4339        .22478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.624        .20959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.731        95.655        .11755E-03   -1.5023    
   7  Prefactor     8.6927        8.0483        .13593E-03   -1.5118    
   8  Prefactor     .10000E-03    25.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .27121        .68337E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.8217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    10.941        .19510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.037        .21027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1894        5.9396        .11064E-02   -1.5351    
  17  Prefactor     2.7507        3.0220        .12005E-03   -1.5376    
  18  Prefactor     9.7115        5.3335        .11257E-03   -1.5085    
  19  Prefactor     .10000E-03    25.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4264        4.3544        .17760E-03   -1.5396    
  21  Prefactor     .10000E-03    5.8895        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0921        .86248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6500        7.6715        .10574E-02   -1.5326    
  24  Prefactor     .10000E-03    .90913        .63562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6454        .27480        .23990E-03   -.73769    
  26  Prefactor     .67971        .20502        .27701E-03   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23773e-09
Minuit parameter uncertainties:
  1  24.81
  2  23.6112
  3  1.45336e-06
  4  7.99101e-05
  5  0.000209716
  6  67.1436
  7  8.0493
  8  1.44275e-05
  9  1.37991e-06
  10  8.816e-06
  11  8.67238e-07
  12  3.18919e-06
  13  0.0007194
  14  3.1175e-06
  15  1.74333e-05
  16  5.94069
  17  3.02216
  18  5.3338
  19  2.75585e-06
  20  4.35494
  21  1.42434e-06
  22  6.94581e-06
  23  7.6736
  24  2.08935e-07
  25  0.275057
  26  0.205249
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.194e-04  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.797e-01  2.052e-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.645e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/460881/likelihoodResults_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.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): 102
logL (Free Index) = 4676.72586335
delta logL = -0.000435615002971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4676.72542888
delta logL = -1.14531940199e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13745E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4864       1.0000          .0000       10.000    
     3 'Normalizat'    1.6455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67973       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=   4676.725     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      239 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.2351        .60431E-01** at limit **
   2  Index         2.5500        6.2725        .50000       -.43347E-04
   3  Normalizat    1.6454        .65532E-02    .54262E-01    .24267E-04
   4  Prefactor     .67971        .51511E-02    .62617E-01    .35571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.55003
  Normalizat = 1.64545
  Prefactor  = 0.679712
 **********
 **   18 **HESSE 
 **********

 FCN=   4676.725     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6346.4        .18101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5500        5.9650        .50000       -.51208    
   3  Normalizat    1.6454        .13326        .23991E-03   -.73769    
   4  Prefactor     .67971        .10346        .27701E-03   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.3734e-07
Minuit parameter uncertainties:
  1  0.0107716
  2  61.5805
  3  0.133288
  4  0.10349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460881': 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): 102
logL (Free Index) = 4676.72542649
delta logL = 1.23981408251e-06

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.077e-02  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.550e+00  6.158e+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.797e-01  1.035e-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.645e+00  1.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

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/460881/cmap_HighResolution_550108801_550368001_4FGL_J0824.9+3915_daily_bin1199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-08-29 19:52:37.768955', job_id='460881', GAL2='0.68', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1630291957.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1199' AND source_name='4FGL J0824.9+3915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 19:52:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 460881: <4FGL_J0824.9+3915_daily_bin1199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin1199 126.236 39.2574 550108801 550368001 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            721 sec.

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

