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


Performing analysis on: 4FGL_J2021.5+4026_weekly_bin716
RA = 305.385, Dec = 40.4445
tmin = 672019201, tmax = 672624001
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='659309', job_status='RUN', time_executed='2022-04-26 01:20:20.241264', time_epoch_executed='1650961220.24' WHERE source_name='4FGL J2021.5+4026' and cadence='weekly' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659309

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659309/ft1_4FGL_J2021.5+4026_weekly_bin716.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659309/ft1_4FGL_J2021.5+4026_weekly_bin716.fits outfile=/scratch/kocevski/659309/ft1_filteredMKT_4FGL_J2021.5+4026_weekly_bin716.fits ra=305.385 dec=40.4445 rad=12.0 tmin=672019201.0 tmax=672624001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 9.29
user 8.53
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.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/659309/ft1_filteredMKT_4FGL_J2021.5+4026_weekly_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.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.58
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 15085

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/659309/ltcube_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.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/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits
.....................!
real 28.54
user 27.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/659309/ltcube_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.fits outfile=/scratch/kocevski/659309/expmap_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.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/659309/ltcube_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.fits
.....................!
real 192.59
user 187.40
sys 4.64

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 gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 194 point sources and 5 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 J2021.5+4026 @ 305.385 40.4445

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits scfile=/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits outfile=/scratch/kocevski/659309/cmap_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.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=305.385 yref=40.4445 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.60
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits scfile=/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits outfile=/scratch/kocevski/659309/cmap_HighResolution_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.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=305.385 yref=40.4445 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.61
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659309/Model_4FGL_J2021.5+4026_weekly_bin716.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits.....................!
real 3216.85
user 3209.36
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits', '/scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits', expMap='/scratch/kocevski/659309/expmap_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.fits', expCube='/scratch/kocevski/659309/ltcube_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659309/Model_4FGL_J2021.5+4026_weekly_bin716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2021.5+4026'

4FGL J2021.5+4026
   Spectrum: PLSuperExpCutoff2
332    Prefactor:  2.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
333       Index1:  1.258e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  2.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
335    Expfactor:  1.221e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
336       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659309/ft1_filtered_4FGL_J2021.5+4026_weekly_bin716.fits
Spacecraft file(s): /scratch/kocevski/659309/ft2_4FGL_J2021.5+4026_weekly_bin716.fits
Exposure map: /scratch/kocevski/659309/expmap_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.fits
Exposure cube: /scratch/kocevski/659309/ltcube_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659309/Model_4FGL_J2021.5+4026_weekly_bin716.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) = 136157.717916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3693       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3888       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12663E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.345       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2157       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9730       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3872       1.0000         .10000E-03   10000.    
    10 'norm      '    .10337E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .30775       1.0000         .10000E-03   10000.    
    14 'norm      '    .41921       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4180       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3868       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2410       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   136157.7     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1834 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.72       -.27612E-05** at limit **
   2  Prefactor     6.3691        3.9126        .49033E-07   -.35332E-03
   3  norm          8.3888        6.6551        .23811E-07   -.15107E-03
   4  Prefactor     .10000E-03    13.795       -.13493E-04** at limit **
   5  norm          .10000E-03    .50664        .12065E-07** at limit **
   6  Prefactor     14.345        8.7144        .71494E-07    .19139E-04
   7  norm          3.2155        4.5640        .10473E-06   -.10954E-02
   8  Prefactor     3.9728        12.052       -.52418E-06   -.20820E-07
   9  norm          3.3872        .70017        .97184E-07   -.89007E-02
  10  norm          .10000E-03    .53405       -.42135E-07** at limit **
  11  Prefactor     2.3324        .14729        .53814E-08    .98326E-03
  12  Prefactor     .10000E-03    14.679        .10214E-04** at limit **
  13  norm          .31191        .63894       -.15214E-06   -.21171E-03
  14  norm          .41649        1.0385       -.59415E-06    .18439E-02
  15  norm          2.4184        3.2525       -.19284E-06   -.21317E-03
  16  norm          5.9203        3.4080       -.82435E-06    .10302E-03
  17  Prefactor     3.3868        3.4990       -.25680E-06    .46965E-04
  18  Prefactor     .10000E-03    11.954        .27070E-05** at limit **
  19  Normalizat    1.2410        .18852       -.25129E-06    .10509E-03
  20  Prefactor     1.0153        .15995E-01    .63962E-07    .12918E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.36913
  norm       = 8.38879
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.345
  norm       = 3.21546
  Prefactor  = 3.9728
  norm       = 3.38719
  norm       = 0.0001
  Prefactor  = 2.33237
  Prefactor  = 0.0001
  norm       = 0.311912
  norm       = 0.416488
  norm       = 2.41836
  norm       = 5.9203
  Prefactor  = 3.3868
  Prefactor  = 0.0001
  Normalizat = 1.24096
  Prefactor  = 1.01534
 **********
 **   18 **HESSE 
 **********

 FCN=   136157.7     FROM HESSE     STATUS=OK           309 CALLS     2143 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3691        3.9194        .79520E-03   -1.5203    
   3  norm          8.3888        6.6650        .69205E-03   -1.5129    
   4  Prefactor     .10000E-03    13.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5919        .50731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.345        8.6818        .10575E-03   -1.4950    
   7  norm          3.2155        4.9596        .11296E-02   -1.5349    
   8  Prefactor     3.9728        11.991        .20236E-03   -1.5309    
   9  norm          3.3872        1.2783        .10992E-02   -1.5340    
  10  norm          .10000E-03    2.9626        .51608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3324        .14628        .33071E-04   -1.5403    
  12  Prefactor     .10000E-03    14.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .31191        2.0579        .40302E-02   -1.5596    
  14  norm          .41649        4.6970        .56175E-02   -1.5579    
  15  norm          2.4184        3.2498        .26323E-03   -1.5397    
  16  norm          5.9203        3.4055        .16504E-03   -1.5221    
  17  Prefactor     3.3868        3.5050        .21986E-03   -1.5340    
  18  Prefactor     .10000E-03    12.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2410        .17798        .14166E-02   -.85346    
  20  Prefactor     1.0153        .15746E-01    .12754E-03   -.92220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5322e-07
