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


Performing analysis on: 4FGL_J2005.1+7003_monthly_bin167
RA = 301.278, Dec = 70.0624
tmin = 669859201, tmax = 672451201
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='906608', job_status='RUN', time_executed='2022-04-24 02:34:41.397951', time_epoch_executed='1650792881.4' WHERE source_name='4FGL J2005.1+7003' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906608

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906608/ft1_4FGL_J2005.1+7003_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906608/ft1_4FGL_J2005.1+7003_monthly_bin167.fits outfile=/scratch/kocevski/906608/ft1_filteredMKT_4FGL_J2005.1+7003_monthly_bin167.fits ra=301.278 dec=70.0624 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.47
user 37.41
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.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/906608/ft1_filteredMKT_4FGL_J2005.1+7003_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.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.86
user 0.68
sys 0.16

Number of photons that the gtmktime cut: 19065

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/906608/ltcube_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.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/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits
.....................!
real 134.85
user 134.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/906608/ltcube_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.fits outfile=/scratch/kocevski/906608/expmap_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.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/906608/ltcube_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.fits
.....................!
real 192.90
user 186.82
sys 5.70

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/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits scfile=/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits outfile=/scratch/kocevski/906608/cmap_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.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.81
user 0.65
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits scfile=/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits outfile=/scratch/kocevski/906608/cmap_HighResolution_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.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.80
user 0.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/906608/Model_4FGL_J2005.1+7003_monthly_bin167.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/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits.....................!
real 2419.01
user 2409.71
sys 4.86

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits', '/scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits', expMap='/scratch/kocevski/906608/expmap_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.fits', expCube='/scratch/kocevski/906608/ltcube_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/906608/Model_4FGL_J2005.1+7003_monthly_bin167.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/906608/ft1_filtered_4FGL_J2005.1+7003_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/906608/ft2_4FGL_J2005.1+7003_monthly_bin167.fits
Exposure map: /scratch/kocevski/906608/expmap_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.fits
Exposure cube: /scratch/kocevski/906608/ltcube_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/906608/Model_4FGL_J2005.1+7003_monthly_bin167.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) = 189882.297509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2898       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8372       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3815       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5815       1.0000         .10000E-03   10000.    
    10 'norm      '    .64363       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5496       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8400       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3120       1.0000         .10000E-03   10000.    
    15 'norm      '    9.9782       1.0000         .10000E-03   10000.    
    16 'norm      '    .93506       1.0000         .10000E-03   10000.    
    17 'norm      '    8.4832       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.206       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3374       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0012       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0688       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .26275       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0559       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0108       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   189882.3     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2582 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2898        .71847         .0000       -.22366E-02
   2  norm          6.8372        .39391         .0000       -.14610E-02
   3  norm          3.7180        1.2160         .0000        .15805    
   4  Prefactor     7.3815        16.181         .0000        .70215E-03
   5  Prefactor     9.1560        2.2042         .0000        .47975E-01
   6  Prefactor     4.9056        4.9412         .0000        .10515E-02
   7  Prefactor     12.886        11.894         .0000        .28690E-04
   8  Prefactor     .10000E-03    4.5325         .0000    ** at limit **
   9  norm          1.5817        .70933         .0000        .14106E-01
  10  norm          .64355        .67269         .0000        .98768E-02
  11  norm          1.8476        2.0676         .0000        .50961E-02
  12  Prefactor     3.5496        3.8390         .0000       -.43493E-02
  13  Prefactor     3.8402        1.4198         .0000        .10689E-01
  14  norm          1.3120        .33100         .0000        .12638E-02
  15  norm          9.9781        5.3642         .0000       -.18389E-03
  16  norm          .93496        .62308         .0000        .16041E-01
  17  norm          8.4832        3.8233         .0000        .84810E-02
  18  Prefactor     11.206        5.0884         .0000       -.18425E-02
  19  norm          2.3374        .87141         .0000        .11254E-01
  20  Prefactor     5.0011        2.8674         .0000       -.53318E-02
  21  norm          1.0689        1.0741         .0000        .12637E-01
  22  Prefactor     .10000E-03    .14471         .0000    ** at limit **
  23  Prefactor     .25274        1.2915         .0000        .44073E-02
  24  Normalizat    1.0559        .62011E-01     .0000        .24525E-03
  25  Prefactor     1.0108        .14109E-01     .0000       -.12494E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.28979
  norm       = 6.83722
  norm       = 3.718
  Prefactor  = 7.38154
  Prefactor  = 9.15597
  Prefactor  = 4.90562
  Prefactor  = 12.8861
  Prefactor  = 0.0001
  norm       = 1.58166
  norm       = 0.643554
  norm       = 1.84756
  Prefactor  = 3.54959
  Prefactor  = 3.8402
  norm       = 1.31203
  norm       = 9.97815
  norm       = 0.934961
  norm       = 8.48318
  Prefactor  = 11.2061
  norm       = 2.33738
  Prefactor  = 5.00114
  norm       = 1.06888
  Prefactor  = 0.0001
  Prefactor  = 0.252739
  Normalizat = 1.05591
  Prefactor  = 1.01084
 **********
 **   18 **HESSE 
 **********

 FCN=   189882.3     FROM HESSE     STATUS=OK           459 CALLS     3041 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2898        .71757        .16454E-03   -1.5345    
   2  norm          6.8372        .39481        .63040E-04   -1.5185    
   3  norm          3.7180        1.2102        .10471E-02   -1.5322    
   4  Prefactor     7.3815        16.172        .73812E-03   -1.5165    
   5  Prefactor     9.1560        2.1928        .66226E-03   -1.5103    
   6  Prefactor     4.9056        4.8634        .18160E-03   -1.5265    
   7  Prefactor     12.886        11.896        .11159E-03   -1.4990    
   8  Prefactor     .10000E-03    4.5378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5817        .69723        .22482E-03   -1.5456    
  10  norm          .64355        .58641        .34509E-02   -1.5548    
  11  norm          1.8476        2.0226        .30680E-03   -1.5436    
  12  Prefactor     3.5496        3.8340        .21453E-03   -1.5331    
  13  Prefactor     3.8402        1.4143        .20595E-03   -1.5316    
  14  norm          1.3120        .33097        .11775E-03   -1.5479    
  15  norm          9.9781        5.3649        .12685E-03   -1.5076    
  16  norm          .93496        .60427        .26949E-03   -1.5515    
  17  norm          8.4832        3.8145        .68817E-03   -1.5125    
  18  Prefactor     11.206        5.0634        .11968E-03   -1.5038    
  19  norm          2.3374        .86714        .23593E-03   -1.5402    
  20  Prefactor     5.0011        2.8548        .17982E-03   -1.5261    
  21  norm          1.0689        1.2651        .43881E-02   -1.5501    
  22  Prefactor     .10000E-03    .41680        .31921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .25274        1.3119        .17274       -1.5607    
  24  Normalizat    1.0559        .64909E-01    .52756E-03   -.91180    
  25  Prefactor     1.0108        .14755E-01    .13580E-03   -.92369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38436e-08
