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 191 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 = 17317
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0510.0+1800_weekly_bin401
RA = 77.5181, Dec = 18.0135
tmin = 481507201, tmax = 482112001
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='873615', job_status='RUN', time_executed='2021-07-08 07:21:29.228150', time_epoch_executed='1625754089.23' WHERE source_name='4FGL J0510.0+1800' and cadence='weekly' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873615

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873615/ft1_4FGL_J0510.0+1800_weekly_bin401.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873615/ft1_4FGL_J0510.0+1800_weekly_bin401.fits outfile=/scratch/kocevski/873615/ft1_filteredMKT_4FGL_J0510.0+1800_weekly_bin401.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=481507201.0 tmax=482112001.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 9.73
user 7.46
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.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/873615/ft1_filteredMKT_4FGL_J0510.0+1800_weekly_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.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 1.06
user 0.39
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/873615/ltcube_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.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/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits
.....................!
real 26.97
user 26.12
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/873615/ltcube_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.fits outfile=/scratch/kocevski/873615/expmap_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.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/873615/ltcube_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.fits
.....................!
real 195.66
user 185.97
sys 4.58

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 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 IC 443 in ROI with RadialGaussian spatial model.
Added 159 point sources and 2 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 J0510.0+1800 @ 77.5181 18.0135

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits scfile=/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits outfile=/scratch/kocevski/873615/cmap_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.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=77.5181 yref=18.0135 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.86
user 0.41
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits scfile=/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits outfile=/scratch/kocevski/873615/cmap_HighResolution_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.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=77.5181 yref=18.0135 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.07
user 0.44
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/873615/Model_4FGL_J0510.0+1800_weekly_bin401.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 IC 443
adding source S 147
Working on...
/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits.....................!
real 1146.82
user 1136.60
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits', '/scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits', expMap='/scratch/kocevski/873615/expmap_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.fits', expCube='/scratch/kocevski/873615/ltcube_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/873615/Model_4FGL_J0510.0+1800_weekly_bin401.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0510.0+1800'

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  5.353e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.085e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
242         beta:  9.246e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.966e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/873615/ft1_filtered_4FGL_J0510.0+1800_weekly_bin401.fits
Spacecraft file(s): /scratch/kocevski/873615/ft2_4FGL_J0510.0+1800_weekly_bin401.fits
Exposure map: /scratch/kocevski/873615/expmap_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.fits
Exposure cube: /scratch/kocevski/873615/ltcube_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/873615/Model_4FGL_J0510.0+1800_weekly_bin401.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) = 51417.0725199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5709       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8123       1.0000         .10000E-03   10000.    
     4 'norm      '    32.779       1.0000         .10000E-03   10000.    
     5 'norm      '    .11411E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5772       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3914       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.976       1.0000         .10000E-03   10000.    
    14 'norm      '    6.1533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .61651       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5214       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4263       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14081E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3515       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6215       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12034E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2340       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   51417.06     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3183 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.915        29.937       -.19231E-06   -.86135E-04
   2  Prefactor     7.5709        6.4677       -.82366E-07    .57665E-05
   3  norm          5.8125        1.6010       -.23263E-07    .13842E-03
   4  norm          32.796        26.670        .21874E-06    .33765E-03
   5  norm          .10000E-03    16.036        .76937E-06** at limit **
   6  Prefactor     .10000E-03    9.3731       -.91198E-07** at limit **
   7  Prefactor     .10000E-03    13.005       -.10969E-06** at limit **
   8  Prefactor     2.8969        3.0149        .20404E-06   -.80561E-04
   9  Prefactor     .10000E-03    .93604       -.14068E-06** at limit **
  10  norm          1.5764        2.2716        .21372E-06   -.42381E-04
  11  Prefactor     4.3913        2.5789        .38367E-06   -.11396E-03
  12  Prefactor     41.844        22.340        .19875E-06    .59830E-03
  13  Prefactor     14.005        20.289        .43465E-07    .31419E-03
  14  norm          6.1532        1.6895       -.21929E-07    .89303E-04
  15  Prefactor     .10000E-03    3.3226        .22021E-08** at limit **
  16  norm          .61367        2.2063       -.40341E-05   -.23334E-03
  17  norm          1.6180        .83012        .32795E-07    .10538E-02
  18  Prefactor     1.5214        .96744E-01    .64084E-09    .72872E-02
  19  norm          .10000E-03    .67567        .77557E-07** at limit **
  20  Prefactor     1.4263        .66320        .12657E-07    .10601E-02
  21  Prefactor     .10006E-03    7.8756        .20075E-05** at limit **
  22  Prefactor     8.3030        19.554        .23234E-05    .44807E-03
  23  Prefactor     1.6213        5.1974        .69045E-05   -.40043E-03
  24  Prefactor     .10000E-03    .73764        .76860E-07** at limit **
  25  Normalizat    1.2339        .22193        .23186E-05    .56191E-03
  26  Prefactor     .95699        .31161E-01   -.35129E-06    .80070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9153
  Prefactor  = 7.57089
  norm       = 5.81247
  norm       = 32.7956
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89691
  Prefactor  = 0.0001
  norm       = 1.57637
  Prefactor  = 4.3913
  Prefactor  = 41.8437
  Prefactor  = 14.0046
  norm       = 6.15322
  Prefactor  = 0.0001
  norm       = 0.613671
  norm       = 1.61798
  Prefactor  = 1.52143
  norm       = 0.0001
  Prefactor  = 1.42632
  Prefactor  = 0.000100059
  Prefactor  = 8.30296
  Prefactor  = 1.62129
  Prefactor  = 0.000100001
  Normalizat = 1.23389
  Prefactor  = 0.956987
 **********
 **   18 **HESSE 
 **********

 FCN=   51417.06     FROM HESSE     STATUS=OK           474 CALLS     3657 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.915        29.927        .97366E-04   -1.4885    
   2  Prefactor     7.5709        6.4588        .14575E-03   -1.5158    
   3  norm          5.8125        1.5984        .14268E-03   -1.5226    
   4  norm          32.796        26.787        .69988E-04   -1.4562    
   5  norm          .10000E-03    16.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8969        3.0143        .11939E-02   -1.5368    
   9  Prefactor     .10000E-03    .96228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5764        2.2503        .33829E-03   -1.5457    
  11  Prefactor     4.3913        2.5823        .96095E-03   -1.5289    
  12  Prefactor     41.844        22.495        .61992E-04   -1.4413    
  13  Prefactor     14.005        20.360        .10714E-03   -1.4959    
  14  norm          6.1532        1.6891        .74806E-03   -1.5212    
  15  Prefactor     .10000E-03    3.3283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .61367        4.7429        .45467E-02   -1.5551    
  17  norm          1.6180        .82995        .14088E-03   -1.5454    
  18  Prefactor     1.5214        .85657E-01    .11602E-04   -1.5461    
  19  norm          .10000E-03    2.4035        .32094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4263        .63227        .86692E-04   -1.5469    
  21  Prefactor     .10006E-03    6.8393        .15362       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3030        19.676        .13872E-03   -1.5132    
  23  Prefactor     1.6213        5.7256        .16617E-02   -1.5453    
  24  Prefactor     .10000E-03    3.9330        .36197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2339        .22531        .84546E-03   -.85562    
  26  Prefactor     .95699        .32829E-01    .14300E-03   -.94177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.145e-07
