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


Performing analysis on: 4FGL_J0502.5+3438_monthly_bin170
RA = 75.6366, Dec = 34.6338
tmin = 677635201, tmax = 680227201
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='87298', job_status='RUN', time_executed='2022-07-23 00:52:02.051814', time_epoch_executed='1658562722.05' WHERE source_name='4FGL J0502.5+3438' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87298

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87298/ft1_4FGL_J0502.5+3438_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87298/ft1_4FGL_J0502.5+3438_monthly_bin170.fits outfile=/scratch/kocevski/87298/ft1_filteredMKT_4FGL_J0502.5+3438_monthly_bin170.fits ra=75.6366 dec=34.6338 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.20
user 31.33
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.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/87298/ft1_filteredMKT_4FGL_J0502.5+3438_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.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.87
user 0.67
sys 0.18

Number of photons that the gtmktime cut: 24492

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/87298/ltcube_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.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/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits
.....................!
real 109.29
user 108.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/87298/ltcube_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.fits outfile=/scratch/kocevski/87298/expmap_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.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/87298/ltcube_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.fits
.....................!
real 198.23
user 192.20
sys 5.67

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/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits scfile=/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits outfile=/scratch/kocevski/87298/cmap_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.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.81
user 0.64
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits scfile=/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits outfile=/scratch/kocevski/87298/cmap_HighResolution_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.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.81
user 0.64
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/87298/Model_4FGL_J0502.5+3438_monthly_bin170.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/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits.....................!
real 6243.03
user 6228.72
sys 4.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits', '/scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits', expMap='/scratch/kocevski/87298/expmap_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.fits', expCube='/scratch/kocevski/87298/ltcube_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87298/Model_4FGL_J0502.5+3438_monthly_bin170.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/87298/ft1_filtered_4FGL_J0502.5+3438_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/87298/ft2_4FGL_J0502.5+3438_monthly_bin170.fits
Exposure map: /scratch/kocevski/87298/expmap_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.fits
Exposure cube: /scratch/kocevski/87298/ltcube_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87298/Model_4FGL_J0502.5+3438_monthly_bin170.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) = 244592.356734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10710E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7823       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0964       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4225       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18105E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3215       1.0000         .10000E-03   10000.    
    11 'Normalizat'    1.4470       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .96896       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   244591.6     FROM MIGRAD    STATUS=CONVERGED    238 CALLS      920 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .14581       -.93533E-07** at limit **
   2  norm          2.7920        3.3933       -.93291E-06   -.68183E-04
   3  Prefactor     .10000E-03    .21458       -.55912E-07** at limit **
   4  norm          .10000E-03    5.6298       -.54606E-06** at limit **
   5  norm          5.1007        7.0984        .80445E-06    .13951E-04
   6  norm          .10000E-03    .13593       -.40465E-07** at limit **
   7  Prefactor     1.4253        .41975        .69776E-07   -.34852E-02
   8  Prefactor     7.9434        10.738       -.14593E-04   -.10746E-04
   9  Prefactor     .10001E-03    .79109       -.24027E-07** at limit **
  10  norm          4.3206        .94680       -.40085E-07   -.30574E-03
  11  Normalizat    1.4469        .11118        .81697E-06    .44013E-03
  12  Prefactor     .96896        .12354E-01    .56806E-07    .16495E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.79203
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.10066
  norm       = 0.0001
  Prefactor  = 1.42529
  Prefactor  = 7.94336
  Prefactor  = 0.000100006
  norm       = 4.3206
  Normalizat = 1.44692
  Prefactor  = 0.96896
 **********
 **   18 **HESSE 
 **********

 FCN=   244591.6     FROM HESSE     STATUS=OK           149 CALLS     1069 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4988        .35949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7920        3.3911        .24395E-03   -1.5374    
   3  Prefactor     .10000E-03    1.0715        .44123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.6751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1007        7.0921        .17810E-03   -1.5256    
   6  norm          .10000E-03    .53586        .35201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4253        2.4972        .18131E-02   -1.5469    
   8  Prefactor     7.9434        10.746        .14216E-03   -1.5144    
   9  Prefactor     .10001E-03    .82558        .12225       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3206        .94466        .19378E-03   -1.5292    
  11  Normalizat    1.4469        .11308        .89399E-03   -.79281    
  12  Prefactor     .96896        .12952E-01    .12137E-03   -.93771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16546e-09
Minuit parameter uncertainties:
  1  6.40745e-06
  2  3.3913
  3  7.74502e-06
  4  2.68585e-06
  5  7.09328
  6  3.25721e-07
  7  2.49743
  8  10.7485
  9  0.000139712
  10  0.944665
  11  0.113103
  12  0.0129525
Done.

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

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  1.000e-04  3.257e-07  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:  9.690e-01  1.295e-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.447e+00  1.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 75.637 34.634
Photon Flux Upper Limit: 1.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87298/likelihoodResults_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.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) = 244591.64865
delta logL = -0.00882678863127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 244591.639824
delta logL = -1.09861139208e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2493       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96896       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=   244591.6     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      240 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .16903        .90712E-01** at limit **
   2  alpha         1.7497        2.8047        .41416       -.41021E-06
   3  Normalizat    1.4469        .30651E-02    .20058        .16023E-02
   4  Prefactor     .96896        .35112E-03    .27462E-01    .35489E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.74968
  Normalizat = 1.44692
  Prefactor  = 0.96896
 **********
 **   18 **HESSE 
 **********

 FCN=   244591.6     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      277 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    54.044        .37615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7497        3.3548        .50000       -.30483    
   3  Normalizat    1.4469        .29421E-01    .89399E-03   -.79281    
   4  Prefactor     .96896        .34016E-02    .12137E-03   -.93771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.71757e-09
Minuit parameter uncertainties:
  1  5.44769e-05
  2  542.009
  3  0.0294216
  4  0.00340162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87298': 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): 102
logL (Free Index) = 244591.639807
delta logL = 1.61732023116e-05

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  1.000e-04  5.448e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.750e+00  5.420e+02  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:  9.690e-01  3.402e-03  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.447e+00  2.942e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 75.637 34.634

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/87298/cmap_HighResolution_677635201_680227201_4FGL_J0502.5+3438_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-06', job_status='DONE', photon_flux_upper_limit='1.91e-08', time_completed='2022-07-23 04:09:38.879868', job_id='87298', GAL2='0.97', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1658574578.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.62e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='170' AND source_name='4FGL J0502.5+3438' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:09:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 87298: <4FGL_J0502.5+3438_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0502.5+3438_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:50:31 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:50:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:50:33 2022
Terminated at Sat Jul 23 04:09:40 2022
Results reported at Sat Jul 23 04:09:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0502.5+3438_monthly_bin170 75.6366 34.6338 677635201 680227201 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 :                                   11833.00 sec.
    Max Memory :                                 1282 MB
    Average Memory :                             625.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11947 sec.
    Turnaround time :                            11949 sec.

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

