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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin1497
RA = 61.4189, Dec = -13.1438
tmin = 627350401, tmax = 627609601
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='250686', job_status='RUN', time_executed='2021-08-20 04:41:35.458360', time_epoch_executed='1629459695.46' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='1497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250686/ft1_4FGL_J0405.6-1308_daily_bin1497.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250686/ft1_4FGL_J0405.6-1308_daily_bin1497.fits outfile=/scratch/kocevski/250686/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1497.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=627350401.0 tmax=627609601.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 11.82
user 2.51
sys 9.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.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/250686/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1497.fits evtable="EVENTS" outfile="/scratch/kocevski/250686/ft1_filtered_4FGL_J0405.6-1308_daily_bin1497.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.48
user 0.34
sys 10.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250686/ft1_filtered_4FGL_J0405.6-1308_daily_bin1497.fits" evtable="EVENTS" scfile=/scratch/kocevski/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.fits sctable="SC_DATA" outfile=/scratch/kocevski/250686/ltcube_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.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/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.fits
.....................!
real 24.26
user 12.89
sys 10.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250686/ft1_filtered_4FGL_J0405.6-1308_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.fits sctable="SC_DATA" expcube=/scratch/kocevski/250686/ltcube_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.fits outfile=/scratch/kocevski/250686/expmap_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.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/250686/ltcube_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.fits
.....................!
real 201.13
user 184.85
sys 15.13

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/250686/ft1_filtered_4FGL_J0405.6-1308_daily_bin1497.fits scfile=/scratch/kocevski/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.fits outfile=/scratch/kocevski/250686/cmap_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.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 8.47
user 0.37
sys 8.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250686/ft1_filtered_4FGL_J0405.6-1308_daily_bin1497.fits scfile=/scratch/kocevski/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.fits outfile=/scratch/kocevski/250686/cmap_HighResolution_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.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.34
user 0.37
sys 8.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250686/ft1_filtered_4FGL_J0405.6-1308_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/250686/ft2_4FGL_J0405.6-1308_daily_bin1497.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250686/Model_4FGL_J0405.6-1308_daily_bin1497.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/250686/ft1_filtered_4FGL_J0405.6-1308_daily_bin1497.fits.....................!
real 49.16
user 36.29
sys 12.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.392       1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.711       1.0000         .10000E-03   10000.    
    15 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .42265E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.989       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .33695       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0166       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=   2302.358     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2034 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7612       -.73117E-07** at limit **
   2  Prefactor     10.966        26.120        .29020E-05   -.19202E-04
   3  Prefactor     .10000E-03    39.703        .73469E-05** at limit **
   4  Prefactor     16.292        53.064        .12678E-04   -.29638E-04
   5  Prefactor     11.823        5.1063        .22230E-06    .31430E-04
   6  Prefactor     4.4524        6.1786       -.39558E-06   -.42037E-04
   7  Prefactor     .10000E-03    16.731       -.54957E-06** at limit **
   8  norm          .10000E-03    .90428        .11031E-07** at limit **
   9  Prefactor     .10000E-03    49.082       -.78600E-05** at limit **
  10  Prefactor     .10000E-03    2.6440        .14612E-06** at limit **
  11  Prefactor     2.9930        35.011        .13728E-04   -.81195E-04
  12  Prefactor     21.368        17.462        .31888E-05    .14012E-03
  13  norm          .10000E-03    30.118       -.19558E-05** at limit **
  14  Prefactor     16.703        8.8079        .23665E-06    .11206E-03
  15  norm          .10000E-03    7.3250       -.17611E-06** at limit **
  16  norm          .10153E-03    34.219       -.10396E-04** at limit **
  17  Prefactor     10.293        27.421        .25867E-04    .16450E-03
  18  Prefactor     .10000E-03    9.2149        .48084E-07** at limit **
  19  Prefactor     .10000E-03    17.290        .92532E-06** at limit **
  20  Prefactor     12.987        8.5206        .53533E-06    .28729E-04
  21  Normalizat    .33792        .31887       -.11796E-04    .12727E-03
  22  Prefactor     1.0160        .20123        .97492E-06    .52691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9658
  Prefactor  = 0.0001
  Prefactor  = 16.2917
  Prefactor  = 11.8229
  Prefactor  = 4.45239
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.993
  Prefactor  = 21.3676
  norm       = 0.0001
  Prefactor  = 16.703
  norm       = 0.0001
  norm       = 0.00010153
  Prefactor  = 10.2935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9872
  Normalizat = 0.337916
  Prefactor  = 1.01602
 **********
 **   18 **HESSE 
 **********

 FCN=   2302.358     FROM HESSE     STATUS=OK           348 CALLS     2382 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8363        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.966        26.005        .12097E-03   -1.5046    
   3  Prefactor     .10000E-03    39.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.292        52.886        .99320E-04   -1.4900    
   5  Prefactor     11.823        5.0845        .64835E-04   -1.5020    
   6  Prefactor     4.4524        6.1527        .13053E-03   -1.5286    
   7  Prefactor     .10000E-03    16.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .91823        .44437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6721        .76004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9930        34.257        .23420E-03   -1.5362    
  12  Prefactor     21.368        17.399        .86601E-04   -1.4783    
  13  norm          .10000E-03    30.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.703        8.7235        .89822E-04   -1.4890    
  15  norm          .10000E-03    7.3303        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10153E-03    49.684        .75828E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.293        28.449        .12479E-03   -1.5066    
  18  Prefactor     .10000E-03    9.2252        .14225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.987        8.5181        .10934E-03   -1.4987    
  21  Normalizat    .33792        .31933        .41951E-03   -1.2064    
  22  Prefactor     1.0160        .20901        .17908E-03   -.92197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2958e-10
