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


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin718
RA = 63.2773, Dec = -53.5483
tmin = 673228801, tmax = 673833601
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='258547', job_status='RUN', time_executed='2022-05-10 00:43:20.764391', time_epoch_executed='1652168600.76' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258547

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258547/ft1_4FGL_J0413.1-5332_weekly_bin718.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258547/ft1_4FGL_J0413.1-5332_weekly_bin718.fits outfile=/scratch/kocevski/258547/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin718.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=673228801.0 tmax=673833601.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 5.50
user 5.16
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.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/258547/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin718.fits evtable="EVENTS" outfile="/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.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.59
user 0.41
sys 0.17

Number of photons that the gtmktime cut: 2092

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/258547/ltcube_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.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/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits
.....................!
real 34.29
user 33.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/258547/ltcube_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.fits outfile=/scratch/kocevski/258547/expmap_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.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/258547/ltcube_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.fits
.....................!
real 191.95
user 185.66
sys 5.48

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 LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 198 point sources and 5 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 J0413.1-5332 @ 63.2773 -53.5483

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits scfile=/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits outfile=/scratch/kocevski/258547/cmap_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.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=63.2773 yref=-53.5483 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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits scfile=/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits outfile=/scratch/kocevski/258547/cmap_HighResolution_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.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=63.2773 yref=-53.5483 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.61
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258547/Model_4FGL_J0413.1-5332_weekly_bin718.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 Fornax A
adding source GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits.....................!
real 12836.25
user 12773.41
sys 6.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits', '/scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits', expMap='/scratch/kocevski/258547/expmap_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.fits', expCube='/scratch/kocevski/258547/ltcube_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258547/Model_4FGL_J0413.1-5332_weekly_bin718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0413.1-5332'

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  4.872e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/258547/ft1_filtered_4FGL_J0413.1-5332_weekly_bin718.fits
Spacecraft file(s): /scratch/kocevski/258547/ft2_4FGL_J0413.1-5332_weekly_bin718.fits
Exposure map: /scratch/kocevski/258547/expmap_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.fits
Exposure cube: /scratch/kocevski/258547/ltcube_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258547/Model_4FGL_J0413.1-5332_weekly_bin718.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) = 22451.0677976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9765       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12392E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3466       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.244       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.701       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48928E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6090       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16794E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.822       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6096       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2711       1.0000         .10000E-03   10000.    
    18 'norm      '    41.709       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6237       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6270       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98861       1.0000         .10000E-03   10000.    
    23 'norm      '    4.9066       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.941       1.0000         .10000E-03   10000.    
    26 'norm      '    4.1839       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0550       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22451.06     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3539 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.525        4.0160        .64864E-08    .25515E-03
   2  Prefactor     2.9760        9.1962        .15259E-06   -.68649E-04
   3  Prefactor     .10003E-03    2.5324       -.34985E-06** at limit **
   4  norm          2.3465        .63146        .13541E-07    .53517E-04
   5  Prefactor     6.1539        6.0804        .10803E-06    .11651E-03
   6  Prefactor     .10000E-03    1.0895       -.42491E-08** at limit **
   7  Prefactor     99.244        27.846       -.17043E-06   -.52121E-04
   8  Prefactor     17.695        9.7160       -.13389E-06   -.53742E-04
   9  Prefactor     2.1527        2.0486       -.26946E-08    .12548E-04
  10  Prefactor     .10000E-03    77.944       -.13948E-05** at limit **
  11  Prefactor     4.6090        5.2699       -.12949E-06   -.16395E-03
  12  Prefactor     .10000E-03    3.1584        .25408E-06** at limit **
  13  Prefactor     22.815        15.635        .46911E-06    .13696E-03
  14  norm          2.6109        1.7851        .15283E-06   -.68647E-03
  15  norm          3.7791        2.6651        .64198E-07   -.36611E-03
  16  Prefactor     36.318        28.404       -.41760E-05   -.57610E-03
  17  Prefactor     2.2711        1.5174       -.20791E-07   -.90470E-03
  18  norm          41.708        7.8925        .60845E-07    .11470E-03
  19  Prefactor     .10000E-03    23.625       -.75909E-06** at limit **
  20  norm          1.6238        .75030        .48182E-08   -.78689E-04
  21  Prefactor     4.6265        1.8539       -.62664E-07   -.69535E-03
  22  Prefactor     .98810        2.7586        .18874E-05   -.11656E-02
  23  norm          4.9064        2.2056       -.10048E-06   -.16169E-03
  24  Prefactor     .10000E-03    2.7467       -.77725E-08** at limit **
  25  Prefactor     18.939        8.1093        .16175E-06    .13306E-03
  26  norm          4.1837        2.2700        .81951E-08    .84430E-04
  27  Normalizat    1.0553        .99158E-01    .35750E-06   -.35941E-03
  28  Prefactor     .86589        .95741E-01   -.45795E-06   -.18497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5247
  Prefactor  = 2.97603
  Prefactor  = 0.000100026
  norm       = 2.34648
  Prefactor  = 6.15392
  Prefactor  = 0.0001
  Prefactor  = 99.2439
  Prefactor  = 17.6948
  Prefactor  = 2.15268
  Prefactor  = 0.0001
  Prefactor  = 4.60901
  Prefactor  = 0.0001
  Prefactor  = 22.8149
  norm       = 2.61085
  norm       = 3.77908
  Prefactor  = 36.3178
  Prefactor  = 2.27111
  norm       = 41.7085
  Prefactor  = 0.0001
  norm       = 1.6238
  Prefactor  = 4.62651
  Prefactor  = 0.988101
  norm       = 4.90642
  Prefactor  = 0.0001
  Prefactor  = 18.9395
  norm       = 4.18372
  Normalizat = 1.05527
  Prefactor  = 0.865891
 **********
 **   18 **HESSE 
 **********

 FCN=   22451.06     FROM HESSE     STATUS=OK           539 CALLS     4078 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.525        3.9296        .11802E-03   -1.5029    
   2  Prefactor     2.9760        9.1849        .23533E-03   -1.5363    
   3  Prefactor     .10003E-03    23.926        .43954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3465        .63001        .59536E-04   -1.5402    
   5  Prefactor     6.1539        6.0305        .16184E-03   -1.5212    
   6  Prefactor     .10000E-03    2.7055        .29904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     99.244        27.853        .20177E-03   -1.3712    
   8  Prefactor     17.695        9.7321        .95197E-04   -1.4866    
   9  Prefactor     2.1527        2.0520        .20239E-03   -1.5415    
  10  Prefactor     .10000E-03    80.310        .38464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6090        5.2756        .18748E-03   -1.5279    
  12  Prefactor     .10000E-03    22.544        .49800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.815        15.691        .83846E-04   -1.4752    
  14  norm          2.6109        1.7384        .15419E-03   -1.5385    
  15  norm          3.7791        2.6659        .19794E-03   -1.5319    
  16  Prefactor     36.318        30.185        .66490E-04   -1.4502    
  17  Prefactor     2.2711        1.5026        .13619E-03   -1.5407    
  18  norm          41.708        7.8763        .62070E-04   -1.4415    
  19  Prefactor     .10000E-03    23.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6238        .75759        .80502E-04   -1.5453    
  21  Prefactor     4.6265        1.8591        .10913E-03   -1.5278    
  22  Prefactor     .98810        3.3538        .48797E-03   -1.5509    
  23  norm          4.9064        2.2206        .13892E-03   -1.5265    
  24  Prefactor     .10000E-03    2.7650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.939        8.1006        .92029E-04   -1.4837    
  26  norm          4.1837        2.2681        .15771E-03   -1.5299    
  27  Normalizat    1.0553        .11317        .24294E-03   -.91201    
  28  Prefactor     .86589        .11015        .26873E-03   -.97343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43031e-09
