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 52 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2108.5+1434_daily_bin1747
RA = 317.148, Dec = 14.5812
tmin = 692150401, tmax = 692409601
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='813571', job_status='RUN', time_executed='2022-12-11 01:41:15.633066', time_epoch_executed='1670751675.63' WHERE source_name='4FGL J2108.5+1434' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813571/ft1_4FGL_J2108.5+1434_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813571/ft1_4FGL_J2108.5+1434_daily_bin1747.fits outfile=/scratch/kocevski/813571/ft1_filteredMKT_4FGL_J2108.5+1434_daily_bin1747.fits ra=317.148 dec=14.5812 rad=12.0 tmin=692150401.0 tmax=692409601.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 4.01
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.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/813571/ft1_filteredMKT_4FGL_J2108.5+1434_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 847

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/813571/ltcube_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.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/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits
.....................!
real 12.09
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/813571/ltcube_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.fits outfile=/scratch/kocevski/813571/expmap_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.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/813571/ltcube_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.fits
.....................!
real 192.11
user 184.88
sys 6.04

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 Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 194 point sources and 1 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 J2108.5+1434 @ 317.148 14.5812

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits scfile=/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits outfile=/scratch/kocevski/813571/cmap_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.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=317.148 yref=14.5812 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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits scfile=/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits outfile=/scratch/kocevski/813571/cmap_HighResolution_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.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=317.148 yref=14.5812 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/813571/Model_4FGL_J2108.5+1434_daily_bin1747.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 Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits.....................!
real 126.43
user 124.40
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits', '/scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits', expMap='/scratch/kocevski/813571/expmap_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.fits', expCube='/scratch/kocevski/813571/ltcube_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/813571/Model_4FGL_J2108.5+1434_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2108.5+1434'

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  4.876e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  2.765e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  4.520e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/813571/ft1_filtered_4FGL_J2108.5+1434_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/813571/ft2_4FGL_J2108.5+1434_daily_bin1747.fits
Exposure map: /scratch/kocevski/813571/expmap_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.fits
Exposure cube: /scratch/kocevski/813571/ltcube_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/813571/Model_4FGL_J2108.5+1434_daily_bin1747.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) = 8850.24690252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.888       1.0000          .0000       .10000E+07
     2 'Prefactor '    .46507E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .26804       1.0000          .0000       .10000E+07
     4 'Prefactor '    25.690       1.0000          .0000       .10000E+07
     5 'norm      '    24.695       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0425       1.0000          .0000       .10000E+07
     7 'Prefactor '    33.120       1.0000          .0000       .10000E+07
     8 'Prefactor '    14.115       1.0000          .0000       .10000E+07
     9 'Prefactor '    .61400E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18358E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .66761E-03   1.0000          .0000       .10000E+07
    12 'norm      '    6.8324       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13919E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.9666       1.0000          .0000       .10000E+07
    15 'Prefactor '    .31466       1.0000          .0000       .10000E+07
    16 'norm      '    1.0046       1.0000          .0000       .10000E+07
    17 'norm      '    3.6083       1.0000          .0000       .10000E+07
    18 'Prefactor '    17.502       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0398       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86973       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8850.199     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1522 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.141        11.848       -.17992E-06   -.85522E-02
   2  Prefactor     .65892E-07    9.4850        .30484E-06** at limit **
   3  norm          .26799        .50772        .95637E-07    .27824E-02
   4  Prefactor     24.825        14.922       -.17061E-05   -.18023    
   5  norm          24.786        10.999       -.33680E-07    .89437E-02
   6  Prefactor     6.0302        8.2192       -.10373E-05   -.49879E-01
   7  Prefactor     29.617        63.640       -.75316E-05    .47156E-01
   8  Prefactor     14.096        10.979        .77509E-06   -.47375E-02
   9  Prefactor     .24653E-05    7.5287       -.39190E-06** at limit **
  10  Prefactor     .14044E-07    21.014       -.46316E-06** at limit **
  11  Prefactor     .19842E-05    10.982       -.94423E-06** at limit **
  12  norm          6.8404        4.2969        .43618E-07    .21766E-04
  13  Prefactor     .45908E-07    9.7184       -.12239E-05** at limit **
  14  Prefactor     1.9912        4.7660       -.38482E-06   -.26373E-03
  15  Prefactor     .12029E-06    243.71       -.96438E-06** at limit **
  16  norm          1.0153        2.1917        .15860E-05    .27927E-02
  17  norm          3.6054        2.1077        .93841E-07   -.18501E-02
  18  Prefactor     17.783        4.8901        .39060E-07   -.99750E-01
  19  Normalizat    1.0399        .27688       -.41538E-04    .51683E-04
  20  Prefactor     .87008        .10019        .19897E-04    .17438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1412
  Prefactor  = 6.58917e-08
  norm       = 0.267992
  Prefactor  = 24.8253
  norm       = 24.7864
  Prefactor  = 6.03021
  Prefactor  = 29.6172
  Prefactor  = 14.0957
  Prefactor  = 2.46525e-06
  Prefactor  = 1.40443e-08
  Prefactor  = 1.98419e-06
  norm       = 6.84036
  Prefactor  = 4.59077e-08
  Prefactor  = 1.99118
  Prefactor  = 1.20293e-07
  norm       = 1.01527
  norm       = 3.60545
  Prefactor  = 17.7832
  Normalizat = 1.03994
  Prefactor  = 0.870075
 **********
 **   18 **HESSE 
 **********

 FCN=   8850.199     FROM HESSE     STATUS=OK           339 CALLS     1861 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.141        12.394        .21381E-03   -1.5614    
   2  Prefactor     .65892E-07    9.7388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .26799        .57136        .20978E-02   -1.5698    
   4  Prefactor     24.825        54.854        .19734E-03   -1.5608    
   5  norm          24.786        12.499        .20128E-03   -1.5608    
   6  Prefactor     6.0302        13.139        .40822E-03   -1.5659    
   7  Prefactor     29.617        65.829        .17378E-03   -1.5599    
   8  Prefactor     14.096        13.684        .26634E-03   -1.5633    
   9  Prefactor     .24653E-05    18.392        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14044E-07    21.375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19842E-05    17.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8404        4.3000        .38361E-03   -1.5656    
  13  Prefactor     .45908E-07    9.9205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9912        4.7902        .73923E-03   -1.5680    
  15  Prefactor     .12029E-06    249.75        .10013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0153        2.3043        .43926E-03   -1.5688    
  17  norm          3.6054        2.1178        .53167E-03   -1.5670    
  18  Prefactor     17.783        26.421        .23913E-03   -1.5624    
  19  Normalizat    1.0399        .23873        .87373E-01   -.91704    
  20  Prefactor     .87008        .83886E-01    .44618E-01   -.97195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87032e-06
