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 40 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_J2005.1+7003_monthly_bin168
RA = 301.278, Dec = 70.0624
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='646938', job_status='RUN', time_executed='2022-05-24 03:57:18.640703', time_epoch_executed='1653389838.64' WHERE source_name='4FGL J2005.1+7003' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646938

Creating custom pfile directory:
/scratch/kocevski/646938/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/646938/ft1_4FGL_J2005.1+7003_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/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646938/ft1_4FGL_J2005.1+7003_monthly_bin168.fits outfile=/scratch/kocevski/646938/ft1_filteredMKT_4FGL_J2005.1+7003_monthly_bin168.fits ra=301.278 dec=70.0624 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.87
user 27.94
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_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/646938/ft1_filteredMKT_4FGL_J2005.1+7003_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_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.88
user 0.69
sys 0.18

Number of photons that the gtmktime cut: 24953

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/646938/ltcube_672451201_675043201_4FGL_J2005.1+7003_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/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits
.....................!
real 123.17
user 122.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/646938/ltcube_672451201_675043201_4FGL_J2005.1+7003_monthly_bin168.fits outfile=/scratch/kocevski/646938/expmap_672451201_675043201_4FGL_J2005.1+7003_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/646938/ltcube_672451201_675043201_4FGL_J2005.1+7003_monthly_bin168.fits
.....................!
real 192.32
user 186.92
sys 4.94

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 FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 193 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 J2005.1+7003 @ 301.278 70.0624

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits scfile=/scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits outfile=/scratch/kocevski/646938/cmap_672451201_675043201_4FGL_J2005.1+7003_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=301.278 yref=70.0624 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.84
user 0.65
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits scfile=/scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits outfile=/scratch/kocevski/646938/cmap_HighResolution_672451201_675043201_4FGL_J2005.1+7003_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=301.278 yref=70.0624 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.83
user 0.67
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646938/Model_4FGL_J2005.1+7003_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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits.....................!
real 3173.56
user 3163.82
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits', '/scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits', expMap='/scratch/kocevski/646938/expmap_672451201_675043201_4FGL_J2005.1+7003_monthly_bin168.fits', expCube='/scratch/kocevski/646938/ltcube_672451201_675043201_4FGL_J2005.1+7003_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646938/Model_4FGL_J2005.1+7003_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.1+7003'

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  5.049e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646938/ft1_filtered_4FGL_J2005.1+7003_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/646938/ft2_4FGL_J2005.1+7003_monthly_bin168.fits
Exposure map: /scratch/kocevski/646938/expmap_672451201_675043201_4FGL_J2005.1+7003_monthly_bin168.fits
Exposure cube: /scratch/kocevski/646938/ltcube_672451201_675043201_4FGL_J2005.1+7003_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646938/Model_4FGL_J2005.1+7003_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) = 248143.286136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1232       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5072       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12596E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9261       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.946       1.0000         .10000E-03   10000.    
     9 'norm      '    .17651       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1108       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5504       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3726       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5163       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4384       1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .58655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.604       1.0000         .10000E-03   10000.    
    19 'norm      '    .22973E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.373       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0505       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .77054       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1373       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   248143.2     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2541 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1231        .57211       -.13227E-08   -.34709E-03
   2  norm          4.5072        .28430       -.20432E-07    .41816E-03
   3  norm          3.3215        .89976       -.13958E-07    .43007E-03
   4  Prefactor     .10000E-03    56.289       -.74254E-05** at limit **
   5  Prefactor     3.7304        1.4105        .19906E-06    .54126E-03
   6  Prefactor     3.5816        2.4286       -.17185E-05    .17007E-02
   7  Prefactor     9.9299        1.6536       -.11477E-05    .31889E-03
   8  Prefactor     23.969        12.488       -.68896E-05    .79874E-03
   9  norm          .17661        .32256        .38200E-06    .27160E-03
  10  norm          1.1109        .73792        .32650E-07    .40652E-03
  11  norm          2.5504        1.7776        .25251E-07    .11551E-03
  12  Prefactor     3.6089        2.8818       -.41361E-05   -.25770E-02
  13  Prefactor     1.3729        1.1261       -.18758E-06    .85563E-04
  14  norm          3.5158        .40703       -.50105E-07   -.13547E-03
  15  norm          9.4402        1.3509        .65845E-06    .24751E-02
  16  norm          .10000E-03    1.7686        .53698E-07** at limit **
  17  norm          .59635        1.9845       -.64673E-06   -.77933E-04
  18  Prefactor     37.610        5.5931        .15887E-05   -.14414E-02
  19  norm          .10000E-03    5.4968       -.62878E-07** at limit **
  20  Prefactor     14.371        3.0908       -.67762E-06   -.13519E-02
  21  norm          1.0506        .95462       -.18716E-08    .18461E-03
  22  Prefactor     .77064        .57225       -.38873E-07   -.17090E-04
  23  Prefactor     .10000E-03    1.7522        .14456E-07** at limit **
  24  Normalizat    1.1373        .54352E-01    .11422E-05    .54176E-03
  25  Prefactor     .98280        .12701E-01   -.22812E-06    .19352E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12313
  norm       = 4.50723
  norm       = 3.32146
  Prefactor  = 0.0001
  Prefactor  = 3.73036
  Prefactor  = 3.58164
  Prefactor  = 9.92995
  Prefactor  = 23.9688
  norm       = 0.176605
  norm       = 1.11087
  norm       = 2.55044
  Prefactor  = 3.6089
  Prefactor  = 1.37294
  norm       = 3.51578
  norm       = 9.44021
  norm       = 0.0001
  norm       = 0.596353
  Prefactor  = 37.61
  norm       = 0.0001
  Prefactor  = 14.3708
  norm       = 1.05056
  Prefactor  = 0.77064
  Prefactor  = 0.0001
  Normalizat = 1.13727
  Prefactor  = 0.982795
 **********
 **   18 **HESSE 
 **********

 FCN=   248143.2     FROM HESSE     STATUS=OK           509 CALLS     3050 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1231        .57283        .57355E-02   -1.5355    
   2  norm          4.5072        .28368        .47410E-02   -1.5283    
   3  norm          3.3215        .90491        .55528E-02   -1.5343    
   4  Prefactor     .10000E-03    54.162        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7304        1.4717        .52266E-02   -1.5322    
   6  Prefactor     3.5816        3.8096        .53382E-02   -1.5329    
   7  Prefactor     9.9299        13.419        .31797E-02   -1.5078    
   8  Prefactor     23.969        12.696        .20464E-02   -1.4728    
   9  norm          .17661        .25094        .47085E-01   -1.5624    
  10  norm          1.1109        .76183        .11201E-01   -1.5497    
  11  norm          2.5504        1.8026        .63920E-02   -1.5389    
  12  Prefactor     3.6089        3.4394        .53158E-02   -1.5328    
  13  Prefactor     1.3729        1.1388        .93001E-03   -1.5474    
  14  norm          3.5158        .41152        .53898E-02   -1.5333    
  15  norm          9.4402        4.8569        .32611E-02   -1.5093    
  16  norm          .10000E-03    .99470E-01    .53153E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .59635        1.9893        .11619E-01   -1.5554    
  18  Prefactor     37.610        5.7402        .16340E-02   -1.4481    
  19  norm          .10000E-03    .97223E-01    .51445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.371        3.1477        .26412E-02   -1.4950    
  21  norm          1.0506        .96061        .12075E-01   -1.5503    
  22  Prefactor     .77064        .58802        .12330E-01   -1.5532    
  23  Prefactor     .10000E-03    1.7444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1373        .51923E-01    .11158       -.88564    
  25  Prefactor     .98280        .12019E-01    .30929E-01   -.93305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29423e-05
