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


Performing analysis on: 4FGL_J2038.7+5117_daily_bin1664
RA = 309.694, Dec = 51.2851
tmin = 670636801, tmax = 670896001
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='316618', job_status='RUN', time_executed='2022-04-06 00:36:15.018772', time_epoch_executed='1649230575.02' WHERE source_name='4FGL J2038.7+5117' and cadence='daily' and bin_id='1664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316618/ft1_4FGL_J2038.7+5117_daily_bin1664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316618/ft1_4FGL_J2038.7+5117_daily_bin1664.fits outfile=/scratch/kocevski/316618/ft1_filteredMKT_4FGL_J2038.7+5117_daily_bin1664.fits ra=309.694 dec=51.2851 rad=12.0 tmin=670636801.0 tmax=670896001.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 5.39
user 5.10
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.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/316618/ft1_filteredMKT_4FGL_J2038.7+5117_daily_bin1664.fits evtable="EVENTS" outfile="/scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.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.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 5178

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits" evtable="EVENTS" scfile=/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits sctable="SC_DATA" outfile=/scratch/kocevski/316618/ltcube_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.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/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits
.....................!
real 11.59
user 11.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits sctable="SC_DATA" expcube=/scratch/kocevski/316618/ltcube_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.fits outfile=/scratch/kocevski/316618/expmap_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.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/316618/ltcube_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.fits
.....................!
real 190.96
user 185.25
sys 5.30

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 197 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 J2038.7+5117 @ 309.694 51.2851

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits scfile=/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits outfile=/scratch/kocevski/316618/cmap_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.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=309.694 yref=51.2851 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits scfile=/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits outfile=/scratch/kocevski/316618/cmap_HighResolution_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.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=309.694 yref=51.2851 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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/316618/Model_4FGL_J2038.7+5117_daily_bin1664.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/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits.....................!
real 1023.80
user 1020.92
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits', '/scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits', expMap='/scratch/kocevski/316618/expmap_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.fits', expCube='/scratch/kocevski/316618/ltcube_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/316618/Model_4FGL_J2038.7+5117_daily_bin1664.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2038.7+5117'

4FGL J2038.7+5117
   Spectrum: LogParabola
361         norm:  1.774e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.353e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  3.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  1.005e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/316618/ft1_filtered_4FGL_J2038.7+5117_daily_bin1664.fits
Spacecraft file(s): /scratch/kocevski/316618/ft2_4FGL_J2038.7+5117_daily_bin1664.fits
Exposure map: /scratch/kocevski/316618/expmap_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.fits
Exposure cube: /scratch/kocevski/316618/ltcube_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/316618/Model_4FGL_J2038.7+5117_daily_bin1664.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) = 46122.8718356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.551       1.0000         .10000E-03   10000.    
     4 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1137       1.0000         .10000E-03   10000.    
     6 'norm      '    14.024       1.0000         .10000E-03   10000.    
     7 'norm      '    7.9117       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7837       1.0000         .10000E-03   10000.    
    11 'Normalizat'    1.2503       1.0000         .10000E-01   10.000    
    12 'Prefactor '    .97772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   46122.81     FROM MIGRAD    STATUS=CONVERGED    256 CALLS     1034 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22391        9.4629         .0000        .45325E-03
   2  Prefactor     .10000E-03    3.9943         .0000    ** at limit **
   3  norm          21.559        11.322         .0000       -.46385E-03
   4  norm          .10000E-03    .59747         .0000    ** at limit **
   5  Prefactor     2.1136        .22485         .0000        .73352E-03
   6  norm          14.027        6.3806         .0000        .54007E-02
   7  norm          7.9086        4.6227         .0000        .12059E-01
   8  norm          1.4225        3.9933         .0000        .49113E-01
   9  Prefactor     .10000E-03    8.2905         .0000    ** at limit **
  10  Prefactor     6.7664        13.888         .0000       -.23018E-03
  11  Normalizat    1.2512        .24781         .0000        .15809E-03
  12  Prefactor     .97769        .23346E-01     .0000       -.20570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.223912
  Prefactor  = 0.0001
  norm       = 21.5591
  norm       = 0.0001
  Prefactor  = 2.11364
  norm       = 14.0267
  norm       = 7.90858
  norm       = 1.42249
  Prefactor  = 0.0001
  Prefactor  = 6.76644
  Normalizat = 1.25116
  Prefactor  = 0.977692
 **********
 **   18 **HESSE 
 **********

 FCN=   46122.81     FROM HESSE     STATUS=OK           139 CALLS     1173 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22391        8.9939        .18874       -1.5613    
   2  Prefactor     .10000E-03    4.0039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.559        11.320        .86280E-04   -1.4779    
   4  norm          .10000E-03    3.5526        .32216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1136        .22429        .31662E-04   -1.5417    
   6  norm          14.027        6.3774        .10695E-03   -1.4959    
   7  norm          7.9086        4.6245        .71276E-03   -1.5145    
   8  norm          1.4225        3.9864        .18125E-02   -1.5469    
   9  Prefactor     .10000E-03    8.3339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7664        13.866        .15405E-03   -1.5188    
  11  Normalizat    1.2512        .24330        .11191E-02   -.85036    
  12  Prefactor     .97769        .23396E-01    .11871E-03   -.93477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24278e-08