Minuit parameter uncertainties:
  1  2.02235e-05
  2  3.91952
  3  6.66555
  4  1.61393e-05
  5  1.94797e-05
  6  8.68261
  7  4.96019
  8  11.9981
  9  1.27826
  10  2.56158e-05
  11  0.146275
  12  1.14776e-05
  13  1.60218
  14  2.79726
  15  3.25005
  16  3.40565
  17  3.50526
  18  1.71821e-06
  19  0.178064
  20  0.0157456
Done.

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

Extracting fit parameters...

4FGL J2021.5+4026
   Spectrum: PLSuperExpCutoff2
332    Prefactor:  2.332e+00  1.463e-01  1.000e-04  1.000e+04 ( 1.000e-10)
333       Index1:  1.258e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  2.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
335    Expfactor:  1.221e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
336       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
713    Prefactor:  1.015e+00  1.575e-02  0.000e+00  1.000e+01 ( 1.000e+00)
714        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
715        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  1.241e+00  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 599.44
Ra Dec: 305.385 40.444
Photon Index (Fixed Index): 1.26 +/- 0.00
Photon Flux (Fixed Index): 1.27e-06 +/- 7.99e-08
Energy Flux (Fixed Index): 5.83e-04 +/- 3.66e-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) = 136157.035415
delta logL = 0.630186859838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 136157.027831
delta logL = 0.637770734669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1120       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.3350       1.0000          .0000       10.000    
     3 'Normalizat'    1.2253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   136157.0     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      256 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1120        .25012        .31037E-04    .26455E-01
   2  Index1        1.3350        .73623E-01    .34989E-02    .13664E-02
   3  Normalizat    1.2253        .17504        .14228E-02   -.76502E-03
   4  Prefactor     1.0141        .15025E-01    .12756E-03   -.57894E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11198
  Index1     = 1.335
  Normalizat = 1.22531
  Prefactor  = 1.01406
 **********
 **   18 **HESSE 
 **********

 FCN=   136157.0     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1120        .23233        .12415E-05   -1.5417    
   2  Index1        1.3350        .68338E-01    .13996E-03   -.82272    
   3  Normalizat    1.2253        .17485        .56913E-04   -.85824    
   4  Prefactor     1.0141        .15024E-01    .51025E-05   -.92262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2704e-09
Minuit parameter uncertainties:
  1  0.232328
  2  0.0683426
  3  0.17493
  4  0.0150243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659309': 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) = 136157.027831
delta logL = 0.637770734669

Extracting fit parameters...

4FGL J2021.5+4026
   Spectrum: PLSuperExpCutoff2
332    Prefactor:  2.112e+00  2.323e-01  1.000e-04  1.000e+04 ( 1.000e-10)
333       Index1:  1.335e+00  6.834e-02  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  2.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
335    Expfactor:  1.221e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
336       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
713    Prefactor:  1.014e+00  1.502e-02  0.000e+00  1.000e+01 ( 1.000e+00)
714        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
715        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
709   Normalization:  1.225e+00  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 600.41
Ra Dec: 305.385 40.444
Photon Index (Free Index): 1.34 +/- 0.07
Photon Flux (Free Index): 1.35e-06 +/- 1.06e-07
Energy Flux (Free Index): 5.75e-04 +/- 3.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/659309/cmap_HighResolution_672019201_672624001_4FGL_J2021.5+4026_weekly_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-06', energy_flux2='5.75e-04', photon_flux_error='7.99e-08', dlogl='6.38e-01', energy_flux='5.83e-04', photon_flux2='1.35e-06', job_status='DONE', time_completed='2022-04-26 03:53:54.742402', photon_index_error2='0.07', photon_index2='1.34', ts='599.44', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.59e-05', EG='1.24', time_epoch_completed='1650970434.74', return_code='0', job_id='659309', GAL2='1.01', EG2='1.23', return_code2='0', energy_flux_error='3.66e-05', photon_flux_error2='1.06e-07', ts2='600.41', photon_index='1.26' WHERE bin_id='716' AND source_name='4FGL J2021.5+4026' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 26 03:53:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 659309: <4FGL_J2021.5+4026_weekly_bin716> in cluster <slac> Done

Job <4FGL_J2021.5+4026_weekly_bin716> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 26 00:50:28 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 26 01:19:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 26 01:19:24 2022
Terminated at Tue Apr 26 03:53:56 2022
Results reported at Tue Apr 26 03:53:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9205.00 sec.
    Max Memory :                                 1274 MB
    Average Memory :                             578.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9271 sec.
    Turnaround time :                            11008 sec.

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

