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


Performing analysis on: 4FGL_J2108.5+1434_daily_bin1733
RA = 317.148, Dec = 14.5812
tmin = 688521601, tmax = 688780801
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='708427', job_status='RUN', time_executed='2022-10-30 00:36:02.753384', time_epoch_executed='1667115362.75' WHERE source_name='4FGL J2108.5+1434' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708427/ft1_4FGL_J2108.5+1434_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708427/ft2_4FGL_J2108.5+1434_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708427/ft1_4FGL_J2108.5+1434_daily_bin1733.fits outfile=/scratch/kocevski/708427/ft1_filteredMKT_4FGL_J2108.5+1434_daily_bin1733.fits ra=317.148 dec=14.5812 rad=12.0 tmin=688521601.0 tmax=688780801.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 3.51
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708427/ft2_4FGL_J2108.5+1434_daily_bin1733.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/708427/ft1_filteredMKT_4FGL_J2108.5+1434_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/708427/ft1_filtered_4FGL_J2108.5+1434_daily_bin1733.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.15

Number of photons that the gtmktime cut: 824

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708427/ft1_filtered_4FGL_J2108.5+1434_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/708427/ft2_4FGL_J2108.5+1434_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/708427/ltcube_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.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/708427/ft2_4FGL_J2108.5+1434_daily_bin1733.fits
.....................!
real 12.75
user 12.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708427/ft1_filtered_4FGL_J2108.5+1434_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708427/ft2_4FGL_J2108.5+1434_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/708427/ltcube_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.fits outfile=/scratch/kocevski/708427/expmap_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.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/708427/ltcube_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.fits
.....................!
real 190.25
user 184.48
sys 5.44

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/708427/ft1_filtered_4FGL_J2108.5+1434_daily_bin1733.fits scfile=/scratch/kocevski/708427/ft2_4FGL_J2108.5+1434_daily_bin1733.fits outfile=/scratch/kocevski/708427/cmap_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708427/ft1_filtered_4FGL_J2108.5+1434_daily_bin1733.fits scfile=/scratch/kocevski/708427/ft2_4FGL_J2108.5+1434_daily_bin1733.fits outfile=/scratch/kocevski/708427/cmap_HighResolution_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30455E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10461E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .13600E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .34830E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .36274E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .27148E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.061       1.0000          .0000       .10000E+07
     8 'Prefactor '    .41282       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11785E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23057E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    23.606       1.0000          .0000       .10000E+07
    12 'norm      '    3.9182       1.0000          .0000       .10000E+07
    13 'Prefactor '    .36436E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .55427       1.0000          .0000       .10000E+07
    15 'Prefactor '    .43794E-01   1.0000          .0000       .10000E+07
    16 'norm      '    2.5988       1.0000          .0000       .10000E+07
    17 'norm      '    1.1243       1.0000          .0000       .10000E+07
    18 'Prefactor '    .25217E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87493       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=   8791.851     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1566 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.5203        .99586E-07** at limit **
   2  Prefactor      .0000        4.4223       -.11200E-08** at limit **
   3  norm           .0000        1.0737       -.25640E-07** at limit **
   4  Prefactor      .0000        15.520        .51656E-07** at limit **
   5  norm          .16653E-09    6.1141       -.33164E-07** at limit **
   6  Prefactor     .99920E-09    33.338        .42491E-06** at limit **
   7  Prefactor     48.279        3.6562        .21270E-07   -.14292    
   8  Prefactor     .41535        .99938       -.64175E-08    .96940E-02
   9  Prefactor     .29987E-06    101.06       -.68634E-06** at limit **
  10  Prefactor      .0000        39.464       -.85845E-07** at limit **
  11  Prefactor     23.584        1.9074       -.25956E-08    .69225E-01
  12  norm          3.9192        4.0532       -.33285E-07   -.15623E-02
  13  Prefactor     .33307E-09    42.922       -.38813E-06** at limit **
  14  Prefactor     .53828        13.977       -.13259E-06   -.95317E-02
  15  Prefactor     .12129E-06    150.88        .27921E-06** at limit **
  16  norm          2.5980        2.3906       -.36757E-08    .14218E-03
  17  norm          1.1243        2.0383       -.27774E-07   -.62952E-03
  18  Prefactor     .18319E-08    39.510       -.31331E-06** at limit **
  19  Normalizat    1.1888        .28418        .24902E-05    .61795E-04
  20  Prefactor     .87483        .10169       -.64643E-06    .71661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 9.99201e-10
  Prefactor  = 48.2791
  Prefactor  = 0.415346
  Prefactor  = 2.99871e-07
  Prefactor  = 0
  Prefactor  = 23.5844
  norm       = 3.9192
  Prefactor  = 3.33067e-10
  Prefactor  = 0.538277
  Prefactor  = 1.21292e-07
  norm       = 2.59801
  norm       = 1.1243
  Prefactor  = 1.83187e-09
  Normalizat = 1.18882
  Prefactor  = 0.874833
 **********
 **   18 **HESSE 
 **********

 FCN=   8791.851     FROM HESSE     STATUS=OK           339 CALLS     1905 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.5272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.4222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .25412        .24748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        15.472        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .16653E-09    6.0917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .99920E-09    33.295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.279        68.087        .14426E-03   -1.5569    
   8  Prefactor     .41535        8.6321        .88016E-02   -1.5695    
   9  Prefactor     .29987E-06    100.73        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        38.743        .16843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.584        27.328        .20587E-03   -1.5611    
  12  norm          3.9192        4.1379        .50943E-03   -1.5668    
  13  Prefactor     .33307E-09    41.716        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .53828        13.870        .73428E-03   -1.5693    
  15  Prefactor     .12129E-06    150.75        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5980        2.4056        .63262E-03   -1.5676    
  17  norm          1.1243        2.0767        .11050E-02   -1.5687    
  18  Prefactor     .18319E-08    38.906        .16715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1888        .23988        .83219E-01   -.86949    
  20  Prefactor     .87483        .83482E-01    .44685E-01   -.97026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93636e-06