Minuit parameter uncertainties:
  1  0.572833
  2  0.283681
  3  0.904911
  4  0.000289256
  5  1.47172
  6  3.8099
  7  13.4228
  8  12.6978
  9  0.250939
  10  0.761837
  11  1.80267
  12  3.43957
  13  1.13885
  14  0.411516
  15  4.85707
  16  9.63697e-07
  17  1.9895
  18  5.74026
  19  4.42031e-06
  20  3.14774
  21  0.960626
  22  0.588022
  23  1.51974e-06
  24  0.0519249
  25  0.0120194
Done.

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

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  9.440e+00  4.857e+00  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  9.828e-01  1.202e-02  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.137e+00  5.192e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.04
Ra Dec: 301.278 70.062
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 2.38e-09 +/- 1.22e-09
Energy Flux (Fixed Index): 6.35e-06 +/- 3.26e-06

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) = 248143.167104
delta logL = 0.0113207420218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 248143.167055
delta logL = 0.0113695737091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4029       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7092       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   248143.2     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      280 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3873        4.9571        .13069E-03    .10578E-03
   2  alpha         1.7071        .45562        .69154E-01    .96523E-04
   3  Normalizat    1.1372        .47137E-01    .49477E-03    .58087E-04
   4  Prefactor     .98275        .12315E-01    .13668E-03   -.79851E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.38726
  alpha      = 1.70713
  Normalizat = 1.13725
  Prefactor  = 0.982754
 **********
 **   18 **HESSE 
 **********

 FCN=   248143.2     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3873        4.8248        .26139E-04   -1.5095    
   2  alpha         1.7071        .44583        .27662E-02   -.32272    
   3  Normalizat    1.1372        .47145E-01    .19791E-04   -.88565    
   4  Prefactor     .98275        .12318E-01    .54672E-05   -.93307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30564e-11
