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 52 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 = 17352
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0413.1-5332_weekly_bin714
RA = 63.2773, Dec = -53.5483
tmin = 670809601, tmax = 671414401
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='419009', job_status='RUN', time_executed='2022-04-12 00:51:32.408120', time_epoch_executed='1649749892.41' WHERE source_name='4FGL J0413.1-5332' and cadence='weekly' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/419009

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/419009/ft1_4FGL_J0413.1-5332_weekly_bin714.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/419009/ft2_4FGL_J0413.1-5332_weekly_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/419009/ft1_4FGL_J0413.1-5332_weekly_bin714.fits outfile=/scratch/kocevski/419009/ft1_filteredMKT_4FGL_J0413.1-5332_weekly_bin714.fits ra=63.2773 dec=-53.5483 rad=12.0 tmin=670809601.0 tmax=671414401.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 11.73
user 11.42
sys 0.27

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

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

Number of photons that the gtmktime cut: 1679

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/419009/ft1_filtered_4FGL_J0413.1-5332_weekly_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/419009/ft2_4FGL_J0413.1-5332_weekly_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/419009/ltcube_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.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/419009/ft2_4FGL_J0413.1-5332_weekly_bin714.fits
.....................!
real 25.93
user 25.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/419009/ft1_filtered_4FGL_J0413.1-5332_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/419009/ft2_4FGL_J0413.1-5332_weekly_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/419009/ltcube_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.fits outfile=/scratch/kocevski/419009/expmap_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.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/419009/ltcube_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.fits
.....................!
real 189.24
user 185.11
sys 3.80

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/419009/ft1_filtered_4FGL_J0413.1-5332_weekly_bin714.fits scfile=/scratch/kocevski/419009/ft2_4FGL_J0413.1-5332_weekly_bin714.fits outfile=/scratch/kocevski/419009/cmap_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/419009/ft1_filtered_4FGL_J0413.1-5332_weekly_bin714.fits scfile=/scratch/kocevski/419009/ft2_4FGL_J0413.1-5332_weekly_bin714.fits outfile=/scratch/kocevski/419009/cmap_HighResolution_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.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/419009/ft1_filtered_4FGL_J0413.1-5332_weekly_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/419009/ft2_4FGL_J0413.1-5332_weekly_bin714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/419009/Model_4FGL_J0413.1-5332_weekly_bin714.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/419009/ft1_filtered_4FGL_J0413.1-5332_weekly_bin714.fits.....................!
real 10143.60
user 10126.60
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16072E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8186       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5914       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .76987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.123       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9508       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16710E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7274       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30512       1.0000         .10000E-03   10000.    
    15 'norm      '    .69146       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36923       1.0000         .10000E-03   10000.    
    18 'norm      '    37.866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4199       1.0000         .10000E-03   10000.    
    20 'norm      '    .29578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8901       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1958       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4880       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.289       1.0000         .10000E-03   10000.    
    26 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .93666       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0648       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=   17809.14     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3041 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    1.5149        .10809E-05** at limit **
   2  Prefactor     .10000E-03    11.258        .17353E-06** at limit **
   3  Prefactor     5.8160        5.7322       -.44881E-06   -.10455E-02
   4  norm          2.5915        .73400       -.10892E-07   -.42866E-03
   5  Prefactor     4.5421        5.1336        .25058E-07    .11989E-03
   6  Prefactor     .76905        1.7335       -.76501E-07   -.18886E-03
   7  Prefactor     17.522        16.811       -.24418E-06   -.32815E-04
   8  Prefactor     10.123        8.9965       -.66348E-07   -.55367E-05
   9  Prefactor     2.9510        2.4374       -.22521E-06   -.70835E-04
  10  Prefactor     .10000E-03    7.5692       -.36221E-05** at limit **
  11  Prefactor     .10000E-03    11.729        .28583E-05** at limit **
  12  Prefactor     6.7277        8.1413       -.25784E-06   -.37032E-03
  13  Prefactor     .10000E-03    5.5202       -.22860E-05** at limit **
  14  norm          .30533        .79480       -.18038E-07   -.22898E-03
  15  norm          .69352        2.4509        .16485E-05    .67118E-05
  16  Prefactor     .10000E-03    15.646       -.17791E-05** at limit **
  17  Prefactor     .36943        1.1287        .70056E-06   -.89038E-03
  18  norm          37.865        9.0324       -.95141E-07   -.78848E-03
  19  Prefactor     9.4107        18.397       -.14310E-04   -.66747E-04
  20  norm          .29579        .63254        .29577E-06   -.36816E-03
  21  Prefactor     5.8899        2.3702       -.58204E-06   -.15475E-02
  22  Prefactor     6.1954        5.9377        .48394E-06   -.16394E-03
  23  norm          2.4882        1.0575       -.54076E-07   -.41476E-02
  24  Prefactor     .10000E-03    2.3580        .26854E-07** at limit **
  25  Prefactor     17.292        10.022        .96164E-06   -.19757E-04
  26  norm          .10000E-03    2.0153       -.55702E-08** at limit **
  27  Normalizat    .93662        .10458        .13087E-06   -.64260E-03
  28  Prefactor     1.0648        .10755        .22455E-06   -.54439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 5.81598
  norm       = 2.59147
  Prefactor  = 4.54209
  Prefactor  = 0.769049
  Prefactor  = 17.5222
  Prefactor  = 10.1227
  Prefactor  = 2.95101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72775
  Prefactor  = 0.0001
  norm       = 0.305328
  norm       = 0.693519
  Prefactor  = 0.0001
  Prefactor  = 0.369426
  norm       = 37.8653
  Prefactor  = 9.41066
  norm       = 0.295785
  Prefactor  = 5.88991
  Prefactor  = 6.19544
  norm       = 2.48825
  Prefactor  = 0.0001
  Prefactor  = 17.2917
  norm       = 0.0001
  Normalizat = 0.936624
  Prefactor  = 1.0648
 **********
 **   18 **HESSE 
 **********

 FCN=   17809.14     FROM HESSE     STATUS=OK           533 CALLS     3574 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    5.9583        .30938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8160        5.7519        .83248E-03   -1.5226    
   4  norm          2.5915        .73252        .58524E-04   -1.5386    
   5  Prefactor     4.5421        5.1522        .94450E-03   -1.5282    
   6  Prefactor     .76905        1.9294        .25008E-02   -1.5533    
   7  Prefactor     17.522        16.810        .95680E-04   -1.4871    
   8  Prefactor     10.123        9.0039        .12594E-03   -1.5072    
   9  Prefactor     2.9510        2.4391        .18352E-03   -1.5364    
  10  Prefactor     .10000E-03    7.5700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7277        8.1352        .77351E-03   -1.5189    
  13  Prefactor     .10000E-03    5.5325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .30533        .87382        .18230E-02   -1.5597    
  15  norm          .69352        2.4830        .37118E-03   -1.5541    
  16  Prefactor     .10000E-03    15.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .36943        1.4494        .20538E-02   -1.5586    
  18  norm          37.865        8.9006        .65133E-04   -1.4476    
  19  Prefactor     9.4107        18.364        .13057E-03   -1.5094    
  20  norm          .29579        .62453        .13710E-03   -1.5599    
  21  Prefactor     5.8899        2.3516        .10332E-03   -1.5223    
  22  Prefactor     6.1954        6.2525        .16128E-03   -1.5210    
  23  norm          2.4882        3.0344        .11145E-02   -1.5392    
  24  Prefactor     .10000E-03    2.3592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.292        9.9736        .96323E-04   -1.4876    
  26  norm          .10000E-03    2.0795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .93662        .12202        .24532E-03   -.95185    
  28  Prefactor     1.0648        .12601        .24516E-03   -.90600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93904e-07
