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


Performing analysis on: 4FGL_J0510.0+1800_monthly_bin168
RA = 77.5181, Dec = 18.0135
tmin = 672451201, tmax = 675043201
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='616166', job_status='RUN', time_executed='2022-05-24 02:09:11.152793', time_epoch_executed='1653383351.15' WHERE source_name='4FGL J0510.0+1800' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/616166

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/616166/ft1_4FGL_J0510.0+1800_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/616166/ft2_4FGL_J0510.0+1800_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/616166/ft1_4FGL_J0510.0+1800_monthly_bin168.fits outfile=/scratch/kocevski/616166/ft1_filteredMKT_4FGL_J0510.0+1800_monthly_bin168.fits ra=77.5181 dec=18.0135 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.67
user 27.96
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/616166/ft2_4FGL_J0510.0+1800_monthly_bin168.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/616166/ft1_filteredMKT_4FGL_J0510.0+1800_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/616166/ft1_filtered_4FGL_J0510.0+1800_monthly_bin168.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.68
sys 0.18

Number of photons that the gtmktime cut: 19984

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/616166/ft1_filtered_4FGL_J0510.0+1800_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/616166/ft2_4FGL_J0510.0+1800_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/616166/ltcube_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.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/616166/ft2_4FGL_J0510.0+1800_monthly_bin168.fits
.....................!
real 145.41
user 144.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/616166/ft1_filtered_4FGL_J0510.0+1800_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/616166/ft2_4FGL_J0510.0+1800_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/616166/ltcube_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.fits outfile=/scratch/kocevski/616166/expmap_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.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/616166/ltcube_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.fits
.....................!
real 192.05
user 187.29
sys 4.28

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/616166/ft1_filtered_4FGL_J0510.0+1800_monthly_bin168.fits scfile=/scratch/kocevski/616166/ft2_4FGL_J0510.0+1800_monthly_bin168.fits outfile=/scratch/kocevski/616166/cmap_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.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.81
user 0.67
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/616166/ft1_filtered_4FGL_J0510.0+1800_monthly_bin168.fits scfile=/scratch/kocevski/616166/ft2_4FGL_J0510.0+1800_monthly_bin168.fits outfile=/scratch/kocevski/616166/cmap_HighResolution_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.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.82
user 0.67
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.416       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6482       1.0000         .10000E-03   10000.    
     4 'norm      '    27.105       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56862       1.0000         .10000E-03   10000.    
    10 'norm      '    .92138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1756       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.741       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5017       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19622E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25300       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1279       1.0000         .10000E-03   10000.    
    19 'norm      '    6.5370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2751       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13137E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28559       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3193       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0036       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=   199866.9     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     2804 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.752       -.91250E-06** at limit **
   2  Prefactor     10.417        5.5793       -.95344E-07   -.30214E-04
   3  norm          5.6483        .96796        .18708E-09   -.34738E-03
   4  norm          27.105        15.061       -.25805E-06   -.30820E-04
   5  norm          .10000E-03    2.5906        .61541E-07** at limit **
   6  Prefactor     1.4861        9.1819        .44155E-07   -.24050E-04
   7  Prefactor     .10000E-03    3.7789       -.29556E-06** at limit **
   8  Prefactor     2.5010        1.3085        .57443E-07   -.10659E-02
   9  Prefactor     .56865        .87951       -.48296E-06   -.37607E-03
  10  norm          .92103        .78603       -.20514E-07   -.86680E-03
  11  Prefactor     3.1755        1.0141       -.56176E-09   -.15309E-02
  12  Prefactor     .10000E-03    9.3603        .49028E-06** at limit **
  13  Prefactor     23.743        16.354        .12300E-05    .15057E-03
  14  norm          3.5016        .80912        .12741E-07    .57899E-03
  15  Prefactor     .10001E-03    1.0504       -.61151E-06** at limit **
  16  norm          .10000E-03    .20474        .22798E-07** at limit **
  17  norm          .25286        .21558        .19555E-07   -.19828E-03
  18  Prefactor     1.1279        .47325E-01   -.81891E-09    .19881E-01
  19  norm          6.5370        1.1834       -.25252E-08    .44726E-03
  20  Prefactor     2.2751        .32709        .13579E-07    .29868E-02
  21  Prefactor     .10002E-03    1.0514       -.35734E-06** at limit **
  22  Prefactor     .10000E-03    4.6708        .28725E-05** at limit **
  23  Prefactor     .10000E-03    1.5067        .13987E-06** at limit **
  24  Prefactor     .28336        .46733       -.75256E-07   -.24661E-03
  25  Normalizat    1.3193        .12308        .17036E-06    .25883E-03
  26  Prefactor     1.0036        .16400E-01   -.21890E-08    .16599E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.4166
  norm       = 5.64833
  norm       = 27.1046
  norm       = 0.0001
  Prefactor  = 1.48612
  Prefactor  = 0.0001
  Prefactor  = 2.50098
  Prefactor  = 0.568649
  norm       = 0.921033
  Prefactor  = 3.17552
  Prefactor  = 0.0001
  Prefactor  = 23.7426
  norm       = 3.50156
  Prefactor  = 0.000100014
  norm       = 0.0001
  norm       = 0.252856
  Prefactor  = 1.12789
  norm       = 6.53705
  Prefactor  = 2.27507
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.283356
  Normalizat = 1.31931
  Prefactor  = 1.00361
 **********
 **   18 **HESSE 
 **********

 FCN=   199866.9     FROM HESSE     STATUS=OK           478 CALLS     3282 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.417        5.5778        .12415E-03   -1.5062    
   3  norm          5.6483        .97104        .16903E-03   -1.5233    
   4  norm          27.105        15.071        .76948E-04   -1.4666    
   5  norm          .10000E-03    2.5974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4861        9.3476        .35202E-03   -1.5464    
   7  Prefactor     .10000E-03    3.7859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5010        1.6376        .12921E-02   -1.5392    
   9  Prefactor     .56865        .88154        .46191E-04   -1.5557    
  10  norm          .92103        .94871        .36020E-02   -1.5516    
  11  Prefactor     3.1755        1.2080        .11371E-02   -1.5352    
  12  Prefactor     .10000E-03    9.4726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.743        16.436        .82210E-04   -1.4733    
  14  norm          3.5016        .80730        .18677E-03   -1.5334    
  15  Prefactor     .10001E-03    4.6738        .80121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .79009        .38410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .25286        .23344        .18325E-02   -1.5607    
  18  Prefactor     1.1279        .51902E-01    .12899E-04   -1.5496    
  19  norm          6.5370        1.2754        .15696E-04   -1.5197    
  20  Prefactor     2.2751        .34129        .70435E-04   -1.5406    
  21  Prefactor     .10002E-03    1.0286        .14371       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .28336        1.2215        .38743E-02   -1.5602    
  25  Normalizat    1.3193        .12530        .87605E-03   -.82992    
  26  Prefactor     1.0036        .17173E-01    .14569E-03   -.92609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84137e-06
