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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin632
RA = 61.4189, Dec = -13.1438
tmin = 403142401, tmax = 403401601
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='240306', job_status='RUN', time_executed='2021-08-20 04:03:12.820029', time_epoch_executed='1629457392.82' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240306/ft1_4FGL_J0405.6-1308_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240306/ft2_4FGL_J0405.6-1308_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240306/ft1_4FGL_J0405.6-1308_daily_bin632.fits outfile=/scratch/kocevski/240306/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin632.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=403142401.0 tmax=403401601.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 12.44
user 3.33
sys 9.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240306/ft1_filtered_4FGL_J0405.6-1308_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/240306/ft2_4FGL_J0405.6-1308_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/240306/ltcube_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.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/240306/ft2_4FGL_J0405.6-1308_daily_bin632.fits
.....................!
real 21.54
user 11.25
sys 10.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240306/ft1_filtered_4FGL_J0405.6-1308_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/240306/ft2_4FGL_J0405.6-1308_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/240306/ltcube_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.fits outfile=/scratch/kocevski/240306/expmap_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.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/240306/ltcube_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.fits
.....................!
real 203.40
user 187.11
sys 15.90

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/240306/ft1_filtered_4FGL_J0405.6-1308_daily_bin632.fits scfile=/scratch/kocevski/240306/ft2_4FGL_J0405.6-1308_daily_bin632.fits outfile=/scratch/kocevski/240306/cmap_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.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.15
user 0.36
sys 8.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240306/ft1_filtered_4FGL_J0405.6-1308_daily_bin632.fits scfile=/scratch/kocevski/240306/ft2_4FGL_J0405.6-1308_daily_bin632.fits outfile=/scratch/kocevski/240306/cmap_HighResolution_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.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.16
user 0.38
sys 8.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240306/ft1_filtered_4FGL_J0405.6-1308_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/240306/ft2_4FGL_J0405.6-1308_daily_bin632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240306/Model_4FGL_J0405.6-1308_daily_bin632.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/240306/ft1_filtered_4FGL_J0405.6-1308_daily_bin632.fits.....................!
real 75.79
user 63.08
sys 12.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1657       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2431       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.242       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4168       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.606       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7232       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.044       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .59060       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0408       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=   4840.549     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2382 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1656        4.0106       -.36002E-06   -.65192E-05
   2  Prefactor     10.366        21.790        .19128E-05    .10330E-04
   3  Prefactor     .10000E-03    16.548       -.10629E-04** at limit **
   4  Prefactor     22.508        34.407        .19957E-05   -.38291E-06
   5  Prefactor     .10000E-03    1.8717       -.77975E-07** at limit **
   6  Prefactor     .10000E-03    3.1897        .88960E-07** at limit **
   7  Prefactor     .10000E-03    30.072        .10078E-04** at limit **
   8  norm          2.2437        1.8169       -.16687E-06   -.33792E-04
   9  Prefactor     27.245        30.359        .18204E-05   -.41771E-04
  10  Prefactor     1.4153        1.3303        .38824E-06   -.28456E-02
  11  Prefactor     .10000E-03    10.823       -.36221E-05** at limit **
  12  Prefactor     .10000E-03    3.5645       -.76425E-07** at limit **
  13  norm          .10000E-03    12.585        .90423E-05** at limit **
  14  Prefactor     .10000E-03    4.7104       -.11279E-06** at limit **
  15  norm          10.606        6.1029       -.41823E-06   -.33553E-03
  16  norm          7.7760        8.5528       -.13662E-06   -.19664E-03
  17  Prefactor     .10019E-03    7.0491        .25931E-05** at limit **
  18  Prefactor     .10000E-03    38.834       -.16562E-04** at limit **
  19  Prefactor     9.7201        24.491       -.38279E-05   -.15104E-04
  20  Prefactor     12.044        7.3830        .14533E-06    .50108E-04
  21  Normalizat    .59059        .19728       -.93778E-06    .59316E-05
  22  Prefactor     1.0407        .13226        .39550E-06   -.80921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.16562
  Prefactor  = 10.3661
  Prefactor  = 0.0001
  Prefactor  = 22.5079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24367
  Prefactor  = 27.2446
  Prefactor  = 1.41527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6064
  norm       = 7.77604
  Prefactor  = 0.000100185
  Prefactor  = 0.0001
  Prefactor  = 9.72009
  Prefactor  = 12.0437
  Normalizat = 0.590592
  Prefactor  = 1.04073
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.549     FROM HESSE     STATUS=OK           346 CALLS     2728 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1656        4.0053        .13001E-03   -1.5300    
   2  Prefactor     10.366        21.737        .12447E-03   -1.5064    
   3  Prefactor     .10000E-03    16.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.508        34.381        .84432E-04   -1.4759    
   5  Prefactor     .10000E-03    2.9490        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2187        .12123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2437        1.8000        .77682E-04   -1.5408    
   9  Prefactor     27.245        30.468        .76755E-04   -1.4664    
  10  Prefactor     1.4153        4.1341        .10661E-02   -1.5470    
  11  Prefactor     .10000E-03    10.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6074        .12825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9139        .29433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.606        6.1006        .12303E-03   -1.5057    
  16  norm          7.7760        8.5323        .14380E-03   -1.5150    
  17  Prefactor     .10019E-03    30.030        .34552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.7201        24.576        .12851E-03   -1.5084    
  20  Prefactor     12.044        7.3838        .11543E-03   -1.5014    
  21  Normalizat    .59059        .22343        .32310E-03   -1.0838    
  22  Prefactor     1.0407        .14893        .17582E-03   -.91384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59137e-08
