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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin1071
RA = 61.4189, Dec = -13.1438
tmin = 516931201, tmax = 517190401
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='244593', job_status='RUN', time_executed='2021-08-20 04:17:06.071639', time_epoch_executed='1629458226.07' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244593/ft1_4FGL_J0405.6-1308_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244593/ft1_4FGL_J0405.6-1308_daily_bin1071.fits outfile=/scratch/kocevski/244593/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1071.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=516931201.0 tmax=517190401.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 5.23
user 3.69
sys 1.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.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/244593/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1071.fits evtable="EVENTS" outfile="/scratch/kocevski/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.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.76
user 0.30
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/244593/ltcube_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.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/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits
.....................!
real 12.87
user 11.05
sys 1.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/244593/ltcube_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.fits outfile=/scratch/kocevski/244593/expmap_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.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/244593/ltcube_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.fits
.....................!
real 192.06
user 185.10
sys 6.64

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/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits scfile=/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits outfile=/scratch/kocevski/244593/cmap_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.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 1.77
user 0.35
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits scfile=/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits outfile=/scratch/kocevski/244593/cmap_HighResolution_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.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 1.78
user 0.36
sys 1.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/244593/Model_4FGL_J0405.6-1308_daily_bin1071.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/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits.....................!
real 64.64
user 61.67
sys 2.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits', '/scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits', expMap='/scratch/kocevski/244593/expmap_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.fits', expCube='/scratch/kocevski/244593/ltcube_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244593/Model_4FGL_J0405.6-1308_daily_bin1071.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/244593/ft1_filtered_4FGL_J0405.6-1308_daily_bin1071.fits
Spacecraft file(s): /scratch/kocevski/244593/ft2_4FGL_J0405.6-1308_daily_bin1071.fits
Exposure map: /scratch/kocevski/244593/expmap_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.fits
Exposure cube: /scratch/kocevski/244593/ltcube_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244593/Model_4FGL_J0405.6-1308_daily_bin1071.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) = 4635.5776314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.316       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13280E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .74475       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5491       1.0000         .10000E-03   10000.    
    13 'norm      '    17.224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3315       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4512       1.0000         .10000E-03   10000.    
    16 'norm      '    10.994       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.912       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73106       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1504       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=   4635.570     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2446 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7329        .11627E-06** at limit **
   2  Prefactor     33.372        33.384       -.93035E-07   -.78478E-04
   3  Prefactor     .10000E-03    6.2564        .46813E-07** at limit **
   4  Prefactor     49.280        67.741        .69908E-05    .20778E-05
   5  Prefactor     .10008E-03    2.3851        .15252E-05** at limit **
   6  Prefactor     .10000E-03    9.3941        .94083E-07** at limit **
   7  Prefactor     .10000E-03    25.165       -.38601E-05** at limit **
   8  norm          .10000E-03    1.1272       -.33027E-06** at limit **
   9  Prefactor     .10000E-03    20.866        .40841E-05** at limit **
  10  Prefactor     3.2803        3.9626        .34798E-06    .29414E-05
  11  Prefactor     .91207        24.953       -.31241E-06   -.99018E-05
  12  Prefactor     8.5526        10.107        .26255E-06   -.47874E-04
  13  norm          17.182        32.574        .42908E-05    .20661E-04
  14  Prefactor     3.3320        4.9849        .66643E-06    .84543E-05
  15  norm          1.4478        4.1275        .56865E-05    .80940E-04
  16  norm          10.996        10.249       -.17596E-06   -.21835E-04
  17  Prefactor     .10000E-03    3.1382        .60759E-07** at limit **
  18  Prefactor     32.229        24.906       -.70029E-07   -.17794E-04
  19  Prefactor     34.913        34.636       -.50931E-07   -.18715E-04
  20  Prefactor     .10000E-03    2.4882        .44411E-07** at limit **
  21  Normalizat    .73024        .26134       -.37653E-05   -.12118E-03
  22  Prefactor     1.1509        .16543        .84975E-06    .64691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.3723
  Prefactor  = 0.0001
  Prefactor  = 49.28
  Prefactor  = 0.000100079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28031
  Prefactor  = 0.912067
  Prefactor  = 8.55255
  norm       = 17.1824
  Prefactor  = 3.332
  norm       = 1.44777
  norm       = 10.9965
  Prefactor  = 0.0001
  Prefactor  = 32.2291
  Prefactor  = 34.9126
  Prefactor  = 0.0001
  Normalizat = 0.730243
  Prefactor  = 1.15086
 **********
 **   18 **HESSE 
 **********

 FCN=   4635.570     FROM HESSE     STATUS=OK           348 CALLS     2794 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7383        .10983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.372        33.312        .69369E-04   -1.4552    
   3  Prefactor     .10000E-03    6.2825        .16631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.280        67.653        .57103E-04   -1.4303    
   5  Prefactor     .10008E-03    16.378        .18441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7797        .13580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2803        3.9020        .13745E-03   -1.5346    
  11  Prefactor     .91207        141.53        .65584E-02   -1.5517    
  12  Prefactor     8.5526        10.133        .13710E-03   -1.5123    
  13  norm          17.182        32.616        .96507E-04   -1.4879    
  14  Prefactor     3.3320        4.9685        .17628E-03   -1.5343    
  15  norm          1.4478        4.1670        .11402E-02   -1.5467    
  16  norm          10.996        10.245        .12083E-03   -1.5045    
  17  Prefactor     .10000E-03    3.1445        .11779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.229        24.916        .70585E-04   -1.4572    
  19  Prefactor     34.913        34.658        .67823E-04   -1.4526    
  20  Prefactor     .10000E-03    2.4952        .10488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73024        .29334        .34083E-03   -1.0271    
  22  Prefactor     1.1509        .18851        .19026E-03   -.87857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70484e-08
