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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 129 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 = 17181
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0253.9+5103_weekly_bin418
RA = 43.4933, Dec = 51.0633
tmin = 491788801, tmax = 492393601
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='786067', job_status='RUN', time_executed='2021-07-05 08:51:03.834173', time_epoch_executed='1625500263.83' WHERE source_name='4FGL J0253.9+5103' and cadence='weekly' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/786067

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/786067/ft1_4FGL_J0253.9+5103_weekly_bin418.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/786067/ft1_4FGL_J0253.9+5103_weekly_bin418.fits outfile=/scratch/kocevski/786067/ft1_filteredMKT_4FGL_J0253.9+5103_weekly_bin418.fits ra=43.4933 dec=51.0633 rad=12.0 tmin=491788801.0 tmax=492393601.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 8.79
user 8.13
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.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/786067/ft1_filteredMKT_4FGL_J0253.9+5103_weekly_bin418.fits evtable="EVENTS" outfile="/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.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 2.18
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/786067/ltcube_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.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/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits
.....................!
real 28.10
user 27.11
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/786067/ltcube_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.fits outfile=/scratch/kocevski/786067/expmap_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.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/786067/ltcube_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.fits
.....................!
real 195.60
user 186.07
sys 4.54

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 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
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.
Added 180 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 J0253.9+5103 @ 43.4933 51.0633

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits scfile=/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits outfile=/scratch/kocevski/786067/cmap_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.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=43.4933 yref=51.0633 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 1.24
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits scfile=/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits outfile=/scratch/kocevski/786067/cmap_HighResolution_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.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=43.4933 yref=51.0633 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.68
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/786067/Model_4FGL_J0253.9+5103_weekly_bin418.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 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits.....................!
real 96.35
user 74.81
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits', '/scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits', expMap='/scratch/kocevski/786067/expmap_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.fits', expCube='/scratch/kocevski/786067/ltcube_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/786067/Model_4FGL_J0253.9+5103_weekly_bin418.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.9+5103'

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/786067/ft1_filtered_4FGL_J0253.9+5103_weekly_bin418.fits
Spacecraft file(s): /scratch/kocevski/786067/ft2_4FGL_J0253.9+5103_weekly_bin418.fits
Exposure map: /scratch/kocevski/786067/expmap_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.fits
Exposure cube: /scratch/kocevski/786067/ltcube_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/786067/Model_4FGL_J0253.9+5103_weekly_bin418.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) = 3440.28527497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.727       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11655E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .20040E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    11.851       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9086       1.0000         .10000E-03   10000.    
     8 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    234.99       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93520       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3440.234     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1771 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.778        60.731       -.49855E-05    .26334E-04
   2  norm          1.6794        1.1939       -.83245E-06   -.23332E-02
   3  Prefactor     .10001E-03    301.44        .13711E-04** at limit **
   4  norm          .10000E-03    136.37        .26141E-04** at limit **
   5  norm          11.851        2.9728       -.13728E-06    .97193E-04
   6  norm          .10000E-03    30.118       -.33799E-06** at limit **
   7  Prefactor     6.9090        7.0633        .25006E-06   -.15122E-03
   8  norm          .10000E-03    37.832        .22198E-05** at limit **
   9  Prefactor     .10000E-03    21.724        .89639E-07** at limit **
  10  Prefactor     .10000E-03    60.403       -.92298E-06** at limit **
  11  norm          3.5860        1.2815        .20798E-07   -.11860E-02
  12  Prefactor     234.99        132.38       -.95409E-06   -.20011E-04
  13  norm          .10000E-03    68.626        .48162E-05** at limit **
  14  Prefactor     .10000E-03    92.011        .70808E-05** at limit **
  15  Prefactor     .10000E-03    8.3008        .39425E-06** at limit **
  16  norm          .10000E-03    55.970       -.43590E-05** at limit **
  17  Normalizat    .10000E-01    .26265        .71923E-05** at limit **
  18  Prefactor     .93536        .79178E-01    .69451E-06   -.10919E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7782
  norm       = 1.67944
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 11.8506
  norm       = 0.0001
  Prefactor  = 6.90897
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58604
  Prefactor  = 234.989
  norm       = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.935361
 **********
 **   18 **HESSE 
 **********

 FCN=   3440.234     FROM HESSE     STATUS=OK           236 CALLS     2007 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.778        60.569        .80557E-04   -1.4712    
   2  norm          1.6794        1.1792        .51683E-04   -1.5449    
   3  Prefactor     .10001E-03    299.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    133.78        .47699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.851        2.9725        .24166E-03   -1.5019    
   6  norm          .10000E-03    30.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9090        7.0618        .15264E-03   -1.5182    
   8  norm          .10000E-03    38.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5860        1.2760        .37651E-04   -1.5329    
  12  Prefactor     234.99        132.61        .26406E-04   -1.2630    
  13  norm          .10000E-03    68.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    91.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3340        .16486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    56.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .10000E-01    .33980        .16794E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .93536        .74033E-01    .13105E-03   -.94916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20773e-09
