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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin1449
RA = 61.4189, Dec = -13.1438
tmin = 614908801, tmax = 615168001
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='249135', job_status='RUN', time_executed='2021-08-20 04:31:50.550324', time_epoch_executed='1629459110.55' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249135

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249135/ft1_4FGL_J0405.6-1308_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249135/ft1_4FGL_J0405.6-1308_daily_bin1449.fits outfile=/scratch/kocevski/249135/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1449.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=614908801.0 tmax=615168001.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 3.20
user 2.49
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.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/249135/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/249135/ft1_filtered_4FGL_J0405.6-1308_daily_bin1449.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 0.89
user 0.26
sys 0.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249135/ft1_filtered_4FGL_J0405.6-1308_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/249135/ltcube_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.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/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.fits
.....................!
real 9.44
user 8.60
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249135/ft1_filtered_4FGL_J0405.6-1308_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/249135/ltcube_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.fits outfile=/scratch/kocevski/249135/expmap_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.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/249135/ltcube_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.fits
.....................!
real 140.74
user 136.27
sys 4.25

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/249135/ft1_filtered_4FGL_J0405.6-1308_daily_bin1449.fits scfile=/scratch/kocevski/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.fits outfile=/scratch/kocevski/249135/cmap_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.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 0.86
user 0.28
sys 0.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249135/ft1_filtered_4FGL_J0405.6-1308_daily_bin1449.fits scfile=/scratch/kocevski/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.fits outfile=/scratch/kocevski/249135/cmap_HighResolution_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.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 0.91
user 0.28
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/249135/ft1_filtered_4FGL_J0405.6-1308_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/249135/ft2_4FGL_J0405.6-1308_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/249135/Model_4FGL_J0405.6-1308_daily_bin1449.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/249135/ft1_filtered_4FGL_J0405.6-1308_daily_bin1449.fits.....................!
real 74.95
user 73.08
sys 1.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12981E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2387       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8361       1.0000         .10000E-03   10000.    
    13 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11542E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.820       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14721E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77598       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1426       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=   8137.442     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2108 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7084        .19576E-06** at limit **
   2  Prefactor     3.3020        16.949       -.12355E-04    .17559E-04
   3  Prefactor     18.203        12.293        .24333E-05   -.19352E-03
   4  Prefactor     .10000E-03    188.96       -.36430E-05** at limit **
   5  Prefactor     .10000E-03    1.0972        .21789E-06** at limit **
   6  Prefactor     10.843        5.2505       -.30515E-06   -.52982E-04
   7  Prefactor     .10000E-03    9.6218       -.30712E-05** at limit **
   8  norm          2.2386        1.2519        .29025E-07   -.28059E-03
   9  Prefactor     .10000E-03    7.5242       -.12362E-06** at limit **
  10  Prefactor     17.017        3.7896       -.13071E-06    .88749E-04
  11  Prefactor     .10000E-03    10.045        .12349E-05** at limit **
  12  Prefactor     5.8378        7.5954       -.41308E-06   -.20925E-03
  13  norm          .10000E-03    21.191        .14055E-06** at limit **
  14  Prefactor     .10000E-03    1.3135       -.69760E-07** at limit **
  15  norm          .10000E-03    2.7713       -.16297E-07** at limit **
  16  norm          17.442        9.8932       -.67886E-06   -.12287E-04
  17  Prefactor     .10000E-03    9.0377        .18839E-05** at limit **
  18  Prefactor     24.821        15.493        .13562E-05   -.10665E-03
  19  Prefactor     .10001E-03    7.5594        .69344E-07** at limit **
  20  Prefactor     .10000E-03    2.1094       -.20422E-07** at limit **
  21  Normalizat    .77575        .18549        .13243E-05   -.42978E-04
  22  Prefactor     1.1427        .11968       -.25322E-06    .69565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.30196
  Prefactor  = 18.2033
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 10.8433
  Prefactor  = 0.0001
  norm       = 2.2386
  Prefactor  = 0.0001
  Prefactor  = 17.0169
  Prefactor  = 0.0001
  Prefactor  = 5.8378
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.4424
  Prefactor  = 0.0001
  Prefactor  = 24.8206
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Normalizat = 0.775753
  Prefactor  = 1.14266
 **********
 **   18 **HESSE 
 **********

 FCN=   8137.442     FROM HESSE     STATUS=OK           344 CALLS     2452 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7254        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3020        17.802        .22223E-03   -1.5345    
   3  Prefactor     18.203        12.276        .93885E-04   -1.4854    
   4  Prefactor     .10000E-03    193.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.5895        .18119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.843        5.2305        .12167E-03   -1.5049    
   7  Prefactor     .10000E-03    9.6094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2386        1.2392        .71351E-04   -1.5409    
   9  Prefactor     .10000E-03    7.5414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.017        3.7887        .78427E-04   -1.4883    
  11  Prefactor     .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8378        7.6450        .16624E-03   -1.5225    
  13  norm          .10000E-03    21.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1640        .20029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8255        .14660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.442        9.9063        .95907E-04   -1.4872    
  17  Prefactor     .10000E-03    9.2016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.821        15.493        .80406E-04   -1.4711    
  19  Prefactor     .10001E-03    59.996        .47548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1353        .12793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77575        .20777        .32699E-03   -1.0097    
  22  Prefactor     1.1427        .13481        .19518E-03   -.88115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57512e-10
