/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7368
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2108.5+1434_daily_bin506
RA = 317.148, Dec = 14.5812
tmin = 370483201, tmax = 370742401
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='338601', job_status='RUN', time_executed='2021-09-26 04:49:32.169591', time_epoch_executed='1632656972.17' WHERE source_name='4FGL J2108.5+1434' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338601

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338601/ft1_4FGL_J2108.5+1434_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338601/ft1_4FGL_J2108.5+1434_daily_bin506.fits outfile=/scratch/kocevski/338601/ft1_filteredMKT_4FGL_J2108.5+1434_daily_bin506.fits ra=317.148 dec=14.5812 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.92
user 19.32
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338601/ft1_filtered_4FGL_J2108.5+1434_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/338601/ltcube_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.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/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits
.....................!
real 11.05
user 10.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338601/ft1_filtered_4FGL_J2108.5+1434_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/338601/ltcube_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.fits outfile=/scratch/kocevski/338601/expmap_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.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/338601/ltcube_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.fits
.....................!
real 190.55
user 185.76
sys 3.98

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_archive_v18/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/338601/ft1_filtered_4FGL_J2108.5+1434_daily_bin506.fits scfile=/scratch/kocevski/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits outfile=/scratch/kocevski/338601/cmap_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338601/ft1_filtered_4FGL_J2108.5+1434_daily_bin506.fits scfile=/scratch/kocevski/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits outfile=/scratch/kocevski/338601/cmap_HighResolution_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/338601/ft1_filtered_4FGL_J2108.5+1434_daily_bin506.fits', '/scratch/kocevski/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits', expMap='/scratch/kocevski/338601/expmap_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.fits', expCube='/scratch/kocevski/338601/ltcube_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/338601/Model_4FGL_J2108.5+1434_daily_bin506.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  1.000e-04  1.000e+04 ( 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/338601/ft1_filtered_4FGL_J2108.5+1434_daily_bin506.fits
Spacecraft file(s): /scratch/kocevski/338601/ft2_4FGL_J2108.5+1434_daily_bin506.fits
Exposure map: /scratch/kocevski/338601/expmap_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.fits
Exposure cube: /scratch/kocevski/338601/ltcube_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/338601/Model_4FGL_J2108.5+1434_daily_bin506.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) = 4313.80293954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    92.387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.466       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0690       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.9943       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.544       1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.398       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1762       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.

 FCN=   4313.794     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3069 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.101       -.11317E-09** at limit **
   2  Prefactor     .10000E-03    117.47        .12250E-06** at limit **
   3  Prefactor     .10000E-03    28.427       -.40621E-07** at limit **
   4  norm          .10000E-03    20.815       -.29333E-07** at limit **
   5  Prefactor     .10000E-03    257.67       -.45186E-06** at limit **
   6  norm          .10000E-03    23.932        .20069E-07** at limit **
   7  norm          .10000E-03    141.93        .21917E-06** at limit **
   8  Prefactor     .10000E-03    29.437       -.92911E-07** at limit **
   9  Prefactor     .10000E-03    7.3408       -.42680E-07** at limit **
  10  Prefactor     92.344        136.22        .67212E-06    .45691E-04
  11  Prefactor     3.3082        137.50        .13185E-05    .17450E-04
  12  Prefactor     .10000E-03    29.791       -.36685E-07** at limit **
  13  Prefactor     .10000E-03    67.004       -.18742E-06** at limit **
  14  Prefactor     21.454        38.248        .55298E-07    .52583E-04
  15  Prefactor     .10000E-03    23.120        .37142E-07** at limit **
  16  norm          3.0687        4.4095        .98620E-07    .18906E-04
  17  Prefactor     .10000E-03    33.117        .37812E-07** at limit **
  18  Prefactor     .10000E-03    13.561        .23664E-06** at limit **
  19  Prefactor     .10000E-03    4.6376        .23808E-07** at limit **
  20  Prefactor     .10000E-03    40.583        .10165E-06** at limit **
  21  norm          8.9939        3.5284        .22412E-06   -.73294E-03
  22  Prefactor     21.608        97.568        .24264E-06    .25519E-04
  23  norm          .10000E-03    2.5304        .57146E-06** at limit **
  24  Prefactor     20.396        24.855        .54367E-07    .59725E-04
  25  Normalizat    .10000E-01    .24200       -.94835E-05** at limit **
  26  Prefactor     1.1762        .89977E-01    .77564E-06    .54725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 92.3443
  Prefactor  = 3.30824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4544
  Prefactor  = 0.0001
  norm       = 3.06865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.99389
  Prefactor  = 21.608
  norm       = 0.000100001
  Prefactor  = 20.396
  Normalizat = 0.01
  Prefactor  = 1.1762
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.794     FROM HESSE     STATUS=OK           450 CALLS     3519 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    117.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    20.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    257.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    23.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    141.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3448        .17380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     92.344        138.52        .41810E-04   -1.3783    
  11  Prefactor     3.3082        139.88        .22229E-03   -1.5344    
  12  Prefactor     .10000E-03    29.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    67.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.454        38.281        .86451E-04   -1.4781    
  15  Prefactor     .10000E-03    23.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0687        4.3892        .15478E-03   -1.5358    
  17  Prefactor     .10000E-03    33.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6496        .13810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.9939        3.5480        .35127E-03   -1.5108    
  22  Prefactor     21.608        97.643        .86294E-04   -1.4778    
  23  norm          .10000E-03    2.4026        .98423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.396        24.934        .88684E-04   -1.4804    
  25  Normalizat    .10000E-01    .80691        .24432       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.1762        .13459        .14479E-03   -.87067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1446e-09
