aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 1 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 = 17204
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin409
RA = 63.2773, Dec = -53.5483
tmin = 486345601, tmax = 486950401
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='479957', job_status='RUN', time_executed='2021-07-07 02:47:35.410162', time_epoch_executed='1625651255.41' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479957

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479957/ft1_4FGL_J0413.1-5332_weekly_bin409.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479957/ft1_4FGL_J0413.1-5332_weekly_bin409.fits outfile=/scratch/kocevski/479957/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin409.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=486345601.0 tmax=486950401.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.73
user 7.35
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.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/479957/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin409.fits evtable="EVENTS" outfile="/scratch/kocevski/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.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.57
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits" evtable="EVENTS" scfile=/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits sctable="SC_DATA" outfile=/scratch/kocevski/479957/ltcube_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.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/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits
.....................!
real 28.48
user 27.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits sctable="SC_DATA" expcube=/scratch/kocevski/479957/ltcube_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.fits outfile=/scratch/kocevski/479957/expmap_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.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/479957/ltcube_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.fits
.....................!
real 191.82
user 185.25
sys 5.16

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/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits scfile=/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits outfile=/scratch/kocevski/479957/cmap_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.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.65
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits scfile=/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits outfile=/scratch/kocevski/479957/cmap_HighResolution_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479957/Model_4FGL_J0413.1-5332_weekly_bin409.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/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits.....................!
real 8014.28
user 7972.04
sys 3.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits', '/scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits', expMap='/scratch/kocevski/479957/expmap_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.fits', expCube='/scratch/kocevski/479957/ltcube_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479957/Model_4FGL_J0413.1-5332_weekly_bin409.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/479957/ft1_filtered_4FGL_J0413.1-5332_weekly_bin409.fits
Spacecraft file(s): /scratch/kocevski/479957/ft2_4FGL_J0413.1-5332_weekly_bin409.fits
Exposure map: /scratch/kocevski/479957/expmap_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.fits
Exposure cube: /scratch/kocevski/479957/ltcube_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479957/Model_4FGL_J0413.1-5332_weekly_bin409.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) = 13759.0882036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.160       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6325       1.0000         .10000E-03   10000.    
     4 'norm      '    .61399       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7518       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20590E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1612       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9703       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.579       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3959       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6879       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8364       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1065       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8496       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.053       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.350       1.0000         .10000E-03   10000.    
    26 'norm      '    .30847E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0060       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93484       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=   13759.01     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3061 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7290        2.7133        .28633E-06   -.12856E-03
   2  Prefactor     12.161        14.679        .17543E-06    .37643E-04
   3  Prefactor     6.6330        7.7026       -.21400E-06   -.66094E-04
   4  norm          .61373        .62465        .15169E-06    .79290E-04
   5  Prefactor     15.989        12.851       -.40311E-06   -.14155E-04
   6  Prefactor     4.7518        3.8301        .10492E-05   -.61594E-03
   7  Prefactor     4.4761        41.327       -.36985E-05   -.13548E-03
   8  Prefactor     .10001E-03    15.255        .32345E-05** at limit **
   9  Prefactor     .10000E-03    1.9949        .32240E-06** at limit **
  10  Prefactor     5.9576        28.363       -.13694E-07   -.31099E-04
  11  Prefactor     7.4905        7.0432        .22256E-07   -.64542E-04
  12  Prefactor     .10000E-03    9.7589       -.89746E-06** at limit **
  13  Prefactor     .10001E-03    16.831       -.34043E-05** at limit **
  14  norm          1.1615        1.7813        .34112E-06   -.14170E-03
  15  norm          1.9706        2.6376        .31107E-06   -.21223E-03
  16  Prefactor     26.579        25.300       -.38772E-06   -.83467E-04
  17  Prefactor     2.3960        1.3533       -.24239E-07   -.68339E-04
  18  norm          1.6887        3.5374        .72668E-06   -.16577E-03
  19  Prefactor     .10000E-03    6.6554       -.75280E-07** at limit **
  20  norm          3.8363        1.3393       -.45426E-07   -.64244E-04
  21  Prefactor     3.1068        2.1734        .78146E-07   -.22772E-03
  22  Prefactor     .10000E-03    5.0119       -.27616E-07** at limit **
  23  norm          2.8512        2.4796        .86492E-07   -.10247E-03
  24  Prefactor     15.054        12.037       -.22456E-07   -.30290E-04
  25  Prefactor     12.345        10.172       -.32546E-07   -.64115E-03
  26  norm          .10192E-03    1.7750        .95801E-06** at limit **
  27  Normalizat    1.0059        .11211       -.21868E-06   -.37530E-03
  28  Prefactor     .93489        .11493       -.87725E-07   -.41880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72898
  Prefactor  = 12.161
  Prefactor  = 6.63304
  norm       = 0.613733
  Prefactor  = 15.9893
  Prefactor  = 4.75183
  Prefactor  = 4.47607
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 5.95761
  Prefactor  = 7.49055
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  norm       = 1.16153
  norm       = 1.97055
  Prefactor  = 26.5793
  Prefactor  = 2.39603
  norm       = 1.68867
  Prefactor  = 0.0001
  norm       = 3.83625
  Prefactor  = 3.10675
  Prefactor  = 0.0001
  norm       = 2.85123
  Prefactor  = 15.0538
  Prefactor  = 12.3446
  norm       = 0.00010192
  Normalizat = 1.00591
  Prefactor  = 0.934887
 **********
 **   18 **HESSE 
 **********

 FCN=   13759.01     FROM HESSE     STATUS=OK           545 CALLS     3606 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7290        2.6862        .23145E-03   -1.5445    
   2  Prefactor     12.161        14.649        .11487E-03   -1.5010    
   3  Prefactor     6.6330        7.6841        .15582E-03   -1.5193    
   4  norm          .61373        .55792        .90394E-03   -1.5551    
   5  Prefactor     15.989        12.869        .10016E-03   -1.4908    
   6  Prefactor     4.7518        3.9995        .92289E-03   -1.5272    
   7  Prefactor     4.4761        43.367        .18914E-03   -1.5285    
   8  Prefactor     .10001E-03    16.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8500        .31439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9576        28.474        .16439E-03   -1.5220    
  11  Prefactor     7.4905        7.0364        .14652E-03   -1.5161    
  12  Prefactor     .10000E-03    9.9872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    18.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1615        1.7539        .18792E-03   -1.5492    
  15  norm          1.9706        2.6319        .21372E-03   -1.5427    
  16  Prefactor     26.579        25.345        .77704E-04   -1.4676    
  17  Prefactor     2.3960        1.3478        .96947E-04   -1.5398    
  18  norm          1.6887        3.5294        .30826E-03   -1.5448    
  19  Prefactor     .10000E-03    6.6593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8363        1.3491        .70041E-04   -1.5316    
  21  Prefactor     3.1068        2.1705        .11980E-03   -1.5355    
  22  Prefactor     .10000E-03    5.0359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8512        2.4618        .16233E-03   -1.5370    
  24  Prefactor     15.054        12.036        .10323E-03   -1.4932    
  25  Prefactor     12.345        10.384        .11398E-03   -1.5005    
  26  norm          .10192E-03    3.3435        .45559E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0059        .13177        .23273E-03   -.92833    
  28  Prefactor     .93489        .13487        .24805E-03   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11759e-09