Minuit parameter uncertainties:
  1  0.000821583
  2  2.5422e-05
  3  5.75243
  4  0.732524
  5  5.15269
  6  1.92957
  7  16.815
  8  9.00511
  9  2.43918
  10  1.96949e-06
  11  4.06131e-05
  12  8.13655
  13  2.02956e-06
  14  0.873857
  15  2.48341
  16  2.2798e-06
  17  1.44952
  18  8.90087
  19  18.3748
  20  0.624548
  21  2.35159
  22  6.25317
  23  3.03457
  24  3.05633e-07
  25  9.97461
  26  1.07612e-05
  27  0.122055
  28  0.126046
Done.

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

Extracting fit parameters...

4FGL J0413.1-5332
   Spectrum: PowerLaw
285    Prefactor:  6.728e+00  8.137e+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

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.065e+00  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:  9.366e-01  1.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/419009/likelihoodResults_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.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): 0
logL (Free Index) = 17808.778425
delta logL = 0.364829134141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17808.7673984
delta logL = 0.375855806138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1480       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1941       1.0000          .0000       10.000    
     3 'Normalizat'    .91905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0769       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=   17808.77     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      286 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1475        18.260        .19653E-03   -.96930E-03
   2  Index         3.1943        2.4851        .89617E-02   -.22096E-03
   3  Normalizat    .91896        .12163        .24744E-03   -.38612E-03
   4  Prefactor     1.0770        .12715        .24406E-03   -.25806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14753
  Index      = 3.19427
  Normalizat = 0.918955
  Prefactor  = 1.077
 **********
 **   18 **HESSE 
 **********

 FCN=   17808.77     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1475        5.7676        .78611E-05   -1.5353    
   2  Index         3.1943        .98768        .35847E-03   -.36950    
   3  Normalizat    .91896        .12037        .98977E-05   -.95797    
   4  Prefactor     1.0770        .12569        .97625E-05   -.90205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07e-09
Minuit parameter uncertainties:
  1  5.76861
  2  0.995222
  3  0.120405
  4  0.125726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/419009': 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) = 17808.767398
delta logL = 0.375856155126

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.077e+00  1.257e-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:  9.190e-01  1.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 63.277 -53.548
Photon Index (Free Index): 3.19 +/- 1.00
Photon Flux (Free Index): 2.36e-08 +/- 2.16e-08
Energy Flux (Free Index): 4.33e-06 +/- 3.86e-06

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/419009/cmap_HighResolution_670809601_671414401_4FGL_J0413.1-5332_weekly_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', comment='SUCCESS', energy_flux2='4.33e-06', dlogl='3.76e-01', photon_flux2='2.36e-08', job_status='DONE', time_completed='2022-04-12 04:09:46.454449', photon_index_error2='1.00', photon_index2='3.19', ts='0.85', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='4.52e-08', energy_flux_error2='3.86e-06', EG='0.94', time_epoch_completed='1649761786.45', return_code='0', job_id='419009', GAL2='1.08', EG2='0.92', return_code2='0', photon_flux_error2='2.16e-08', ts2='1.64', photon_index='2.41' WHERE bin_id='714' AND source_name='4FGL J0413.1-5332' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 12 04:09:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 419009: <4FGL_J0413.1-5332_weekly_bin714> in cluster <slac> Done

Job <4FGL_J0413.1-5332_weekly_bin714> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 12 00:50:26 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:50:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:50:27 2022
Terminated at Tue Apr 12 04:09:47 2022
Results reported at Tue Apr 12 04:09:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0413.1-5332_weekly_bin714 63.2773 -53.5483 670809601 671414401 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 :                                   11879.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             576.01 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   11960 sec.
    Turnaround time :                            11961 sec.

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

