aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 9 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 = 17272
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0502.5+3438_weekly_bin618
RA = 75.6366, Dec = 34.6338
tmin = 612748801, tmax = 613353601
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='807761', job_status='RUN', time_executed='2021-07-07 21:41:45.351879', time_epoch_executed='1625719305.35' WHERE source_name='4FGL J0502.5+3438' and cadence='weekly' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/807761

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/807761/ft1_4FGL_J0502.5+3438_weekly_bin618.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/807761/ft1_4FGL_J0502.5+3438_weekly_bin618.fits outfile=/scratch/kocevski/807761/ft1_filteredMKT_4FGL_J0502.5+3438_weekly_bin618.fits ra=75.6366 dec=34.6338 rad=12.0 tmin=612748801.0 tmax=613353601.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.08
user 5.80
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.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/807761/ft1_filteredMKT_4FGL_J0502.5+3438_weekly_bin618.fits evtable="EVENTS" outfile="/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.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.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/807761/ltcube_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.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/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits
.....................!
real 30.17
user 29.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/807761/ltcube_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.fits outfile=/scratch/kocevski/807761/expmap_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.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/807761/ltcube_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.fits
.....................!
real 191.37
user 185.98
sys 4.40

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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 158 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 J0502.5+3438 @ 75.6366 34.6338

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits scfile=/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits outfile=/scratch/kocevski/807761/cmap_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.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=75.6366 yref=34.6338 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits scfile=/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits outfile=/scratch/kocevski/807761/cmap_HighResolution_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.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=75.6366 yref=34.6338 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/807761/Model_4FGL_J0502.5+3438_weekly_bin618.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits......................!
real 82.77
user 81.20
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits', '/scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits', expMap='/scratch/kocevski/807761/expmap_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.fits', expCube='/scratch/kocevski/807761/ltcube_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/807761/Model_4FGL_J0502.5+3438_weekly_bin618.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0502.5+3438'

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  2.074e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.263e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.268e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/807761/ft1_filtered_4FGL_J0502.5+3438_weekly_bin618.fits
Spacecraft file(s): /scratch/kocevski/807761/ft2_4FGL_J0502.5+3438_weekly_bin618.fits
Exposure map: /scratch/kocevski/807761/expmap_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.fits
Exposure cube: /scratch/kocevski/807761/ltcube_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/807761/Model_4FGL_J0502.5+3438_weekly_bin618.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) = 2521.1419405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    61.044       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    943.58       1.0000         .10000E-03   10000.    
    10 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    11 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    12 'Prefactor '    .64523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2521.118     FROM MIGRAD    STATUS=CONVERGED    209 CALLS      971 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8573       -.96495E-06** at limit **
   2  norm          60.974        71.691       -.62944E-04    .93310E-05
   3  Prefactor     .10000E-03    15.514       -.63482E-06** at limit **
   4  norm         10000.0        1716.2        .37677E-03** at limit **
   5  norm         10000.0        7108.3        .26804E-02** at limit **
   6  norm         10000.0        91.715        .47108E-04** at limit **
   7  Prefactor     10000.        189.41       -.19915E-03** at limit **
   8  Prefactor    10000.0        6221.8        .17076E-02** at limit **
   9  Prefactor     943.19        624.41       -.13267E-03   -.30959E-05
  10  norm          .10000E-03    1.9629        .17909E-05** at limit **
  11  Normalizat    .10000E-01    .73631E-01    .40115E-05** at limit **
  12  Prefactor     .64528        .65120E-01    .57128E-05   -.17777E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 60.9736
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 943.189
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.64528
 **********
 **   18 **HESSE 
 **********

 FCN=   2521.118     FROM HESSE     STATUS=OK           117 CALLS     1088 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9044        .82832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          60.974        71.700        .25678E-03   -1.4145    
   3  Prefactor     .10000E-03    15.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        1716.0        .20967E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        7107.8        .18254E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        91.715        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10000.        189.49        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        6222.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     943.19        624.83        .68417E-04   -.94648    
  10  norm          .10000E-03    1.9664        .68700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    .10000E-01    .73837E-01    .41962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .64528        .64849E-01    .12714E-03   -1.0571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06402e-10
Minuit parameter uncertainties:
  1  4.57641e-05
  2  71.8017
  3  3.85524e-06
  4  0.00104044
  5  0.00121878
  6  3.21291e-05
  7  1.44748e-06
  8  0.00774098
  9  629.689
  10  4.29769e-05
  11  6.91115e-08
  12  0.0648564
Done.

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

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  1.000e+04  3.213e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.263e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.268e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  6.453e-01  6.486e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.000e-02  6.911e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 152.49
Ra Dec: 75.637 34.634
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.08e-04 +/- 3.47e-13
Energy Flux (Fixed Index): 4.45e-02 +/- 1.43e-10

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) = 2081.56478399
delta logL = 439.55294188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2081.56446771
delta logL = 439.553258154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10000.       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35591       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2081.564     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      193 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10000.        36.061        .90712E-02** at limit **
   2  alpha         5.0000        .25861E-02    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .38163E-01    .12470    ** at limit **
   4  Prefactor     .35591        .46972E-01    .25539E-01   -.52092E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.355913
 **********
 **   18 **HESSE 
 **********

 FCN=   2081.564     FROM HESSE     STATUS=OK            25 CALLS      218 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10000.        36.061        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .25863E-02    .10135E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .38160E-01    .27532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .35591        .46929E-01    .11288E-03   -1.1912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84727e-12
Minuit parameter uncertainties:
  1  7.16588e-06
  2  3.87422e-10
  3  1.49565e-07
  4  0.0469341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/807761': 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) = 2081.56446771
delta logL = 439.553258154

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  1.000e+04  7.166e-06  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  3.874e-10  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.268e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  3.559e-01  4.693e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.000e-02  1.496e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1034.46
Ra Dec: 75.637 34.634
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.66e-02 +/- 1.76e-11
Energy Flux (Free Index): 2.29e+00 +/- 2.38e-09

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/807761/cmap_HighResolution_612748801_613353601_4FGL_J0502.5+3438_weekly_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-04', energy_flux2='2.29e+00', photon_flux_error='3.47e-13', dlogl='4.40e+02', energy_flux='4.45e-02', photon_flux2='1.66e-02', job_status='DONE', time_completed='2021-07-07 21:49:38.613002', photon_index_error2='0.00', photon_index2='5.00', ts='152.49', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='2.38e-09', EG='0.01', time_epoch_completed='1625719778.61', return_code='0', job_id='807761', GAL2='0.36', EG2='0.01', return_code2='0', energy_flux_error='1.43e-10', photon_flux_error2='1.76e-11', ts2='1034.46', photon_index='2.26' WHERE bin_id='618' AND source_name='4FGL J0502.5+3438' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul  7 21:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0133>
Subject: Job 807761: <4FGL_J0502.5+3438_weekly_bin618> in cluster <slac> Done

Job <4FGL_J0502.5+3438_weekly_bin618> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jul  7 21:35:20 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul  7 21:41:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul  7 21:41:27 2021
Terminated at Wed Jul  7 21:49:39 2021
Results reported at Wed Jul  7 21:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0502.5+3438_weekly_bin618 75.6366 34.6338 612748801 613353601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0502.5+3438 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   461.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             336.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   491 sec.
    Turnaround time :                            859 sec.

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

