aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 62 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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1668
RA = 211.665, Dec = -39.5727
tmin = 671673601, tmax = 671932801
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='555384', job_status='RUN', time_executed='2022-04-18 02:59:09.109782', time_epoch_executed='1650275949.11' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555384/ft1_4FGL_J1406.6-3934_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555384/ft1_4FGL_J1406.6-3934_daily_bin1668.fits outfile=/scratch/kocevski/555384/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1668.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=671673601.0 tmax=671932801.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 3.05
user 2.76
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.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/555384/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.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.45
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 1323

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555384/ltcube_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.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/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits
.....................!
real 10.44
user 10.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555384/ltcube_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.fits outfile=/scratch/kocevski/555384/expmap_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.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/555384/ltcube_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.fits
.....................!
real 155.64
user 150.78
sys 4.55

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 261 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1406.6-3934 @ 211.665 -39.5727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits scfile=/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits outfile=/scratch/kocevski/555384/cmap_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.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=211.665 yref=-39.5727 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.49
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits scfile=/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits outfile=/scratch/kocevski/555384/cmap_HighResolution_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.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=211.665 yref=-39.5727 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.49
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555384/Model_4FGL_J1406.6-3934_daily_bin1668.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source GAL_V02
adding source HESS J1420-607
Working on...
/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits.....................!
real 197.14
user 194.36
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits', '/scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits', expMap='/scratch/kocevski/555384/expmap_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.fits', expCube='/scratch/kocevski/555384/ltcube_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555384/Model_4FGL_J1406.6-3934_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1406.6-3934'

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  8.843e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555384/ft1_filtered_4FGL_J1406.6-3934_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555384/ft2_4FGL_J1406.6-3934_daily_bin1668.fits
Exposure map: /scratch/kocevski/555384/expmap_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555384/ltcube_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555384/Model_4FGL_J1406.6-3934_daily_bin1668.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) = 13077.7553017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17823E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    31.594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.088       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10887E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .83666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13997E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.299       1.0000         .10000E-03   10000.    
    12 'norm      '    .94562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3887       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4220       1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.595       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3854       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0067       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13077.73     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2923 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10331E-03    4.8408        .12432E-05** at limit **
   2  norm          31.599        9.8667        .91029E-07   -.11304E-04
   3  Prefactor     22.759        764.03       -.54594E-05   -.85335E-05
   4  Prefactor     .10000E-03    38.989        .40374E-06** at limit **
   5  norm          .10000E-03    107.94       -.32069E-06** at limit **
   6  norm          .86148        6.2069       -.39627E-06    .23262E-03
   7  Prefactor     45.969        42.096        .17582E-06   -.16379E-04
   8  Prefactor     .10000E-03    26.126        .22800E-06** at limit **
   9  Prefactor     .10000E-03    118.60        .11229E-07** at limit **
  10  Prefactor     78.025        54.903        .72312E-07   -.26559E-04
  11  Prefactor     23.298        16.649       -.19228E-06   -.21682E-03
  12  norm          .94528        2.5421        .14968E-05    .12485E-03
  13  Prefactor     4.3883        49.652       -.32570E-05   -.50163E-04
  14  norm          2.4220        .25231        .18598E-07    .43667E-03
  15  Prefactor     64.500        99.164        .80160E-07   -.11255E-04
  16  Prefactor     1.2877        224.56        .31429E-05   -.16739E-04
  17  Prefactor     .10000E-03    14.131        .12984E-06** at limit **
  18  norm          .10000E-03    5.4899        .17201E-06** at limit **
  19  Prefactor     .10000E-03    11.834        .33636E-06** at limit **
  20  Prefactor     .10000E-03    5.1813        .96727E-07** at limit **
  21  norm          4.3853        1.1784        .14082E-07   -.10857E-03
  22  Normalizat    1.0067        .31074       -.60913E-05   -.18868E-03
  23  Prefactor     1.0218        .82743E-01    .10929E-05   -.74278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103312
  norm       = 31.5989
  Prefactor  = 22.7586
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.861482
  Prefactor  = 45.9689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.0247
  Prefactor  = 23.2978
  norm       = 0.945284
  Prefactor  = 4.38827
  norm       = 2.42202
  Prefactor  = 64.4999
  Prefactor  = 1.28773
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.38528
  Normalizat = 1.00665
  Prefactor  = 1.02175
 **********
 **   18 **HESSE 
 **********

 FCN=   13077.73     FROM HESSE     STATUS=OK           384 CALLS     3307 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10331E-03    5.2899        .77705E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          31.599        9.8706        .71285E-04   -1.4583    
   3  Prefactor     22.759        776.51        .41681E-03   -1.4753    
   4  Prefactor     .10000E-03    39.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    110.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .86148        35.063        .54546E-02   -1.5522    
   7  Prefactor     45.969        42.100        .59129E-04   -1.4351    
   8  Prefactor     .10000E-03    26.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    118.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     78.025        54.921        .22722E-03   -1.3939    
  11  Prefactor     23.298        16.698        .82985E-04   -1.4742    
  12  norm          .94528        2.6679        .27696E-02   -1.5514    
  13  Prefactor     4.3883        48.249        .19225E-03   -1.5289    
  14  norm          2.4220        .25323        .17432E-04   -1.5397    
  15  Prefactor     64.500        99.482        .24966E-03   -1.4100    
  16  Prefactor     1.2877        215.89        .37972E-03   -1.5481    
  17  Prefactor     .10000E-03    14.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.5078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3853        1.1780        .62250E-04   -1.5289    
  22  Normalizat    1.0067        .32770        .59448E-03   -.92808    
  23  Prefactor     1.0218        .88182E-01    .16404E-03   -.92008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39324e-09
