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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin1216
RA = 61.4189, Dec = -13.1438
tmin = 554515201, tmax = 554774401
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='247632', job_status='RUN', time_executed='2021-08-20 04:28:23.166206', time_epoch_executed='1629458903.17' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247632/ft1_4FGL_J0405.6-1308_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247632/ft1_4FGL_J0405.6-1308_daily_bin1216.fits outfile=/scratch/kocevski/247632/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1216.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=554515201.0 tmax=554774401.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 14.58
user 3.88
sys 10.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.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/247632/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1216.fits evtable="EVENTS" outfile="/scratch/kocevski/247632/ft1_filtered_4FGL_J0405.6-1308_daily_bin1216.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 10.03
user 0.33
sys 9.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247632/ft1_filtered_4FGL_J0405.6-1308_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/247632/ltcube_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.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/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.fits
.....................!
real 22.92
user 11.89
sys 10.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247632/ft1_filtered_4FGL_J0405.6-1308_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/247632/ltcube_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.fits outfile=/scratch/kocevski/247632/expmap_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.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/247632/ltcube_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.fits
.....................!
real 203.54
user 184.98
sys 17.88

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/247632/ft1_filtered_4FGL_J0405.6-1308_daily_bin1216.fits scfile=/scratch/kocevski/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.fits outfile=/scratch/kocevski/247632/cmap_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.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.89
user 0.38
sys 9.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247632/ft1_filtered_4FGL_J0405.6-1308_daily_bin1216.fits scfile=/scratch/kocevski/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.fits outfile=/scratch/kocevski/247632/cmap_HighResolution_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.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.68
user 0.39
sys 9.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/247632/ft1_filtered_4FGL_J0405.6-1308_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/247632/ft2_4FGL_J0405.6-1308_daily_bin1216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/247632/Model_4FGL_J0405.6-1308_daily_bin1216.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/247632/ft1_filtered_4FGL_J0405.6-1308_daily_bin1216.fits.....................!
real 63.69
user 49.72
sys 13.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.729       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3316       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.740       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12245E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.421       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.139       1.0000         .10000E-03   10000.    
    13 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7076       1.0000         .10000E-03   10000.    
    15 'norm      '    14.953       1.0000         .10000E-03   10000.    
    16 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83775       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11124E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7561       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71950       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87739       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=   3580.034     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2395 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5467        .49528E-07** at limit **
   2  Prefactor     .10000E-03    9.1196        .26122E-06** at limit **
   3  Prefactor     20.645        22.094       -.33643E-06   -.15196E-04
   4  Prefactor     67.707        56.100        .17370E-05    .84622E-04
   5  Prefactor     4.3311        4.0997       -.19715E-06   -.68384E-04
   6  Prefactor     23.744        10.319        .14446E-06   -.69788E-05
   7  Prefactor     .10000E-03    71.966       -.52643E-05** at limit **
   8  norm          .10000E-03    1.0928        .11839E-06** at limit **
   9  Prefactor     26.472        35.245        .13578E-05    .70648E-04
  10  Prefactor     3.5861        4.7784       -.70925E-06   -.17575E-03
  11  Prefactor     40.449        36.793       -.13705E-05   -.10055E-03
  12  Prefactor     13.146        13.400       -.44339E-06    .28812E-04
  13  norm          .10000E-03    30.488        .13854E-06** at limit **
  14  Prefactor     5.7155        5.6917       -.18475E-06    .40574E-04
  15  norm          14.940        15.027       -.11192E-05   -.14835E-03
  16  norm          .10000E-03    18.077        .61119E-06** at limit **
  17  Prefactor     .96327        44.913        .78312E-05   -.13394E-03
  18  Prefactor     .10001E-03    26.809        .55690E-05** at limit **
  19  Prefactor     .10000E-03    22.666        .20466E-05** at limit **
  20  Prefactor     8.7566        7.6856       -.23235E-06   -.45483E-04
  21  Normalizat    .71842        .30114        .32670E-05   -.74489E-04
  22  Prefactor     .87793        .17912       -.13325E-05    .14358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6449
  Prefactor  = 67.7072
  Prefactor  = 4.33113
  Prefactor  = 23.7435
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 26.4718
  Prefactor  = 3.58608
  Prefactor  = 40.4491
  Prefactor  = 13.1464
  norm       = 0.0001
  Prefactor  = 5.71548
  norm       = 14.9404
  norm       = 0.0001
  Prefactor  = 0.963269
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 8.75665
  Normalizat = 0.718418
  Prefactor  = 0.877925
 **********
 **   18 **HESSE 
 **********

 FCN=   3580.034     FROM HESSE     STATUS=OK           346 CALLS     2741 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5471        .72671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1249        .17644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.645        22.098        .88156E-04   -1.4799    
   4  Prefactor     67.707        56.341        .24385E-03   -1.4060    
   5  Prefactor     4.3311        4.0565        .10415E-03   -1.5292    
   6  Prefactor     23.744        10.257        .82211E-04   -1.4733    
   7  Prefactor     .10000E-03    74.572        .20623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6652        .11461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.472        35.742        .77888E-04   -1.4678    
  10  Prefactor     3.5861        4.6809        .13051E-03   -1.5329    
  11  Prefactor     40.449        36.883        .63048E-04   -1.4435    
  12  Prefactor     13.146        13.439        .11051E-03   -1.4983    
  13  norm          .10000E-03    30.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7155        5.6765        .12880E-03   -1.5230    
  15  norm          14.940        15.017        .10358E-03   -1.4935    
  16  norm          .10000E-03    18.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .96327        89.988        .43154E-02   -1.5512    
  18  Prefactor     .10001E-03    38.581        .35219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.7566        7.6912        .13546E-03   -1.5116    
  21  Normalizat    .71842        .32324        .32035E-03   -1.0317    
  22  Prefactor     .87793        .19473        .20169E-03   -.96917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74438e-10