Minuit parameter uncertainties:
  1  29.9535
  2  6.45939
  3  1.59843
  4  26.7971
  5  0.000193767
  6  2.0956e-05
  7  1.9431e-05
  8  3.01447
  9  1.01764e-05
  10  2.25046
  11  2.58233
  12  22.5
  13  20.3698
  14  1.68907
  15  3.3858e-07
  16  3.41219
  17  0.829955
  18  0.0856568
  19  3.7396e-06
  20  0.632277
  21  0.00126958
  22  19.6915
  23  5.72752
  24  0.000150775
  25  0.225486
  26  0.0328301
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.576e+00  2.250e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.085e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
242         beta:  9.246e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.966e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.570e-01  3.283e-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
537   Normalization:  1.234e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 77.518 18.014
Photon Flux Upper Limit: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/873615/likelihoodResults_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.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) = 51416.9291943
delta logL = 0.13349330386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 51416.9275972
delta logL = 0.135090378732

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5317       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5322       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   51416.93     FROM MIGRAD    STATUS=FAILED        98 CALLS      250 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5314        2.3688        .32311E-03    .95704E-05
   2  alpha         2.5333        .97755        .49611E-01    .93481E-03
   3  Normalizat    1.2229        .21066        .84865E-03   -.21863E-04
   4  Prefactor     .95755        .31998E-01    .14296E-03   -.47714E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   51416.93     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      319 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5314        2.3688        .80849E-04   -1.5460    
   2  alpha         2.5333        .97755        .15474E-02    .13326E-01
   3  Normalizat    1.2229        .21066        .24319E-03   -.85897    
   4  Prefactor     .95755        .31998E-01    .53091E-04   -.94158    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   51416.93     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      352 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5314        2.0772        .12924E-04    .95704E-05
   2  alpha         2.5333        .86423        .99221E-02    .36574E-04
   3  Normalizat    1.2229        .21040        .33946E-04   -.21970E-04
   4  Prefactor     .95755        .31971E-01    .57184E-05   -.44533E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53142
  alpha      = 2.53331
  Normalizat = 1.22293
  Prefactor  = 0.957546
 **********
 **   18 **HESSE 
 **********

 FCN=   51416.93     FROM HESSE     STATUS=OK            25 CALLS      377 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5314        2.0448        .12924E-04   -1.5460    
   2  alpha         2.5333        .85100        .19844E-02    .13326E-01
   3  Normalizat    1.2229        .21027        .67892E-05   -.85897    
   4  Prefactor     .95755        .31949E-01    .11437E-05   -.94158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12995e-12
Minuit parameter uncertainties:
  1  2.04487
  2  0.868363
  3  0.210417
  4  0.0319499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873615': 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) = 51416.9275962
delta logL = 0.135091345415

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.531e+00  2.045e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  2.533e+00  8.684e-01  0.000e+00  5.000e+00 ( 1.000e+00)
242         beta:  9.246e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
243           Eb:  9.966e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  9.575e-01  3.195e-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
537   Normalization:  1.223e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
Ra Dec: 77.518 18.014

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/873615/cmap_HighResolution_481507201_482112001_4FGL_J0510.0+1800_weekly_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-05', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-07-08 08:42:03.177563', job_id='873615', GAL2='0.96', fit_tolerance='1e-08', EG2='1.22', EG='1.23', time_epoch_completed='1625758923.18', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.35e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='401' AND source_name='4FGL J0510.0+1800' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 08:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 873615: <4FGL_J0510.0+1800_weekly_bin401> in cluster <slac> Done

Job <4FGL_J0510.0+1800_weekly_bin401> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Jul  8 01:30:37 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 01:54:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul  8 01:54:05 2021
Terminated at Thu Jul  8 08:42:21 2021
Results reported at Thu Jul  8 08:42:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_weekly_bin401 77.5181 18.0135 481507201 482112001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0510.0+1800 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4780.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             122.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   24495 sec.
    Turnaround time :                            25904 sec.

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