Minuit parameter uncertainties:
  1  3.9297
  2  9.1892
  3  0.00156753
  4  0.63001
  5  6.03113
  6  1.16169e-05
  7  27.8569
  8  9.73296
  9  2.0521
  10  0.000338125
  11  5.27618
  12  3.39598e-05
  13  15.6943
  14  1.73839
  15  2.66601
  16  30.1977
  17  1.50265
  18  7.87648
  19  0.000108613
  20  0.757596
  21  1.8591
  22  3.35443
  23  2.22065
  24  9.33002e-07
  25  8.10111
  26  2.26813
  27  0.113194
  28  0.11018DDone.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.396e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  8.659e-01  1.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  1.055e+00  1.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 63.277 -53.548
Photon Flux Upper Limit: 3.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258547/likelihoodResults_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.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) = 22451.0566479
delta logL = -0.000207328484976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22451.0564405
delta logL = 7.86276359577e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22451.06     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .83959E-01    .90712E-01** at limit **
   2  Index         2.4886        6.8010        .50000       -.10266E-04
   3  Normalizat    1.0553        .38200E-03    .40216E-01    .34592E-04
   4  Prefactor     .86589        .38864E-03    .44569E-01    .11779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48857
  Normalizat = 1.05527
  Prefactor  = 0.865891
 **********
 **   18 **HESSE 
 **********

 FCN=   22451.06     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      264 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.847        .50362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4886        6.0806        .50000       -.52624    
   3  Normalizat    1.0553        .24797E-02    .24294E-03   -.91201    
   4  Prefactor     .86589        .25223E-02    .26874E-03   -.97343    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.54283e-08
Minuit parameter uncertainties:
  1  3.1715e-05
  2  79.5241
  3  0.0024797
  4  0.00252235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258547': 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) = 22451.0564403
delta logL = 2.36621417571e-07

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.172e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.489e+00  7.952e+01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.015e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  8.659e-01  2.522e-03  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  1.055e+00  2.480e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 63.277 -53.548

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/258547/cmap_HighResolution_673228801_673833601_4FGL_J0413.1-5332_weekly_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-03', job_status='DONE', photon_flux_upper_limit='3.17e-08', time_completed='2022-05-10 04:54:52.821396', job_id='258547', GAL2='0.87', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1652183692.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='718' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 10 04:54:52 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 258605: <4FGL_J0413.1-5332_weekly_bin718> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 10 00:05:41 2022
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 10 00:40:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 10 00:40:40 2022
Terminated at Tue May 10 04:51:15 2022
Results reported at Tue May 10 04:51:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin718 63.2773 -53.5483 673228801 673833601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0413.1-5332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14940.00 sec.
    Max Memory :                                 1102 MB
    Average Memory :                             578.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15035 sec.
    Turnaround time :                            17134 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 258547: <4FGL_J0413.1-5332_weekly_bin718> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin718> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 10 00:05:38 2022
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 10 00:40:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 10 00:40:18 2022
Terminated at Tue May 10 04:54:53 2022
Results reported at Tue May 10 04:54:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin718 63.2773 -53.5483 673228801 673833601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0413.1-5332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15040.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             576.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15275 sec.
    Turnaround time :                            17355 sec.

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

