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


Performing analysis on: 4FGL_J1635.2+3808_daily_bin1766
RA = 248.817, Dec = 38.1401
tmin = 697075201, tmax = 697334401
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='853823', job_status='RUN', time_executed='2023-02-06 01:07:00.865790', time_epoch_executed='1675674420.87' WHERE source_name='4FGL J1635.2+3808' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853823

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853823/ft1_4FGL_J1635.2+3808_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853823/ft2_4FGL_J1635.2+3808_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853823/ft1_4FGL_J1635.2+3808_daily_bin1766.fits outfile=/scratch/kocevski/853823/ft1_filteredMKT_4FGL_J1635.2+3808_daily_bin1766.fits ra=248.817 dec=38.1401 rad=12.0 tmin=697075201.0 tmax=697334401.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.74
user 3.47
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853823/ft2_4FGL_J1635.2+3808_daily_bin1766.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/853823/ft1_filteredMKT_4FGL_J1635.2+3808_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/853823/ft1_filtered_4FGL_J1635.2+3808_daily_bin1766.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.53
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 691

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853823/ft1_filtered_4FGL_J1635.2+3808_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/853823/ft2_4FGL_J1635.2+3808_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/853823/ltcube_697075201_697334401_4FGL_J1635.2+3808_daily_bin1766.fits outfile=/scratch/kocevski/853823/expmap_697075201_697334401_4FGL_J1635.2+3808_daily_bin1766.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/853823/ltcube_697075201_697334401_4FGL_J1635.2+3808_daily_bin1766.fits
.....................!
real 194.04
user 186.74
sys 5.46

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/853823/ft1_filtered_4FGL_J1635.2+3808_daily_bin1766.fits scfile=/scratch/kocevski/853823/ft2_4FGL_J1635.2+3808_daily_bin1766.fits outfile=/scratch/kocevski/853823/cmap_697075201_697334401_4FGL_J1635.2+3808_daily_bin1766.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853823/ft1_filtered_4FGL_J1635.2+3808_daily_bin1766.fits scfile=/scratch/kocevski/853823/ft2_4FGL_J1635.2+3808_daily_bin1766.fits outfile=/scratch/kocevski/853823/cmap_HighResolution_697075201_697334401_4FGL_J1635.2+3808_daily_bin1766.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98432E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.8885       1.0000          .0000       .10000E+07
     3 'Prefactor '    .87425E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2874       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.6332       1.0000          .0000       .10000E+07
     6 'Prefactor '    .63528E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .27982       1.0000          .0000       .10000E+07
     8 'norm      '    .30902E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .26153E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .46831E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .11257E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11832E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .87673E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2289       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.2177       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.5011       1.0000          .0000       .10000E+07
    17 'norm      '    2.9643       1.0000          .0000       .10000E+07
    18 'norm      '    1.0387       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.5695       1.0000          .0000       .10000E+07
    20 'norm      '    .14633E-06   1.0000          .0000       .10000E+07
    21 'norm      '    5.7028       1.0000          .0000       .10000E+07
    22 'norm      '    12.202       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2529       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82067       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=   7352.393     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2145 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21649E-08    5.1123       -.62932E-06** at limit **
   2  Prefactor     8.8864        1.0142       -.89091E-08   -.15439E-02
   3  Prefactor      .0000        2.0675        .18307E-06** at limit **
   4  Prefactor     4.3277        4.1479       -.11575E-07    .50104E-03
   5  Prefactor     3.6299        1.0972       -.11834E-07   -.19157E-02
   6  Prefactor      .0000        3.9559        .35660E-06** at limit **
   7  norm          .27981        .12177        .69187E-08    .31314E-02
   8  norm           .0000        7.3707       -.33144E-06** at limit **
   9  Prefactor     .26645E-08    5.0227       -.61541E-06** at limit **
  10  Prefactor      .0000        1.6995        .17667E-06** at limit **
  11  norm          .55511E-10    13.816       -.10864E-05** at limit **
  12  Prefactor     .55511E-10    1.7332        .29899E-06** at limit **
  13  Prefactor     .87495E-01    1.0428        .87437E-08** at limit **
  14  Prefactor     3.2279        1.0374       -.16470E-07    .30391E-02
  15  Prefactor     3.2149        3.4216       -.34242E-06    .20513E-03
  16  Prefactor     1.5013        2.6523        .37984E-07   -.20392E-04
  17  norm          2.9635        1.4238       -.33549E-07   -.88721E-03
  18  norm          1.0388        .69677        .28322E-07   -.22408E-04
  19  Prefactor     8.5626        5.6417        .44188E-07    .73495E-02
  20  norm           .0000        .37021        .45777E-08** at limit **
  21  norm          5.7024        1.7887        .67320E-08   -.16783E-01
  22  norm          12.202        1.6476        .22741E-08   -.10047E-01
  23  Normalizat    1.2527        .20403        .98555E-06    .62527E-04
  24  Prefactor     .82082        .16137       -.17454E-05    .79871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16493e-09
  Prefactor  = 8.88642
  Prefactor  = 0
  Prefactor  = 4.32773
  Prefactor  = 3.62992
  Prefactor  = 0
  norm       = 0.27981
  norm       = 0
  Prefactor  = 2.66454e-09
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0874946
  Prefactor  = 3.22795
  Prefactor  = 3.2149
  Prefactor  = 1.50131
  norm       = 2.9635
  norm       = 1.03883
  Prefactor  = 8.56263
  norm       = 0
  norm       = 5.70236
  norm       = 12.2018
  Normalizat = 1.25266
  Prefactor  = 0.820817
 **********
 **   18 **HESSE 
 **********

 FCN=   7352.393     FROM HESSE     STATUS=OK           463 CALLS     2608 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21649E-08    10.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8864        14.643        .33595E-03   -1.5648    
   3  Prefactor      .0000        2.0438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3277        4.4465        .48632E-03   -1.5666    
   5  Prefactor     3.6299        17.043        .52977E-03   -1.5670    
   6  Prefactor      .0000        3.8660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .27981        .12637        .42235E-03   -1.5697    
   8  norm           .0000        7.3705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26645E-08    10.072        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.6939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    13.808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    .52992        .28353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .87495E-01    .68464        .21797E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2279        12.907        .56348E-03   -1.5672    
  15  Prefactor     3.2149        3.4313        .56451E-03   -1.5672    
  16  Prefactor     1.5013        2.7120        .87360E-03   -1.5683    
  17  norm          2.9635        1.4262        .58952E-03   -1.5674    
  18  norm          1.0388        .70850        .12311E-02   -1.5688    
  19  Prefactor     8.5626        5.9586        .34219E-03   -1.5649    
  20  norm           .0000        .36534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.7024        6.6593        .42038E-03   -1.5660    
  22  norm          12.202        6.5906        .28652E-03   -1.5638    
  23  Normalizat    1.2527        .17404        .54846E-01   -.84991    
  24  Prefactor     .82082        .13722        .43986E-01   -.98966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63322e-09
