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


Performing analysis on: 4FGL_J0405.6-1308_daily_bin1171
RA = 61.4189, Dec = -13.1438
tmin = 542851201, tmax = 543110401
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='246234', job_status='RUN', time_executed='2021-08-20 04:22:18.206678', time_epoch_executed='1629458538.21' WHERE source_name='4FGL J0405.6-1308' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/246234

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/246234/ft1_4FGL_J0405.6-1308_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/246234/ft1_4FGL_J0405.6-1308_daily_bin1171.fits outfile=/scratch/kocevski/246234/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1171.fits ra=61.4189 dec=-13.1438 rad=12.0 tmin=542851201.0 tmax=543110401.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 1.05
user 0.62
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.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/246234/ft1_filteredMKT_4FGL_J0405.6-1308_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/246234/ft1_filtered_4FGL_J0405.6-1308_daily_bin1171.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.70
user 0.30
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/246234/ft1_filtered_4FGL_J0405.6-1308_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/246234/ltcube_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.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/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.fits
.....................!
real 2.12
user 1.53
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/246234/ft1_filtered_4FGL_J0405.6-1308_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/246234/ltcube_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.fits outfile=/scratch/kocevski/246234/expmap_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.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/246234/ltcube_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.fits
.....................!
real 191.92
user 185.90
sys 5.50

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/246234/ft1_filtered_4FGL_J0405.6-1308_daily_bin1171.fits scfile=/scratch/kocevski/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.fits outfile=/scratch/kocevski/246234/cmap_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.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.81
user 0.34
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/246234/ft1_filtered_4FGL_J0405.6-1308_daily_bin1171.fits scfile=/scratch/kocevski/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.fits outfile=/scratch/kocevski/246234/cmap_HighResolution_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.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.74
user 0.34
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/246234/ft1_filtered_4FGL_J0405.6-1308_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/246234/ft2_4FGL_J0405.6-1308_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/246234/Model_4FGL_J0405.6-1308_daily_bin1171.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/246234/ft1_filtered_4FGL_J0405.6-1308_daily_bin1171.fits......................!
real 23.08
user 21.55
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.883       1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    121.79       1.0000         .10000E-03   10000.    
     8 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.743       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50621       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8395       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.642       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16256E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.762       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .46159       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2771       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=   939.0710     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2405 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.904        30.083       -.11892E-06    .44645E-04
   2  Prefactor     63.367        95.652        .17983E-05    .18259E-04
   3  Prefactor     9.1513        46.594        .16970E-05    .13134E-04
   4  Prefactor     .10000E-03    62.234       -.61664E-06** at limit **
   5  Prefactor     .10000E-03    2.9189        .11813E-07** at limit **
   6  Prefactor     .10000E-03    7.3820        .91154E-07** at limit **
   7  Prefactor     122.29        134.48        .38723E-05   -.19221E-04
   8  norm          .10000E-03    1.8209       -.50892E-07** at limit **
   9  Prefactor     22.665        120.96       -.64197E-05   -.38333E-04
  10  Prefactor     .10000E-03    6.4464        .75143E-06** at limit **
  11  Prefactor     49.723        98.545        .18802E-05   -.65794E-05
  12  Prefactor     .48626        121.46        .22518E-04   -.22947E-04
  13  norm          1.9006        584.43        .54991E-05    .72283E-05
  14  Prefactor     .10000E-03    7.9010        .10476E-05** at limit **
  15  norm          .10000E-03    6.1048        .30744E-06** at limit **
  16  norm          .10000E-03    8.9298        .19836E-06** at limit **
  17  Prefactor     13.645        20.061        .45479E-06    .22535E-04
  18  Prefactor     .10000E-03    146.33        .24233E-05** at limit **
  19  Prefactor     .10000E-03    16.443        .79462E-07** at limit **
  20  Prefactor     26.768        22.934        .99744E-07    .47070E-04
  21  Normalizat    .46251        .59575       -.15670E-04   -.61057E-04
  22  Prefactor     1.2763        .40141        .40777E-05   -.21690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9042
  Prefactor  = 63.3667
  Prefactor  = 9.15128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 122.295
  norm       = 0.0001
  Prefactor  = 22.6653
  Prefactor  = 0.0001
  Prefactor  = 49.7235
  Prefactor  = 0.486257
  norm       = 1.90058
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6455
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 26.7677
  Normalizat = 0.462507
  Prefactor  = 1.27632
 **********
 **   18 **HESSE 
 **********

 FCN=   939.0710     FROM HESSE     STATUS=OK           336 CALLS     2741 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.904        30.101        .92170E-04   -1.4838    
   2  Prefactor     63.367        95.784        .50372E-04   -1.4114    
   3  Prefactor     9.1513        46.341        .13231E-03   -1.5103    
   4  Prefactor     .10000E-03    62.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9194        .51140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3828        .81342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     122.29        134.99        .18234E-03   -1.3492    
   8  norm          .10000E-03    1.8254        .40382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.665        123.79        .82888E-04   -1.4755    
  10  Prefactor     .10000E-03    6.5328        .76178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.723        98.492        .56859E-04   -1.4296    
  12  Prefactor     .48626        123.36        .27028E-02   -1.5569    
  13  norm          1.9006        604.78        .30758E-03   -1.5432    
  14  Prefactor     .10000E-03    8.0261        .84553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.1227        .73968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.9376        .89479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.645        20.048        .10845E-03   -1.4969    
  18  Prefactor     .10000E-03    148.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.444        .12142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.768        22.955        .77438E-04   -1.4673    
  21  Normalizat    .46251        .60759        .40131E-03   -1.1419    
  22  Prefactor     1.2763        .41107        .18109E-03   -.84014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35182e-10