Minuit parameter uncertainties:
  1  2.68635
  2  14.6532
  3  7.68522
  4  0.557929
  5  12.871
  6  3.99968
  7  27.8912
  8  0.000640691
  9  0.000318959
  10  26.0688
  11  7.0372
  12  0.000143382
  13  0.000764479
  14  1.75394
  15  2.63208
  16  25.3555
  17  1.34785
  18  3.52979
  19  1.13906e-05
  20  1.34911
  21  2.17053
  22  2.53856e-06
  23  2.46193
  24  12.0378
  25  10.3858
  26  0.00506795
  27  0.131813
  28  0.134918
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.434e-04  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:  9.349e-01  1.349e-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.006e+00  1.318e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479957/likelihoodResults_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.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) = 13759.0076255
delta logL = -0.000477349667563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13759.0071495
delta logL = -1.37655479193e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13314E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4436       1.0000          .0000       10.000    
     3 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93488       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13759.01     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    18.132        .36285E-03** at limit **
   2  Index         2.4802        6.1692        .50000       -.32810E-04
   3  Normalizat    1.0059        .12692        .23273E-03    .69074E-04
   4  Prefactor     .93489        .13158        .24805E-03    .89832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.48022
  Normalizat = 1.00591
  Prefactor  = 0.934888
 **********
 **   18 **HESSE 
 **********

 FCN=   13759.01     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    11.204        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4802        6.2385        .50000       -.52817    
   3  Normalizat    1.0059        .12705        .93090E-05   -.92833    
   4  Prefactor     .93489        .13171        .99219E-05   -.94932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48309e-09
Minuit parameter uncertainties:
  1  0.000743926
  2  4.34961
  3  0.127087
  4  0.131756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479957': 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): 0
logL (Free Index) = 13759.0071476
delta logL = 4.95665517519e-07

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.439e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.480e+00  4.350e+00  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:  9.349e-01  1.318e-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.006e+00  1.271e-01  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/479957/cmap_HighResolution_486345601_486950401_4FGL_J0413.1-5332_weekly_bin409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.80e-08', time_completed='2021-07-07 05:25:03.215423', job_id='479957', GAL2='0.93', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1625660703.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='409' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul  7 05:25:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 479957: <4FGL_J0413.1-5332_weekly_bin409> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin409> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jul  7 02:05:33 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul  7 02:47:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul  7 02:47:26 2021
Terminated at Wed Jul  7 05:25:04 2021
Results reported at Wed Jul  7 05:25:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin409 63.2773 -53.5483 486345601 486950401 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 :                                   9390.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             578.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9457 sec.
    Turnaround time :                            11971 sec.

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