Minuit parameter uncertainties:
  1  1.40762e-05
  2  26.0314
  3  0.000159466
  4  53.0384
  5  5.0847
  6  6.15354
  7  1.07864e-05
  8  3.09482e-06
  9  0.000322594
  10  1.39742e-05
  11  20.2658
  12  17.4036
  13  5.82381e-05
  14  8.72412
  15  2.31841e-05
  16  0.0174543
  17  28.4868
  18  2.57202e-05
  19  2.50887e-07
  20  8.51887
  21  0.321073
  22  0.209172
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  2.137e+01  1.740e+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.016e+00  2.092e-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:  3.379e-01  3.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 61.419 -13.144
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 9.80e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 2.71e-05

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

Saving results to:
/scratch/kocevski/250686/likelihoodResults_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.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) = 2302.27781644
delta logL = 0.0798020348407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2302.26683703
delta logL = 0.0907814438897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.423       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9689       1.0000          .0000       10.000    
     3 'Normalizat'    .29060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0357       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=   2302.267     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      262 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.454        311.35        .23328E-02    .26036E-04
   2  Index         2.9708        6.2982        .15728        .40686E-04
   3  Normalizat    .29045        .19388        .10199        .17847E-04
   4  Prefactor     1.0354        .93666E-01    .40829E-01   -.17171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4539
  Index      = 2.97076
  Normalizat = 0.290451
  Prefactor  = 1.03541
 **********
 **   18 **HESSE 
 **********

 FCN=   2302.267     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.454        19.322        .93312E-04   -1.4849    
   2  Index         2.9708        1.0979        .58691E-02   -.41791    
   3  Normalizat    .29045        .30810        .45174E-03   -1.2341    
   4  Prefactor     1.0354        .21058        .17761E-03   -.91558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97806e-12
Minuit parameter uncertainties:
  1  19.3288
  2  1.10871
  3  0.309916
  4  0.210753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250686': 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) = 2302.26682426
delta logL = 0.0907942136746

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  1.845e+01  1.933e+01  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.971e+00  1.109e+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.035e+00  2.108e-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:  2.905e-01  3.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 61.419 -13.144
Photon Index (Free Index): 2.97 +/- 1.11
Photon Flux (Free Index): 1.72e-07 +/- 1.65e-07
Energy Flux (Free Index): 3.48e-05 +/- 2.55e-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/250686/cmap_HighResolution_627350401_627609601_4FGL_J0405.6-1308_daily_bin1497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-02', comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='3.48e-05', photon_flux_error='9.80e-08', dlogl='9.08e-02', energy_flux='3.32e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-08-20 04:50:39.043958', photon_index_error2='1.11', photon_index2='2.97', ts='2.98', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='3.34e-07', energy_flux_error2='2.55e-05', EG='0.34', time_epoch_completed='1629460239.04', return_code='0', job_id='250686', GAL2='1.04', EG2='0.29', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='1.65e-07', ts2='3.24', photon_index='2.55' WHERE bin_id='1497' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:50:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 250686: <4FGL_J0405.6-1308_daily_bin1497> in cluster <slac> Done

Job <4FGL_J0405.6-1308_daily_bin1497> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 04:35:24 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:35:25 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:35:25 2021
Terminated at Fri Aug 20 04:50:41 2021
Results reported at Fri Aug 20 04:50:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin1497 61.4189 -13.1438 627350401 627609601 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 :                                   672.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             221.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