Minuit parameter uncertainties:
  1  3.79455e-05
  2  5.57807
  3  0.97104
  4  15.0731
  5  1.20953e-06
  6  7.45578
  7  5.22685e-06
  8  1.63763
  9  0.881558
  10  0.948722
  11  1.20796
  12  1.37095e-05
  13  16.4389
  14  0.807304
  15  0.000503704
  16  6.2413e-06
  17  0.233445
  18  0.0519016
  19  1.27539
  20  0.341294
  21  0.000255729
  22  6.62524e-05
  23  1.61648e-06
  24  1.17648
  25  0.125327
  26  0.0171734
Done.

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

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  9.210e-01  9.487e-01  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.004e+00  1.717e-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.319e+00  1.253e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 77.518 18.014
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 8.06e-09 +/- 8.30e-09
Energy Flux (Fixed Index): 4.19e-06 +/- 4.32e-06

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

Saving results to:
/scratch/kocevski/616166/likelihoodResults_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.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) = 199864.604024
delta logL = 2.25773651223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 199864.570035
delta logL = 2.29172564848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15084       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5178       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0110       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=   199864.6     FROM MIGRAD    STATUS=FAILED       100 CALLS      299 TOTAL
                     EDM=   .21E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15049        1.1595        .66284E-04   -.35126E-02
   2  alpha         4.5190        4.5238        .73601E-01    .76364E-02
   3  Normalizat    1.2257        .80648E-01    .90405E-03   -.10020E-03
   4  Prefactor     1.0110        .11867E-01    .14520E-03   -.27812E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   199864.6     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      381 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15049        1.1595        .25920E-04   -.35126E-02
   2  alpha         4.5190        4.5238        .27500E-02    .76364E-02
   3  Normalizat    1.2257        .80648E-01    .56856E-04   -.10020E-03
   4  Prefactor     1.0110        .11867E-01    .13237E-04   -.27812E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   199864.6     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      414 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15049        1.2356        .26514E-05   -.36498E-02
   2  alpha         4.5190        4.5592        .14720E-01   -.31461E-04
   3  Normalizat    1.2257        .11069        .36162E-04   -.10060E-03
   4  Prefactor     1.0110        .16148E-01    .58079E-05   -.27561E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.150491
  alpha      = 4.51898
  Normalizat = 1.22574
  Prefactor  = 1.01097
 **********
 **   18 **HESSE 
 **********

 FCN=   199864.6     FROM HESSE     STATUS=OK            25 CALLS      439 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15049        .29968        .53027E-06   -1.5630    
   2  alpha         4.5190        .91873        .58881E-03    .94006    
   3  Normalizat    1.2257        .11820        .72324E-05   -.85811    
   4  Prefactor     1.0110        .16967E-01    .11616E-05   -.92365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45505e-11