Minuit parameter uncertainties:
  1  30.1252
  2  96.0185
  3  41.2371
  4  5.37877e-05
  5  1.64539e-06
  6  6.21657e-06
  7  135.331
  8  1.4258e-06
  9  106.278
  10  4.52623e-05
  11  98.8167
  12  15.5209
  13  68.5145
  14  8.46605e-05
  15  8.36096e-06
  16  2.34346e-05
  17  20.0583
  18  0.00108931
  19  7.74259e-06
  20  22.9621
  21  0.6166
  22  0.412116
Done.

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

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  4.863e-01  1.552e+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.276e+00  4.121e-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:  4.625e-01  6.166e-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: 3.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/246234/likelihoodResults_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.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) = 938.931387895
delta logL = 0.139588080182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 938.930052192
delta logL = 0.140923782777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81201       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6057       1.0000          .0000       10.000    
     3 'Normalizat'    .35853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3199       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=   938.9301     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81280        57.910        .12118E-01    .12779E-03
   2  Index         4.6035        7.2103        .18655        .14263E-04
   3  Normalizat    .35850        .11297        .10254        .17516E-04
   4  Prefactor     1.3197        .81100E-01    .32272E-01    .63209E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.8128
  Index      = 4.60352
  Normalizat = 0.358497
  Prefactor  = 1.31967
 **********
 **   18 **HESSE 
 **********

 FCN=   938.9301     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      262 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81280        161.56        .55384E-03   -1.5528    
   2  Index         4.6035        7.1381        .64049E-02   -.79379E-01
   3  Normalizat    .35850        .52055        .45427E-03   -1.1950    
   4  Prefactor     1.3197        .36756        .17845E-03   -.82724    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.17721e-09
Minuit parameter uncertainties:
  1  22.9802
  2  19.69
  3  0.527811
  4  0.368282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/246234': 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) = 938.930050756
delta logL = 0.140925218392

Extracting fit parameters...

4FGL J0405.6-1308
   Spectrum: PowerLaw
265    Prefactor:  8.128e-01  2.298e+01  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  4.604e+00  1.969e+01  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.320e+00  3.683e-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.585e-01  5.278e-01  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/246234/cmap_HighResolution_542851201_543110401_4FGL_J0405.6-1308_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-02', job_status='DONE', photon_flux_upper_limit='3.04e-07', time_completed='2021-08-20 04:27:44.901660', job_id='246234', GAL2='1.32', fit_tolerance='1e-08', EG2='0.36', EG='0.46', time_epoch_completed='1629458864.9', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.41e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1171' AND source_name='4FGL J0405.6-1308' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 246234: <4FGL_J0405.6-1308_daily_bin1171> in cluster <slac> Done

Job <4FGL_J0405.6-1308_daily_bin1171> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 20 04:20:30 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:20:32 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:20:32 2021
Terminated at Fri Aug 20 04:27:45 2021
Results reported at Fri Aug 20 04:27:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.6-1308_daily_bin1171 61.4189 -13.1438 542851201 543110401 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 :                                   334.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   433 sec.
    Turnaround time :                            435 sec.

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

