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


Performing analysis on: 4FGL_J1635.2+3808_daily_bin1746
RA = 248.817, Dec = 38.1401
tmin = 691891201, tmax = 692150401
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='732549', job_status='RUN', time_executed='2022-12-08 01:17:00.831503', time_epoch_executed='1670491020.83' WHERE source_name='4FGL J1635.2+3808' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732549/ft1_4FGL_J1635.2+3808_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732549/ft2_4FGL_J1635.2+3808_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732549/ft1_4FGL_J1635.2+3808_daily_bin1746.fits outfile=/scratch/kocevski/732549/ft1_filteredMKT_4FGL_J1635.2+3808_daily_bin1746.fits ra=248.817 dec=38.1401 rad=12.0 tmin=691891201.0 tmax=692150401.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.72
user 4.50
sys 0.20

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

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

Number of photons that the gtmktime cut: 760

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732549/ft1_filtered_4FGL_J1635.2+3808_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/732549/ft2_4FGL_J1635.2+3808_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/732549/ltcube_691891201_692150401_4FGL_J1635.2+3808_daily_bin1746.fits outfile=/scratch/kocevski/732549/expmap_691891201_692150401_4FGL_J1635.2+3808_daily_bin1746.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/732549/ltcube_691891201_692150401_4FGL_J1635.2+3808_daily_bin1746.fits
.....................!
real 190.78
user 184.80
sys 5.59

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/732549/ft1_filtered_4FGL_J1635.2+3808_daily_bin1746.fits scfile=/scratch/kocevski/732549/ft2_4FGL_J1635.2+3808_daily_bin1746.fits outfile=/scratch/kocevski/732549/cmap_691891201_692150401_4FGL_J1635.2+3808_daily_bin1746.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732549/ft1_filtered_4FGL_J1635.2+3808_daily_bin1746.fits scfile=/scratch/kocevski/732549/ft2_4FGL_J1635.2+3808_daily_bin1746.fits outfile=/scratch/kocevski/732549/cmap_HighResolution_691891201_692150401_4FGL_J1635.2+3808_daily_bin1746.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19955E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    30.117       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27961E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .36216E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    23.947       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14291E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .24225       1.0000          .0000       .10000E+07
     8 'norm      '    12.822       1.0000          .0000       .10000E+07
     9 'Prefactor '    21.593       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15544E-03   1.0000          .0000       .10000E+07
    11 'norm      '    71.376       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82371       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6019       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17981E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.7787       1.0000          .0000       .10000E+07
    16 'Prefactor '    .28547E-05   1.0000          .0000       .10000E+07
    17 'norm      '    4.6356       1.0000          .0000       .10000E+07
    18 'norm      '    .58833       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.7037       1.0000          .0000       .10000E+07
    20 'norm      '    .30321       1.0000          .0000       .10000E+07
    21 'norm      '    13.299       1.0000          .0000       .10000E+07
    22 'norm      '    .96563       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1879       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71148       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=   8136.409     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2039 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12157E-07    10.787        .80298E-07** at limit **
   2  Prefactor     30.308        5.0121       -.20372E-07    .81674E-01
   3  Prefactor     .49960E-09    1.6964        .42660E-07** at limit **
   4  Prefactor     .94369E-09    3.4051        .71077E-07** at limit **
   5  Prefactor     24.350        21.494       -.37778E-07   -.22261E-01
   6  Prefactor     .72164E-09    2.1816        .78392E-07** at limit **
   7  norm          .24239        .12829       -.11076E-08** at limit **
   8  norm          12.803        11.181        .30743E-07    .54853E-02
   9  Prefactor     21.621        3.3467       -.73041E-08    .38152E-02
  10  Prefactor     .17208E-08    4.2983       -.59356E-07** at limit **
  11  norm          71.897        50.408        .72654E-07   -.73387E-02
  12  Prefactor     .81824        1.5257       -.10978E-07   -.36406E-03
  13  Prefactor     1.6038        1.3917       -.58144E-08   -.83881E-03
  14  Prefactor     .33307E-09    11.627        .34559E-07** at limit **
  15  Prefactor     2.7797        2.7549        .10845E-07    .37165E-03
  16  Prefactor     .16941E-05    2.3142        .89305E-07** at limit **
  17  norm          4.6355        1.6310        .99483E-08    .10819E-02
  18  norm          .58854        .62472       -.26555E-07   -.28824E-02
  19  Prefactor     1.7133        4.0199        .48289E-07    .41330E-03
  20  norm          .30365        .47217        .15104E-07    .14801E-02
  21  norm          13.314        7.8320       -.11045E-07   -.10775E-01
  22  norm          1.0213        3.8443        .89981E-07    .20086E-01
  23  Normalizat    1.1869        .19248        .22583E-05   -.16501E-04
  24  Prefactor     .71169        .14655       -.26401E-05   -.70486E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21569e-08
  Prefactor  = 30.3078
  Prefactor  = 4.996e-10
  Prefactor  = 9.4369e-10
  Prefactor  = 24.3505
  Prefactor  = 7.21645e-10
  norm       = 0.242394
  norm       = 12.8031
  Prefactor  = 21.6208
  Prefactor  = 1.72085e-09
  norm       = 71.897
  Prefactor  = 0.818236
  Prefactor  = 1.60376
  Prefactor  = 3.33067e-10
  Prefactor  = 2.77973
  Prefactor  = 1.69409e-06
  norm       = 4.63555
  norm       = 0.588537
  Prefactor  = 1.71329
  norm       = 0.303648
  norm       = 13.314
  norm       = 1.02133
  Normalizat = 1.18688
  Prefactor  = 0.711687
 **********
 **   18 **HESSE 
 **********

 FCN=   8136.409     FROM HESSE     STATUS=OK           459 CALLS     2498 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12157E-07    10.988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.308        23.337        .18225E-03   -1.5598    
   3  Prefactor     .49960E-09    1.6978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94369E-09    3.4074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.350        21.876        .20440E-03   -1.5609    
   6  Prefactor     .72164E-09    2.1751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .24239        .14021        .47812E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.803        11.197        .27949E-03   -1.5636    
   9  Prefactor     21.621        16.291        .21526E-03   -1.5615    
  10  Prefactor     .17208E-08    4.2326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          71.897        51.868        .11837E-03   -1.5538    
  12  Prefactor     .81824        1.6088        .51184E-03   -1.5690    
  13  Prefactor     1.6038        1.4384        .83723E-03   -1.5683    
  14  Prefactor     .33307E-09    11.856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7797        2.7656        .61021E-03   -1.5675    
  16  Prefactor     .16941E-05    1.4397        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6355        1.6369        .46722E-03   -1.5665    
  18  norm          .58854        .64021        .70280E-03   -1.5693    
  19  Prefactor     1.7133        4.0883        .80544E-03   -1.5682    
  20  norm          .30365        .52676        .17754E-02   -1.5697    
  21  norm          13.314        7.8702        .27441E-03   -1.5635    
  22  norm          1.0213        3.9209        .42545E-03   -1.5688    
  23  Normalizat    1.1869        .16461        .54704E-01   -.87009    
  24  Prefactor     .71169        .12466        .42554E-01   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49459e-07