Minuit parameter uncertainties:
  1  1.80008e-06
  2  0.000133124
  3  2.17151e-05
  4  1.35376e-05
  5  0.000601369
  6  1.85608e-05
  7  0.000232361
  8  8.59621e-06
  9  9.45036e-06
  10  139.014
  11  43.1316
  12  1.98789e-05
  13  0.000146585
  14  38.3244
  15  2.07981e-05
  16  4.38962
  17  5.41224e-07
  18  0.00010677
  19  8.60686e-06
  20  6.31122e-05
  21  3.54813
  22  92.1172
  23  9.66394e-05
  24  24.9464
  25  3.90575e-05
  26  0.134625
Done.

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

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  3.308e+00  4.313e+01  1.000e-04  1.000e+04 ( 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.176e+00  1.346e-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.000e-02  3.906e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/338601/likelihoodResults_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.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) = 4313.79380428
delta logL = 0.000487842734401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4313.79160611
delta logL = 0.00268601495372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1008       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9811       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1754       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=   4313.792     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      282 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1584        6514.8        .49769E-02    .47355E-04
   2  Index         2.9899        5.1159        .50000        .14430E-04
   3  Normalizat    .10000E-01    .15110E-01    .32191    ** at limit **
   4  Prefactor     1.1756        .23360E-01    .35239E-01    .24934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15839
  Index      = 2.98991
  Normalizat = 0.01
  Prefactor  = 1.17557
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.792     FROM HESSE     STATUS=OK            39 CALLS      321 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1584        104.27        .19908E-03   -1.5300    
   2  Index         2.9899        2.8772        .22231E-01   -.41372    
   3  Normalizat    .10000E-01    .76116        .24412       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1756        .12830        .14483E-03   -.87087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78415e-10
Minuit parameter uncertainties:
  1  41.7272
  2  3.11116
  3  5.44832e-05
  4  0.128339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338601': 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) = 4313.79159749
delta logL = 0.00269463301083

Extracting fit parameters...

4FGL J2108.5+1434
   Spectrum: PowerLaw
376    Prefactor:  4.158e+00  4.173e+01  1.000e-04  1.000e+04 ( 1.000e-12)
377        Index:  2.990e+00  3.111e+00  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.176e+00  1.283e-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.000e-02  5.448e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 317.148 14.581

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/338601/cmap_HighResolution_370483201_370742401_4FGL_J2108.5+1434_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-02', job_status='DONE', photon_flux_upper_limit='3.94e-07', time_completed='2021-09-26 05:01:41.229098', job_id='338601', GAL2='1.18', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632657701.23', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.69e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.77' WHERE bin_id='506' AND source_name='4FGL J2108.5+1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 05:01:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 338601: <4FGL_J2108.5+1434_daily_bin506> in cluster <slac> Done

Job <4FGL_J2108.5+1434_daily_bin506> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Sep 26 04:45:38 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 04:47:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 04:47:41 2021
Terminated at Sun Sep 26 05:01:41 2021
Results reported at Sun Sep 26 05:01:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2108.5+1434_daily_bin506 317.148 14.5812 370483201 370742401 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 :                                   718.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            963 sec.

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

