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


Performing analysis on: 4FGL_J0510.0+1800_weekly_bin304
RA = 77.5181, Dec = 18.0135
tmin = 422841601, tmax = 423446401
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='873458', job_status='RUN', time_executed='2021-07-08 07:20:57.379049', time_epoch_executed='1625754057.38' WHERE source_name='4FGL J0510.0+1800' and cadence='weekly' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/873458

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/873458/ft1_4FGL_J0510.0+1800_weekly_bin304.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/873458/ft1_4FGL_J0510.0+1800_weekly_bin304.fits outfile=/scratch/kocevski/873458/ft1_filteredMKT_4FGL_J0510.0+1800_weekly_bin304.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=422841601.0 tmax=423446401.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 10.20
user 9.70
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.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/873458/ft1_filteredMKT_4FGL_J0510.0+1800_weekly_bin304.fits evtable="EVENTS" outfile="/scratch/kocevski/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.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.19
user 0.38
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/873458/ltcube_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.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/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits
.....................!
real 26.92
user 25.91
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/873458/ltcube_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.fits outfile=/scratch/kocevski/873458/expmap_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.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/873458/ltcube_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.fits
.....................!
real 193.90
user 184.81
sys 6.71

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/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits scfile=/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits outfile=/scratch/kocevski/873458/cmap_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.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.72
user 0.44
sys 0.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits scfile=/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits outfile=/scratch/kocevski/873458/cmap_HighResolution_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.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 0.66
user 0.40
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/873458/Model_4FGL_J0510.0+1800_weekly_bin304.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/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits.....................!
real 1279.34
user 1269.61
sys 5.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits', '/scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits', expMap='/scratch/kocevski/873458/expmap_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.fits', expCube='/scratch/kocevski/873458/ltcube_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/873458/Model_4FGL_J0510.0+1800_weekly_bin304.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/873458/ft1_filtered_4FGL_J0510.0+1800_weekly_bin304.fits
Spacecraft file(s): /scratch/kocevski/873458/ft2_4FGL_J0510.0+1800_weekly_bin304.fits
Exposure map: /scratch/kocevski/873458/expmap_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.fits
Exposure cube: /scratch/kocevski/873458/ltcube_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/873458/Model_4FGL_J0510.0+1800_weekly_bin304.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) = 56660.6626649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8468       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2163       1.0000         .10000E-03   10000.    
     3 'norm      '    3.8776       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15661E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6149       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.735       1.0000         .10000E-03   10000.    
    14 'norm      '    7.6862       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.404       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3976       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8544       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2555       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1991       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5718       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1925       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0434       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=   56660.64     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2710 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8452        18.547       -.43974E-07   -.89405E-05
   2  Prefactor     8.2161        8.4933        .29217E-06   -.14622E-04
   3  norm          3.8780        1.5270        .18936E-06   -.48776E-03
   4  norm          .10000E-03    6.4886        .11208E-06** at limit **
   5  norm          1.8950        30.974       -.57940E-05   -.60037E-04
   6  Prefactor     .10000E-03    5.7570       -.88014E-07** at limit **
   7  Prefactor     .10000E-03    6.6239        .98163E-07** at limit **
   8  Prefactor     .10003E-03    1.7556        .31424E-06** at limit **
   9  Prefactor     3.6154        2.4153        .39753E-06   -.36600E-03
  10  norm          5.3153        2.8973        .22663E-07   -.13655E-03
  11  Prefactor     .10000E-03    1.5116       -.98989E-08** at limit **
  12  Prefactor     .10000E-03    16.910        .78062E-06** at limit **
  13  Prefactor     43.730        34.233       -.64019E-06   -.43162E-04
  14  norm          7.6861        2.0543       -.75533E-08   -.22656E-03
  15  Prefactor     15.403        12.466       -.27391E-06   -.70448E-04
  16  norm          .10000E-03    1.3998       -.39727E-08** at limit **
  17  norm          .33851        .47954       -.16983E-06   -.13830E-02
  18  Prefactor     1.3976        .10377       -.39776E-07   -.12561E-02
  19  norm          3.8541        2.2748        .35822E-06   -.79711E-03
  20  Prefactor     1.2556        .70847        .42035E-06   -.48629E-03
  21  Prefactor     10.157        12.230        .19940E-06    .57077E-04
  22  Prefactor     .10000E-03    10.893       -.51733E-06** at limit **
  23  Prefactor     2.1993        12.719        .64654E-06   -.31166E-04
  24  Prefactor     3.5716        3.2606        .37389E-06   -.16959E-03
  25  Normalizat    1.1924        .23768       -.26887E-05   -.13919E-03
  26  Prefactor     1.0434        .32141E-01    .18275E-06   -.77754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.84517
  Prefactor  = 8.21611
  norm       = 3.87796
  norm       = 0.0001
  norm       = 1.895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 3.61541
  norm       = 5.31527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.7305
  norm       = 7.68611
  Prefactor  = 15.4027
  norm       = 0.0001
  norm       = 0.338511
  Prefactor  = 1.39758
  norm       = 3.85409
  Prefactor  = 1.25558
  Prefactor  = 10.1575
  Prefactor  = 0.0001
  Prefactor  = 2.19932
  Prefactor  = 3.57159
  Normalizat = 1.19241
  Prefactor  = 1.04337
 **********
 **   18 **HESSE 
 **********

 FCN=   56660.64     FROM HESSE     STATUS=OK           476 CALLS     3186 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8452        18.542        .13476E-03   -1.5113    
   2  Prefactor     8.2161        8.4777        .13987E-03   -1.5135    
   3  norm          3.8780        1.5230        .17389E-03   -1.5314    
   4  norm          .10000E-03    6.4967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8950        33.277        .29934E-03   -1.5433    
   6  Prefactor     .10000E-03    5.7628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    1.8503        .96687E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6154        2.4167        .21251E-03   -1.5328    
  10  norm          5.3153        2.8968        .17433E-03   -1.5247    
  11  Prefactor     .10000E-03    1.5545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.730        34.233        .60621E-04   -1.4384    
  14  norm          7.6861        2.0530        .14464E-03   -1.5153    
  15  Prefactor     15.403        12.471        .10205E-03   -1.4923    
  16  norm          .10000E-03    1.4152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33851        .36836        .19217E-02   -1.5592    
  18  Prefactor     1.3976        .10683        .12839E-04   -1.5472    
  19  norm          3.8541        2.3691        .20555E-03   -1.5315    
  20  Prefactor     1.2556        .70520        .10273E-03   -1.5484    
  21  Prefactor     10.157        12.046        .12570E-03   -1.5070    
  22  Prefactor     .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1993        12.698        .27746E-03   -1.5411    
  24  Prefactor     3.5716        3.2440        .21384E-03   -1.5330    
  25  Normalizat    1.1924        .23872        .92098E-03   -.86838    
  26  Prefactor     1.0434        .33516E-01    .14727E-03   -.91297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18013e-10