Minuit parameter uncertainties:
  1  0.299683
  2  0.991874
  3  0.118224
  4  0.0169674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/616166': 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) = 199864.570034
delta logL = 2.29172640917

Extracting fit parameters...

4FGL J0510.0+1800
   Spectrum: LogParabola
240         norm:  1.505e-01  2.997e-01  1.000e-04  1.000e+04 ( 1.000e-12)
241        alpha:  4.519e+00  9.919e-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.011e+00  1.697e-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.226e+00  1.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.81
Ra Dec: 77.518 18.014
Photon Index (Free Index): 4.52 +/- 0.99
Photon Flux (Free Index): 9.56e-08 +/- 4.09e-08
Energy Flux (Free Index): 1.38e-05 +/- 6.09e-06

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/616166/cmap_HighResolution_672451201_675043201_4FGL_J0510.0+1800_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-05', comment='SUCCESS', photon_flux='8.06e-09', energy_flux2='1.38e-05', photon_flux_error='8.30e-09', dlogl='2.29e+00', energy_flux='4.19e-06', photon_flux2='9.56e-08', job_status='DONE', time_completed='2022-05-24 06:49:08.321431', photon_index_error2='0.99', photon_index2='4.52', ts='1.54', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.81e-08', energy_flux_error2='6.09e-06', EG='1.32', time_epoch_completed='1653400148.32', return_code='0', job_id='616166', GAL2='1.01', EG2='1.23', return_code2='0', energy_flux_error='4.32e-06', photon_flux_error2='4.09e-08', ts2='6.81', photon_index='2.08' WHERE bin_id='168' AND source_name='4FGL J0510.0+1800' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:49:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 616166: <4FGL_J0510.0+1800_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0510.0+1800_monthly_bin168> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue May 24 02:05:36 2022
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:07:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:07:55 2022
Terminated at Tue May 24 06:49:09 2022
Results reported at Tue May 24 06:49:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0510.0+1800_monthly_bin168 77.5181 18.0135 672451201 675043201 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 :                                   16751.00 sec.
    Max Memory :                                 859 MB
    Average Memory :                             574.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   16874 sec.
    Turnaround time :                            17013 sec.

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

