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


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin274
RA = 63.2773, Dec = -53.5483
tmin = 404697601, tmax = 405302401
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='478699', job_status='RUN', time_executed='2021-07-07 02:07:56.508977', time_epoch_executed='1625648876.51' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478699

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478699/ft1_4FGL_J0413.1-5332_weekly_bin274.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478699/ft2_4FGL_J0413.1-5332_weekly_bin274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478699/ft1_4FGL_J0413.1-5332_weekly_bin274.fits outfile=/scratch/kocevski/478699/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin274.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=404697601.0 tmax=405302401.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 10.08
user 9.75
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478699/ft1_filtered_4FGL_J0413.1-5332_weekly_bin274.fits" evtable="EVENTS" scfile=/scratch/kocevski/478699/ft2_4FGL_J0413.1-5332_weekly_bin274.fits sctable="SC_DATA" outfile=/scratch/kocevski/478699/ltcube_404697601_405302401_4FGL_J0413.1-5332_weekly_bin274.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/478699/ft2_4FGL_J0413.1-5332_weekly_bin274.fits
.....................!
real 28.63
user 28.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478699/ft1_filtered_4FGL_J0413.1-5332_weekly_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/478699/ft2_4FGL_J0413.1-5332_weekly_bin274.fits sctable="SC_DATA" expcube=/scratch/kocevski/478699/ltcube_404697601_405302401_4FGL_J0413.1-5332_weekly_bin274.fits outfile=/scratch/kocevski/478699/expmap_404697601_405302401_4FGL_J0413.1-5332_weekly_bin274.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/478699/ltcube_404697601_405302401_4FGL_J0413.1-5332_weekly_bin274.fits
.....................!
real 191.42
user 185.72
sys 5.20

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/478699/ft1_filtered_4FGL_J0413.1-5332_weekly_bin274.fits scfile=/scratch/kocevski/478699/ft2_4FGL_J0413.1-5332_weekly_bin274.fits outfile=/scratch/kocevski/478699/cmap_404697601_405302401_4FGL_J0413.1-5332_weekly_bin274.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.40
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478699/ft1_filtered_4FGL_J0413.1-5332_weekly_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/478699/ft2_4FGL_J0413.1-5332_weekly_bin274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478699/Model_4FGL_J0413.1-5332_weekly_bin274.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/478699/ft1_filtered_4FGL_J0413.1-5332_weekly_bin274.fits....................!
real 8224.14
user 8208.41
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0383       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10889       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6646       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6833       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2159       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16759E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3988       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8383       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .23119E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2287       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.0930       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .63255       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2563       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=   15359.76     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3089 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8868        1.1557        .16705E-06   -.28724E-02
   2  Prefactor     .10000E-03    27.036       -.14978E-04** at limit **
   3  Prefactor     .10000E-03    6.2592       -.70682E-05** at limit **
   4  norm          1.0384        .64414       -.10805E-08   -.18179E-04
   5  Prefactor     1.5356        9.1897        .62291E-08   -.23059E-04
   6  Prefactor     .10757        2.4888        .10904E-06   -.63358E-05
   7  Prefactor     .10000E-03    6.5880        .86127E-05** at limit **
   8  Prefactor     4.6895        6.6340       -.97125E-07   -.45695E-03
   9  Prefactor     .10000E-03    1.6917        .62314E-07** at limit **
  10  Prefactor     .10000E-03    31.927        .22550E-04** at limit **
  11  Prefactor     7.6665        9.4468       -.27718E-07   -.22096E-03
  12  Prefactor     .10000E-03    3.6266        .86176E-07** at limit **
  13  Prefactor     10.855        12.934       -.25212E-07   -.65952E-04
  14  norm          2.6809        1.8602        .15779E-07    .18336E-03
  15  norm          2.2159        2.7072       -.39528E-07   -.13500E-03
  16  Prefactor     .10000E-03    73.491       -.13026E-04** at limit **
  17  Prefactor     1.3989        1.0551        .16813E-08    .37552E-03
  18  norm          .10000E-03    1.3723        .34194E-07** at limit **
  19  Prefactor     .10000E-03    11.446        .87030E-05** at limit **
  20  norm          2.0959        .83375       -.63516E-08    .43642E-03
  21  Prefactor     1.8387        1.5016        .44781E-07    .79059E-03
  22  Prefactor     .10000E-03    10.296       -.29635E-06** at limit **
  23  norm          .10012E-03    .81665       -.61373E-06** at limit **
  24  Prefactor     4.2286        5.5156       -.16679E-06    .43764E-04
  25  Prefactor     .10000E-03    16.381       -.43961E-05** at limit **
  26  norm          1.0918        2.5600        .91140E-07   -.11803E-04
  27  Normalizat    .63246        .10074        .35546E-06    .50692E-03
  28  Prefactor     1.2563        .10786       -.13089E-06    .58623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03841
  Prefactor  = 1.53563
  Prefactor  = 0.107569
  Prefactor  = 0.0001
  Prefactor  = 4.68952
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.66651
  Prefactor  = 0.0001
  Prefactor  = 10.8549
  norm       = 2.68091
  norm       = 2.21592
  Prefactor  = 0.0001
  Prefactor  = 1.39887
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09587
  Prefactor  = 1.83867
  Prefactor  = 0.0001
  norm       = 0.000100117
  Prefactor  = 4.22859
  Prefactor  = 0.0001
  norm       = 1.09184
  Normalizat = 0.632464
  Prefactor  = 1.2563
 **********
 **   18 **HESSE 
 **********

 FCN=   15359.76     FROM HESSE     STATUS=OK           535 CALLS     3624 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8868        3.8965        .15160E-02   -1.5433    
   2  Prefactor     .10000E-03    27.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0384        .61895        .74811E-03   -1.5504    
   5  Prefactor     1.5356        8.9928        .34434E-03   -1.5460    
   6  Prefactor     .10757        2.7584        .54783E-01   -1.5642    
   7  Prefactor     .10000E-03    6.6184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6895        6.6988        .92931E-03   -1.5275    
   9  Prefactor     .10000E-03    4.8079        .30846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6665        9.4510        .72424E-03   -1.5154    
  12  Prefactor     .10000E-03    3.6593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.855        12.960        .60806E-03   -1.5049    
  14  norm          2.6809        1.8572        .13587E-03   -1.5380    
  15  norm          2.2159        2.6970        .21732E-03   -1.5410    
  16  Prefactor     .10000E-03    74.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3989        1.0341        .10395E-03   -1.5471    
  18  norm          .10000E-03    1.3909        .14170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0959        .83746        .65567E-04   -1.5418    
  21  Prefactor     1.8387        1.4555        .11871E-03   -1.5437    
  22  Prefactor     .10000E-03    10.602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10012E-03    9.1283        .20912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2286        5.5107        .19595E-03   -1.5297    
  25  Prefactor     .10000E-03    16.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0918        2.5311        .29286E-03   -1.5499    
  27  Normalizat    .63246        .11810        .26469E-03   -1.0662    
  28  Prefactor     1.2563        .12558        .20946E-03   -.84616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20988e-08
