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


Performing analysis on: 4FGL_J0533.0-8446_weekly_bin717
RA = 83.2677, Dec = -84.7783
tmin = 672624001, tmax = 673228801
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='368961', job_status='RUN', time_executed='2022-05-03 01:10:47.060592', time_epoch_executed='1651565447.06' WHERE source_name='4FGL J0533.0-8446' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368961

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368961/ft1_4FGL_J0533.0-8446_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368961/ft1_4FGL_J0533.0-8446_weekly_bin717.fits outfile=/scratch/kocevski/368961/ft1_filteredMKT_4FGL_J0533.0-8446_weekly_bin717.fits ra=83.2677 dec=-84.7783 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.30
user 6.04
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.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/368961/ft1_filteredMKT_4FGL_J0533.0-8446_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.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.55
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 3164

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/368961/ltcube_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.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/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits
.....................!
real 34.85
user 34.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/368961/ltcube_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.fits outfile=/scratch/kocevski/368961/expmap_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.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/368961/ltcube_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.fits
.....................!
real 190.81
user 186.03
sys 4.39

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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.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_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-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.
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.
Added 165 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 J0533.0-8446 @ 83.2677 -84.7783

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits scfile=/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits outfile=/scratch/kocevski/368961/cmap_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.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=83.2677 yref=-84.7783 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.59
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits scfile=/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits outfile=/scratch/kocevski/368961/cmap_HighResolution_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.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=83.2677 yref=-84.7783 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.62
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368961/Model_4FGL_J0533.0-8446_weekly_bin717.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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits.....................!
real 27246.14
user 27194.59
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits', '/scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits', expMap='/scratch/kocevski/368961/expmap_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.fits', expCube='/scratch/kocevski/368961/ltcube_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368961/Model_4FGL_J0533.0-8446_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0533.0-8446'

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  2.818e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
172        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
173        Scale:  2.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368961/ft1_filtered_4FGL_J0533.0-8446_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/368961/ft2_4FGL_J0533.0-8446_weekly_bin717.fits
Exposure map: /scratch/kocevski/368961/expmap_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.fits
Exposure cube: /scratch/kocevski/368961/ltcube_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368961/Model_4FGL_J0533.0-8446_weekly_bin717.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) = 32939.4031793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4863       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12897E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9389       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.138       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10962E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53619       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75995       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7291       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9748       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0304       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2470       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   32939.30     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     2357 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4852        3.0689        .21655E-03   -.35279E-04
   2  Prefactor     .10000E-03    13.719        .18142E-02** at limit **
   3  Prefactor     .10000E-03    .65603        .14318E-02** at limit **
   4  Prefactor     .10000E-03    3.9961        .18142E-02** at limit **
   5  Prefactor     5.4626        9.0769        .17198E-03   -.50240E-04
   6  Prefactor     .10000E-03    60.855        .36285E-03** at limit **
   7  norm          .10000E-03    7.0491        .18142E-02** at limit **
   8  Prefactor     .13253        2.3303        .28944E-02    .17406E-02
   9  Prefactor     5.9371        5.4446        .16478E-03    .12695E-04
  10  norm          4.7147        2.7561        .92667E-03    .63893E-04
  11  Prefactor     15.103        27.270        .10294E-03   -.32690E-04
  12  norm          6.5090        6.5848        .15734E-03    .45667E-04
  13  Prefactor     .10000E-03    48.676        .83262E-02** at limit **
  14  norm          2.2729        1.4719        .17274E-03   -.42121E-05
  15  Prefactor     .53482        2.4270        .28860E-02    .74074E-03
  16  Prefactor     .64594        9.7282        .14059        .45369E-03
  17  Prefactor     4.7292        2.5191        .18503E-03   -.28951E-03
  18  norm          2.9736        2.5829        .23540E-03   -.13484E-03
  19  Prefactor     2.9171        50.875        .23311E-03   -.85836E-05
  20  Normalizat    1.2471        .14054        .38034E-03   -.22358E-03
  21  Prefactor     .95355        .50818E-01    .15505E-03   -.59798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.46262
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.132529
  Prefactor  = 5.93714
  norm       = 4.71467
  Prefactor  = 15.1034
  norm       = 6.50901
  Prefactor  = 0.000100004
  norm       = 2.27291
  Prefactor  = 0.534817
  Prefactor  = 0.645944
  Prefactor  = 4.72917
  norm       = 2.9736
  Prefactor  = 2.91707
  Normalizat = 1.24712
  Prefactor  = 0.953553
 **********
 **   18 **HESSE 
 **********

 FCN=   32939.30     FROM HESSE     STATUS=OK           311 CALLS     2668 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4852        3.0685        .86622E-05   -1.5335    
   2  Prefactor     .10000E-03    13.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .65610        .28637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4626        9.0750        .68792E-05   -1.5240    
   6  Prefactor     .10000E-03    60.859        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.0497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13253        2.3443        .11578E-03   -1.5635    
   9  Prefactor     5.9371        5.4392        .65910E-05   -1.5221    
  10  norm          4.7147        2.7547        .37067E-04   -1.5274    
  11  Prefactor     15.103        27.264        .41177E-05   -1.4931    
  12  norm          6.5090        6.5840        .62934E-05   -1.5198    
  13  Prefactor     .10000E-03    50.809        .33305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2729        1.4719        .69096E-05   -1.5406    
  15  Prefactor     .53482        2.4205        .11544E-03   -1.5562    
  16  Prefactor     .64594        9.2613        .14507       -1.5547    
  17  Prefactor     4.7292        2.5176        .74013E-05   -1.5273    
  18  norm          2.9736        2.5819        .94161E-05   -1.5363    
  19  Prefactor     2.9171        50.851        .93242E-05   -1.5366    
  20  Normalizat    1.2471        .14058        .15214E-04   -.85159    
  21  Prefactor     .95355        .50837E-01    .31009E-04   -.94294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75216e-09
