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


Performing analysis on: 4FGL_J2056.7+4939_weekly_bin725
RA = 314.191, Dec = 49.6663
tmin = 677462401, tmax = 678067201
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='73454', job_status='RUN', time_executed='2022-06-28 01:27:01.834070', time_epoch_executed='1656404821.83' WHERE source_name='4FGL J2056.7+4939' and cadence='weekly' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73454

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73454/ft1_4FGL_J2056.7+4939_weekly_bin725.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73454/ft1_4FGL_J2056.7+4939_weekly_bin725.fits outfile=/scratch/kocevski/73454/ft1_filteredMKT_4FGL_J2056.7+4939_weekly_bin725.fits ra=314.191 dec=49.6663 rad=12.0 tmin=677462401.0 tmax=678067201.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 6.11
user 5.79
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.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/73454/ft1_filteredMKT_4FGL_J2056.7+4939_weekly_bin725.fits evtable="EVENTS" outfile="/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.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.62
user 0.41
sys 0.17

Number of photons that the gtmktime cut: 22644

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits" evtable="EVENTS" scfile=/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits sctable="SC_DATA" outfile=/scratch/kocevski/73454/ltcube_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.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/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits
.....................!
real 31.94
user 31.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/73454/ltcube_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.fits outfile=/scratch/kocevski/73454/expmap_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.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/73454/ltcube_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.fits
.....................!
real 192.96
user 186.21
sys 5.77

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 HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian 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 J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 192 point sources and 8 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 J2056.7+4939 @ 314.191 49.6663

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits scfile=/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits outfile=/scratch/kocevski/73454/cmap_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.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=314.191 yref=49.6663 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.65
user 0.47
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits scfile=/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits outfile=/scratch/kocevski/73454/cmap_HighResolution_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.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=314.191 yref=49.6663 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.65
user 0.48
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73454/Model_4FGL_J2056.7+4939_weekly_bin725.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits.....................!
real 4522.83
user 4504.58
sys 1.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits', '/scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits', expMap='/scratch/kocevski/73454/expmap_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.fits', expCube='/scratch/kocevski/73454/ltcube_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73454/Model_4FGL_J2056.7+4939_weekly_bin725.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2056.7+4939'

4FGL J2056.7+4939
   Spectrum: PowerLaw
358    Prefactor:  5.459e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.862e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  6.125e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73454/ft1_filtered_4FGL_J2056.7+4939_weekly_bin725.fits
Spacecraft file(s): /scratch/kocevski/73454/ft2_4FGL_J2056.7+4939_weekly_bin725.fits
Exposure map: /scratch/kocevski/73454/expmap_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.fits
Exposure cube: /scratch/kocevski/73454/ltcube_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73454/Model_4FGL_J2056.7+4939_weekly_bin725.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) = 199529.629291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3712       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1227       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9397       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3700       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4265       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0407       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10640       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Normalizat'    1.2730       1.0000         .10000E-01   10.000    
    13 'Prefactor '    .98104       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   199528.6     FROM MIGRAD    STATUS=CONVERGED    264 CALLS     1012 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3495        10.174       -.11509E-05   -.79186E-05
   2  norm          3.1213        2.0089        .43873E-07   -.13393E-02
   3  norm          1.6178        .67920        .72006E-08   -.20124E-03
   4  Prefactor     1.9397        .10890        .13491E-07    .98899E-03
   5  norm          4.3694        2.1272       -.26481E-06   -.11132E-03
   6  norm          8.4268        2.4166       -.84050E-06   -.14295E-03
   7  norm          4.8168        2.2318        .37323E-06   -.76415E-04
   8  Prefactor     7.0360        5.7631       -.30533E-06   -.96808E-05
   9  Prefactor     4.4948        4.7291        .89625E-07   -.65976E-03
  10  Prefactor     .94728E-01    .38455       -.11346E-07   -.29580E-03
  11  norm          .10000E-03    .11937       -.20238E-07** at limit **
  12  Normalizat    1.2732        .15062        .83950E-07    .92954E-05
  13  Prefactor     .98104        .12081E-01    .44558E-07    .54026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.34946
  norm       = 3.12132
  norm       = 1.61781
  Prefactor  = 1.93968
  norm       = 4.36941
  norm       = 8.42677
  norm       = 4.8168
  Prefactor  = 7.036
  Prefactor  = 4.49478
  Prefactor  = 0.0947281
  norm       = 0.0001
  Normalizat = 1.27316
  Prefactor  = 0.981037
 **********
 **   18 **HESSE 
 **********

 FCN=   199528.6     FROM HESSE     STATUS=OK           165 CALLS     1177 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3495        10.177        .15902E-03   -1.5204    
   2  norm          3.1213        3.3967        .11472E-02   -1.5355    
   3  norm          1.6178        .67952        .23242E-03   -1.5454    
   4  Prefactor     1.9397        .10864        .33258E-04   -1.5429    
   5  norm          4.3694        2.1270        .19267E-03   -1.5290    
   6  norm          8.4268        2.4205        .13810E-03   -1.5127    
   7  norm          4.8168        2.2309        .18330E-03   -1.5269    
   8  Prefactor     7.0360        5.7647        .15119E-03   -1.5177    
   9  Prefactor     4.4948        5.6616        .95069E-03   -1.5284    
  10  Prefactor     .94728E-01    .46656        .83080E-01   -1.5646    
  11  norm          .10000E-03    .44581        .29808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Normalizat    1.2732        .14402        .12597E-02   -.84371    
  13  Prefactor     .98104        .11931E-01    .11691E-03   -.93364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15973e-09