Minuit parameter uncertainties:
  1  6.55532e-06
  2  33.3303
  3  6.7935e-06
  4  67.7586
  5  0.00228268
  6  9.884e-06
  7  0.000146261
  8  3.05365e-05
  9  1.00219e-06
  10  3.90234
  11  22.777
  12  10.1351
  13  32.6502
  14  4.96907
  15  4.16784
  16  10.2466
  17  6.12305e-07
  18  24.9241
  19  34.6775
  20  3.21989e-06
  21  0.293977
  22  0.188616
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  8.553e+00  1.014e+01  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:  1.151e+00  1.886e-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:  7.302e-01  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 61.419 -13.144
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 5.71e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.58e-05

TS (Fixed Index): 1.01
Ra Dec: 61.419 -13.144
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/244593/likelihoodResults_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.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) = 4635.50527353
delta logL = 0.064656517925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4635.49241236
delta logL = 0.0775176857533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1373       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9305       1.0000          .0000       10.000    
     3 'Normalizat'    .71125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1592       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4635.492     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      258 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1307        10.407        .75075E-03   -.78714E-04
   2  Index         2.9309        1.0864        .84771E-02    .18785E-03
   3  Normalizat    .71133        .26853        .34509E-03   -.20979E-03
   4  Prefactor     1.1593        .18068        .18966E-03   -.40962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.13069
  Index      = 2.93094
  Normalizat = 0.711332
  Prefactor  = 1.15931
 **********
 **   18 **HESSE 
 **********

 FCN=   4635.492     FROM HESSE     STATUS=OK            27 CALLS      285 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1307        9.7139        .30030E-04   -1.5174    
   2  Index         2.9309        1.0144        .16954E-02   -.42664    
   3  Normalizat    .71133        .26880        .13804E-04   -1.0345    
   4  Prefactor     1.1593        .18073        .37932E-04   -.87593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39749e-10
Minuit parameter uncertainties:
  1  9.716
  2  1.02301
  3  0.269304
  4  0.180821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244593': 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) = 4635.49240964
delta logL = 0.0775204060965

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  7.131e+00  9.716e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.931e+00  1.023e+00  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:  1.159e+00  1.808e-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:  7.113e-01  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 61.419 -13.144
Photon Index (Free Index): 2.93 +/- 1.02
Photon Flux (Free Index): 6.31e-08 +/- 7.33e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.42e-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/244593/cmap_HighResolution_516931201_517190401_4FGL_J0405.6-1308_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.31e-05', photon_flux_error='5.71e-08', dlogl='7.75e-02', energy_flux='1.33e-05', photon_flux2='6.31e-08', job_status='DONE', time_completed='2021-08-20 04:26:12.958850', photon_index_error2='1.02', photon_index2='2.93', ts='1.01', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.74e-07', energy_flux_error2='1.42e-05', EG='0.73', time_epoch_completed='1629458772.96', return_code='0', job_id='244593', GAL2='1.16', EG2='0.71', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='7.33e-08', ts2='1.19', photon_index='2.55' WHERE bin_id='1071' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:26:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 244593: <4FGL_J0405.6-1308_daily_bin1071> in cluster <slac> Done

Job <4FGL_J0405.6-1308_daily_bin1071> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 04:15:29 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:15:30 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:15:30 2021
Terminated at Fri Aug 20 04:26:13 2021
Results reported at Fri Aug 20 04:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin1071 61.4189 -13.1438 516931201 517190401 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 :                                   565.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            644 sec.

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

