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 56 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 ofDone.


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin725
RA = 63.2773, Dec = -53.5483
tmDone.


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin725
RA = 63.2773, Dec = -53.5483
tmin = 677462401, tmax = 678067201
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='50444', job_status='RUN', time_executed='2022-06-28 00:24:07.902136', time_epoch_executed='1656401047.9' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/50444

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/50444/ft1_4FGL_J0413.1-5332_weekly_bin725.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/50444/ft2_4FGL_J0413.1-5332_weekly_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/50444/ft1_4FGL_J0413.1-5332_weekly_bin725.fits outfile=/scratch/kocevski/50444/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin725.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=677462401.0 tmax=678067201.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.96
user 5.67
sys 0.26

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

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

Number of photons that the gtmktime cut: 1553

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/50444/ft1_filtered_4FGL_J0413.1-5332_weekly_bin725.fits" evtable="EVENTS" scfile=/scratch/kocevski/50444/ft2_4FGL_J0413.1-5332_weekly_bin725.fits sctable="SC_DATA" outfile=/scratch/kocevski/50444/ltcube_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.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/50444/ft2_4FGL_J0413.1-5332_weekly_bin725.fits
.....................!
real 31.50
user 31.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/50444/ft1_filtered_4FGL_J0413.1-5332_weekly_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/50444/ft2_4FGL_J0413.1-5332_weekly_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/50444/ltcube_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.fits outfile=/scratch/kocevski/50444/expmap_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.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/50444/ltcube_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.fits
.....................!
real 192.17
user 186.77
sys 4.92

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/50444/ft1_filtered_4FGL_J0413.1-5332_weekly_bin725.fits scfile=/scratch/kocevski/50444/ft2_4FGL_J0413.1-5332_weekly_bin725.fits outfile=/scratch/kocevski/50444/cmap_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/50444/ft1_filtered_4FGL_J0413.1-5332_weekly_bin725.fits scfile=/scratch/kocevski/50444/ft2_4FGL_J0413.1-5332_weekly_bin725.fits outfile=/scratch/kocevski/50444/cmap_HighResolution_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/50444/ft1_filtered_4FGL_J0413.1-5332_weekly_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/50444/ft2_4FGL_J0413.1-5332_weekly_bin725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/50444/Model_4FGL_J0413.1-5332_weekly_bin725.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/50444/ft1_filtered_4FGL_J0413.1-5332_weekly_bin725.fits.....................!
real 9595.21
user 9567.30
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5066       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7305       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0056       1.0000         .10000E-03   10000.    
     7 'Prefactor '    76.372       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.316       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7278       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.299       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4338       1.0000         .10000E-03   10000.    
    15 'norm      '    14.301       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.519       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49797       1.0000         .10000E-03   10000.    
    18 'norm      '    32.282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.200       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4218       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5760       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3232       1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2708       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11285E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85623       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=   16813.86     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     4471 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7504        1.2944       -.74568E-07   -.19654E-02
   2  Prefactor     1.5076        48.181        .17829E-05   -.13327E-03
   3  Prefactor     .10000E-03    4.5591        .33304E-06** at limit **
   4  norm          1.7305        .73754       -.49290E-07   -.89439E-04
   5  Prefactor     .10000E-03    13.424       -.16860E-05** at limit **
   6  Prefactor     7.0065        4.1706       -.25906E-08   -.64819E-04
   7  Prefactor     76.373        30.443        .10129E-05    .88465E-06
   8  Prefactor     2.3266        12.619       -.53158E-05   -.25028E-04
   9  Prefactor     .10000E-03    .75771       -.47712E-07** at limit **
  10  Prefactor     48.320        29.445        .51348E-05    .23036E-04
  11  Prefactor     8.7278        7.6733       -.10438E-06   -.92368E-04
  12  Prefactor     .10000E-03    2.3716        .33346E-07** at limit **
  13  Prefactor     14.298        18.724       -.19362E-05   -.23615E-04
  14  norm          1.4345        1.7714        .36871E-06    .17581E-03
  15  norm          14.301        3.9333        .89669E-08    .14496E-03
  16  Prefactor     43.514        38.680       -.70815E-05   -.48439E-04
  17  Prefactor     .49779        1.2407        .11600E-07   -.50959E-03
  18  norm          32.283        7.9121       -.25145E-07   -.44986E-03
  19  Prefactor     11.199        13.759       -.12216E-05    .30657E-04
  20  norm          1.4218        .74400       -.80233E-08   -.73608E-03
  21  Prefactor     1.5764        1.6794       -.55507E-07   -.17677E-02
  22  Prefactor     6.3254        7.0827       -.21562E-05   -.11810E-02
  23  norm          .10013E-03    1.1141        .15144E-05** at limit **
  24  Prefactor     8.2711        11.138       -.27673E-06   -.16011E-03
  25  Prefactor     .10000E-03    7.4516       -.69783E-05** at limit **
  26  norm          .10000E-03    1.0369        .12585E-06** at limit **
  27  Normalizat    1.0424        .11103        .10830E-05   -.55586E-03
  28  Prefactor     .85622        .10794       -.47253E-06   -.17804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75036
  Prefactor  = 1.50759
  Prefactor  = 0.0001
  norm       = 1.73052
  Prefactor  = 0.0001
  Prefactor  = 7.00647
  Prefactor  = 76.3728
  Prefactor  = 2.32662
  Prefactor  = 0.0001
  Prefactor  = 48.3201
  Prefactor  = 8.72778
  Prefactor  = 0.0001
  Prefactor  = 14.2982
  norm       = 1.4345
  norm       = 14.3008
  Prefactor  = 43.5136
  Prefactor  = 0.497786
  norm       = 32.2827
  Prefactor  = 11.1988
  norm       = 1.42177
  Prefactor  = 1.57636
  Prefactor  = 6.3254
  norm       = 0.000100127
  Prefactor  = 8.27111
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04242
  Prefactor  = 0.856223
 **********
 **   18 **HESSE 
 **********

 FCN=   16813.86     FROM HESSE     STATUS=OK           529 CALLS     5000 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7504        3.4167        .15711E-02   -1.5443    
   2  Prefactor     1.5076        47.815        .17431E-02   -1.5462    
   3  Prefactor     .10000E-03    4.6063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7305        .73062        .69901E-04   -1.5445    
   5  Prefactor     .10000E-03    13.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0065        4.1681        .75784E-03   -1.5179    
   7  Prefactor     76.373        30.436        .45948E-04   -1.3958    
   8  Prefactor     2.3266        12.623        .26862E-03   -1.5403    
   9  Prefactor     .10000E-03    .75939        .11021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.320        29.426        .57689E-04   -1.4317    
  11  Prefactor     8.7278        7.6933        .67840E-03   -1.5117    
  12  Prefactor     .10000E-03    2.3777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.298        18.742        .10592E-03   -1.4952    
  14  norm          1.4345        1.7431        .18182E-03   -1.5468    
  15  norm          14.301        3.9354        .10591E-03   -1.4951    
  16  Prefactor     43.514        38.780        .60771E-04   -1.4388    
  17  Prefactor     .49779        1.1927        .20570E-03   -1.5567    
  18  norm          32.283        7.7842        .70523E-04   -1.4571    
  19  Prefactor     11.199        13.746        .11971E-03   -1.5039    
  20  norm          1.4218        .75231        .73953E-04   -1.5469    
  21  Prefactor     1.5764        1.6353        .14580E-03   -1.5457    
  22  Prefactor     6.3254        6.8006        .15963E-03   -1.5205    
  23  norm          .10013E-03    8.0381        .23464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.2711        11.126        .13940E-03   -1.5133    
  25  Prefactor     .10000E-03    7.4878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.1025        .25581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0424        .13091        .23569E-03   -.91623    
  28  Prefactor     .85622        .12593        .26083E-03   -.97688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82767e-08
