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 22 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1745
RA = 211.665, Dec = -39.5727
tmin = 691632001, tmax = 691891201
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='647818', job_status='RUN', time_executed='2022-12-05 00:45:47.705433', time_epoch_executed='1670229947.71' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647818/ft1_4FGL_J1406.6-3934_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647818/ft1_4FGL_J1406.6-3934_daily_bin1745.fits outfile=/scratch/kocevski/647818/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1745.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=691632001.0 tmax=691891201.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.36
user 2.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.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/647818/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 617

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/647818/ltcube_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.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/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits
.....................!
real 12.67
user 12.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/647818/ltcube_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.fits outfile=/scratch/kocevski/647818/expmap_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.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/647818/ltcube_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.fits
.....................!
real 190.27
user 185.27
sys 4.68

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_8years/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/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits scfile=/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits outfile=/scratch/kocevski/647818/cmap_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits scfile=/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits outfile=/scratch/kocevski/647818/cmap_HighResolution_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647818/Model_4FGL_J1406.6-3934_daily_bin1745.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/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits.....................!
real 119.33
user 117.95
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits', '/scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits', expMap='/scratch/kocevski/647818/expmap_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.fits', expCube='/scratch/kocevski/647818/ltcube_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647818/Model_4FGL_J1406.6-3934_daily_bin1745.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  0.000e+00  1.000e+06 ( 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/647818/ft1_filtered_4FGL_J1406.6-3934_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/647818/ft2_4FGL_J1406.6-3934_daily_bin1745.fits
Exposure map: /scratch/kocevski/647818/expmap_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.fits
Exposure cube: /scratch/kocevski/647818/ltcube_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647818/Model_4FGL_J1406.6-3934_daily_bin1745.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) = 6346.57404711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12572E-03   1.0000          .0000       .10000E+07
     2 'norm      '    10.101       1.0000          .0000       .10000E+07
     3 'Prefactor '    42.644       1.0000          .0000       .10000E+07
     4 'Prefactor '    33.410       1.0000          .0000       .10000E+07
     5 'norm      '    6.0320       1.0000          .0000       .10000E+07
     6 'norm      '    8.8584       1.0000          .0000       .10000E+07
     7 'Prefactor '    .62398E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31990E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4548       1.0000          .0000       .10000E+07
    10 'Prefactor '    .92065       1.0000          .0000       .10000E+07
    11 'norm      '    .22346E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10109E-01   1.0000          .0000       .10000E+07
    13 'norm      '    4.6475       1.0000          .0000       .10000E+07
    14 'Prefactor '    224.13       1.0000          .0000       .10000E+07
    15 'Prefactor '    .56688E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    53.903       1.0000          .0000       .10000E+07
    17 'norm      '    116.47       1.0000          .0000       .10000E+07
    18 'Prefactor '    .37747E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    65.050       1.0000          .0000       .10000E+07
    20 'norm      '    .43288E-06   1.0000          .0000       .10000E+07
    21 'Normalizat'    .91559       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0584       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6346.529     FROM MIGRAD    STATUS=CONVERGED    226 CALLS     1789 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.4616       -.33058E-06** at limit **
   2  norm          10.108        7.0010        .24973E-06   -.13469E-03
   3  Prefactor     54.736        150.32        .52190E-05    .47032E-01
   4  Prefactor     35.283        74.301        .23576E-05   -.70009E-01
   5  norm          6.3740        31.587        .31885E-06   -.33228E-03
   6  norm          8.4273        14.464        .37505E-06   -.34072E-03
   7  Prefactor      .0000        27.914        .15283E-06** at limit **
   8  Prefactor     .18874E-08    61.282        .43703E-05** at limit **
   9  Prefactor     .61573E-06    328.36        .91847E-05** at limit **
  10  Prefactor     .32021E-03    332.65       -.51966E-05** at limit **
  11  norm           .0000        2.4335        .29839E-06** at limit **
  12  Prefactor      .0000        15.284        .67945E-06** at limit **
  13  norm          4.6404        .63888        .39816E-07    .84052E-03
  14  Prefactor     240.67        246.91       -.15383E-05   -.55687E-01
  15  Prefactor      .0000        18.131       -.46102E-07** at limit **
  16  Prefactor     54.716        41.857        .60632E-06   -.33079E-01
  17  norm          115.34        50.427       -.10181E-05   -.39615E-02
  18  Prefactor      .0000        52.409       -.90216E-05** at limit **
  19  Prefactor     66.504        51.694        .10329E-05   -.26384    
  20  norm           .0000        2.3670        .93577E-06** at limit **
  21  Normalizat    .91598        .42879       -.72589E-05    .70270E-05
  22  Prefactor     1.0571        .14111        .11175E-04    .31104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 10.1076
  Prefactor  = 54.7358
  Prefactor  = 35.2834
  norm       = 6.37397
  norm       = 8.4273
  Prefactor  = 0
  Prefactor  = 1.88738e-09
  Prefactor  = 6.1573e-07
  Prefactor  = 0.00032021
  norm       = 0
  Prefactor  = 0
  norm       = 4.64044
  Prefactor  = 240.673
  Prefactor  = 0
  Prefactor  = 54.7156
  norm       = 115.339
  Prefactor  = 0
  Prefactor  = 66.5042
  norm       = 0
  Normalizat = 0.915983
  Prefactor  = 1.05713
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.529     FROM HESSE     STATUS=OK           380 CALLS     2169 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.108        7.0157        .31503E-03   -1.5644    
   3  Prefactor     54.736        155.66        .15315E-03   -1.5560    
   4  Prefactor     35.283        76.783        .17303E-03   -1.5589    
   5  norm          6.3740        31.862        .40858E-03   -1.5657    
   6  norm          8.4273        14.480        .33653E-03   -1.5650    
   7  Prefactor      .0000        27.875        .15077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18874E-08    61.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61573E-06    328.56        .89238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32021E-03    353.52        .44343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.4331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        15.299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6404        .64044        .46660E-03   -1.5665    
  14  Prefactor     240.67        249.94        .66803E-04   -1.5398    
  15  Prefactor      .0000        18.179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.716        41.965        .13622E-03   -1.5560    
  17  norm          115.34        50.446        .92667E-04   -1.5493    
  18  Prefactor      .0000        52.440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     66.504        109.25        .12399E-03   -1.5545    
  20  norm           .0000        2.3424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91598        .39407        .12922       -.95901    
  22  Prefactor     1.0571        .12804        .39442E-01   -.90849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5734e-05
