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


Performing analysis on: 4FGL_J0824.9+3915_daily_bin9
RA = 126.236, Dec = 39.2574
tmin = 241660801, tmax = 241920001
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='452658', job_status='RUN', time_executed='2021-08-29 19:17:23.249167', time_epoch_executed='1630289843.25' WHERE source_name='4FGL J0824.9+3915' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452658/ft1_4FGL_J0824.9+3915_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452658/ft2_4FGL_J0824.9+3915_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452658/ft1_4FGL_J0824.9+3915_daily_bin9.fits outfile=/scratch/kocevski/452658/ft1_filteredMKT_4FGL_J0824.9+3915_daily_bin9.fits ra=126.236 dec=39.2574 rad=12.0 tmin=241660801.0 tmax=241920001.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 2.24
user 1.27
sys 0.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452658/ft1_filtered_4FGL_J0824.9+3915_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/452658/ft2_4FGL_J0824.9+3915_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/452658/ltcube_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.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/452658/ft2_4FGL_J0824.9+3915_daily_bin9.fits
.....................!
real 13.23
user 12.03
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452658/ft1_filtered_4FGL_J0824.9+3915_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/452658/ft2_4FGL_J0824.9+3915_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/452658/ltcube_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.fits outfile=/scratch/kocevski/452658/expmap_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.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/452658/ltcube_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.fits
.....................!
real 192.61
user 184.83
sys 5.33

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/452658/ft1_filtered_4FGL_J0824.9+3915_daily_bin9.fits scfile=/scratch/kocevski/452658/ft2_4FGL_J0824.9+3915_daily_bin9.fits outfile=/scratch/kocevski/452658/cmap_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.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.10
user 0.38
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452658/ft1_filtered_4FGL_J0824.9+3915_daily_bin9.fits scfile=/scratch/kocevski/452658/ft2_4FGL_J0824.9+3915_daily_bin9.fits outfile=/scratch/kocevski/452658/cmap_HighResolution_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.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.08
user 0.38
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33354E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8872       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.087       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20716E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    19.607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .70171       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.162       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7441       1.0000         .10000E-03   10000.    
    22 'norm      '    .50754       1.0000         .10000E-03   10000.    
    23 'norm      '    .10658E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81252       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1001       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=   6857.877     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3136 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8486       -.11384E-06** at limit **
   2  Prefactor     .10000E-03    7.2568        .13701E-06** at limit **
   3  norm          .10000E-03    6.2232        .17451E-06** at limit **
   4  norm          2.6937        2.8519        .12619E-06    .10473E-03
   5  Prefactor     .10000E-03    4.1388       -.26387E-06** at limit **
   6  Prefactor     62.074        43.494       -.58957E-06   -.58912E-04
   7  Prefactor     .10000E-03    2.0074       -.17943E-06** at limit **
   8  Prefactor     .10000E-03    7.5074       -.13143E-06** at limit **
   9  norm          1.8874        .67818        .40043E-07    .18802E-03
  10  Prefactor     .10000E-03    7.3900        .41780E-07** at limit **
  11  Prefactor     .10000E-03    4.0899       -.11975E-06** at limit **
  12  Prefactor     .10000E-03    4.4175        .34699E-07** at limit **
  13  Prefactor     .10000E-03    .88916       -.89955E-07** at limit **
  14  Prefactor     14.063        21.949        .26707E-06   -.18295E-03
  15  Prefactor     .10037E-03    7.4934        .17576E-05** at limit **
  16  norm          19.602        8.5392       -.53595E-06   -.38771E-03
  17  Prefactor     .70157        2.8636        .21815E-05    .42197E-03
  18  Prefactor     .10005E-03    1.5364       -.38263E-06** at limit **
  19  Prefactor     48.125        47.409       -.53039E-06   -.11420E-03
  20  Prefactor     .10000E-03    1.3645       -.56840E-06** at limit **
  21  Prefactor     1.7117        53.325       -.19415E-05   -.15851E-04
  22  norm          .50732        .54199       -.37506E-07   -.10684E-03
  23  norm          .10000E-03    3.8718        .62122E-06** at limit **
  24  Prefactor     .10000E-03    .72305        .27031E-07** at limit **
  25  Normalizat    .81260        .16955        .14799E-05    .13692E-03
  26  Prefactor     1.1000        .13807       -.48149E-06    .20167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.69373
  Prefactor  = 0.0001
  Prefactor  = 62.0738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0628
  Prefactor  = 0.000100367
  norm       = 19.6017
  Prefactor  = 0.701565
  Prefactor  = 0.000100049
  Prefactor  = 48.125
  Prefactor  = 0.0001
  Prefactor  = 1.71167
  norm       = 0.50732
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.812601
  Prefactor  = 1.10003
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.877     FROM HESSE     STATUS=OK           464 CALLS     3600 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6937        2.8429        .13846E-03   -1.5380    
   5  Prefactor     .10000E-03    4.1560        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.074        43.399        .50928E-04   -1.4131    
   7  Prefactor     .10000E-03    7.0218        .22311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8874        .66940        .38660E-04   -1.5433    
  10  Prefactor     .10000E-03    7.3917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0915        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4340        .16995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .90635        .76253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.063        21.362        .10672E-03   -1.4958    
  15  Prefactor     .10037E-03    41.428        .34855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.602        8.5672        .90453E-04   -1.4822    
  17  Prefactor     .70157        2.9069        .25496E-03   -1.5540    
  18  Prefactor     .10005E-03    2.0280        .37789E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.125        46.481        .57781E-04   -1.4319    
  20  Prefactor     .10000E-03    2.2749        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7117        49.735        .31761E-03   -1.5446    
  22  norm          .50732        .51096        .59703E-03   -1.5566    
  23  norm          .10000E-03    3.9011        .15914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .73332        .68723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81260        .18923        .27680E-03   -.99603    
  26  Prefactor     1.1000        .15669        .20691E-03   -.89466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71262e-09