Minuit parameter uncertainties:
  1  4.82496
  2  0.448504
  3  0.0471472
  4  0.0123177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646938': 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) = 248143.167037
delta logL = 0.0113881174766

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  9.387e+00  4.825e+00  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  1.707e+00  4.485e-01  0.000e+00  5.000e+00 ( 1.000e+00)
356         beta:  1.694e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
357           Eb:  3.789e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  9.828e-01  1.232e-02  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
645   Normalization:  1.137e+00  4.715e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.06
Ra Dec: 301.278 70.062
Photon Index (Free Index): 1.71 +/- 0.45
Photon Flux (Free Index): 2.61e-09 +/- 2.10e-09
Energy Flux (Free Index): 6.03e-06 +/- 3.69e-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/646938/cmap_HighResolution_672451201_675043201_4FGL_J2005.1+7003_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.38e-09', energy_flux2='6.03e-06', photon_flux_error='1.22e-09', dlogl='1.14e-02', energy_flux='6.35e-06', photon_flux2='2.61e-09', job_status='DONE', time_completed='2022-05-24 08:39:46.105264', photon_index_error2='0.45', photon_index2='1.71', ts='11.04', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.69e-06', EG='1.14', time_epoch_completed='1653406786.11', return_code='0', job_id='646938', GAL2='0.98', EG2='1.14', return_code2='0', energy_flux_error='3.26e-06', photon_flux_error2='2.10e-09', ts2='11.06', photon_index='1.64' WHERE bin_id='168' AND source_name='4FGL J2005.1+7003' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 08:39:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 646938: <4FGL_J2005.1+7003_monthly_bin168> in cluster <slac> Done

Job <4FGL_J2005.1+7003_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:55:29 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:56:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:56:30 2022
Terminated at Tue May 24 08:39:48 2022
Results reported at Tue May 24 08:39:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.1+7003_monthly_bin168 301.278 70.0624 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2005.1+7003 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   16902.00 sec.
    Max Memory :                                 734 MB
    Average Memory :                             688.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   16998 sec.
    Turnaround time :                            17059 sec.

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