Minuit parameter uncertainties:
  1  1.97923e-06
  2  7.01567
  3  155.675
  4  76.7853
  5  28.502
  6  14.4802
  7  3.04971e-06
  8  0.000685201
  9  0.0284485
  10  0.672945
  11  5.32638e-07
  12  1.23882e-05
  13  0.640438
  14  249.948
  15  4.51007e-06
  16  41.9654
  17  50.4458
  18  3.18088e-05
  19  109.257
  20  3.00168e-06
  21  0.395321
  22  0.128081
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  6.157e-07  2.845e-02  0.000e+00  1.000e+06 ( 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.057e+00  1.281e-01  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:  9.160e-01  3.953e-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: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647818/likelihoodResults_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.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) = 6346.53060465
delta logL = -0.00145136236188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6346.52915335
delta logL = -6.05587047176e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36082E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.7191       1.0000          .0000       10.000    
     3 'Normalizat'    .91594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0571       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=   6346.529     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      271 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77272E-07    2609.1        .42118E-03** at limit **
   2  Index         .17233        6.6220        .50000        .10004E-09
   3  Normalizat    .91598        .23895E-01    .12923       -.24847E-03
   4  Prefactor     1.0571        .79757E-02    .39510E-01   -.69701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.72715e-08
  Index      = 0.172334
  Normalizat = 0.915977
  Prefactor  = 1.05713
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.529     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      298 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77272E-07    12258.        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .17233        9.4020        .50000       -1.8341    
   3  Normalizat    .91598        .52972E-01    .57349E-03   -.95901    
   4  Prefactor     1.0571        .17761E-01    .17860E-03   -.90849    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75486e-09
Minuit parameter uncertainties:
  1  0.0616817
  2  1.86087e+06
  3  0.0529745
  4  0.0177609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647818': 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) = 6346.52915329
delta logL = 6.32098817732e-10

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  7.727e-08  6.168e-02  0.000e+00  1.000e+06 ( 1.000e-16)
364        Index:  1.723e-01  1.861e+06  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.057e+00  1.776e-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:  9.160e-01  5.297e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/647818/cmap_HighResolution_691632001_691891201_4FGL_J1406.6-3934_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2022-12-05 00:59:56.699584', job_id='647818', GAL2='1.06', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1670230796.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.32e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1745' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:59:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 647818: <4FGL_J1406.6-3934_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1745> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec  5 00:45:16 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:45:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:45:17 2022
Terminated at Mon Dec  5 00:59:57 2022
Results reported at Mon Dec  5 00:59:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1745 211.665 -39.5727 691632001 691891201 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 :                                   851.16 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             366.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

