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


Performing analysis on: 4FGL_J1635.2+3808_daily_bin1749
RA = 248.817, Dec = 38.1401
tmin = 692668801, tmax = 692928001
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='956907', job_status='RUN', time_executed='2022-12-17 01:02:57.432942', time_epoch_executed='1671267777.43' WHERE source_name='4FGL J1635.2+3808' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956907

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956907/ft1_4FGL_J1635.2+3808_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956907/ft1_4FGL_J1635.2+3808_daily_bin1749.fits outfile=/scratch/kocevski/956907/ft1_filteredMKT_4FGL_J1635.2+3808_daily_bin1749.fits ra=248.817 dec=38.1401 rad=12.0 tmin=692668801.0 tmax=692928001.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.71
user 3.48
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.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/956907/ft1_filteredMKT_4FGL_J1635.2+3808_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 624

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/956907/ltcube_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.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/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits
.....................!
real 12.18
user 11.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/956907/ltcube_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.fits outfile=/scratch/kocevski/956907/expmap_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.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/956907/ltcube_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.fits
.....................!
real 191.77
user 185.29
sys 5.96

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/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits scfile=/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits outfile=/scratch/kocevski/956907/cmap_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits scfile=/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits outfile=/scratch/kocevski/956907/cmap_HighResolution_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/956907/Model_4FGL_J1635.2+3808_daily_bin1749.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/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits.....................!
real 52.54
user 51.17
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits', '/scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits', expMap='/scratch/kocevski/956907/expmap_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.fits', expCube='/scratch/kocevski/956907/ltcube_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956907/Model_4FGL_J1635.2+3808_daily_bin1749.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/956907/ft1_filtered_4FGL_J1635.2+3808_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/956907/ft2_4FGL_J1635.2+3808_daily_bin1749.fits
Exposure map: /scratch/kocevski/956907/expmap_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.fits
Exposure cube: /scratch/kocevski/956907/ltcube_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956907/Model_4FGL_J1635.2+3808_daily_bin1749.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) = 6682.97026188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19061E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .48204E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3765       1.0000          .0000       .10000E+07
     4 'Prefactor '    .77031E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.5175       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12268E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .70015       1.0000          .0000       .10000E+07
     8 'norm      '    .41431E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    25.285       1.0000          .0000       .10000E+07
    10 'Prefactor '    .69665E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .27701       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12657E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.1415       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11393       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0344       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.2064       1.0000          .0000       .10000E+07
    17 'norm      '    4.2129       1.0000          .0000       .10000E+07
    18 'norm      '    .64126E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.4068       1.0000          .0000       .10000E+07
    20 'norm      '    .71376E-06   1.0000          .0000       .10000E+07
    21 'norm      '    3.5061       1.0000          .0000       .10000E+07
    22 'norm      '    10.553       1.0000          .0000       .10000E+07
    23 'Normalizat'    .92641       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90516       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=   6682.940     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1584 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15660E-06    3.7532        .50761E-06** at limit **
   2  Prefactor     .58953E-07    2.9913       -.52295E-06** at limit **
   3  Prefactor     1.3685        3.4125       -.20387E-06   -.28794E-03
   4  Prefactor     .16098E-08    4.4641        .60363E-06** at limit **
   5  Prefactor     5.4366        12.054       -.11108E-05    .79900E-02
   6  Prefactor     .27756E-09    1.2785       -.18921E-06** at limit **
   7  norm          .70039        .16402        .92425E-08   -.22496E-01
   8  norm          .43299E-07    2.0886       -.36472E-06** at limit **
   9  Prefactor     25.213        6.5056        .41885E-06    .26992E-01
  10  Prefactor     .27756E-09    1.3951       -.11217E-06** at limit **
  11  norm          .22605E-05    69.260       -.41304E-06** at limit **
  12  Prefactor     .11102E-09    .49626        .39281E-07** at limit **
  13  Prefactor     1.1426        .92390        .18633E-06    .15102E-03
  14  Prefactor     .26913E-04    134.17       -.70086E-05** at limit **
  15  Prefactor     2.0703        4.1014        .15299E-06    .10840E-02
  16  Prefactor     4.2041        2.7907        .95568E-07    .26350E-03
  17  norm          4.2121        1.8977       -.36769E-08    .11436E-02
  18  norm          .49716E-06    4.5976       -.28697E-06** at limit **
  19  Prefactor     3.4853        7.3964       -.13897E-05   -.29454E-02
  20  norm          .22204E-09    .49190        .26819E-07** at limit **
  21  norm          3.5183        3.2268        .18749E-06    .48228E-01
  22  norm          10.538        5.8550       -.89107E-07   -.36934E-01
  23  Normalizat    .92613        .21290       -.67280E-05    .39775E-04
  24  Prefactor     .90548        .16725        .10345E-04    .60272E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56597e-07
  Prefactor  = 5.89528e-08
  Prefactor  = 1.36846
  Prefactor  = 1.60982e-09
  Prefactor  = 5.43661
  Prefactor  = 2.77556e-10
  norm       = 0.70039
  norm       = 4.32987e-08
  Prefactor  = 25.2131
  Prefactor  = 2.77556e-10
  norm       = 2.26047e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 1.14255
  Prefactor  = 2.69134e-05
  Prefactor  = 2.07033
  Prefactor  = 4.20409
  norm       = 4.21207
  norm       = 4.97158e-07
  Prefactor  = 3.48528
  norm       = 2.22045e-10
  norm       = 3.51833
  norm       = 10.5381
  Normalizat = 0.926133
  Prefactor  = 0.905479
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.940     FROM HESSE     STATUS=OK           457 CALLS     2041 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15660E-06    5.1564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .58953E-07    5.6705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3685        3.4324        .92799E-03   -1.5685    
   4  Prefactor     .16098E-08    4.4441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4366        18.505        .42750E-03   -1.5661    
   6  Prefactor     .27756E-09    1.2763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .70039        .17015        .34164E-03   -1.5691    
   8  norm          .43299E-07    5.5502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.213        16.674        .19891E-03   -1.5608    
  10  Prefactor     .27756E-09    1.3965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .22605E-05    108.30        .10540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    .49491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1426        .95061        .10872E-02   -1.5687    
  14  Prefactor     .26913E-04    10.417        .98445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0703        4.1810        .72490E-03   -1.5679    
  16  Prefactor     4.2041        2.8161        .49111E-03   -1.5667    
  17  norm          4.2121        1.9043        .49072E-03   -1.5667    
  18  norm          .49716E-06    .44301        .30516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4853        7.6217        .54786E-03   -1.5671    
  20  norm          .22204E-09    .48836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5183        7.7265        .53969E-03   -1.5670    
  22  norm          10.538        6.5171        .30817E-03   -1.5643    
  23  Normalizat    .92613        .18502        .45238E-01   -.95548    
  24  Prefactor     .90548        .14253        .45071E-01   -.95950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90448e-07
