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


Performing analysis on: 4FGL_J0540.8-5415_monthly_bin173
RA = 85.2069, Dec = -54.2575
tmin = 685411201, tmax = 688003201
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='473196', job_status='RUN', time_executed='2022-10-21 00:54:38.913887', time_epoch_executed='1666338878.91' WHERE source_name='4FGL J0540.8-5415' and cadence='monthly' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473196

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473196/ft1_4FGL_J0540.8-5415_monthly_bin173.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473196/ft1_4FGL_J0540.8-5415_monthly_bin173.fits outfile=/scratch/kocevski/473196/ft1_filteredMKT_4FGL_J0540.8-5415_monthly_bin173.fits ra=85.2069 dec=-54.2575 rad=12.0 tmin=685411201.0 tmax=688003201.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 34.26
user 33.27
sys 0.92

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

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

Number of photons that the gtmktime cut: 8507

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/473196/ltcube_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.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/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits
.....................!
real 110.41
user 109.71
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/473196/ltcube_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.fits outfile=/scratch/kocevski/473196/expmap_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.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/473196/ltcube_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.fits
.....................!
real 191.89
user 186.54
sys 5.03

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/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits scfile=/scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits outfile=/scratch/kocevski/473196/cmap_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.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.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits scfile=/scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits outfile=/scratch/kocevski/473196/cmap_HighResolution_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.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.61
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473196/Model_4FGL_J0540.8-5415_monthly_bin173.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/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits.....................!
real 50622.81
user 50446.39
sys 64.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits', '/scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits', expMap='/scratch/kocevski/473196/expmap_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.fits', expCube='/scratch/kocevski/473196/ltcube_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473196/Model_4FGL_J0540.8-5415_monthly_bin173.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/473196/ft1_filtered_4FGL_J0540.8-5415_monthly_bin173.fits
Spacecraft file(s): /scratch/kocevski/473196/ft2_4FGL_J0540.8-5415_monthly_bin173.fits
Exposure map: /scratch/kocevski/473196/expmap_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.fits
Exposure cube: /scratch/kocevski/473196/ltcube_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473196/Model_4FGL_J0540.8-5415_monthly_bin173.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) = 90224.6593042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7844       1.0000          .0000       .10000E+07
     2 'norm      '    7.7113       1.0000          .0000       .10000E+07
     3 'Prefactor '    35.852       1.0000          .0000       .10000E+07
     4 'Prefactor '    .35779       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7016       1.0000          .0000       .10000E+07
     6 'norm      '    .35254       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.915       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.3301       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.2836       1.0000          .0000       .10000E+07
    10 'norm      '    1.8075       1.0000          .0000       .10000E+07
    11 'norm      '    4.8568       1.0000          .0000       .10000E+07
    12 'norm      '    .42077E-07   1.0000          .0000       .10000E+07
    13 'norm      '    4.3106       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.2221       1.0000          .0000       .10000E+07
    15 'norm      '    9.3560       1.0000          .0000       .10000E+07
    16 'norm      '    3.0475       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18273E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0027       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.2884       1.0000          .0000       .10000E+07
    20 'Prefactor '    .41316       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.7000       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.5875       1.0000          .0000       .10000E+07
    23 'Prefactor '    27.877       1.0000          .0000       .10000E+07
    24 'Prefactor '    .93314E-06   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1712       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94520       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=   90224.59     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1775 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7886        .87106       -.11259E-07   -.21209E-02
   2  norm          7.7113        1.8375       -.47526E-07   -.18838E-02
   3  Prefactor     35.278        16.460        .33232E-07   -.33778E-03
   4  Prefactor     .46381        32.672       -.26279E-05   -.13785E-03
   5  Prefactor     1.7059        2.5405        .24287E-07    .57638E-04
   6  norm          .34872        .93397        .18553E-07    .15893E-03
   7  Prefactor     12.898        4.3125        .12708E-06   -.51859E-03
   8  Prefactor     3.3070        3.1649        .30348E-07    .48768E-03
   9  Prefactor     2.2827        .63177        .63984E-07    .72071E-02
  10  norm          1.8079        .73726        .67510E-07   -.99729E-03
  11  norm          4.8550        1.0931        .45006E-07    .15591E-02
  12  norm           .0000        .11853       -.99411E-08** at limit **
  13  norm          4.3105        .36042       -.93070E-08   -.82922E-02
  14  Prefactor     1.2209        .91136       -.85240E-07   -.18442E-02
  15  norm          9.3543        2.1934        .46180E-07    .27805E-03
  16  norm          3.0469        1.9284        .13223E-06    .21589E-02
  17  Prefactor      .0000        3.2915        .15936E-06** at limit **
  18  Prefactor     6.0013        2.6454        .80707E-07   -.14349E-02
  19  Prefactor     2.2873        2.5012        .14830E-06    .18321E-03
  20  Prefactor     .43908        3.7250       -.20094E-06    .14549E-03
  21  Prefactor     4.7032        2.7920        .11782E-06    .60536E-03
  22  Prefactor     2.1289        53.819       -.41570E-05    .37421E-03
  23  Prefactor     27.853        5.4534        .13559E-06   -.20126E-02
  24  Prefactor      .0000        2.2611       -.17774E-06** at limit **
  25  Normalizat    1.1716        .65276E-01   -.20511E-05   -.15633E-04
  26  Prefactor     .94505        .43238E-01    .10373E-05    .48441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78861
  norm       = 7.71127
  Prefactor  = 35.2776
  Prefactor  = 0.463806
  Prefactor  = 1.70594
  norm       = 0.348716
  Prefactor  = 12.8976
  Prefactor  = 3.30702
  Prefactor  = 2.28268
  norm       = 1.80794
  norm       = 4.85502
  norm       = 0
  norm       = 4.31051
  Prefactor  = 1.22092
  norm       = 9.35429
  norm       = 3.04693
  Prefactor  = 0
  Prefactor  = 6.00128
  Prefactor  = 2.28727
  Prefactor  = 0.439083
  Prefactor  = 4.70318
  Prefactor  = 2.12885
  Prefactor  = 27.8534
  Prefactor  = 0
  Normalizat = 1.17162
  Prefactor  = 0.945054
 **********
 **   18 **HESSE 
 **********

 FCN=   90224.59     FROM HESSE     STATUS=OK           534 CALLS     2309 TOTAL
                     EDM=   .76E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7886        .87486        .78298E-03   -1.5681    
   2  norm          7.7113        1.8523        .36088E-03   -1.5652    
   3  Prefactor     35.278        16.479        .16703E-03   -1.5589    
   4  Prefactor     .46381        2.4387        .15586E-01   -1.5694    
   5  Prefactor     1.7059        2.6580        .80604E-03   -1.5682    
   6  norm          .34872        .97309        .95205E-03   -1.5696    
   7  Prefactor     12.898        4.3321        .27847E-03   -1.5636    
   8  Prefactor     3.3070        3.1718        .55442E-03   -1.5672    
   9  Prefactor     2.2827        .63693        .67911E-03   -1.5678    
  10  norm          1.8079        .74310        .77694E-03   -1.5681    
  11  norm          4.8550        1.0957        .45621E-03   -1.5664    
  12  norm           .0000        .11815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3105        .36011        .48497E-03   -1.5666    
  14  Prefactor     1.2209        .92750        .10194E-02   -1.5686    
  15  norm          9.3543        2.2004        .32740E-03   -1.5647    
  16  norm          3.0469        1.9319        .58093E-03   -1.5673    
  17  Prefactor      .0000        3.2867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0013        2.6877        .40959E-03   -1.5659    
  19  Prefactor     2.2873        2.5188        .67831E-03   -1.5678    
  20  Prefactor     .43908        .96183        .87977E-02   -1.5695    
  21  Prefactor     4.7032        2.7954        .46393E-03   -1.5665    
  22  Prefactor     2.1289        54.339        .63411E-03   -1.5679    
  23  Prefactor     27.853        5.5099        .18943E-03   -1.5602    
  24  Prefactor      .0000        2.2678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1716        .56220E-01    .64330E-01   -.87484    
  26  Prefactor     .94505        .37055E-01    .45578E-01   -.94584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5757e-05