Minuit parameter uncertainties:
  1  2.83802
  2  6.75366e-07
  3  11.3209
  4  2.70118e-07
  5  0.224289
  6  6.37772
  7  4.62472
  8  3.98711
  9  4.01252e-06
  10  13.8723
  11  0.24352
  12  0.0233966
Done.

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

Extracting fit parameters...

4FGL J2038.7+5117
   Spectrum: LogParabola
361         norm:  1.422e+00  3.987e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.353e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  3.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  1.005e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  9.777e-01  2.340e-02  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.251e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 309.694 51.285
Photon Flux Upper Limit: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/316618/likelihoodResults_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.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) = 46122.7942498
delta logL = 0.0194654374209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 46122.7940613
delta logL = 0.0196539412354

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   46122.79     FROM MIGRAD    STATUS=FAILED        99 CALLS      296 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3597        8.9712        .18738E-02    .27928E-02
   2  alpha         2.7158        3.7996        .10550        .87584E-03
   3  Normalizat    1.2491        .23226        .11198E-02    .62865E-05
   4  Prefactor     .97757        .22509E-01    .11872E-03    .41370E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   46122.79     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      378 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3597        8.9712        .12253E-03   -1.5475    
   2  alpha         2.7158        3.7996        .24618E-02    .86439E-01
   3  Normalizat    1.2491        .23226        .30088E-03   -.85099    
   4  Prefactor     .97757        .22509E-01    .26348E-04   -.93481    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   46122.79     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      413 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3597        3.8140        .37476E-03   -.62128E-04
   2  alpha         2.7158        1.6955        .21101E-01   -.35431E-05
   3  Normalizat    1.2491        .23154        .22396E-03    .81221E-06
   4  Prefactor     .97757        .22484E-01    .47486E-05    .34475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35967
  alpha      = 2.71582
  Normalizat = 1.24908
  Prefactor  = 0.977567
 **********
 **   18 **HESSE 
 **********

 FCN=   46122.79     FROM HESSE     STATUS=OK            25 CALLS      438 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3597        3.6587        .14990E-04   -1.5475    
   2  alpha         2.7158        1.6394        .84402E-03    .86437E-01
   3  Normalizat    1.2491        .23154        .89583E-05   -.85099    
   4  Prefactor     .97757        .22492E-01    .94972E-06   -.93481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14146e-11
Minuit parameter uncertainties:
  1  3.6593
  2  1.78941
  3  0.231733
  4  0.0224918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316618': 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) = 46122.7940609
delta logL = 0.0196542974518

Extracting fit parameters...

4FGL J2038.7+5117
   Spectrum: LogParabola
361         norm:  1.360e+00  3.659e+00  1.000e-04  1.000e+04 ( 1.000e-12)
362        alpha:  2.716e+00  1.789e+00  0.000e+00  5.000e+00 ( 1.000e+00)
363         beta:  3.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  1.005e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  9.776e-01  2.249e-02  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  1.249e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 309.694 51.285

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/316618/cmap_HighResolution_670636801_670896001_4FGL_J2038.7+5117_daily_bin1664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-05', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2022-04-06 01:24:30.126317', job_id='316618', GAL2='0.98', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1649233470.13', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.97e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1664' AND source_name='4FGL J2038.7+5117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr  6 01:24:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 316618: <4FGL_J2038.7+5117_daily_bin1664> in cluster <slac> Done

Job <4FGL_J2038.7+5117_daily_bin1664> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr  6 00:35:35 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:35:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:35:38 2022
Terminated at Wed Apr  6 01:24:30 2022
Results reported at Wed Apr  6 01:24:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2038.7+5117_daily_bin1664 309.694 51.2851 670636801 670896001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2038.7+5117 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2894.52 sec.
    Max Memory :                                 643 MB
    Average Memory :                             475.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2945 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2932 sec.
    Turnaround time :                            2935 sec.

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