Minuit parameter uncertainties:
  1  8.26769e-08
  2  1.71872e-06
  3  22.1069
  4  56.3852
  5  4.05672
  6  10.2574
  7  0.000832245
  8  5.79993e-06
  9  35.7712
  10  4.68136
  11  36.9034
  12  13.4422
  13  1.39158e-05
  14  5.67707
  15  15.021
  16  5.5816e-06
  17  18.6487
  18  0.000958945
  19  0.000164917
  20  7.69211
  21  0.324103
  22  0.194882
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  1.315e+01  1.344e+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:  8.779e-01  1.949e-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.184e-01  3.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 61.419 -13.144
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.41e-08 +/- 7.57e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 2.09e-05

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

Saving results to:
/scratch/kocevski/247632/likelihoodResults_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.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) = 3577.67737721
delta logL = 2.35629177185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3577.57113655
delta logL = 2.4625324367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22731       1.0000         .10000E-03   10000.    
     2 'Index     '    6.1344       1.0000          .0000       10.000    
     3 'Normalizat'    .56800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95830       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=   3577.571     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      293 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22443        2.1932        .32009E-02    .76300E-03
   2  Index         6.1426        3.4099        .87255E-01    .80070E-04
   3  Normalizat    .56782        .98835E-01    .80448E-01    .22917E-04
   4  Prefactor     .95836        .68841E-01    .45744E-01    .10864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.224429
  Index      = 6.14257
  Normalizat = 0.567824
  Prefactor  = 0.958364
 **********
 **   18 **HESSE 
 **********

 FCN=   3577.571     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      326 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22443        3.1699        .14264E-04   -1.5613    
   2  Index         6.1426        4.0120        .37373E-02    .23055    
   3  Normalizat    .56782        .26496        .35628E-03   -1.0937    
   4  Prefactor     .95836        .17929        .19401E-03   -.94131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.6735e-11
Minuit parameter uncertainties:
  1  1.68664
  2  4.71576
  3  0.265553
  4  0.179397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247632': 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) = 3577.57113284
delta logL = 2.46253614127

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  2.244e-01  1.687e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  6.143e+00  4.716e+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:  9.584e-01  1.794e-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:  5.678e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.03
Ra Dec: 61.419 -13.144
Photon Index (Free Index): 6.14 +/- 4.72
Photon Flux (Free Index): 2.10e-07 +/- 1.14e-07
Energy Flux (Free Index): 2.60e-05 +/- 1.66e-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/247632/cmap_HighResolution_554515201_554774401_4FGL_J0405.6-1308_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='7.41e-08', energy_flux2='2.60e-05', photon_flux_error='7.57e-08', dlogl='2.46e+00', energy_flux='2.05e-05', photon_flux2='2.10e-07', job_status='DONE', time_completed='2021-08-20 04:38:47.313767', photon_index_error2='4.72', photon_index2='6.14', ts='1.47', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.30e-07', energy_flux_error2='1.66e-05', EG='0.72', time_epoch_completed='1629459527.31', return_code='0', job_id='247632', GAL2='0.96', EG2='0.57', return_code2='102', energy_flux_error='2.09e-05', photon_flux_error2='1.14e-07', ts2='7.03', photon_index='2.55' WHERE bin_id='1216' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 247632: <4FGL_J0405.6-1308_daily_bin1216> in cluster <slac> Done

Job <4FGL_J0405.6-1308_daily_bin1216> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 04:25:21 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:25:23 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:25:23 2021
Terminated at Fri Aug 20 04:38:49 2021
Results reported at Fri Aug 20 04:38:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin1216 61.4189 -13.1438 554515201 554774401 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 :                                   763.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

