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


Performing analysis on: 4FGL_J1635.2+3808_daily_bin1712
RA = 248.817, Dec = 38.1401
tmin = 683078401, tmax = 683337601
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='170103', job_status='RUN', time_executed='2022-09-16 19:38:38.190484', time_epoch_executed='1663382318.19' WHERE source_name='4FGL J1635.2+3808' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170103/ft1_4FGL_J1635.2+3808_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170103/ft1_4FGL_J1635.2+3808_daily_bin1712.fits outfile=/scratch/kocevski/170103/ft1_filteredMKT_4FGL_J1635.2+3808_daily_bin1712.fits ra=248.817 dec=38.1401 rad=12.0 tmin=683078401.0 tmax=683337601.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.78
user 4.49
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.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/170103/ft1_filteredMKT_4FGL_J1635.2+3808_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.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.16

Number of photons that the gtmktime cut: 723

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/170103/ltcube_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.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/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits
.....................!
real 14.24
user 13.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/170103/ltcube_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.fits outfile=/scratch/kocevski/170103/expmap_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.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/170103/ltcube_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.fits
.....................!
real 192.97
user 187.88
sys 4.57

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
Added 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1635.2+3808 @ 248.817 38.1401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits scfile=/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits outfile=/scratch/kocevski/170103/cmap_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.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=248.817 yref=38.1401 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.70
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits scfile=/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits outfile=/scratch/kocevski/170103/cmap_HighResolution_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.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=248.817 yref=38.1401 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.58
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170103/Model_4FGL_J1635.2+3808_daily_bin1712.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits.....................!
real 57.75
user 56.43
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits', '/scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits', expMap='/scratch/kocevski/170103/expmap_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.fits', expCube='/scratch/kocevski/170103/ltcube_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170103/Model_4FGL_J1635.2+3808_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1635.2+3808'

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  1.022e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.274e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  5.275e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/170103/ft1_filtered_4FGL_J1635.2+3808_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/170103/ft2_4FGL_J1635.2+3808_daily_bin1712.fits
Exposure map: /scratch/kocevski/170103/expmap_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.fits
Exposure cube: /scratch/kocevski/170103/ltcube_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170103/Model_4FGL_J1635.2+3808_daily_bin1712.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7680.99138131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1377       1.0000          .0000       .10000E+07
     2 'Prefactor '    .64754E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .39141E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .78108E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .13842       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4558       1.0000          .0000       .10000E+07
     7 'norm      '    .30104E-01   1.0000          .0000       .10000E+07
     8 'norm      '    9.3660       1.0000          .0000       .10000E+07
     9 'Prefactor '    .96528E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.5339       1.0000          .0000       .10000E+07
    11 'norm      '    40.776       1.0000          .0000       .10000E+07
    12 'Prefactor '    .46573E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.2237       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17131E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .38417E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .96229E-06   1.0000          .0000       .10000E+07
    17 'norm      '    3.7497       1.0000          .0000       .10000E+07
    18 'norm      '    .38975       1.0000          .0000       .10000E+07
    19 'Prefactor '    .51200E-05   1.0000          .0000       .10000E+07
    20 'norm      '    .88540E-07   1.0000          .0000       .10000E+07
    21 'norm      '    4.1196       1.0000          .0000       .10000E+07
    22 'norm      '    16.491       1.0000          .0000       .10000E+07
    23 'Normalizat'    .88360       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7680.768     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1699 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1387        1.1592       -.43227E-06   -.41356E-01
   2  Prefactor     .67168E-08    9.6525       -.13348E-05** at limit **
   3  Prefactor     .13323E-08    1.2062        .82784E-06** at limit **
   4  Prefactor     .15321E-07    7.8405        .89079E-05** at limit **
   5  Prefactor     .28067E-04    6.5350       -.42275E-05** at limit **
   6  Prefactor     2.4599        2.6626        .74905E-06   -.72001E-02
   7  norm          .30174E-01    .79913E-01    .24430E-06** at limit **
   8  norm          9.4480        4.4146        .17041E-06    .34602E-01
   9  Prefactor     .13933E-07    18.714        .20558E-05** at limit **
  10  Prefactor     5.5897        4.2836        .20559E-06   -.75048E-02
  11  norm          40.245        41.239       -.74998E-05    .94816E-02
  12  Prefactor     .22204E-09    3.0162       -.32143E-06** at limit **
  13  Prefactor     9.2286        1.5913        .43062E-07    .10485E-01
  14  Prefactor     .19723E-06    56.166        .65029E-05** at limit **
  15  Prefactor     .61617E-08    7.5484       -.55187E-05** at limit **
  16  Prefactor      .0000        .91210        .72558E-06** at limit **
  17  norm          3.7505        1.6569        .70017E-07   -.11073E-01
  18  norm          .38801        .68367        .13493E-07    .33317E-02
  19  Prefactor      .0000        2.1683        .88855E-06** at limit **
  20  norm           .0000        .27826        .11707E-06** at limit **
  21  norm          4.1288        4.2457       -.56320E-06   -.10157E-01
  22  norm          16.455        7.2021        .40095E-08   -.22392E-02
  23  Normalizat    .88317        .19923       -.41486E-05   -.23493E-03
  24  Prefactor     .98427        .16251        .38713E-05   -.15718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.13869
  Prefactor  = 6.71685e-09
  Prefactor  = 1.33227e-09
  Prefactor  = 1.53211e-08
  Prefactor  = 2.80673e-05
  Prefactor  = 2.45994
  norm       = 0.0301739
  norm       = 9.448
  Prefactor  = 1.39333e-08
  Prefactor  = 5.58973
  norm       = 40.2448
  Prefactor  = 2.22045e-10
  Prefactor  = 9.22863
  Prefactor  = 1.97231e-07
  Prefactor  = 6.16174e-09
  Prefactor  = 0
  norm       = 3.75051
  norm       = 0.38801
  Prefactor  = 0
  norm       = 0
  norm       = 4.12876
  norm       = 16.4552
  Normalizat = 0.883168
  Prefactor  = 0.984274
 **********
 **   18 **HESSE 
 **********

 FCN=   7680.768     FROM HESSE     STATUS=OK           459 CALLS     2158 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1387        7.7100        .37523E-03   -1.5655    
   2  Prefactor     .67168E-08    9.7094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .13323E-08    1.2066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15321E-07    7.9372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .28067E-04    13.447        .12994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4599        2.6850        .65241E-03   -1.5677    
   7  norm          .30174E-01    .80528E-01    .87532E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.4480        9.7798        .32722E-03   -1.5646    
   9  Prefactor     .13933E-07    18.695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5897        4.3391        .42686E-03   -1.5661    
  11  norm          40.245        41.608        .15662E-03   -1.5581    
  12  Prefactor     .22204E-09    1.3158        .25116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2286        1.9061        .32975E-03   -1.5647    
  14  Prefactor     .19723E-06    13.939        .11439E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .61617E-08    7.5577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        .91127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7505        1.6566        .52116E-03   -1.5669    
  18  norm          .38801        .70229        .90684E-03   -1.5696    
  19  Prefactor      .0000        2.1769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .27351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1288        4.2512        .49642E-03   -1.5667    
  22  norm          16.455        7.2120        .24636E-03   -1.5627    
  23  Normalizat    .88317        .17415        .44692E-01   -.97054    
  24  Prefactor     .98427        .13839        .46066E-01   -.93256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07174e-07