Minuit parameter uncertainties:
  1  0.00837171
  2  9.87112
  3  269.766
  4  6.45472e-05
  5  8.21819e-05
  6  10.9983
  7  42.1268
  8  3.00491e-05
  9  2.3878e-05
  10  54.9568
  11  16.701
  12  2.66824
  13  29.1313
  14  0.253227
  15  99.7398
  16  33.4696
  17  5.89232e-06
  18  5.48986e-06
  19  2.13979e-05
  20  4.21463e-06
  21  1.17802
  22  0.328358
  23  0.0881944
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  2.388e-05  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
907    Prefactor:  1.022e+00  8.819e-02  0.000e+00  1.000e+01 ( 1.000e+00)
908        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
909        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
902   Normalization:  1.007e+00  3.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 211.665 -39.573
Photon Flux Upper Limit: 2.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555384/likelihoodResults_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.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) = 13077.7329558
delta logL = -4.00448097935e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13077.7329158
delta logL = -2.78669176623e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13077.73     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      245 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7354.0        .90712E-02** at limit **
   2  Index         1.5378        5.7597        .50000        .26523E-05
   3  Normalizat    1.0067        .52643E-01    .13395        .70678E-04
   4  Prefactor     1.0218        .14716E-01    .41971E-01    .14492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.53781
  Normalizat = 1.00665
  Prefactor  = 1.02175
 **********
 **   18 **HESSE 
 **********

 FCN=   13077.73     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8697.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5378        8.7311        .50000       -.76486    
   3  Normalizat    1.0067        .76515E-01    .59447E-03   -.92808    
   4  Prefactor     1.0218        .21486E-01    .16404E-03   -.92008    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73762e-12
Minuit parameter uncertainties:
  1  0.00624314
  2  34.5848
  3  0.0765231
  4  0.0214858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555384': 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) = 13077.7329158
delta logL = 1.11031113192e-08

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  6.243e-03  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.538e+00  3.458e+01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
907    Prefactor:  1.022e+00  2.149e-02  0.000e+00  1.000e+01 ( 1.000e+00)
908        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
909        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
902   Normalization:  1.007e+00  7.652e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 211.665 -39.573

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/555384/cmap_HighResolution_671673601_671932801_4FGL_J1406.6-3934_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-03', job_status='DONE', photon_flux_upper_limit='2.88e-08', time_completed='2022-04-18 03:23:18.027282', job_id='555384', GAL2='1.02', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1650277398.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1668' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:23:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 555384: <4FGL_J1406.6-3934_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:26 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 02:57:56 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 02:57:56 2022
Terminated at Mon Apr 18 03:23:18 2022
Results reported at Mon Apr 18 03:23:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1668 211.665 -39.5727 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1406.6-3934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1447.53 sec.
    Max Memory :                                 630 MB
    Average Memory :                             356.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2933 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1522 sec.
    Turnaround time :                            11752 sec.

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

