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 124 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1635.3+4258_monthly_bin168
RA = 248.846, Dec = 42.9756
tmin = 672451201, tmax = 675043201
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='639948', job_status='RUN', time_executed='2022-05-24 03:31:41.349794', time_epoch_executed='1653388301.35' WHERE source_name='4FGL J1635.3+4258' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639948

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639948/ft1_4FGL_J1635.3+4258_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639948/ft1_4FGL_J1635.3+4258_monthly_bin168.fits outfile=/scratch/kocevski/639948/ft1_filteredMKT_4FGL_J1635.3+4258_monthly_bin168.fits ra=248.846 dec=42.9756 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.53
user 27.82
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.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/639948/ft1_filteredMKT_4FGL_J1635.3+4258_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.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.88
user 0.68
sys 0.19

Number of photons that the gtmktime cut: 9303

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/639948/ltcube_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.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/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits
.....................!
real 127.41
user 126.74
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/639948/ltcube_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.fits outfile=/scratch/kocevski/639948/expmap_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.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/639948/ltcube_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.fits
.....................!
real 192.32
user 186.82
sys 5.12

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

Setting source of interest to:
4FGL J1635.3+4258 @ 248.846 42.9756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits scfile=/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits outfile=/scratch/kocevski/639948/cmap_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.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.846 yref=42.9756 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.79
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits scfile=/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits outfile=/scratch/kocevski/639948/cmap_HighResolution_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.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.846 yref=42.9756 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.80
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639948/Model_4FGL_J1635.3+4258_monthly_bin168.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/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits.....................!
real 617.41
user 614.96
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits', '/scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits', expMap='/scratch/kocevski/639948/expmap_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.fits', expCube='/scratch/kocevski/639948/ltcube_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639948/Model_4FGL_J1635.3+4258_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1635.3+4258'

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.168e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.825e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639948/ft1_filtered_4FGL_J1635.3+4258_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/639948/ft2_4FGL_J1635.3+4258_monthly_bin168.fits
Exposure map: /scratch/kocevski/639948/expmap_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.fits
Exposure cube: /scratch/kocevski/639948/ltcube_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639948/Model_4FGL_J1635.3+4258_monthly_bin168.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) = 99804.4793379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1250       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0029       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81522       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .76126       1.0000         .10000E-03   10000.    
     8 'norm      '    29.292       1.0000         .10000E-03   10000.    
     9 'norm      '    .56703E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5221       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2419       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92136       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1925       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9559       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2452       1.0000         .10000E-03   10000.    
    20 'norm      '    .27481       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75957       1.0000         .10000E-03   10000.    
    22 'norm      '    .35390       1.0000         .10000E-03   10000.    
    23 'norm      '    4.2600       1.0000         .10000E-03   10000.    
    24 'norm      '    4.6590       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .84685       1.0000         .10000E-03   10000.    
    26 'norm      '    .71223       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99191       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   99804.48     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3601 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .66485         .0000    ** at limit **
   2  Prefactor     1.5763        8.5750         .0000        .21823E-02
   3  Prefactor     1.1251        .74836         .0000        .13065E-01
   4  Prefactor     .10000E-03    .27493         .0000    ** at limit **
   5  Prefactor     5.0017        4.5100         .0000        .17162E-01
   6  Prefactor     .81539        1.2182         .0000        .21503E-01
   7  Prefactor     .76139        .57713         .0000        .12161E-01
   8  norm          29.292        5.1997         .0000        .34856E-02
   9  norm          .56725E-01    .31794E-01     .0000        .47296E-01
  10  norm          1.5221        1.5458         .0000        .51086E-01
  11  Prefactor     4.2409        4.3232         .0000        .22032E-02
  12  Prefactor     .92182        .69599         .0000        .93749E-02
  13  norm          5.1921        6.8758         .0000       -.50730E-03
  14  Prefactor     1.9559        .55396         .0000        .97360E-02
  15  Prefactor     5.6765        .60535         .0000        .23899E-02
  16  Prefactor     1.1240        .61019         .0000        .92118E-02
  17  Prefactor     .10000E-03    .87617E-01     .0000    ** at limit **
  18  Prefactor     .10000E-03    .57472         .0000    ** at limit **
  19  norm          3.2452        .44929         .0000       -.26366E-03
  20  norm          .27476        .17886         .0000        .24523E-01
  21  Prefactor     .75998        1.3756         .0000        .23300E-01
  22  norm          .35392        .17965         .0000        .23754E-01
  23  norm          4.2603        1.8766         .0000        .65071E-01
  24  norm          4.6590        .50408         .0000        .25538E-02
  25  Prefactor     .84684        .64028         .0000        .58191E-02
  26  norm          .71274        .78626         .0000        .86138E-02
  27  Normalizat    .99185        .50876E-01     .0000        .91007E-03
  28  Prefactor     .96411        .42606E-01     .0000        .72603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 1.57627
  Prefactor  = 1.12507
  Prefactor  = 0.0001
  Prefactor  = 5.00167
  Prefactor  = 0.815394
  Prefactor  = 0.761386
  norm       = 29.2916
  norm       = 0.0567246
  norm       = 1.52205
  Prefactor  = 4.2409
  Prefactor  = 0.921819
  norm       = 5.19213
  Prefactor  = 1.95585
  Prefactor  = 5.67649
  Prefactor  = 1.12398
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.24519
  norm       = 0.274761
  Prefactor  = 0.759978
  norm       = 0.353918
  norm       = 4.26025
  norm       = 4.65901
  Prefactor  = 0.84684
  norm       = 0.712736
  Normalizat = 0.991854
  Prefactor  = 0.964108
 **********
 **   18 **HESSE 
 **********

 FCN=   99804.48     FROM HESSE     STATUS=OK           551 CALLS     4152 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .66715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5763        8.5143        .33834E-03   -1.5457    
   3  Prefactor     1.1251        .73499        .21277E-03   -1.5496    
   4  Prefactor     .10000E-03    .27746        .16103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0017        4.4838        .89895E-03   -1.5261    
   6  Prefactor     .81539        1.2107        .38991E-03   -1.5527    
   7  Prefactor     .76139        .56245        .19767E-03   -1.5533    
   8  norm          29.292        5.1584        .74026E-04   -1.4625    
   9  norm          .56725E-01    .25419E-01    .34414E-03   -1.5660    
  10  norm          1.5221        1.5369        .17313E-02   -1.5461    
  11  Prefactor     4.2409        4.0877        .19564E-03   -1.5296    
  12  Prefactor     .92182        .58233        .21142E-02   -1.5516    
  13  norm          5.1921        6.8368        .17641E-03   -1.5252    
  14  Prefactor     1.9559        .54954        .77738E-04   -1.5428    
  15  Prefactor     5.6765        .61460        .50836E-04   -1.5231    
  16  Prefactor     1.1240        .59087        .16690E-03   -1.5496    
  17  Prefactor     .10000E-03    .65148        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .58504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2452        .44918        .75670E-04   -1.5348    
  20  norm          .27476        .15614        .95521E-03   -1.5603    
  21  Prefactor     .75998        1.3219        .43853E-03   -1.5534    
  22  norm          .35392        .15564        .86683E-03   -1.5589    
  23  norm          4.2603        1.8446        .97606E-03   -1.5295    
  24  norm          4.6590        .50112        .69821E-04   -1.5276    
  25  Prefactor     .84684        .48383        .21338E-02   -1.5524    
  26  norm          .71274        .96623        .27794E-02   -1.5539    
  27  Normalizat    .99185        .59237E-01    .26265E-03   -.93304    
  28  Prefactor     .96411        .50789E-01    .23814E-03   -.93936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75513e-07