Minuit parameter uncertainties:
  1  0.00179722
  2  0.0011563
  3  3.43244
  4  0.000167864
  5  18.5056
  6  3.68956e-05
  7  0.170152
  8  0.000980615
  9  16.6744
  10  4.1116e-05
  11  0.0312939
  12  1.60712e-05
  13  0.950615
  14  0.033488
  15  4.181
  16  2.8161
  17  1.90434
  18  0.000938616
  19  7.6217
  20  2.09014e-05
  21  7.72654
  22  6.51715
  23  0.18515
  24  0.142589
Done.

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

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  7.004e-01  1.702e-01  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.055e-01  1.426e-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:  9.261e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 57.87
Ra Dec: 248.817 38.140
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 6.87e-05 +/- 1.67e-05

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) = 6682.87258151
delta logL = 0.0671106730879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.86323173
delta logL = 0.0764604541191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72149       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2318       1.0000          .0000       5.0000    
     3 'Normalizat'    .93738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89967       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.

 FCN=   6682.863     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72152        .29230        .35145E-03    .50611E-03
   2  alpha         2.2318        .40717        .17107        .24322E-04
   3  Normalizat    .93745        .17179        .45377E-01    .14896E-04
   4  Prefactor     .89958        .14098        .45001E-01    .86864E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.721524
  alpha      = 2.23176
  Normalizat = 0.93745
  Prefactor  = 0.899579
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.863     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72152        .17454        .15535E-05   -1.5691    
   2  alpha         2.2318        .24975        .73711E-02   -.10750    
   3  Normalizat    .93745        .20119        .26163E-03   -.95156    
   4  Prefactor     .89958        .16482        .22009E-03   -.96156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60197e-11
Minuit parameter uncertainties:
  1  0.174539
  2  0.25017
  3  0.201353
  4  0.164914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956907': 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) = 6682.86323152
delta logL = 0.0764606666153

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  7.215e-01  1.745e-01  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.232e+00  2.502e-01  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:  8.996e-01  1.649e-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:  9.374e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 58.77
Ra Dec: 248.817 38.140
Photon Index (Free Index): 2.23 +/- 0.25
Photon Flux (Free Index): 2.03e-07 +/- 5.53e-08
Energy Flux (Free Index): 7.17e-05 +/- 1.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/956907/cmap_HighResolution_692668801_692928001_4FGL_J1635.2+3808_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='7.17e-05', photon_flux_error='5.20e-08', dlogl='7.65e-02', energy_flux='6.87e-05', photon_flux2='2.03e-07', job_status='DONE', time_completed='2022-12-17 01:12:31.161064', photon_index_error2='0.25', photon_index2='2.23', ts='57.87', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='0.93', time_epoch_completed='1671268351.16', return_code='0', job_id='956907', GAL2='0.90', EG2='0.94', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='5.53e-08', ts2='58.77', photon_index='2.33' WHERE bin_id='1749' AND source_name='4FGL J1635.2+3808' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:12:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 956907: <4FGL_J1635.2+3808_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1635.2+3808_daily_bin1749> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Dec 17 01:00:27 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:00:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:00:28 2022
Terminated at Sat Dec 17 01:12:31 2022
Results reported at Sat Dec 17 01:12:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.2+3808_daily_bin1749 248.817 38.1401 692668801 692928001 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 :                                   576.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            724 sec.

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