Minuit parameter uncertainties:
  1  3.41705
  2  16.9948
  3  7.80716e-06
  4  0.730627
  5  7.39398e-06
  6  4.16823
  7  30.4421
  8  10.8421
  9  3.15341e-07
  10  29.4345
  11  7.6942
  12  1.92816e-06
  13  18.7499
  14  1.74313
  15  3.93551
  16  38.8026
  17  1.1928
  18  7.78446
  19  13.7501
  20  0.75231
  21  1.63536
  22  6.80142
  23  0.00202433
  24  11.1287
  25  3.54672e-05
  26  1.34035e-05
  27  0.130948
  28  0.125976
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.928e-06  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.562e-01  1.260e-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.042e+00  1.309e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/50444/likelihoodResults_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.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) = 16813.8587311
delta logL = -0.00200319224678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16813.8567277
delta logL = 1.96912878891e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3958       1.0000          .0000       10.000    
     3 'Normalizat'    1.0424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85623       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=   16813.86     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      233 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10149E-03    31.906        .18142E-02** at limit **
   2  Index         2.3258        8.8118        .50000        .45997E-04
   3  Normalizat    1.0424        .91505E-02    .23569E-03   -.50937E-04
   4  Prefactor     .85622        .93160E-02    .26084E-03    .14819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101493
  Index      = 2.32584
  Normalizat = 1.04242
  Prefactor  = 0.856221
 **********
 **   18 **HESSE 
 **********

 FCN=   16813.86     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10149E-03    133.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3258        8.7150        .50000       -.56431    
   3  Normalizat    1.0424        .19650E-01    .94275E-05   -.91623    
   4  Prefactor     .85622        .20005E-01    .10433E-04   -.97688    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47269e-08
Minuit parameter uncertainties:
  1  0.0282475
  2  523.209
  3  0.0196502
  4  0.0200048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/50444': 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) = 16813.8567271
delta logL = 7.48848833609e-07

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  1.015e-04  2.825e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.326e+00  5.232e+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:  8.562e-01  2.000e-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:  1.042e+00  1.965e-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/50444/cmap_HighResolution_677462401_678067201_4FGL_J0413.1-5332_weekly_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-03', job_status='DONE', photon_flux_upper_limit='2.20e-08', time_completed='2022-06-28 03:37:17.912502', job_id='50444', GAL2='0.86', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1656412637.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='7.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='725' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 28 03:37:17 PDT 2022

144>
Subject: Job 50340: <4FGL_J0413.1-5332_weekly_bin725> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin725> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jun 28 00:05:31 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 28 00:21:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 28 00:21:03 2022
Terminated at Tue Jun 28 03:27:54 2022
Results reported at Tue Jun 28 03:27:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin725 63.2773 -53.5483 677462401 678067201 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 :                                   11137.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             577.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11211 sec.
    Turnaround time :                            12143 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 50444: <4FGL_J0413.1-5332_weekly_bin725> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin725> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jun 28 00:05:36 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 28 00:23:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 28 00:23:00 2022
Terminated at Tue Jun 28 03:37:18 2022
Results reported at Tue Jun 28 03:37:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin725 63.2773 -53.5483 677462401 678067201 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 :                                   11570.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             567.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11658 sec.
    Turnaround time :                            12702 sec.

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