Minuit parameter uncertainties:
  1  0.000295145
  2  14.6432
  3  3.01959e-06
  4  4.44655
  5  15.731
  6  4.27299e-06
  7  0.126366
  8  1.51121e-05
  9  0.000326209
  10  2.79155e-06
  11  5.57699e-05
  12  1.13931e-05
  13  0.4895
  14  12.9072
  15  3.43129
  16  2.71202
  17  1.42618
  18  0.708501
  19  5.95859
  20  8.7166e-09
  21  6.65927
  22  6.59056
  23  0.17412
  24  0.137275
Done.

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

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  2.798e-01  1.264e-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:  8.208e-01  1.373e-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:  1.253e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.65
Ra Dec: 248.817 38.140
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 8.56e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.24e-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) = 7351.53146051
delta logL = 0.86172967919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7351.52175297
delta logL = 0.871437223886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19389       1.0000          .0000       .10000E+07
     2 'alpha     '    3.0343       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84956       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=   7351.522     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19407        1.0341        .31808E-03** at limit **
   2  alpha         3.0338        4.0070        .27466        .50389E-04
   3  Normalizat    1.2013        .72618E-01    .55801E-01    .11487E-04
   4  Prefactor     .84945        .54622E-01    .44359E-01    .18600E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.194074
  alpha      = 3.03378
  Normalizat = 1.20127
  Prefactor  = 0.849452
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.522     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19407        .12935        .14183E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0338        .62142        .11549E-01    .21517    
   3  Normalizat    1.2013        .20426        .24675E-03   -.86564    
   4  Prefactor     .84945        .16331        .23425E-03   -.97930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7267e-09
Minuit parameter uncertainties:
  1  0.12935
  2  0.628329
  3  0.204398
  4  0.163403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853823': 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) = 7351.52175005
delta logL = 0.871440141126

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  1.941e-01  1.293e-01  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  3.034e+00  6.283e-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.495e-01  1.634e-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:  1.201e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.55
Ra Dec: 248.817 38.140
Photon Index (Free Index): 3.03 +/- 0.63
Photon Flux (Free Index): 1.21e-07 +/- 5.22e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/853823/cmap_HighResolution_697075201_697334401_4FGL_J1635.2+3808_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.56e-08', energy_flux2='2.48e-05', photon_flux_error='3.86e-08', dlogl='8.71e-01', energy_flux='2.74e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2023-02-06 01:18:21.460631', photon_index_error2='0.63', photon_index2='3.03', ts='9.65', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.25', time_epoch_completed='1675675101.46', return_code='0', job_id='853823', GAL2='0.85', EG2='1.20', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.22e-08', ts2='11.55', photon_index='2.33' WHERE bin_id='1766' AND source_name='4FGL J1635.2+3808' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:18:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 853823: <4FGL_J1635.2+3808_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1635.2+3808_daily_bin1766> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb  6 01:05:20 2023
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:05:40 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:05:40 2023
Terminated at Mon Feb  6 01:18:22 2023
Results reported at Mon Feb  6 01:18:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.2+3808_daily_bin1766 248.817 38.1401 697075201 697334401 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            782 sec.

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