Minuit parameter uncertainties:
  1  6.76766e-05
  2  7.32827
  3  0.734995
  4  1.75854e-06
  5  4.48405
  6  1.21072
  7  0.562453
  8  5.15849
  9  0.0254187
  10  1.53692
  11  4.08797
  12  0.582335
  13  6.83782
  14  0.549542
  15  0.614597
  16  0.590876
  17  8.01565e-05
  18  1.52834e-05
  19  0.449176
  20  0.156138
  21  1.32192
  22  0.155636
  23  1.84465
  24  0.501122
  25  0.483834
  26  0.966247
  27  0.0592411
  28  0.050792
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.522e+00  1.537e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.825e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.641e-01  5.079e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.919e-01  5.924e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 248.846 42.976
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 8.96e-10 +/- 9.05e-10
Energy Flux (Fixed Index): 1.09e-06 +/- 1.10e-06

TS (Fixed Index): 2.16
Ra Dec: 248.846 42.976
Photon Flux Upper Limit: 3.39e-09 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639948/likelihoodResults_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.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) = 99804.3840646
delta logL = 0.0909741998767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 99804.3840425
delta logL = 0.0909962975129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5190       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3289       1.0000          .0000       5.0000    
     3 'Normalizat'    .99175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   99804.38     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      208 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5180        1.9164         .0000        .10032    
   2  alpha         2.3293        1.3325         .0000        .32190E-03
   3  Normalizat    .99175        .46695E-01     .0000        .20699E-03
   4  Prefactor     .96377        .42023E-01     .0000        .15045E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51805
  alpha      = 2.32935
  Normalizat = 0.99175
  Prefactor  = 0.963767
 **********
 **   18 **HESSE 
 **********

 FCN=   99804.38     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5180        1.5051        .17336E-02   -1.5462    
   2  alpha         2.3293        1.0766        .82548E-02   -.68315E-01
   3  Normalizat    .99175        .55336E-01    .26265E-03   -.93307    
   4  Prefactor     .96377        .49813E-01    .23817E-03   -.93947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25915e-09
