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


Performing analysis on: 4FGL_J2108.5+1434_daily_bin1724
RA = 317.148, Dec = 14.5812
tmin = 686188801, tmax = 686448001
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='707729', job_status='RUN', time_executed='2022-10-03 01:19:15.142005', time_epoch_executed='1664785155.14' WHERE source_name='4FGL J2108.5+1434' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707729

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707729/ft1_4FGL_J2108.5+1434_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707729/ft1_4FGL_J2108.5+1434_daily_bin1724.fits outfile=/scratch/kocevski/707729/ft1_filteredMKT_4FGL_J2108.5+1434_daily_bin1724.fits ra=317.148 dec=14.5812 rad=12.0 tmin=686188801.0 tmax=686448001.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.65
user 4.36
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.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/707729/ft1_filteredMKT_4FGL_J2108.5+1434_daily_bin1724.fits evtable="EVENTS" outfile="/scratch/kocevski/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.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.55
user 0.37
sys 0.14

Number of photons that the gtmktime cut: 806

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707729/ltcube_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.fits outfile=/scratch/kocevski/707729/expmap_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.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/707729/ltcube_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.fits
.....................!
real 193.50
user 187.86
sys 4.50

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/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.fits scfile=/scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.fits outfile=/scratch/kocevski/707729/cmap_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.fits scfile=/scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.fits outfile=/scratch/kocevski/707729/cmap_HighResolution_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707729/Model_4FGL_J2108.5+1434_daily_bin1724.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/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.fits.....................!
real 130.81
user 128.70
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.fits', '/scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.fits', expMap='/scratch/kocevski/707729/expmap_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.fits', expCube='/scratch/kocevski/707729/ltcube_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707729/Model_4FGL_J2108.5+1434_daily_bin1724.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/707729/ft1_filtered_4FGL_J2108.5+1434_daily_bin1724.fits
Spacecraft file(s): /scratch/kocevski/707729/ft2_4FGL_J2108.5+1434_daily_bin1724.fits
Exposure map: /scratch/kocevski/707729/expmap_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.fits
Exposure cube: /scratch/kocevski/707729/ltcube_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707729/Model_4FGL_J2108.5+1434_daily_bin1724.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) = 8907.82608007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35737E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    20.148       1.0000          .0000       .10000E+07
     3 'norm      '    .15155E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    25.462       1.0000          .0000       .10000E+07
     5 'norm      '    6.7794       1.0000          .0000       .10000E+07
     6 'Prefactor '    22.319       1.0000          .0000       .10000E+07
     7 'Prefactor '    147.11       1.0000          .0000       .10000E+07
     8 'Prefactor '    28.383       1.0000          .0000       .10000E+07
     9 'Prefactor '    .85338E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .20866E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27478E-04   1.0000          .0000       .10000E+07
    12 'norm      '    2.8753       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.7644       1.0000          .0000       .10000E+07
    14 'Prefactor '    .61050E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .56403       1.0000          .0000       .10000E+07
    16 'norm      '     .0000       1.0000          .0000       .10000E+07
    17 'norm      '    .18421E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    73.273       1.0000          .0000       .10000E+07
    19 'Normalizat'    .67965       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0450       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=   8907.643     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     1605 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19135E-06    43.625       -.21200E-06** at limit **
   2  Prefactor     20.234        15.993        .20009E-06   -.51946E-02
   3  norm           .0000        .19669       -.24475E-07** at limit **
   4  Prefactor     26.805        56.329       -.10571E-06    .71343E-02
   5  norm          6.7808        12.490       -.88009E-07   -.32057E-02
   6  Prefactor     22.621        16.922        .34276E-07   -.75943E-01
   7  Prefactor     150.57        104.52       -.57479E-07   -.46844E-02
   8  Prefactor     28.984        20.725        .29360E-07    .17214E-01
   9  Prefactor     .29643E-07    42.450        .35768E-06** at limit **
  10  Prefactor      .0000        14.153        .79907E-07** at limit **
  11  Prefactor     .55511E-10    12.111       -.90175E-07** at limit **
  12  norm          2.8743        3.2241       -.10447E-06   -.17389E-02
  13  Prefactor     4.4495        16.747       -.17650E-06   -.32835E-01
  14  Prefactor      .0000        7.0840        .22089E-07** at limit **
  15  Prefactor     .13181E-05    89.805        .12415E-07** at limit **
  16  norm           .0000        .79952       -.16263E-07** at limit **
  17  norm           .0000        5.7166        .43915E-07** at limit **
  18  Prefactor     74.091        13.754        .37770E-07   -.83710E-01
  19  Normalizat    .67674        .30071       -.13637E-05   -.16896E-04
  20  Prefactor     1.0446        .10846        .18969E-06   -.40633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91347e-07
  Prefactor  = 20.2339
  norm       = 0
  Prefactor  = 26.8052
  norm       = 6.78079
  Prefactor  = 22.6211
  Prefactor  = 150.57
  Prefactor  = 28.9844
  Prefactor  = 2.9643e-08
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 2.87425
  Prefactor  = 4.44953
  Prefactor  = 0
  Prefactor  = 1.31811e-06
  norm       = 0
  norm       = 0
  Prefactor  = 74.0915
  Normalizat = 0.67674
  Prefactor  = 1.04465
 **********
 **   18 **HESSE 
 **********

 FCN=   8907.643     FROM HESSE     STATUS=OK           335 CALLS     1940 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19135E-06    48.755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.234        16.214        .22285E-03   -1.5618    
   3  norm           .0000        .19672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.805        57.231        .19822E-03   -1.5604    
   5  norm          6.7808        12.750        .38512E-03   -1.5656    
   6  Prefactor     22.621        21.555        .21173E-03   -1.5613    
   7  Prefactor     150.57        104.48        .82454E-04   -1.5463    
   8  Prefactor     28.984        20.821        .18774E-03   -1.5600    
   9  Prefactor     .29643E-07    45.294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        14.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    12.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8743        3.2313        .59916E-03   -1.5674    
  13  Prefactor     4.4495        33.340        .46071E-03   -1.5666    
  14  Prefactor      .0000        7.0046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13181E-05    97.186        .72513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .79920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.2640        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     74.091        36.614        .11683E-03   -1.5536    
  19  Normalizat    .67674        .28590        .11458       -1.0482    
  20  Prefactor     1.0446        .96970E-01    .40213E-01   -.91256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5068e-07
