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


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin488
RA = 63.2773, Dec = -53.5483
tmin = 534124801, tmax = 534729601
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='486676', job_status='RUN', time_executed='2021-07-07 02:48:37.556652', time_epoch_executed='1625651317.56' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486676

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486676/ft1_4FGL_J0413.1-5332_weekly_bin488.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486676/ft1_4FGL_J0413.1-5332_weekly_bin488.fits outfile=/scratch/kocevski/486676/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin488.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=534124801.0 tmax=534729601.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.90
user 7.57
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.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/486676/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin488.fits evtable="EVENTS" outfile="/scratch/kocevski/486676/ft1_filtered_4FGL_J0413.1-5332_weekly_bin488.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486676/ft1_filtered_4FGL_J0413.1-5332_weekly_bin488.fits" evtable="EVENTS" scfile=/scratch/kocevski/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.fits sctable="SC_DATA" outfile=/scratch/kocevski/486676/ltcube_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.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/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.fits
.....................!
real 27.61
user 27.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486676/ft1_filtered_4FGL_J0413.1-5332_weekly_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.fits sctable="SC_DATA" expcube=/scratch/kocevski/486676/ltcube_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.fits outfile=/scratch/kocevski/486676/expmap_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.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/486676/ltcube_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.fits
.....................!
real 191.15
user 185.57
sys 5.15

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/486676/ft1_filtered_4FGL_J0413.1-5332_weekly_bin488.fits scfile=/scratch/kocevski/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.fits outfile=/scratch/kocevski/486676/cmap_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486676/ft1_filtered_4FGL_J0413.1-5332_weekly_bin488.fits scfile=/scratch/kocevski/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.fits outfile=/scratch/kocevski/486676/cmap_HighResolution_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.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/486676/ft1_filtered_4FGL_J0413.1-5332_weekly_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/486676/ft2_4FGL_J0413.1-5332_weekly_bin488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486676/Model_4FGL_J0413.1-5332_weekly_bin488.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/486676/ft1_filtered_4FGL_J0413.1-5332_weekly_bin488.fits.....................!
real 8071.75
user 8052.10
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42507E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.315       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5046       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69298E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3579       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2131       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72484       1.0000         .10000E-03   10000.    
    18 'norm      '    26.652       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3061       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1872       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.295       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.079       1.0000         .10000E-03   10000.    
    26 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85392       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1593       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=   14296.11     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3132 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.0489       -.27197E-06** at limit **
   2  Prefactor     1.7521        8.9645       -.23275E-05   -.28795E-04
   3  Prefactor     .10000E-03    1.6151       -.14121E-06** at limit **
   4  norm          1.6473        .70267       -.31183E-07   -.14004E-04
   5  Prefactor     3.0912        6.4770        .19486E-05    .87671E-05
   6  Prefactor     .10000E-03    1.0849       -.11178E-06** at limit **
   7  Prefactor     40.318        25.882        .18418E-05    .22271E-04
   8  Prefactor     4.5674        10.049       -.22362E-06   -.30654E-03
   9  Prefactor     1.5041        2.3984       -.25097E-07   -.97828E-04
  10  Prefactor     13.106        12.809        .42564E-07    .28560E-05
  11  Prefactor     .11881        4.4713        .16156E-07   -.45308E-04
  12  Prefactor     .10000E-03    5.9646       -.35192E-07** at limit **
  13  Prefactor     2.3548        8.0464        .40743E-06   -.30452E-03
  14  norm          3.2130        2.7221       -.82707E-07   -.10260E-03
  15  norm          .10000E-03    1.3404        .73195E-07** at limit **
  16  Prefactor     .10000E-03    25.398       -.50105E-06** at limit **
  17  Prefactor     .72454        1.4398        .14204E-06    .27443E-03
  18  norm          26.654        8.6204       -.99067E-06   -.73630E-04
  19  Prefactor     .10000E-03    6.3663        .63238E-06** at limit **
  20  norm          1.3061        .77115        .23239E-07    .11234E-03
  21  Prefactor     2.1862        2.1878        .14978E-06   -.84897E-04
  22  Prefactor     .10000E-03    5.1738       -.24938E-06** at limit **
  23  norm          .10000E-03    2.7316        .75124E-08** at limit **
  24  Prefactor     13.294        12.289        .14676E-06    .10284E-04
  25  Prefactor     17.083        10.495       -.50540E-06   -.56049E-04
  26  norm          .10000E-03    2.7223        .33490E-06** at limit **
  27  Normalizat    .85399        .11014        .96354E-07    .82260E-04
  28  Prefactor     1.1592        .11535       -.15036E-07    .84453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 1.75206
  Prefactor  = 0.0001
  norm       = 1.64731
  Prefactor  = 3.0912
  Prefactor  = 0.0001
  Prefactor  = 40.3184
  Prefactor  = 4.56737
  Prefactor  = 1.50414
  Prefactor  = 13.1059
  Prefactor  = 0.118814
  Prefactor  = 0.0001
  Prefactor  = 2.35476
  norm       = 3.21303
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.724538
  norm       = 26.6542
  Prefactor  = 0.0001
  norm       = 1.30614
  Prefactor  = 2.18619
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 13.294
  Prefactor  = 17.0826
  norm       = 0.0001
  Normalizat = 0.853986
  Prefactor  = 1.15916
 **********
 **   18 **HESSE 
 **********

 FCN=   14296.11     FROM HESSE     STATUS=OK           547 CALLS     3679 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.6161        .23493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7521        8.9406        .31704E-03   -1.5443    
   3  Prefactor     .10000E-03    1.6199        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6473        .69746        .63017E-04   -1.5451    
   5  Prefactor     3.0912        6.4439        .23071E-03   -1.5356    
   6  Prefactor     .10000E-03    2.1547        .24168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.318        25.848        .63130E-04   -1.4437    
   8  Prefactor     4.5674        11.806        .94183E-03   -1.5281    
   9  Prefactor     1.5041        2.3710        .22653E-03   -1.5463    
  10  Prefactor     13.106        12.813        .11065E-03   -1.4984    
  11  Prefactor     .11881        5.5654        .79522E-01   -1.5639    
  12  Prefactor     .10000E-03    6.0074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3548        21.700        .13345E-02   -1.5401    
  14  norm          3.2130        2.7266        .17405E-03   -1.5349    
  15  norm          .10000E-03    1.3537        .13515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .72454        1.2512        .17263E-02   -1.5538    
  18  norm          26.654        8.5164        .77599E-04   -1.4675    
  19  Prefactor     .10000E-03    6.3677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3061        .77897        .75280E-04   -1.5479    
  21  Prefactor     2.1862        2.0530        .14456E-03   -1.5412    
  22  Prefactor     .10000E-03    34.935        .49749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.8071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.294        12.255        .10985E-03   -1.4979    
  25  Prefactor     17.083        10.467        .96914E-04   -1.4881    
  26  norm          .10000E-03    2.7859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .85399        .13102        .25171E-03   -.98096    
  28  Prefactor     1.1592        .13714        .23353E-03   -.87597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16419e-09
