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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin1339
RA = 61.4189, Dec = -13.1438
tmin = 586396801, tmax = 586656001
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='248975', job_status='RUN', time_executed='2021-08-20 04:30:56.024383', time_epoch_executed='1629459056.02' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248975

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248975/ft1_4FGL_J0405.6-1308_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248975/ft1_4FGL_J0405.6-1308_daily_bin1339.fits outfile=/scratch/kocevski/248975/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1339.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.94
user 2.37
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.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/248975/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/248975/ft1_filtered_4FGL_J0405.6-1308_daily_bin1339.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.83
user 0.31
sys 0.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248975/ft1_filtered_4FGL_J0405.6-1308_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/248975/ltcube_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.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/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.fits
.....................!
real 8.95
user 8.17
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248975/ft1_filtered_4FGL_J0405.6-1308_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/248975/ltcube_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.fits outfile=/scratch/kocevski/248975/expmap_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.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/248975/ltcube_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.fits
.....................!
real 194.07
user 186.56
sys 5.19

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/248975/ft1_filtered_4FGL_J0405.6-1308_daily_bin1339.fits scfile=/scratch/kocevski/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.fits outfile=/scratch/kocevski/248975/cmap_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.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.87
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248975/ft1_filtered_4FGL_J0405.6-1308_daily_bin1339.fits scfile=/scratch/kocevski/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.fits outfile=/scratch/kocevski/248975/cmap_HighResolution_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.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.87
user 0.38
sys 0.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248975/ft1_filtered_4FGL_J0405.6-1308_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/248975/ft2_4FGL_J0405.6-1308_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248975/Model_4FGL_J0405.6-1308_daily_bin1339.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/248975/ft1_filtered_4FGL_J0405.6-1308_daily_bin1339.fits.....................!
real 57.24
user 55.31
sys 1.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15877E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.145       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5559       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0396       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.145       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8004       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0172       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99855       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=   3682.415     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2347 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1469        .90712E-02** at limit **
   2  Prefactor     .10000E-03    9.6699        .90712E-02** at limit **
   3  Prefactor     17.814        20.839        .23723E-02    .14613E-03
   4  Prefactor     .10000E-03    96.204        .90712E-02** at limit **
   5  Prefactor     .15607        1.8729        .43523E-01   -.21264E-02
   6  Prefactor     .10000E-03    4.2200        .90712E-02** at limit **
   7  Prefactor     41.143        32.733        .15623E-02    .10202E-02
   8  norm          .10000E-03    .74595        .90712E-02** at limit **
   9  Prefactor     .10000E-03    9.5752        .90712E-02** at limit **
  10  Prefactor     3.5558        3.9097        .53584E-02   -.32334E-02
  11  Prefactor     .10001E-03    17.150        .90712E-02** at limit **
  12  Prefactor     3.0408        7.8783        .58183E-02    .47898E-03
  13  norm          .10001E-03    8.4058        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.0376        .90712E-02** at limit **
  15  norm          .10000E-03    5.0096        .90712E-02** at limit **
  16  norm          .10003E-03    21.126        .90712E-02** at limit **
  17  Prefactor     13.144        12.053        .27620E-02    .27542E-03
  18  Prefactor     .10000E-03    21.073        .90712E-02** at limit **
  19  Prefactor     1.8014        60.556        .77889E-02    .14714E-03
  20  Prefactor     .10000E-03    2.6445        .90712E-02** at limit **
  21  Normalizat    1.0171        .24654        .64175E-01    .11067E-03
  22  Prefactor     .99856        .16410        .46249E-01    .14120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 17.8136
  Prefactor  = 0.000100002
  Prefactor  = 0.156067
  Prefactor  = 0.0001
  Prefactor  = 41.1426
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.55582
  Prefactor  = 0.000100011
  Prefactor  = 3.04075
  norm       = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100026
  Prefactor  = 13.1441
  Prefactor  = 0.0001
  Prefactor  = 1.80137
  Prefactor  = 0.000100001
  Normalizat = 1.01711
  Prefactor  = 0.998558
 **********
 **   18 **HESSE 
 **********

 FCN=   3682.415     FROM HESSE     STATUS=OK           336 CALLS     2683 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1672        .10513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.814        20.898        .94891E-04   -1.4864    
   4  Prefactor     .10000E-03    97.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15607        7.5110        .15990E-02   -1.5629    
   6  Prefactor     .10000E-03    4.2523        .12170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.143        32.748        .62492E-04   -1.4424    
   8  norm          .10000E-03    .76065        .51107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5558        3.9091        .11990E-03   -1.5331    
  11  Prefactor     .10001E-03    17.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0408        7.8588        .23273E-03   -1.5359    
  13  norm          .10001E-03    8.4068        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0611        .10324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.1577        .26517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    21.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.144        12.050        .11048E-03   -1.4983    
  18  Prefactor     .10000E-03    21.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8014        60.834        .31156E-03   -1.5440    
  20  Prefactor     .10000E-03    2.6484        .96375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0171        .28767        .28384E-03   -.92459    
  22  Prefactor     .99856        .19106        .19651E-03   -.92778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20328e-08
Minuit parameter uncertainties:
  1  3.56485e-05
  2  0.000407598
  3  20.9065
  4  0.000774839
  5  2.16497
  6  2.27379e-05
  7  32.7622
  8  1.81318e-05
  9  6.333e-05
  10  3.90941
  11  0.000854382
  12  7.86146
  13  0.000620425
  14  3.46515e-05
  15  1.42094e-05
  16  0.00151076
  17  12.0526
  18  0.000163828
  19  20.959
  20  8.24707e-05
  21  0.288113
  22  0.191194
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  3.041e+00  7.861e+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:  9.986e-01  1.912e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.017e+00  2.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248975/likelihoodResults_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.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) = 3682.36171257
delta logL = 0.0531738599752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3682.36000396
delta logL = 0.0548824691296

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3682.360     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      286 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0615        8.7320        .20004E-03   -.53991E-05
   2  Index         2.1440        1.0963        .13058E-01   -.20258E-04
   3  Normalizat    1.0212        .27450        .28332E-03    .27086E-05
   4  Prefactor     .99570        .18934        .19673E-03    .21122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06147
  Index      = 2.14403
  Normalizat = 1.02117
  Prefactor  = 0.995701
 **********
 **   18 **HESSE 
 **********

 FCN=   3682.360     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0615        8.7338        .80015E-05   -1.5305    
   2  Index         2.1440        1.0969        .26116E-02   -.60796    
   3  Normalizat    1.0212        .27475        .11333E-04   -.92325    
   4  Prefactor     .99570        .18949        .78691E-05   -.92873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48006e-12
Minuit parameter uncertainties:
  1  8.73657
  2  1.11045
  3  0.275128
  4  0.189619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248975': 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) = 3682.36000388
delta logL = 0.0548825528836

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  4.061e+00  8.737e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.144e+00  1.110e+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.957e-01  1.896e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  1.021e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/248975/cmap_HighResolution_586396801_586656001_4FGL_J0405.6-1308_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-08-20 04:39:03.449371', job_id='248975', GAL2='1.00', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1629459543.45', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.49e-02', ts2='0.30', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1339' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:39:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 248975: <4FGL_J0405.6-1308_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin1339 61.4189 -13.1438 586396801 586656001 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 :                                   486.68 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            527 sec.

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

