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 209 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0540.8-5415_monthly_bin171
RA = 85.2069, Dec = -54.2575
tmin = 680227201, tmax = 682819201
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='117870', job_status='RUN', time_executed='2022-09-16 16:46:55.916730', time_epoch_executed='1663372015.92' WHERE source_name='4FGL J0540.8-5415' and cadence='monthly' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117870

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117870/ft1_4FGL_J0540.8-5415_monthly_bin171.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117870/ft1_4FGL_J0540.8-5415_monthly_bin171.fits outfile=/scratch/kocevski/117870/ft1_filteredMKT_4FGL_J0540.8-5415_monthly_bin171.fits ra=85.2069 dec=-54.2575 rad=12.0 tmin=680227201.0 tmax=682819201.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 29.26
user 28.45
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.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/117870/ft1_filteredMKT_4FGL_J0540.8-5415_monthly_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.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.85
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 9338

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/117870/ltcube_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.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/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits
.....................!
real 130.76
user 129.70
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/117870/ltcube_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.fits outfile=/scratch/kocevski/117870/expmap_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.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/117870/ltcube_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.fits
.....................!
real 192.29
user 186.25
sys 5.63

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-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/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_8years/Templates/LMC-Galaxy.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_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Added 214 point sources and 4 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 J0540.8-5415 @ 85.2069 -54.2575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits scfile=/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits outfile=/scratch/kocevski/117870/cmap_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.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=85.2069 yref=-54.2575 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.78
user 0.60
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits scfile=/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits outfile=/scratch/kocevski/117870/cmap_HighResolution_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.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=85.2069 yref=-54.2575 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.79
user 0.59
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117870/Model_4FGL_J0540.8-5415_monthly_bin171.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 GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits.....................!
real 56992.94
user 56709.11
sys 139.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits', '/scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits', expMap='/scratch/kocevski/117870/expmap_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.fits', expCube='/scratch/kocevski/117870/ltcube_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117870/Model_4FGL_J0540.8-5415_monthly_bin171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0540.8-5415'

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  1.334e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117870/ft1_filtered_4FGL_J0540.8-5415_monthly_bin171.fits
Spacecraft file(s): /scratch/kocevski/117870/ft2_4FGL_J0540.8-5415_monthly_bin171.fits
Exposure map: /scratch/kocevski/117870/expmap_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.fits
Exposure cube: /scratch/kocevski/117870/ltcube_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117870/Model_4FGL_J0540.8-5415_monthly_bin171.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) = 98604.0515342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4156       1.0000          .0000       .10000E+07
     2 'norm      '    3.7376       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.841       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.539       1.0000          .0000       .10000E+07
     5 'Prefactor '    .69640E-04   1.0000          .0000       .10000E+07
     6 'norm      '    1.5006       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.7700       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33247E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.1211       1.0000          .0000       .10000E+07
    10 'norm      '    4.5704       1.0000          .0000       .10000E+07
    11 'norm      '    3.7139       1.0000          .0000       .10000E+07
    12 'norm      '    1.0884       1.0000          .0000       .10000E+07
    13 'norm      '    6.5969       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13767E-07   1.0000          .0000       .10000E+07
    15 'norm      '    15.267       1.0000          .0000       .10000E+07
    16 'norm      '    1.7464       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20650E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.3022       1.0000          .0000       .10000E+07
    19 'Prefactor '    .40724       1.0000          .0000       .10000E+07
    20 'Prefactor '    .39863E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    3.9625       1.0000          .0000       .10000E+07
    22 'Prefactor '    .25432E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    .31261E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.223       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3156       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90270       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98604.02     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1781 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4168        .82987        .40417E-07    .37875E-02
   2  norm          3.7388        1.7228       -.35406E-07   -.11494E-02
   3  Prefactor     14.671        13.869       -.23914E-06    .43862E-01
   4  Prefactor     15.504        1.0675       -.80058E-08    .33872E-02
   5  Prefactor     .13850E-06    2.7161       -.63166E-07** at limit **
   6  norm          1.4999        1.1878       -.11501E-07    .69131E-03
   7  Prefactor     8.7462        4.2590        .14968E-07    .35230E-03
   8  Prefactor     .99920E-07    2.1015        .13979E-06** at limit **
   9  Prefactor     5.1206        .77189        .11074E-07    .48647E-02
  10  norm          4.5717        1.0851       -.33531E-07   -.30777E-02
  11  norm          3.7135        1.0316       -.17403E-07    .13898E-02
  12  norm          1.0884        .63075        .83640E-07    .77463E-02
  13  norm          6.5967        .40484       -.95023E-08   -.50060E-02
  14  Prefactor      .0000        .38126       -.42725E-08** at limit **
  15  norm          15.268        2.4983       -.46483E-07   -.48441E-02
  16  norm          1.7459        1.8049        .30449E-07    .43601E-03
  17  Prefactor     .97145E-08    2.0031        .11080E-06** at limit **
  18  Prefactor     4.2987        2.5445       -.95353E-08   -.51500E-03
  19  Prefactor     .40547        1.8968       -.10831E-06   -.38262E-03
  20  Prefactor     .70888E-07    2.5659        .81630E-07** at limit **
  21  Prefactor     3.9585        2.3923        .42483E-07    .48344E-03
  22  Prefactor     .18263E-07    6.3972       -.24011E-06** at limit **
  23  Prefactor     .50071E-07    4.9336       -.20084E-06** at limit **
  24  Prefactor     11.215        6.3339        .33415E-07    .16530E-01
  25  Normalizat    1.3159        .63814E-01    .38909E-06    .13619E-03
  26  Prefactor     .90264        .41832E-01    .19793E-06    .18360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41681
  norm       = 3.73881
  Prefactor  = 14.6705
  Prefactor  = 15.5044
  Prefactor  = 1.385e-07
  norm       = 1.49985
  Prefactor  = 8.74623
  Prefactor  = 9.99201e-08
  Prefactor  = 5.12064
  norm       = 4.57169
  norm       = 3.71345
  norm       = 1.08836
  norm       = 6.59672
  Prefactor  = 0
  norm       = 15.2676
  norm       = 1.74591
  Prefactor  = 9.71445e-09
  Prefactor  = 4.29866
  Prefactor  = 0.405468
  Prefactor  = 7.08877e-08
  Prefactor  = 3.95849
  Prefactor  = 1.82632e-08
  Prefactor  = 5.00711e-08
  Prefactor  = 11.2145
  Normalizat = 1.31586
  Prefactor  = 0.90264
 **********
 **   18 **HESSE 
 **********

 FCN=   98604.02     FROM HESSE     STATUS=OK           518 CALLS     2299 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4168        .83333        .65835E-03   -1.5677    
   2  norm          3.7388        1.7988        .52203E-03   -1.5669    
   3  Prefactor     14.671        15.580        .25973E-03   -1.5631    
   4  Prefactor     15.504        11.141        .25381E-03   -1.5629    
   5  Prefactor     .13850E-06    3.5994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4999        1.1984        .87382E-03   -1.5683    
   7  Prefactor     8.7462        4.2769        .33823E-03   -1.5649    
   8  Prefactor     .99920E-07    2.7476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1206        .77452        .44404E-03   -1.5663    
  10  norm          4.5717        1.0899        .47062E-03   -1.5665    
  11  norm          3.7135        1.0418        .52376E-03   -1.5669    
  12  norm          1.0884        .64301        .11478E-02   -1.5687    
  13  norm          6.5967        .41068        .39047E-03   -1.5657    
  14  Prefactor      .0000        .37642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.268        2.4975        .25607E-03   -1.5630    
  16  norm          1.7459        1.8244        .79328E-03   -1.5682    
  17  Prefactor     .97145E-08    2.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2987        2.5508        .48545E-03   -1.5666    
  19  Prefactor     .40547        1.8539        .88653E-03   -1.5695    
  20  Prefactor     .70888E-07    2.9746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9585        2.3977        .50648E-03   -1.5668    
  22  Prefactor     .18263E-07    6.5207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .50071E-07    5.1896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.215        6.3530        .29880E-03   -1.5641    
  25  Normalizat    1.3159        .54990E-01    .63780E-01   -.83094    
  26  Prefactor     .90264        .35989E-01    .45039E-01   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69934e-05