Minuit parameter uncertainties:
  1  3.06865
  2  1.9234e-05
  3  5.43595e-07
  4  3.15484e-06
  5  9.07725
  6  2.42773e-05
  7  3.47814e-06
  8  1.11442
  9  5.43968
  10  2.75478
  11  27.2869
  12  6.58474
  13  0.000859216
  14  1.47193
  15  2.27548
  16  4.89228
  17  2.51766
  18  2.58201
  19  24.3825
  20  0.140627
  21  0.0508392
Done.

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

Extracting fit parameters...

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  1.000e-04  2.428e-05  1.000e-04  1.000e+04 ( 1.000e-14)
172        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
173        Scale:  2.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.536e-01  5.084e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.247e+00  1.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.268 -84.778
Photon Flux Upper Limit: 3.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368961/likelihoodResults_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.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) = 32939.2975227
delta logL = -7.83140130807e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 32939.2974396
delta logL = 4.77889261674e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13251E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3536       1.0000          .0000       10.000    
     3 'Normalizat'    1.2472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   32939.20     FROM MIGRAD    STATUS=FAILED       133 CALLS      319 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4097        371.95        .20566E-02    .39215E-02
   2  Index         3.0973        5.3891        .89320E-02    .50189E-03
   3  Normalizat    1.2372        .93642E-01    .38166E-03    .28668E-03
   4  Prefactor     .95452        .34820E-01    .15497E-03   -.29145E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   32939.20     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      409 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4097        371.95        .20270E-03    .39215E-02
   2  Index         3.0973        5.3891        .14873E-02    .50189E-03
   3  Normalizat    1.2372        .93642E-01    .69982E-04    .28668E-03
   4  Prefactor     .95452        .34820E-01    .35607E-04   -.29145E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   32939.20     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      459 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4098        11.026        .41131E-03    .16098E-03
   2  Index         3.0973        1.9405        .17864E-02    .20416E-04
   3  Normalizat    1.2372        .13941        .15266E-04   -.28596E-04
   4  Prefactor     .95452        .50153E-01    .30994E-04   -.25295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40978
  Index      = 3.09726
  Normalizat = 1.23715
  Prefactor  = 0.954522
 **********
 **   18 **HESSE 
 **********

 FCN=   32939.20     FROM HESSE     STATUS=OK            23 CALLS      482 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4098        6.7857        .16453E-04   -1.5470    
   2  Index         3.0973        1.5407        .71456E-04   -.39039    
   3  Normalizat    1.2372        .13940        .30532E-05   -.85462    
   4  Prefactor     .95452        .50118E-01    .61988E-05   -.94261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00944e-11
Minuit parameter uncertainties:
  1  6.1868
  2  1.57073
  3  0.139439
  4  0.0501209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368961': 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) = 32939.2033579
delta logL = 0.0940864258519

Extracting fit parameters...

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  1.410e+00  6.187e+00  1.000e-04  1.000e+04 ( 1.000e-14)
172        Index:  3.097e+00  1.571e+00  0.000e+00  1.000e+01 (-1.000e+00)
173        Scale:  2.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.545e-01  5.012e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.237e+00  1.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.268 -84.778

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/368961/cmap_HighResolution_672624001_673228801_4FGL_J0533.0-8446_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-03', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2022-05-03 09:17:48.094336', job_id='368961', GAL2='0.95', fit_tolerance='1e-08', EG2='1.24', EG='1.25', time_epoch_completed='1651594668.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.41e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='717' AND source_name='4FGL J0533.0-8446' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 09:17:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 368961: <4FGL_J0533.0-8446_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0533.0-8446_weekly_bin717> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 01:05:34 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:10:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:10:19 2022
Terminated at Tue May  3 09:17:49 2022
Results reported at Tue May  3 09:17:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0533.0-8446_weekly_bin717 83.2677 -84.7783 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0533.0-8446 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   29187.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             610.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   29249 sec.
    Turnaround time :                            29535 sec.

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