Minuit parameter uncertainties:
  1  0.874864
  2  1.85228
  3  16.4788
  4  2.12703
  5  2.65803
  6  0.973087
  7  4.33213
  8  3.17176
  9  0.636927
  10  0.743097
  11  1.09571
  12  2.05431e-07
  13  0.360106
  14  0.927496
  15  2.20041
  16  1.93191
  17  1.53928e-06
  18  2.68771
  19  2.51878
  20  0.961835
  21  2.79544
  22  21.5111
  23  5.50986
  24  4.97681e-06
  25  0.0562227
  26  0.0370555
Done.

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

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  1.221e+00  9.275e-01  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.451e-01  3.706e-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.172e+00  5.622e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 85.207 -54.258
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.02e-08
Energy Flux (Fixed Index): 3.43e-06 +/- 2.61e-06

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

Saving results to:
/scratch/kocevski/473196/likelihoodResults_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.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) = 90224.0970872
delta logL = 0.494907993969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 90224.0838325
delta logL = 0.508162691898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7195       1.0000          .0000       .10000E+07
     2 'Index     '    2.1757       1.0000          .0000       10.000    
     3 'Normalizat'    1.1764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94243       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   90224.08     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      298 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7195        1.1242        .24958E-04   -.41543E-03
   2  Index         2.1757        .39918        .10513E-01   -.11766E-03
   3  Normalizat    1.1764        .60153E-01    .28405E-03    .51230E-05
   4  Prefactor     .94242        .41940E-01    .21773E-03    .58480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71952
  Index      = 2.17573
  Normalizat = 1.17645
  Prefactor  = 0.942422
 **********
 **   18 **HESSE 
 **********

 FCN=   90224.08     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7195        1.1231        .99831E-06   -1.5682    
   2  Index         2.1757        .39890        .42051E-03   -.60026    
   3  Normalizat    1.1764        .60194E-01    .11362E-04   -.87334    
   4  Prefactor     .94242        .41969E-01    .87092E-05   -.94674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24678e-10