Minuit parameter uncertainties:
  1  12.3936
  2  0.00160217
  3  0.571358
  4  54.8548
  5  12.4991
  6  13.1387
  7  65.8307
  8  13.6835
  9  0.013467
  10  0.00109516
  11  0.0117568
  12  4.30003
  13  0.00134979
  14  4.79022
  15  0.0109625
  16  2.30431
  17  2.11783
  18  26.4214
  19  0.238976
  20  0.0838988
Done.

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

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  1.410e+01  1.368e+01  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  2.765e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  4.520e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  8.701e-01  8.390e-02  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  1.040e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 317.148 14.581
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.18e-08 +/- 5.02e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.15e-05

TS (Fixed Index): 1.49
Ra Dec: 317.148 14.581
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813571/likelihoodResults_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.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) = 8849.46679149
delta logL = 0.73207680351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8849.35733346
delta logL = 0.841534838826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5685       1.0000          .0000       .10000E+07
     2 'Index     '    1.5483       1.0000          .0000       10.000    
     3 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8849.357     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      230 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5733        6.8551        .39133E-03   -.77776E-02
   2  Index         1.5478        .34492        .24364       -.10075E-03
   3  Normalizat    1.0943        .21937        .85399E-01    .48272E-05
   4  Prefactor     .85883        .82939E-01    .44477E-01   -.53544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57327
  Index      = 1.5478
  Normalizat = 1.09435
  Prefactor  = 0.858828
 **********
 **   18 **HESSE 
 **********

 FCN=   8849.357     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5733        11.924        .78265E-04   -1.5657    
   2  Index         1.5478        .74680        .86270E-02   -.76210    
   3  Normalizat    1.0943        .26070        .37814E-03   -.89934    
   4  Prefactor     .85883        .98686E-01    .15850E-03   -.97595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84665e-12
Minuit parameter uncertainties:
  1  11.9242
  2  0.752212
  3  0.261011
  4  0.0987068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813571': 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) = 8849.35733001
delta logL = 0.841538288183

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  6.573e+00  1.192e+01  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  1.548e+00  7.522e-01  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  4.520e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  8.588e-01  9.871e-02  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  1.094e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.14
Ra Dec: 317.148 14.581
Photon Index (Free Index): 1.55 +/- 0.75
Photon Flux (Free Index): 1.21e-08 +/- 2.08e-08
Energy Flux (Free Index): 3.26e-05 +/- 5.00e-05

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/813571/cmap_HighResolution_692150401_692409601_4FGL_J2108.5+1434_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.18e-08', energy_flux2='3.26e-05', photon_flux_error='5.02e-08', dlogl='8.42e-01', energy_flux='1.19e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2022-12-11 01:54:23.381169', photon_index_error2='0.75', photon_index2='1.55', ts='1.49', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='5.00e-05', EG='1.04', time_epoch_completed='1670752463.38', return_code='0', job_id='813571', GAL2='0.86', EG2='1.09', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.08e-08', ts2='3.14', photon_index='2.77' WHERE bin_id='1747' AND source_name='4FGL J2108.5+1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:54:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 813571: <4FGL_J2108.5+1434_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2108.5+1434_daily_bin1747> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Dec 11 01:40:12 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:40:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:40:13 2022
Terminated at Sun Dec 11 01:54:24 2022
Results reported at Sun Dec 11 01:54:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2108.5+1434_daily_bin1747 317.148 14.5812 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2108.5+1434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   786.51 sec.
    Max Memory :                                 1015 MB
    Average Memory :                             309.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