Minuit parameter uncertainties:
  1  0.000730811
  2  23.337
  3  5.71531e-05
  4  0.000114452
  5  21.8761
  6  7.84066e-05
  7  0.140215
  8  11.1973
  9  16.2915
  10  0.00017193
  11  51.8682
  12  1.60883
  13  1.43839
  14  0.000123869
  15  2.76556
  16  0.00312347
  17  1.63689
  18  0.640213
  19  4.08834
  20  0.526764
  21  7.87025
  22  3.92091
  23  0.164685
  24  0.124711
Done.

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

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  2.424e-01  1.402e-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:  7.117e-01  1.247e-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.187e+00  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.15
Ra Dec: 248.817 38.140
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.38e-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) = 8136.2051113
delta logL = 0.203966623585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8136.19346185
delta logL = 0.215616075569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22350       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6759       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72437       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=   8136.193     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22352        1.4616        .42562E-03** at limit **
   2  alpha         2.6759        3.8307        .35962       -.28315E-04
   3  Normalizat    1.1624        .57158E-01    .55150E-01    .49469E-04
   4  Prefactor     .72435        .43695E-01    .42725E-01   -.23224E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.223515
  alpha      = 2.67595
  Normalizat = 1.16245
  Prefactor  = 0.724345
 **********
 **   18 **HESSE 
 **********

 FCN=   8136.193     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22352        .12153        .19043E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6759        .54510        .13757E-01    .70437E-01
   3  Normalizat    1.1624        .18564        .24387E-03   -.87771    
   4  Prefactor     .72435        .14580        .24104E-03   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22407e-10
Minuit parameter uncertainties:
  1  0.121526
  2  0.549538
  3  0.185748
  4  0.145876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732549': 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) = 8136.19346181
delta logL = 0.215616117242

Extracting fit parameters...

4FGL J1635.2+3808
   Spectrum: LogParabola
275         norm:  2.235e-01  1.215e-01  0.000e+00  1.000e+06 ( 1.000e-10)
276        alpha:  2.676e+00  5.495e-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:  7.243e-01  1.459e-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.162e+00  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.76
Ra Dec: 248.817 38.140
Photon Index (Free Index): 2.68 +/- 0.55
Photon Flux (Free Index): 9.51e-08 +/- 5.16e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.10e-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/732549/cmap_HighResolution_691891201_692150401_4FGL_J1635.2+3808_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='2.34e-05', photon_flux_error='4.29e-08', dlogl='2.16e-01', energy_flux='2.38e-05', photon_flux2='9.51e-08', job_status='DONE', time_completed='2022-12-08 01:28:32.481818', photon_index_error2='0.55', photon_index2='2.68', ts='7.15', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.19', time_epoch_completed='1670491712.48', return_code='0', job_id='732549', GAL2='0.72', EG2='1.16', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.16e-08', ts2='7.76', photon_index='2.33' WHERE bin_id='1746' AND source_name='4FGL J1635.2+3808' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:28:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 732549: <4FGL_J1635.2+3808_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1635.2+3808_daily_bin1746> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Dec  8 01:15:25 2022
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:15:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:15:27 2022
Terminated at Thu Dec  8 01:28:33 2022
Results reported at Thu Dec  8 01:28:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.2+3808_daily_bin1746 248.817 38.1401 691891201 692150401 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 :                                   694.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            788 sec.

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

