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


Performing analysis on: 4FGL_J1401.7-3217_weekly_bin717
RA = 210.446, Dec = -32.2877
tmin = 672624001, tmax = 673228801
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='374552', job_status='RUN', time_executed='2022-05-03 01:29:58.043167', time_epoch_executed='1651566598.04' WHERE source_name='4FGL J1401.7-3217' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374552

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374552/ft1_4FGL_J1401.7-3217_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374552/ft1_4FGL_J1401.7-3217_weekly_bin717.fits outfile=/scratch/kocevski/374552/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin717.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=672624001.0 tmax=673228801.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 7.60
user 7.27
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.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/374552/ft1_filteredMKT_4FGL_J1401.7-3217_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.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.63
user 0.42
sys 0.18

Number of photons that the gtmktime cut: 57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/374552/ltcube_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.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/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits
.....................!
real 34.01
user 33.55
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/374552/ltcube_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.fits outfile=/scratch/kocevski/374552/expmap_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.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/374552/ltcube_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.fits
.....................!
real 240.45
user 232.88
sys 6.63

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.
Added 206 point sources and 1 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 J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits scfile=/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits outfile=/scratch/kocevski/374552/cmap_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.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=210.446 yref=-32.2877 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.67
user 0.47
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits scfile=/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits outfile=/scratch/kocevski/374552/cmap_HighResolution_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.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=210.446 yref=-32.2877 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.67
user 0.50
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374552/Model_4FGL_J1401.7-3217_weekly_bin717.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 GAL_V02
Working on...
/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits.............................!
real 31.34
user 29.67
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits', '/scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits', expMap='/scratch/kocevski/374552/expmap_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.fits', expCube='/scratch/kocevski/374552/ltcube_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/374552/Model_4FGL_J1401.7-3217_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1401.7-3217'

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.798e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/374552/ft1_filtered_4FGL_J1401.7-3217_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/374552/ft2_4FGL_J1401.7-3217_weekly_bin717.fits
Exposure map: /scratch/kocevski/374552/expmap_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.fits
Exposure cube: /scratch/kocevski/374552/ltcube_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/374552/Model_4FGL_J1401.7-3217_weekly_bin717.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 701.411407947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 698.987046315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0335       1.0000         .10000E-03   10000.    
     3 'Prefactor '    121.76       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36428E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17387       1.0000         .10000E-03   10000.    
     6 'norm      '    .56786E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1172       1.0000         .10000E-03   10000.    
     8 'norm      '    .17218E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.150       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33161       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5578       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6115       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18882       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55300       1.0000         .10000E-03   10000.    
    17 'norm      '    .14498E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4773       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9767       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7386       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2275       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7904       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7520       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63863       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   698.9727     FROM MIGRAD    STATUS=CONVERGED    304 CALLS      684 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.802        18.404        .18648E-02    .41424E-02
   2  Prefactor     .10000E-03    328.20        .12433E-01** at limit **
   3  Prefactor     119.64        195.45        .91183E-03   -.24986E-02
   4  Prefactor     .10000E-03    69.917        .10653E-01** at limit **
   5  Prefactor     .10000E-03    152.82        .98577E-02** at limit **
   6  norm          .10000E-03    121.65        .93031E-02** at limit **
   7  norm          .61036        7244.8        .70867E-02    .41011E-03
   8  norm          .10000E-03    103.84        .10179E-01** at limit **
   9  Prefactor     47.182        43.143        .14599E-02    .26973E-02
  10  Prefactor     .10000E-03    301.80        .10563E-01** at limit **
  11  Prefactor     .10001E-03    407.59        .97046E-02** at limit **
  12  Prefactor     .63738E-03    860.84        .56322E-02** at limit **
  13  Prefactor     .69177E-02    1956.1        .39178E-02    .19669E-02
  14  Prefactor     .10025E-03    429.26        .83414E-02** at limit **
  15  Prefactor     .11389E-03    701.70        .99265E-02** at limit **
  16  Prefactor     .10000E-03    231.23        .11485E-01** at limit **
  17  norm          .10000E-03    138.92        .10249E-01** at limit **
  18  Prefactor     .10961E-03    929.52        .88319E-02** at limit **
  19  norm          1.9769        2.1268        .73711E-02   -.69685    
  20  Prefactor     .23202E-01    1735.9        .52206E-02   -.41149E-02
  21  Prefactor     2.3690        2297.4        .68868E-02   -.20579E-03
  22  norm          .27459E-02    835.54        .45954E-02    .29909E-02
  23  Prefactor     9.7520        1.0013         .0000         .0000    
  24  Normalizat    .63635        .97565        .49379E-04   -.76280E-06
  25  Prefactor     .70666        1.0558       -.16531E-04   -.18091E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.8016
  Prefactor  = 0.0001
  Prefactor  = 119.64
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.610364
  norm       = 0.0001
  Prefactor  = 47.1821
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000637377
  Prefactor  = 0.00691768
  Prefactor  = 0.00010025
  Prefactor  = 0.000113886
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000109614
  norm       = 1.97687
  Prefactor  = 0.0232021
  Prefactor  = 2.36901
  norm       = 0.00274594
  Prefactor  = 9.752
  Normalizat = 0.636346
  Prefactor  = 0.706662
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   698.9727     FROM HESSE     STATUS=FAILED        55 CALLS      739 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.802        18.404        .18648E-02   -1.4634    
   2  Prefactor     .10000E-03    328.20        .12433E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     119.64        195.45        .91183E-03   -1.3516    
   4  Prefactor     .10000E-03    69.917        .10653E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    152.82        .98577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    121.65        .93031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .61036        7244.8        .70867E-02   -1.5552    
   8  norm          .10000E-03    103.84        .10179E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.182        43.143        .14599E-02   -1.4333    
  10  Prefactor     .10000E-03    301.80        .10563E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    407.59        .97046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .63738E-03    860.84        .56322E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .69177E-02    1956.1        .39178E-02   -1.5691    
  14  Prefactor     .10025E-03    429.26        .83414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11389E-03    701.70        .99265E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    231.23        .11485E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    138.92        .10249E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10961E-03    929.52        .88319E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9769        2.1268        .73711E-02   -1.5427    
  20  Prefactor     .23202E-01    1735.9        .52206E-02   -1.5738    
  21  Prefactor     2.3690        2297.4        .68868E-02   -1.5400    
  22  norm          .27459E-02    835.54        .45954E-02   -1.5698    
  23  Prefactor     492.41        482.64         .0000       -1.5083    
  24  Normalizat    .63635        .97565        .49379E-04   -1.0646    
  25  Prefactor     .70666        1.0558       -.16531E-04   -1.0327    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.05462e-10