Minuit parameter uncertainties:
  1  60.7197
  2  1.17919
  3  0.00371758
  4  0.00032042
  5  2.9725
  6  7.0528e-06
  7  7.06261
  8  0.00052303
  9  8.8459e-05
  10  5.74076e-05
  11  1.27597
  12  132.777
  13  0.000660225
  14  0.00113942
  15  4.25762e-05
  16  0.000420049
  17  3.68438e-06
  18  0.0740411
Done.

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

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  6.909e+00  7.063e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.468e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.354e-01  7.404e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.000e-02  3.684e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.80
Ra Dec: 43.493 51.063
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 1.54e-07
Energy Flux (Fixed Index): 4.53e-05 +/- 4.63e-05

TS (Fixed Index): 3.80
Ra Dec: 43.493 51.063
Photon Flux Upper Limit: 6.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/786067/likelihoodResults_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.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) = 3438.82949574
delta logL = 1.40482713953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3438.80231763
delta logL = 1.4320052535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0949       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3156       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3438.802     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      223 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0898        9.2064        .33225E-02    .49472E-04
   2  Index         1.3155        .47805        .19938       -.19992E-04
   3  Normalizat    .10000E-01    .26038        .32094    ** at limit **
   4  Prefactor     .93861        .72798E-01    .29596E-01    .61090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.08976
  Index      = 1.31546
  Normalizat = 0.01
  Prefactor  = 0.938607
 **********
 **   18 **HESSE 
 **********

 FCN=   3438.802     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0898        10.932        .13290E-03   -1.5105    
   2  Index         1.3155        .61806        .80899E-02   -.82849    
   3  Normalizat    .10000E-01    .35451        .16999E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93861        .66691E-01    .13081E-03   -.94805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54897e-10
Minuit parameter uncertainties:
  1  10.9348
  2  0.621561
  3  4.75206e-06
  4  0.0666972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/786067': 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) = 3438.80231747
delta logL = 1.43200541672

Extracting fit parameters...

4FGL J0253.9+5103
   Spectrum: PowerLaw
325    Prefactor:  9.090e+00  1.093e+01  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.315e+00  6.216e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.035e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.386e-01  6.670e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.000e-02  4.752e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.66
Ra Dec: 43.493 51.063
Photon Index (Free Index): 1.32 +/- 0.62
Photon Flux (Free Index): 5.53e-08 +/- 6.74e-08
Energy Flux (Free Index): 3.22e-04 +/- 5.34e-04

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/786067/cmap_HighResolution_491788801_492393601_4FGL_J0253.9+5103_weekly_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-02', comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='3.22e-04', photon_flux_error='1.54e-07', dlogl='1.43e+00', energy_flux='4.53e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-07-05 09:01:23.695213', photon_index_error2='0.62', photon_index2='1.32', ts='3.80', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.50e-07', energy_flux_error2='5.34e-04', EG='0.01', time_epoch_completed='1625500883.7', return_code='0', job_id='786067', GAL2='0.94', EG2='0.01', return_code2='0', energy_flux_error='4.63e-05', photon_flux_error2='6.74e-08', ts2='6.66', photon_index='2.47' WHERE bin_id='418' AND source_name='4FGL J0253.9+5103' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 09:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 786067: <4FGL_J0253.9+5103_weekly_bin418> in cluster <slac> Done

Job <4FGL_J0253.9+5103_weekly_bin418> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jul  5 08:46:04 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 08:46:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 08:46:06 2021
Terminated at Mon Jul  5 09:01:29 2021
Results reported at Mon Jul  5 09:01:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.9+5103_weekly_bin418 43.4933 51.0633 491788801 492393601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0253.9+5103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   552.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             261.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