Minuit parameter uncertainties:
  1  2.5099e-05
  2  15.3405
  3  12.278
  4  0.001788
  5  3.40608e-05
  6  5.23068
  7  7.16342e-05
  8  1.23922
  9  4.90662e-06
  10  3.78875
  11  2.76544e-05
  12  7.64631
  13  6.65075e-06
  14  8.92013e-06
  15  9.90316e-07
  16  9.9072
  17  4.75193e-05
  18  15.4952
  19  0.00173028
  20  2.30381e-06
  21  0.20798
  22  0.134851
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  5.838e+00  7.646e+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

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  1.143e+00  1.349e-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.758e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 61.419 -13.144
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/249135/likelihoodResults_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.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) = 8137.05891358
delta logL = 0.383382792319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8137.03555621
delta logL = 0.406740157121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1446       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2542       1.0000          .0000       10.000    
     3 'Normalizat'    .72703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1686       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.

 FCN=   8137.036     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      298 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1447        14.079        .10844E-01    .24854E-02
   2  Index         4.2554        3.0908        .20377        .22496E-03
   3  Normalizat    .72728        .39529E-01    .76134E-01    .25610E-03
   4  Prefactor     1.1684        .28235E-01    .35419E-01    .86750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14465
  Index      = 4.25535
  Normalizat = 0.727277
  Prefactor  = 1.16838
 **********
 **   18 **HESSE 
 **********

 FCN=   8137.036     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1447        41.406        .80425E-04   -1.5494    
   2  Index         4.2554        7.0679        .72349E-02   -.14949    
   3  Normalizat    .72728        .17645        .33703E-03   -1.0283    
   4  Prefactor     1.1684        .12427        .19335E-03   -.87310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15523e-09
Minuit parameter uncertainties:
  1  13.7785
  2  8.11068
  3  0.176589
  4  0.124299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249135': 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) = 8137.03555194
delta logL = 0.406744422957

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  1.145e+00  1.378e+01  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  4.255e+00  8.111e+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.168e+00  1.243e-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.273e-01  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 61.419 -13.144
Photon Index (Free Index): 4.26 +/- 8.11
Photon Flux (Free Index): 6.15e-08 +/- 5.64e-08
Energy Flux (Free Index): 8.86e-06 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/249135/cmap_HighResolution_614908801_615168001_4FGL_J0405.6-1308_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', comment='SUCCESS', energy_flux2='8.86e-06', dlogl='4.07e-01', photon_flux2='6.15e-08', job_status='DONE', time_completed='2021-08-20 04:40:24.829635', photon_index_error2='8.11', photon_index2='4.26', ts='0.71', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.44e-05', EG='0.78', time_epoch_completed='1629459624.83', return_code='0', job_id='249135', GAL2='1.17', EG2='0.73', return_code2='102', photon_flux_error2='5.64e-08', ts2='1.66', photon_index='2.55' WHERE bin_id='1449' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:40:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 249135: <4FGL_J0405.6-1308_daily_bin1449> in cluster <slac> Done

Job <4FGL_J0405.6-1308_daily_bin1449> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 04:30:29 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:30:31 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:30:31 2021
Terminated at Fri Aug 20 04:40:25 2021
Results reported at Fri Aug 20 04:40:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin1449 61.4189 -13.1438 614908801 615168001 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 :                                   513.54 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            596 sec.

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

