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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin719
RA = 61.4189, Dec = -13.1438
tmin = 425692801, tmax = 425952001
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='241597', job_status='RUN', time_executed='2021-08-20 04:07:55.387530', time_epoch_executed='1629457675.39' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241597/ft1_4FGL_J0405.6-1308_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241597/ft1_4FGL_J0405.6-1308_daily_bin719.fits outfile=/scratch/kocevski/241597/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin719.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=425692801.0 tmax=425952001.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 12.66
user 3.35
sys 9.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.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/241597/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin719.fits evtable="EVENTS" outfile="/scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.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 9.66
user 0.32
sys 9.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/241597/ltcube_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.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/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits
.....................!
real 22.11
user 11.56
sys 10.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/241597/ltcube_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.fits outfile=/scratch/kocevski/241597/expmap_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.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/241597/ltcube_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.fits
.....................!
real 201.95
user 184.95
sys 16.53

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 147 point sources and 0 extended sources

Setting source of interest to:
4FGL J0405.6-1308 @ 61.4189 -13.1438

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits scfile=/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits outfile=/scratch/kocevski/241597/cmap_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.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=61.4189 yref=-13.1438 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 9.42
user 0.35
sys 9.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits scfile=/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits outfile=/scratch/kocevski/241597/cmap_HighResolution_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.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=61.4189 yref=-13.1438 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 9.49
user 0.39
sys 9.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/241597/Model_4FGL_J0405.6-1308_daily_bin719.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/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits.....................!
real 81.46
user 68.19
sys 12.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits', '/scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits', expMap='/scratch/kocevski/241597/expmap_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.fits', expCube='/scratch/kocevski/241597/ltcube_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/241597/Model_4FGL_J0405.6-1308_daily_bin719.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0405.6-1308'

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  3.495e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  5.776e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/241597/ft1_filtered_4FGL_J0405.6-1308_daily_bin719.fits
Spacecraft file(s): /scratch/kocevski/241597/ft2_4FGL_J0405.6-1308_daily_bin719.fits
Exposure map: /scratch/kocevski/241597/expmap_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.fits
Exposure cube: /scratch/kocevski/241597/ltcube_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/241597/Model_4FGL_J0405.6-1308_daily_bin719.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) = 5286.21882222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.566       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.429       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.871       1.0000         .10000E-03   10000.    
     8 'norm      '    .39250       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1662       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.9078       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.459       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8538       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1807       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5286.214     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2338 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6714        5.3671        .43855E-06   -.37665E-03
   2  Prefactor     41.563        28.248       -.20638E-05   -.41400E-04
   3  Prefactor     .10000E-03    22.442        .19435E-04** at limit **
   4  Prefactor     21.417        37.510       -.27351E-04   -.91435E-05
   5  Prefactor     4.7549        3.2680       -.39585E-06   -.19702E-04
   6  Prefactor     11.429        6.9068        .72980E-07    .42850E-04
   7  Prefactor     17.876        32.213        .85735E-05   -.22257E-04
   8  norm          .39287        1.5254       -.43976E-06   -.14539E-02
   9  Prefactor     .10000E-03    17.053        .22628E-05** at limit **
  10  Prefactor     7.1655        3.9723        .22041E-06    .22501E-04
  11  Prefactor     .10000E-03    15.885       -.89278E-05** at limit **
  12  Prefactor     .10000E-03    2.0010       -.43917E-07** at limit **
  13  norm          .10000E-03    9.3003        .65950E-06** at limit **
  14  Prefactor     .10000E-03    3.3024        .40081E-07** at limit **
  15  norm          9.9092        5.7928       -.38501E-06   -.78814E-04
  16  norm          .10000E-03    2.4194        .87218E-07** at limit **
  17  Prefactor     .10000E-03    4.7185       -.14032E-06** at limit **
  18  Prefactor     .10000E-03    27.582       -.15865E-04** at limit **
  19  Prefactor     27.461        25.077        .16180E-05    .11133E-04
  20  Prefactor     2.8535        6.9012       -.85019E-06   -.37797E-03
  21  Normalizat    1.1806        .20648       -.46484E-06   -.36704E-04
  22  Prefactor     .76931        .13319        .95898E-06   -.14977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67142
  Prefactor  = 41.5634
  Prefactor  = 0.0001
  Prefactor  = 21.4165
  Prefactor  = 4.75494
  Prefactor  = 11.4293
  Prefactor  = 17.8756
  norm       = 0.392872
  Prefactor  = 0.0001
  Prefactor  = 7.16546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.90915
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4608
  Prefactor  = 2.85349
  Normalizat = 1.18064
  Prefactor  = 0.769313
 **********
 **   18 **HESSE 
 **********

 FCN=   5286.214     FROM HESSE     STATUS=OK           346 CALLS     2684 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6714        5.3202        .21712E-03   -1.5381    
   2  Prefactor     41.563        28.164        .62177E-04   -1.4418    
   3  Prefactor     .10000E-03    22.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.417        37.399        .86518E-04   -1.4782    
   5  Prefactor     4.7549        3.2360        .10113E-03   -1.5272    
   6  Prefactor     11.429        6.8880        .11850E-03   -1.5032    
   7  Prefactor     17.876        32.196        .94742E-04   -1.4862    
   8  norm          .39287        1.5027        .16095E-03   -1.5583    
   9  Prefactor     .10000E-03    17.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1655        3.9466        .10075E-03   -1.5173    
  11  Prefactor     .10000E-03    15.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0048        .10043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.3132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3631        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.9092        5.7943        .12730E-03   -1.5078    
  16  norm          .10000E-03    2.4224        .11044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7444        .15422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.461        25.102        .76452E-04   -1.4659    
  20  Prefactor     2.8535        6.9046        .24066E-03   -1.5370    
  21  Normalizat    1.1806        .23802        .26713E-03   -.87203    
  22  Prefactor     .76931        .15320        .21371E-03   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63398e-09