Minuit parameter uncertainties:
  1  0.00610905
  2  16.2143
  3  6.21141e-07
  4  57.2319
  5  12.7505
  6  21.5547
  7  104.479
  8  20.8208
  9  0.00231742
  10  2.93733e-05
  11  3.78825e-05
  12  3.23125
  13  24.3599
  14  1.08928e-05
  15  0.0226369
  16  1.04707e-06
  17  8.30764e-06
  18  36.6144
  19  0.286533
  20  0.0969865
Done.

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

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  2.898e+01  2.082e+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:  1.045e+00  9.699e-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:  6.767e-01  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 317.148 14.581
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 7.64e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 1.75e-05

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

Saving results to:
/scratch/kocevski/707729/likelihoodResults_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.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) = 8907.61700056
delta logL = 0.0264730316048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8907.60972916
delta logL = 0.0337444297038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.546       1.0000          .0000       .10000E+07
     2 'Index     '    2.9278       1.0000          .0000       10.000    
     3 'Normalizat'    .66547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0479       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8907.610     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      243 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.544        22.806        .77650E-05    .95154E-02
   2  Index         2.9280        .67316        .88079E-02    .31506E-03
   3  Normalizat    .66547        .29739        .51214E-03   -.27784E-03
   4  Prefactor     1.0479        .10810        .15312E-03   -.89790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5436
  Index      = 2.92797
  Normalizat = 0.665465
  Prefactor  = 1.04788
 **********
 **   18 **HESSE 
 **********

 FCN=   8907.610     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.544        21.972        .15530E-05   -1.5605    
   2  Index         2.9280        .64807        .35232E-03   -.42729    
   3  Normalizat    .66547        .29754        .20486E-04   -1.0527    
   4  Prefactor     1.0479        .10809        .30625E-04   -.91150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30517e-09
Minuit parameter uncertainties:
  1  21.9723
  2  0.650276
  3  0.298263
  4  0.108113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707729': 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) = 8907.60972913
delta logL = 0.0337444632023

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  2.654e+01  2.197e+01  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  2.928e+00  6.503e-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:  1.048e+00  1.081e-01  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:  6.655e-01  2.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 317.148 14.581
Photon Index (Free Index): 2.93 +/- 0.65
Photon Flux (Free Index): 1.14e-07 +/- 8.33e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.70e-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/707729/cmap_HighResolution_686188801_686448001_4FGL_J2108.5+1434_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-02', comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='2.37e-05', photon_flux_error='7.64e-08', dlogl='3.37e-02', energy_flux='2.44e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2022-10-03 01:32:08.364534', photon_index_error2='0.65', photon_index2='2.93', ts='2.67', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.51e-07', energy_flux_error2='1.70e-05', EG='0.68', time_epoch_completed='1664785928.36', return_code='0', job_id='707729', GAL2='1.05', EG2='0.67', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='8.33e-08', ts2='2.75', photon_index='2.77' WHERE bin_id='1724' AND source_name='4FGL J2108.5+1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:32:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 707729: <4FGL_J2108.5+1434_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2108.5+1434_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:33 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:17:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:17:06 2022
Terminated at Mon Oct  3 01:32:09 2022
Results reported at Mon Oct  3 01:32:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2108.5+1434_daily_bin1724 317.148 14.5812 686188801 686448001 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 :                                   773.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            996 sec.

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