Minuit parameter uncertainties:
  1  1.64841e-05
  2  1.24913e-05
  3  8.17261e-06
  4  2.843
  5  1.62687e-05
  6  43.4213
  7  3.70024e-05
  8  1.57568e-05
  9  0.669405
  10  2.76755e-06
  11  1.02285e-05
  12  2.22673e-06
  13  3.97009e-06
  14  21.3733
  15  0.007801
  16  8.56777
  17  2.85617
  18  0.000630355
  19  46.5165
  20  1.04569e-05
  21  18.4696
  22  0.510966
  23  3.79039e-05
  24  5.05092e-07
  25  0.18938
  26  0.156756
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.970e-06  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.100e+00  1.568e-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.126e-01  1.894e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452658/likelihoodResults_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.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) = 6857.88176886
delta logL = -0.00520639628303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6857.87656148
delta logL = 9.83586687653e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4108       1.0000          .0000       10.000    
     3 'Normalizat'    .81260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1000       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=   6857.877     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      222 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8750        .90712E-02** at limit **
   2  Index         1.9842        9.0051        .50000        .44770E-07
   3  Normalizat    .81260        .78039E-02    .62578E-01    .19961E-04
   4  Prefactor     1.1000        .67219E-02    .37586E-01    .30197E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98424
  Normalizat = 0.812602
  Prefactor  = 1.10003
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.877     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      255 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.907        .85032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9842        8.9854        .50000       -.64745    
   3  Normalizat    .81260        .28207E-01    .27680E-03   -.99603    
   4  Prefactor     1.1000        .24328E-01    .20692E-03   -.89466    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7122e-11
Minuit parameter uncertainties:
  1  1.28227e-06
  2  317.445
  3  0.0282072
  4  0.0243285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452658': 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) = 6857.87655214
delta logL = 1.03251277324e-05

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.282e-06  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.984e+00  3.174e+02  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.100e+00  2.433e-02  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.126e-01  2.821e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/452658/cmap_HighResolution_241660801_241920001_4FGL_J0824.9+3915_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-08-29 19:31:17.420505', job_id='452658', GAL2='1.10', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630290677.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.03e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='9' 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@bullet0096>
Subject: Job 452658: <4FGL_J0824.9+3915_daily_bin9> in cluster <slac> Done

Job <4FGL_J0824.9+3915_daily_bin9> 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) <bullet0096>, 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:18 2021
Results reported at Sun Aug 29 19:31:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_daily_bin9 126.236 39.2574 241660801 241920001 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 :                                   837.00 sec.
    Max Memory :                                 1075 MB
    Average Memory :                             287.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