Minuit parameter uncertainties:
  1  5.32118
  2  28.1734
  3  0.000130026
  4  37.4396
  5  3.23615
  6  6.8885
  7  32.2274
  8  1.50282
  9  6.5466e-05
  10  3.94675
  11  4.0207e-06
  12  2.11008e-06
  13  9.11826e-07
  14  3.90951e-06
  15  5.79458
  16  5.0043e-07
  17  6.37458e-07
  18  4.26727e-05
  19  25.1119
  20  6.90655
  21  0.238236
  22  0.153285
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.110e-06  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.548e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  5.776e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  7.693e-01  1.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.181e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.419 -13.144
Photon Flux Upper Limit: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241597/likelihoodResults_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.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) = 5286.21606963
delta logL = -0.00232445137408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5286.21374511
delta logL = 7.17745933798e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5286.214     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.852        .10099E-01** at limit **
   2  Index         2.0751        8.9581        .50000        .11569E-06
   3  Normalizat    1.1806        .18783E-01    .26713E-03   -.64733E-04
   4  Prefactor     .76931        .12468E-01    .21371E-03   -.68039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07514
  Normalizat = 1.18064
  Prefactor  = 0.769314
 **********
 **   18 **HESSE 
 **********

 FCN=   5286.214     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    218.92        .10704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0751        5.6815        .50000       -.62485    
   3  Normalizat    1.1806        .60398E-01    .10685E-04   -.87203    
   4  Prefactor     .76931        .40092E-01    .85484E-05   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.49991e-10
Minuit parameter uncertainties:
  1  3.50408e-05
  2  923.307
  3  0.0604015
  4  0.0400932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241597': 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) = 5286.21374221
delta logL = 2.96864800475e-06

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.504e-05  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.075e+00  9.233e+02  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  5.776e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  7.693e-01  4.009e-02  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.181e+00  6.040e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 61.419 -13.144

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/241597/cmap_HighResolution_425692801_425952001_4FGL_J0405.6-1308_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-08-20 04:19:21.816006', job_id='241597', GAL2='0.77', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629458361.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='719' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:19:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 241597: <4FGL_J0405.6-1308_daily_bin719> in cluster <slac> Done

Job <4FGL_J0405.6-1308_daily_bin719> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 04:05:17 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:05:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 04:05:18 2021
Terminated at Fri Aug 20 04:19:23 2021
Results reported at Fri Aug 20 04:19:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin719 61.4189 -13.1438 425692801 425952001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0405.6-1308 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   826.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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