Minuit parameter uncertainties:
  1  0.833335
  2  1.79879
  3  15.5802
  4  11.1413
  5  0.00141207
  6  1.19842
  7  4.27692
  8  0.00104794
  9  0.774524
  10  1.08991
  11  1.04179
  12  0.643008
  13  0.410676
  14  1.52576e-06
  15  2.49753
  16  1.82444
  17  0.000283067
  18  2.55082
  19  1.73403
  20  0.000918551
  21  2.39771
  22  0.000690375
  23  0.00101948
  24  6.35305
  25  0.0549929
  26  0.0359897
Done.

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

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  1.526e-06  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.627e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  9.026e-01  3.599e-02  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  1.316e+00  5.499e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 85.207 -54.258
Photon Flux Upper Limit: 1.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117870/likelihoodResults_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.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) = 98604.0176185
delta logL = -0.000506903437781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 98604.0171116
delta logL = -2.34431354329e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18041E-07   1.0000          .0000       .10000E+07
     2 'Index     '    3.0067       1.0000          .0000       10.000    
     3 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90264       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   98604.02     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      224 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .43607        .42118E-03** at limit **
   2  Index         3.0002        1.0042        .50658E-05     .0000    
   3  Normalizat    1.3159        1.0761       -.32542E-06    .80783E-04
   4  Prefactor     .90264        1.2474       -.66799E-07    .10689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.00017
  Normalizat = 1.31586
  Prefactor  = 0.90264
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   98604.02     FROM HESSE     STATUS=FAILED         9 CALLS      233 TOTAL
                     EDM=   .37E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .43607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0175        2.0313        .50658E-05   -.41148    
   3  Normalizat    1.3159        1.0761       -.32542E-06   -.83094    
   4  Prefactor     .90264        1.2474       -.66799E-07   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.68726e-13