Minuit parameter uncertainties:
  1  0.000683849
  2  7.91731
  3  3.0317e-07
  4  0.697462
  5  6.44536
  6  1.53473e-05
  7  25.8555
  8  11.812
  9  2.37114
  10  12.8162
  11  1.62581
  12  6.5867e-07
  13  14.3033
  14  2.72666
  15  1.61621e-07
  16  3.30833e-06
  17  1.25129
  18  8.51683
  19  1.46351e-06
  20  0.778972
  21  2.05305
  22  0.000760974
  23  1.16846e-06
  24  12.2569
  25  10.4678
  26  1.07562e-05
  27  0.131064
  28  0.137185
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.587e-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.159e+00  1.372e-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:  8.540e-01  1.311e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486676/likelihoodResults_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.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) = 14296.1144211
delta logL = -0.000793501656517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14296.1136307
delta logL = -3.07202935801e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4355       1.0000          .0000       10.000    
     3 'Normalizat'    .85392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1591       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=   14296.11     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    844.67        .18142E-02** at limit **
   2  Index         2.4659        7.2317        .50000       -.46078E-04
   3  Normalizat    .85399        .38561E-01    .25171E-03    .14363E-04
   4  Prefactor     1.1592        .41203E-01    .23353E-03    .10369E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.46585
  Normalizat = 0.853985
  Prefactor  = 1.15916
 **********
 **   18 **HESSE 
 **********

 FCN=   14296.11     FROM HESSE     STATUS=OK            29 CALLS      307 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.5213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4659        6.1932        .50000       -.53150    
   3  Normalizat    .85399        .12597        .10068E-04   -.98096    
   4  Prefactor     1.1592        .13468        .93411E-05   -.87597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74602e-09
Minuit parameter uncertainties:
  1  0.000730026
  2  5.24896
  3  0.126017
  4  0.134723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486676': 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) = 14296.1136271
delta logL = 5.52578057977e-07

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.300e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.466e+00  5.249e+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:  1.159e+00  1.347e-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:  8.540e-01  1.260e-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/486676/cmap_HighResolution_534124801_534729601_4FGL_J0413.1-5332_weekly_bin488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-03', job_status='DONE', photon_flux_upper_limit='3.56e-08', time_completed='2021-07-07 05:28:12.848263', job_id='486676', GAL2='1.16', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1625660892.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='488' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul  7 05:28:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 486676: <4FGL_J0413.1-5332_weekly_bin488> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin488> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Jul  7 02:30:39 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul  7 02:48:23 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:48:23 2021
Terminated at Wed Jul  7 05:28:13 2021
Results reported at Wed Jul  7 05:28:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin488 63.2773 -53.5483 534124801 534729601 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 :                                   9535.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             577.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   9590 sec.
    Turnaround time :                            10654 sec.

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