Minuit parameter uncertainties:
  1  7.70999
  2  0.000510328
  3  8.07296e-05
  4  0.000697493
  5  0.0388547
  6  2.68501
  7  0.0805276
  8  9.77981
  9  0.00102024
  10  4.33913
  11  41.6088
  12  3.54266e-05
  13  1.90613
  14  0.00331628
  15  0.00043202
  16  8.57684e-06
  17  1.6566
  18  0.702291
  19  5.60452e-06
  20  5.39405e-06
  21  4.2512
  22  7.21204
  23  0.174265
  24  0.138444
Done.

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

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  3.017e-02  8.053e-02  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.330e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.274e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  5.275e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
638    Prefactor:  9.843e-01  1.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
639        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
640        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
637   Normalization:  8.832e-01  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 248.817 38.140
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170103/likelihoodResults_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.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) = 7680.75812546
delta logL = 0.00937915691247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7680.75775155
delta logL = 0.00975307394037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31412E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    2.5669       1.0000          .0000       5.0000    
     3 'Normalizat'    .88039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98539       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+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=   7680.758     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      273 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31550E-01    .80226E-01    .34373E-04** at limit **
   2  alpha         2.5704        1.6391        .51121E-01    .12218E-05
   3  Normalizat    .88036        .19286        .27659E-03    .69876E-06
   4  Prefactor     .98557        .16059        .21928E-03    .54956E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0315501
  alpha      = 2.57041
  Normalizat = 0.880361
  Prefactor  = 0.985572
 **********
 **   18 **HESSE 
 **********

 FCN=   7680.758     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31550E-01    .77650E-01    .13749E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5704        1.5983        .20448E-02    .28166E-01
   3  Normalizat    .88036        .19308        .11063E-04   -.97154    
   4  Prefactor     .98557        .16072        .87713E-05   -.93212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14214e-13
Minuit parameter uncertainties:
  1  0.0776496
  2  1.73419
  3  0.193232
  4  0.160801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170103': 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) = 7680.75774431
delta logL = 0.00976030833408

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  3.155e-02  7.765e-02  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.570e+00  1.734e+00  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.274e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  5.275e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
638    Prefactor:  9.856e-01  1.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
639        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
640        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
637   Normalization:  8.804e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 248.817 38.140

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/170103/cmap_HighResolution_683078401_683337601_4FGL_J1635.2+3808_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2022-09-16 19:50:38.939434', job_id='170103', GAL2='0.99', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1663383038.94', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.76e-03', ts2='0.20', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1712' AND source_name='4FGL J1635.2+3808' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:50:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 170103: <4FGL_J1635.2+3808_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1635.2+3808_daily_bin1712> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 19:35:31 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:38:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:38:04 2022
Terminated at Fri Sep 16 19:50:39 2022
Results reported at Fri Sep 16 19:50:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.2+3808_daily_bin1712 248.817 38.1401 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1635.2+3808 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   721.35 sec.
    Max Memory :                                 626 MB
    Average Memory :                             312.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            908 sec.

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