Minuit parameter uncertainties:
  1  4.0056
  2  21.7536
  3  9.07481e-05
  4  34.411
  5  9.37348e-06
  6  1.49837e-06
  7  3.32624e-05
  8  1.80006
  9  30.485
  10  4.13494
  11  1.72675e-05
  12  2.5571e-06
  13  4.99847e-05
  14  6.86982e-06
  15  6.10098
  16  8.53359
  17  0.00472025
  18  4.3956e-05
  19  24.6014
  20  7.38432
  21  0.22377
  22  0.14899
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.557e-06  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.041e+00  1.490e-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.906e-01  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.419 -13.144
Photon Flux Upper Limit: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240306/likelihoodResults_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.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) = 4840.55003851
delta logL = -0.00131943185534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4840.54871878
delta logL = 3.03431079374e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5236       1.0000          .0000       10.000    
     3 'Normalizat'    .59060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0407       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=   4840.549     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      259 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.534        .13126E-01** at limit **
   2  Index         2.0121        7.7378        .50000       -.16128E-06
   3  Normalizat    .59059        .12563E-01    .32310E-03    .63968E-04
   4  Prefactor     1.0407        .89512E-02    .17582E-03    .12882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01206
  Normalizat = 0.590592
  Prefactor  = 1.04073
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.549     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    891.97        .29819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0121        7.5364        .50000       -.64049    
   3  Normalizat    .59059        .96761E-01    .12924E-04   -1.0838    
   4  Prefactor     1.0407        .68954E-01    .35163E-04   -.91384    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52433e-09
Minuit parameter uncertainties:
  1  9.17654e-05
  2  1195.65
  3  0.0967889
  4  0.0689602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240306': 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) = 4840.54871523
delta logL = 3.85046314477e-06

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  9.177e-05  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.012e+00  1.196e+03  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.041e+00  6.896e-02  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.906e-01  9.679e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/240306/cmap_HighResolution_403142401_403401601_4FGL_J0405.6-1308_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-08-20 04:14:17.409087', job_id='240306', GAL2='1.04', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1629458057.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='632' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:14:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 240306: <4FGL_J0405.6-1308_daily_bin632> in cluster <slac> Done

Job <4FGL_J0405.6-1308_daily_bin632> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 04:00:35 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:00:37 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:00:37 2021
Terminated at Fri Aug 20 04:14:19 2021
Results reported at Fri Aug 20 04:14:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin632 61.4189 -13.1438 403142401 403401601 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 :                                   795.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             233.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