Minuit parameter uncertainties:
  1  1.12309
  2  0.399528
  3  0.060198
  4  0.04197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473196': 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) = 90224.0838325
delta logL = 0.508162696366

Extracting fit parameters...

4FGL J0540.8-5415
   Spectrum: PowerLaw
349    Prefactor:  1.720e+00  1.123e+00  0.000e+00  1.000e+06 ( 1.000e-12)
350        Index:  2.176e+00  3.995e-01  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.424e-01  4.197e-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.176e+00  6.020e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 85.207 -54.258
Photon Index (Free Index): 2.18 +/- 0.40
Photon Flux (Free Index): 1.07e-08 +/- 8.52e-09
Energy Flux (Free Index): 5.04e-06 +/- 3.65e-06

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/473196/cmap_HighResolution_685411201_688003201_4FGL_J0540.8-5415_monthly_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-03', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='5.04e-06', photon_flux_error='1.02e-08', dlogl='5.08e-01', energy_flux='3.43e-06', photon_flux2='1.07e-08', job_status='DONE', time_completed='2022-10-21 16:42:13.720647', photon_index_error2='0.40', photon_index2='2.18', ts='2.42', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='3.23e-08', energy_flux_error2='3.65e-06', EG='1.17', time_epoch_completed='1666395733.72', return_code='0', job_id='473196', GAL2='0.94', EG2='1.18', return_code2='0', energy_flux_error='2.61e-06', photon_flux_error2='8.52e-09', ts2='3.44', photon_index='2.63' WHERE bin_id='173' AND source_name='4FGL J0540.8-5415' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 21 16:42:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 473196: <4FGL_J0540.8-5415_monthly_bin173> in cluster <slac> Done

Job <4FGL_J0540.8-5415_monthly_bin173> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Oct 21 00:50:35 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 21 00:50:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 21 00:50:36 2022
Terminated at Fri Oct 21 16:42:14 2022
Results reported at Fri Oct 21 16:42:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.8-5415_monthly_bin173 85.2069 -54.2575 685411201 688003201 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 :                                   56747.00 sec.
    Max Memory :                                 644 MB
    Average Memory :                             613.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   57098 sec.
    Turnaround time :                            57099 sec.

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