Minuit parameter uncertainties:
  1  8.51032e-08
  2  1.01239
  3  1.09535
  4  1.29063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117870': 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): 101
logL (Free Index) = 98604.0171116
delta logL = 0.0

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  8.510e-08  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  3.000e+00  1.012e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  7.197e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
696    Prefactor:  9.026e-01  1.291e+00  0.000e+00  1.000e+01 ( 1.000e+00)
697        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
698        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
695   Normalization:  1.316e+00  1.095e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 85.207 -54.258

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/117870/cmap_HighResolution_680227201_682819201_4FGL_J0540.8-5415_monthly_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-03', job_status='DONE', photon_flux_upper_limit='1.48e-08', time_completed='2022-09-17 10:16:11.660560', job_id='117870', GAL2='0.90', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1663434971.66', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='171' AND source_name='4FGL J0540.8-5415' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 10:16:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 117870: <4FGL_J0540.8-5415_monthly_bin171> in cluster <slac> Done

Job <4FGL_J0540.8-5415_monthly_bin171> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:41:02 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:43:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:43:17 2022
Terminated at Sat Sep 17 10:16:13 2022
Results reported at Sat Sep 17 10:16:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.8-5415_monthly_bin171 85.2069 -54.2575 680227201 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0540.8-5415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   62823.00 sec.
    Max Memory :                                 646 MB
    Average Memory :                             619.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   63175 sec.
    Turnaround time :                            63311 sec.

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