Minuit parameter uncertainties:
  1  0.717572
  2  0.394806
  3  1.21017
  4  16.1811
  5  2.19284
  6  4.8638
  7  11.8979
  8  4.4796e-06
  9  0.697232
  10  0.586417
  11  2.02269
  12  3.83425
  13  1.41432
  14  0.330967
  15  5.36513
  16  0.604277
  17  3.81464
  18  5.06363
  19  0.867144
  20  2.85486
  21  1.26517
  22  6.11393e-06
  23  1.15147
  24  0.0649142
  25  0.0147553
Done.

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

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  9.978e+00  5.365e+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:  1.011e+00  1.476e-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.056e+00  6.491e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.36
Ra Dec: 301.278 70.062
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 2.51e-09 +/- 1.35e-09
Energy Flux (Fixed Index): 6.71e-06 +/- 3.61e-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) = 189881.158892
delta logL = 1.11400622185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 189881.048899
delta logL = 1.22399897466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5047       1.0000         .10000E-03   10000.    
     2 'alpha     '    .83961       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0112       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   189881.0     FROM MIGRAD    STATUS=FAILED        94 CALLS      260 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5037        4.7163        .14640E-03   -.96916E-04
   2  alpha         .83952        .45427        .92784E-01   -.17587E-02
   3  Normalizat    1.0557        .55865E-01    .52760E-03   -.47992E-03
   4  Prefactor     1.0112        .14234E-01    .13578E-03   -.31616E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   189881.0     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      333 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5037        4.7163        .10710E-03   -1.5160    
   2  alpha         .83952        .45427        .13974E-02   -.72641    
   3  Normalizat    1.0557        .55865E-01    .85985E-04   -.91186    
   4  Prefactor     1.0112        .14234E-01    .24556E-04   -.92359    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   189881.0     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      371 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5037        5.0506        .58558E-05    .12425E-04
   2  alpha         .83952        .48541        .18557E-01   -.33132E-05
   3  Normalizat    1.0557        .55875E-01    .21104E-04    .13791E-05
   4  Prefactor     1.0112        .14236E-01    .54312E-05     .0000    
                               ERR DEF=  .500    