Minuit parameter uncertainties:
  1  18.5543
  2  8.47892
  3  1.52301
  4  1.30835e-05
  5  15.8919
  6  1.87457e-06
  7  4.14307e-06
  8  0.000447656
  9  2.41677
  10  2.89685
  11  2.40246e-06
  12  3.0993e-05
  13  34.2488
  14  2.05305
  15  12.4728
  16  1.85458e-07
  17  0.368365
  18  0.106828
  19  2.36911
  20  0.705203
  21  12.0488
  22  6.75596e-06
  23  10.5722
  24  3.24418
  25  0.238933
  26  0.033517
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  5.315e+00  2.897e+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:  1.043e+00  3.352e-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.192e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.15
Ra Dec: 77.518 18.014
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 2.42e-05 +/- 1.32e-05

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) = 56660.2713338
delta logL = 0.370618807479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 56660.1876085
delta logL = 0.454344027123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0670       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5986       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0432       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.

 FCN=   56660.19     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0653        2.5107        .49982E-02    .26957E-02
   2  alpha         1.5983        .32587        .45181       -.28176E-03
   3  Normalizat    1.2106        .20578        .20522        .21262E-03
   4  Prefactor     1.0432        .31091E-01    .40323E-01   -.73037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.06531
  alpha      = 1.59827
  Normalizat = 1.21059
  Prefactor  = 1.04322
 **********
 **   18 **HESSE 
 **********

 FCN=   56660.19     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0653        3.2504        .99964E-03   -1.5305    
   2  alpha         1.5983        .50562        .31999E-01   -.36901    
   3  Normalizat    1.2106        .21260        .91514E-03   -.86276    
   4  Prefactor     1.0432        .32498E-01    .14729E-03   -.91302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15337e-08
Minuit parameter uncertainties:
  1  3.25057
  2  0.509665
  3  0.212756
  4  0.0324985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/873458': 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) = 56660.1876083
delta logL = 0.454344292972

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  4.065e+00  3.251e+00  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  1.598e+00  5.097e-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:  1.043e+00  3.250e-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.211e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 77.518 18.014
Photon Index (Free Index): 1.60 +/- 0.51
Photon Flux (Free Index): 2.13e-08 +/- 2.32e-08
Energy Flux (Free Index): 3.00e-05 +/- 2.11e-05

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/873458/cmap_HighResolution_422841601_423446401_4FGL_J0510.0+1800_weekly_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='3.00e-05', photon_flux_error='2.53e-08', dlogl='4.54e-01', energy_flux='2.42e-05', photon_flux2='2.13e-08', job_status='DONE', time_completed='2021-07-08 08:28:28.391505', photon_index_error2='0.51', photon_index2='1.60', ts='9.15', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.19', time_epoch_completed='1625758108.39', return_code='0', job_id='873458', GAL2='1.04', EG2='1.21', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='2.32e-08', ts2='10.05', photon_index='2.08' WHERE bin_id='304' AND source_name='4FGL J0510.0+1800' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 08:28:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 873458: <4FGL_J0510.0+1800_weekly_bin304> in cluster <slac> Done

Job <4FGL_J0510.0+1800_weekly_bin304> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Jul  8 01:30:24 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 01:52:29 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:52:29 2021
Terminated at Thu Jul  8 08:28:31 2021
Results reported at Thu Jul  8 08:28:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_weekly_bin304 77.5181 18.0135 422841601 423446401 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 :                                   4027.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             116.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   23761 sec.
    Turnaround time :                            25087 sec.

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