Minuit parameter uncertainties:
  1  8.78721e-07
  2  1.72724e-06
  3  1.69404e-06
  4  2.89513e-05
  5  6.23192e-05
  6  0.000363416
  7  68.0881
  8  3.78699
  9  0.0109923
  10  5.64839e-05
  11  27.328
  12  4.13791
  13  0.000232783
  14  5.46477
  15  0.00855231
  16  2.40558
  17  2.07671
  18  0.000533764
  19  0.240106
  20  0.0834937
Done.

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

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  4.153e-01  3.787e+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

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  8.748e-01  8.349e-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.189e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 317.148 14.581
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708427/likelihoodResults_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.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): 102
logL (Free Index) = 8791.56565564
delta logL = 0.285285112239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8790.92305938
delta logL = 0.927881372874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15528E-02   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89900       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=   8790.923     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      357 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15536E-02    .14969E-02    .71972E-04** at limit **
   2  Index        10.0000        1.0134        .50000    ** at limit **
   3  Normalizat    1.0947        .23328        .86239E-01    .50403E-04
   4  Prefactor     .89899        .84479E-01    .44992E-01   -.24956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00155358
  Index      = 10
  Normalizat = 1.09469
  Prefactor  = 0.898992
 **********
 **   18 **HESSE 
 **********

 FCN=   8790.923     FROM HESSE     STATUS=OK            35 CALLS      392 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15536E-02    .14692E-02    .33296E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.0943        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0947        .28287        .38187E-03   -.89922    
   4  Prefactor     .89899        .10322        .15405E-03   -.96176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37227e-11
Minuit parameter uncertainties:
  1  0.00146923
  2  7.0066e-06
  3  0.283262
  4  0.103243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708427': 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) = 8790.92305902
delta logL = 0.927881729131

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  1.554e-03  1.469e-03  0.000e+00  1.000e+06 ( 1.000e-12)
377        Index:  1.000e+01  7.007e-06  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.990e-01  1.032e-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:  1.095e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 317.148 14.581
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 6.34e-08 +/- 5.81e-08
Energy Flux (Free Index): 7.08e-06 +/- 6.53e-06

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/708427/cmap_HighResolution_688521601_688780801_4FGL_J2108.5+1434_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', comment='SUCCESS', energy_flux2='7.08e-06', dlogl='9.28e-01', photon_flux2='6.34e-08', job_status='DONE', time_completed='2022-10-30 00:48:43.767228', photon_index_error2='0.00', photon_index2='10.00', ts='0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='6.53e-06', EG='1.19', time_epoch_completed='1667116123.77', return_code='0', job_id='708427', GAL2='0.90', EG2='1.09', return_code2='0', photon_flux_error2='5.81e-08', ts2='1.97', photon_index='2.77' WHERE bin_id='1733' AND source_name='4FGL J2108.5+1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:48:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 708427: <4FGL_J2108.5+1434_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2108.5+1434_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 00:35:26 2022
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:35:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:35:27 2022
Terminated at Sun Oct 30 00:48:44 2022
Results reported at Sun Oct 30 00:48:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2108.5+1434_daily_bin1733 317.148 14.5812 688521601 688780801 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 :                                   763.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            798 sec.

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