Final values: 
  norm       = 7.50368
  alpha      = 0.839518
  Normalizat = 1.05572
  Prefactor  = 1.01116
 **********
 **   18 **HESSE 
 **********

 FCN=   189881.0     FROM HESSE     STATUS=OK            25 CALLS      396 TOTAL
                     EDM=   .34E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5037        5.1199        .11712E-05   -1.5160    
   2  alpha         .83952        .49398        .74227E-03   -.72641    
   3  Normalizat    1.0557        .55875E-01    .21104E-04   -.91186    
   4  Prefactor     1.0112        .14236E-01    .54312E-05   -.92359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36355e-14
Minuit parameter uncertainties:
  1  5.1202
  2  0.499921
  3  0.0558777
  4  0.0142365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906608': 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) = 189881.048899
delta logL = 1.22399900042

Extracting fit parameters...

4FGL J2005.1+7003
   Spectrum: LogParabola
354         norm:  7.504e+00  5.120e+00  1.000e-04  1.000e+04 ( 1.000e-14)
355        alpha:  8.395e-01  4.999e-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:  1.011e+00  1.424e-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.056e+00  5.588e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.80
Ra Dec: 301.278 70.062
Photon Index (Free Index): 0.84 +/- 0.50
Photon Flux (Free Index): 1.20e-09 +/- 7.11e-10
Energy Flux (Free Index): 1.57e-05 +/- 1.20e-05

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/906608/cmap_HighResolution_669859201_672451201_4FGL_J2005.1+7003_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-09', energy_flux2='1.57e-05', photon_flux_error='1.35e-09', dlogl='1.22e+00', energy_flux='6.71e-06', photon_flux2='1.20e-09', job_status='DONE', time_completed='2022-04-24 06:14:47.615075', photon_index_error2='0.50', photon_index2='0.84', ts='15.36', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.06', time_epoch_completed='1650806087.62', return_code='0', job_id='906608', GAL2='1.01', EG2='1.06', return_code2='0', energy_flux_error='3.61e-06', photon_flux_error2='7.11e-10', ts2='17.80', photon_index='1.64' WHERE bin_id='167' AND source_name='4FGL J2005.1+7003' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 06:14:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 906608: <4FGL_J2005.1+7003_monthly_bin167> in cluster <slac> Done

Job <4FGL_J2005.1+7003_monthly_bin167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 02:25:32 2022
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:34:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:34:04 2022
Terminated at Sun Apr 24 06:14:49 2022
Results reported at Sun Apr 24 06:14:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.1+7003_monthly_bin167 301.278 70.0624 669859201 672451201 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 :                                   13110.00 sec.
    Max Memory :                                 659 MB
    Average Memory :                             600.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13244 sec.
    Turnaround time :                            13757 sec.

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