Minuit parameter uncertainties:
  1  1.50512
  2  1.11323
  3  0.0553396
  4  0.0498152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639948': 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) = 99804.3840423
delta logL = 0.0909965373576

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.518e+00  1.505e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  2.329e+00  1.113e+00  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.638e-01  4.982e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.917e-01  5.534e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 248.846 42.976
Photon Index (Free Index): 2.33 +/- 1.11
Photon Flux (Free Index): 1.49e-09 +/- 2.04e-09
Energy Flux (Free Index): 1.13e-06 +/- 1.04e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/639948/cmap_HighResolution_672451201_675043201_4FGL_J1635.3+4258_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-06', comment='SUCCESS', photon_flux='8.96e-10', energy_flux2='1.13e-06', photon_flux_error='9.05e-10', dlogl='9.10e-02', energy_flux='1.09e-06', photon_flux2='1.49e-09', job_status='DONE', time_completed='2022-05-24 06:16:59.781165', photon_index_error2='1.11', photon_index2='2.33', ts='2.16', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='3.39e-09', energy_flux_error2='1.04e-06', EG='0.99', time_epoch_completed='1653398219.78', return_code='0', job_id='639948', GAL2='0.96', EG2='0.99', return_code2='0', energy_flux_error='1.10e-06', photon_flux_error2='2.04e-09', ts2='2.34', photon_index='1.82' WHERE bin_id='168' AND source_name='4FGL J1635.3+4258' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:16:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 639948: <4FGL_J1635.3+4258_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1635.3+4258_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:25:25 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:29:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:29:26 2022
Terminated at Tue May 24 06:17:01 2022
Results reported at Tue May 24 06:17:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_monthly_bin168 248.846 42.9756 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1635.3+4258 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9898.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             450.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10054 sec.
    Turnaround time :                            10296 sec.

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