Minuit parameter uncertainties:
  1  10.1797
  2  3.3969
  3  0.679519
  4  0.108641
  5  2.12703
  6  2.4205
  7  2.23096
  8  5.76514
  9  5.66225
  10  0.420242
  11  6.82184e-07
  12  0.144063
  13  0.0119308
Done.

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

Extracting fit parameters...

4FGL J2056.7+4939
   Spectrum: PowerLaw
358    Prefactor:  7.036e+00  5.765e+00  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.862e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  6.125e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
706    Prefactor:  9.810e-01  1.193e-02  0.000e+00  1.000e+01 ( 1.000e+00)
707        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
708        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  1.273e+00  1.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 314.191 49.666
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.42e-05

TS (Fixed Index): 2.80
Ra Dec: 314.191 49.666
Photon Flux Upper Limit: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73454/likelihoodResults_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.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): 0
logL (Free Index) = 199528.593792
delta logL = 0.0159393799549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 199528.589412
delta logL = 0.0203200088581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6520       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7567       1.0000          .0000       10.000    
     3 'Normalizat'    1.2732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98119       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+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=   199528.6     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      256 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6507        7.0896        .14497E-03   -.10540E-03
   2  Index         1.7572        .54538        .14378E-01   -.12790E-03
   3  Normalizat    1.2732        .13511        .12597E-02   -.35550E-03
   4  Prefactor     .98119        .11467E-01    .11690E-03   -.55115E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.65067
  Index      = 1.7572
  Normalizat = 1.27317
  Prefactor  = 0.981195
 **********
 **   18 **HESSE 
 **********

 FCN=   199528.6     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6507        6.7944        .57988E-05   -1.5155    
   2  Index         1.7572        .52401        .57514E-03   -.70569    
   3  Normalizat    1.2732        .13509        .50390E-04   -.84371    
   4  Prefactor     .98119        .11462E-01    .46759E-05   -.93359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2603e-10
Minuit parameter uncertainties:
  1  6.79509
  2  0.525677
  3  0.135124
  4  0.0114625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73454': 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) = 199528.589411
delta logL = 0.0203204885765

Extracting fit parameters...

4FGL J2056.7+4939
   Spectrum: PowerLaw
358    Prefactor:  7.651e+00  6.795e+00  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.757e+00  5.257e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  6.125e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
706    Prefactor:  9.812e-01  1.146e-02  0.000e+00  1.000e+01 ( 1.000e+00)
707        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
708        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  1.273e+00  1.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 314.191 49.666
Photon Index (Free Index): 1.76 +/- 0.53
Photon Flux (Free Index): 1.39e-08 +/- 1.99e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.79e-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/73454/cmap_HighResolution_677462401_678067201_4FGL_J2056.7+4939_weekly_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='1.89e-05', photon_flux_error='1.42e-08', dlogl='2.03e-02', energy_flux='1.73e-05', photon_flux2='1.39e-08', job_status='DONE', time_completed='2022-06-28 04:35:21.135117', photon_index_error2='0.53', photon_index2='1.76', ts='2.80', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='4.93e-08', energy_flux_error2='1.79e-05', EG='1.27', time_epoch_completed='1656416121.14', return_code='0', job_id='73454', GAL2='0.98', EG2='1.27', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='1.99e-08', ts2='2.84', photon_index='1.86' WHERE bin_id='725' AND source_name='4FGL J2056.7+4939' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 28 04:35:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 73454: <4FGL_J2056.7+4939_weekly_bin725> in cluster <slac> Done

Job <4FGL_J2056.7+4939_weekly_bin725> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jun 28 01:25:20 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 28 01:26:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 28 01:26:00 2022
Terminated at Tue Jun 28 04:35:23 2022
Results reported at Tue Jun 28 04:35:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.7+4939_weekly_bin725 314.191 49.6663 677462401 678067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2056.7+4939 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11268.00 sec.
    Max Memory :                                 791 MB
    Average Memory :                             673.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11362 sec.
    Turnaround time :                            11403 sec.

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