Minuit parameter uncertainties:
  1  3.89707
  2  0.00012912
  3  2.86624e-05
  4  0.61895
  5  7.43372
  6  1.08899
  7  1.08711e-05
  8  6.69988
  9  3.72491e-05
  10  0.000534177
  11  9.45282
  12  7.56739e-07
  13  12.9638
  14  1.85726
  15  2.69714
  16  5.64939e-05
  17  1.0341
  18  2.109e-08
  19  8.61376e-06
  20  0.837465
  21  1.45555
  22  5.73155e-05
  23  0.00206713
  24  5.51138
  25  3.52308e-05
  26  2.53133
  27  0.118143
  28  0.125606
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.567e-07  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:  1.256e+00  1.256e-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:  6.325e-01  1.181e-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: 2.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478699/likelihoodResults_404697601_405302401_4FGL_J0413.1-5332_weekly_bin274.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) = 15359.7654049
delta logL = -0.00130230953619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15359.7641021
delta logL = 4.88742443849e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3799       1.0000          .0000       10.000    
     3 'Normalizat'    .63244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2563       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=   15359.76     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      270 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6936        .81861E-01** at limit **
   2  Index         1.3255        5.3499        .50000       -.40432E-06
   3  Normalizat    .63246        .24114E-02    .26469E-03   -.61825E-03
   4  Prefactor     1.2563        .26233E-02    .20946E-03   -.72101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.32547
  Normalizat = 0.632464
  Prefactor  = 1.2563
 **********
 **   18 **HESSE 
 **********

 FCN=   15359.76     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      301 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    278.62        .45496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3255        5.6790        .50000       -.82553    
   3  Normalizat    .63246        .11137E-01    .10587E-04   -1.0662    
   4  Prefactor     1.2563        .12116E-01    .41893E-04   -.84616    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10992e-09
Minuit parameter uncertainties:
  1  3.91506e-06
  2  382.33
  3  0.0111375
  4  0.0121163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478699': 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) = 15359.7640927
delta logL = 9.92925197352e-06

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.915e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.325e+00  3.823e+02  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:  1.256e+00  1.212e-02  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:  6.325e-01  1.114e-02  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/478699/cmap_HighResolution_404697601_405302401_4FGL_J0413.1-5332_weekly_bin274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-03', job_status='DONE', photon_flux_upper_limit='2.53e-08', time_completed='2021-07-07 04:50:54.960464', job_id='478699', GAL2='1.26', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1625658654.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='9.93e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='274' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul  7 04:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 478699: <4FGL_J0413.1-5332_weekly_bin274> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin274> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul  7 02:00:47 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul  7 02:07:24 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:07:24 2021
Terminated at Wed Jul  7 04:50:55 2021
Results reported at Wed Jul  7 04:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin274 63.2773 -53.5483 404697601 405302401 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 :                                   9760.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             573.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9811 sec.
    Turnaround time :                            10208 sec.

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