Minuit parameter uncertainties:
  1  18.4076
  2  0.000456812
  3  196.521
  4  1.95597e-06
  5  3.57518e-05
  6  0.000145666
  7  115.949
  8  3.44263e-05
  9  43.1717
  10  0.00052093
  11  0.00492845
  12  1.3806
  13  7.56569
  14  0.0208894
  15  0.199809
  16  0.000209567
  17  0.000123781
  18  0.192123
  19  2.12685
  20  13.0639
  21  153.894
  22  3.0168
  23  1.00132
  24  1.00418
  25  1.08816
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 698.972727939

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  4.928e-03  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.067e-01  1.088e+00  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  6.363e-01  1.004e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 1.37e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374552/likelihoodResults_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.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) = 698.972739369
delta logL = -1.1430148561e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 698.972739262
delta logL = -1.13232226795e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94618E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1857       1.0000          .0000       10.000    
     3 'Normalizat'    .63631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   698.9727     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      209 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    665.59        .90883E-02** at limit **
   2  Index         2.1551        6.7622        .50000        .59707E-06
   3  Normalizat    .63634        .28161E-01    .12015        .43220E-05
   4  Prefactor     .70666        .96734E-02    .42490E-01    .63804E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.15513
  Normalizat = 0.636344
  Prefactor  = 0.706663
 **********
 **   18 **HESSE 
 **********

 FCN=   698.9727     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6500.9        .18177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1551        6.3866        .50000       -.60526    
   3  Normalizat    .63634        .62704E-01    .53299E-03   -1.0646    
   4  Prefactor     .70666        .21619E-01    .17301E-03   -1.0327    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.86018e-08
Minuit parameter uncertainties:
  1  0.00604338
  2  1715.48
  3  0.062711
  4  0.0216196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374552': 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) = 698.972727934
delta logL = 4.61909621663e-09

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  6.043e-03  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.155e+00  1.715e+03  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  7.067e-01  2.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  6.363e-01  6.271e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 210.446 -32.288

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/374552/cmap_HighResolution_672624001_673228801_4FGL_J1401.7-3217_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-01', job_status='DONE', photon_flux_upper_limit='1.37e-06', time_completed='2022-05-03 01:37:59.925004', job_id='374552', GAL2='0.71', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1651567079.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.71', dlogl='4.62e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='717' AND source_name='4FGL J1401.7-3217' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:37:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 374552: <4FGL_J1401.7-3217_weekly_bin717> in cluster <slac> Done

Job <4FGL_J1401.7-3217_weekly_bin717> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue May  3 01:25:27 2022
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:26:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:26:50 2022
Terminated at Tue May  3 01:38:00 2022
Results reported at Tue May  3 01:38:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_weekly_bin717 210.446 -32.2877 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1401.7-3217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   484.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             241.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            753 sec.

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

