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


Performing analysis on: 4FGL_J1635.3+4258_daily_bin1770
RA = 248.846, Dec = 42.9756
tmin = 698112001, tmax = 698371201
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='491477', job_status='RUN', time_executed='2023-02-18 01:10:47.335598', time_epoch_executed='1676711447.34' WHERE source_name='4FGL J1635.3+4258' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491477/ft1_4FGL_J1635.3+4258_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491477/ft1_4FGL_J1635.3+4258_daily_bin1770.fits outfile=/scratch/kocevski/491477/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin1770.fits ra=248.846 dec=42.9756 rad=12.0 tmin=698112001.0 tmax=698371201.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.39
user 4.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.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/491477/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/491477/ft1_filtered_4FGL_J1635.3+4258_daily_bin1770.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.45
user 0.30
sys 0.14

Number of photons that the gtmktime cut: 738

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491477/ft1_filtered_4FGL_J1635.3+4258_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/491477/ltcube_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.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/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits
.....................!
real 11.90
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491477/ft1_filtered_4FGL_J1635.3+4258_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/491477/ltcube_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.fits outfile=/scratch/kocevski/491477/expmap_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.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/491477/ltcube_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.fits
.....................!
real 189.92
user 185.27
sys 4.30

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/491477/ft1_filtered_4FGL_J1635.3+4258_daily_bin1770.fits scfile=/scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits outfile=/scratch/kocevski/491477/cmap_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491477/ft1_filtered_4FGL_J1635.3+4258_daily_bin1770.fits scfile=/scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits outfile=/scratch/kocevski/491477/cmap_HighResolution_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/491477/ft1_filtered_4FGL_J1635.3+4258_daily_bin1770.fits', '/scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits', expMap='/scratch/kocevski/491477/expmap_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.fits', expCube='/scratch/kocevski/491477/ltcube_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/491477/Model_4FGL_J1635.3+4258_daily_bin1770.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  0.000e+00  1.000e+06 ( 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 -5.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/491477/ft1_filtered_4FGL_J1635.3+4258_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/491477/ft2_4FGL_J1635.3+4258_daily_bin1770.fits
Exposure map: /scratch/kocevski/491477/expmap_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.fits
Exposure cube: /scratch/kocevski/491477/ltcube_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/491477/Model_4FGL_J1635.3+4258_daily_bin1770.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) = 7896.62728599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.621       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17434       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.9580       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14140E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .16551E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .98372E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38786E-06   1.0000          .0000       .10000E+07
     8 'norm      '    9.1101       1.0000          .0000       .10000E+07
     9 'norm      '    .31435       1.0000          .0000       .10000E+07
    10 'norm      '    .21191E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    12.275       1.0000          .0000       .10000E+07
    12 'Prefactor '    .53904E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .17461E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .51552E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.3495       1.0000          .0000       .10000E+07
    16 'Prefactor '    .29532E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .15099E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .45758E-03   1.0000          .0000       .10000E+07
    19 'norm      '    5.5413       1.0000          .0000       .10000E+07
    20 'norm      '    .58275       1.0000          .0000       .10000E+07
    21 'Prefactor '    .46577E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .81140       1.0000          .0000       .10000E+07
    23 'norm      '    .99624E-04   1.0000          .0000       .10000E+07
    24 'norm      '    5.0488       1.0000          .0000       .10000E+07
    25 'Prefactor '    .10474E-02   1.0000          .0000       .10000E+07
    26 'norm      '    .11721E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    .63100       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7896.619     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     2672 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.567        6.0132        .74035E-07   -.83478E-01
   2  Prefactor     .15051E-05    1.8252       -.74478E-07** at limit **
   3  Prefactor     3.9533        3.1837       -.14893E-06   -.31687E-02
   4  Prefactor     .23814E-07    5.0272        .10270E-06** at limit **
   5  Prefactor     .13240E-05    5.2910        .11639E-06** at limit **
   6  Prefactor     .77549E-07    1.7747        .75666E-07** at limit **
   7  Prefactor      .0000        .71817       -.58654E-07** at limit **
   8  norm          9.1128        1.3836        .14712E-08    .94855E-02
   9  norm          .31446        .13524       -.13975E-07   -.13453E-01
  10  norm          .73219E-07    4.4051        .35256E-06** at limit **
  11  Prefactor     12.243        5.8482        .77606E-07   -.86070E-01
  12  Prefactor     .15615E-06    2.6206        .23995E-06** at limit **
  13  norm          .56544E-06    4.8926        .97461E-07** at limit **
  14  Prefactor     .22204E-09    1.6013        .26218E-06** at limit **
  15  Prefactor     4.3517        1.2581        .21710E-07    .36928E-04
  16  Prefactor     .14819E-04    2.3984        .31952E-06** at limit **
  17  Prefactor      .0000        1.0700       -.19270E-06** at limit **
  18  Prefactor     .38858E-09    4.1329       -.14944E-06** at limit **
  19  norm          5.5394        1.9020        .24069E-07    .15508E-02
  20  norm          .58212        .50246        .31861E-07    .28971E-02
  21  Prefactor     .38858E-09    2.5381        .19765E-06** at limit **
  22  norm          .81086        .70153        .74696E-07    .54393E-02
  23  norm          .54179E-07    7.3900        .21314E-06** at limit **
  24  norm          5.0494        1.5514        .46924E-07    .53097E-02
  25  Prefactor     .11657E-08    3.5483       -.76787E-07** at limit **
  26  norm          .24417E-05    39.217        .92202E-06** at limit **
  27  Normalizat    .63106        .18873       -.44825E-05   -.91537E-04
  28  Prefactor     1.1607        .16971        .21305E-05   -.77666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5667
  Prefactor  = 1.50513e-06
  Prefactor  = 3.95326
  Prefactor  = 2.38143e-08
  Prefactor  = 1.324e-06
  Prefactor  = 7.75491e-08
  Prefactor  = 0
  norm       = 9.11282
  norm       = 0.314457
  norm       = 7.32192e-08
  Prefactor  = 12.2428
  Prefactor  = 1.56153e-07
  norm       = 5.65437e-07
  Prefactor  = 2.22045e-10
  Prefactor  = 4.35165
  Prefactor  = 1.48194e-05
  Prefactor  = 0
  Prefactor  = 3.88578e-10
  norm       = 5.53943
  norm       = 0.58212
  Prefactor  = 3.88578e-10
  norm       = 0.810859
  norm       = 5.41789e-08
  norm       = 5.04945
  Prefactor  = 1.16573e-09
  norm       = 2.44171e-06
  Normalizat = 0.63106
  Prefactor  = 1.16073
 **********
 **   18 **HESSE 
 **********

 FCN=   7896.619     FROM HESSE     STATUS=OK           591 CALLS     3263 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.567        19.205        .27114E-03   -1.5634    
   2  Prefactor     .15051E-05    31.218        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9533        3.2087        .50678E-03   -1.5668    
   4  Prefactor     .23814E-07    5.2086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13240E-05    8.6261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .77549E-07    10.896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .71870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.1128        12.660        .33182E-03   -1.5648    
   9  norm          .31446        .15737        .43994E-03   -1.5697    
  10  norm          .73219E-07    6.8586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.243        19.434        .28566E-03   -1.5638    
  12  Prefactor     .15615E-06    7.1658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .56544E-06    10.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22204E-09    1.0534        .22853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3517        1.4933        .48274E-03   -1.5666    
  16  Prefactor     .14819E-04    1.7674        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.0697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .38858E-09    4.2322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5394        1.9089        .42656E-03   -1.5661    
  20  norm          .58212        .50652        .70788E-03   -1.5693    
  21  Prefactor     .38858E-09    2.5415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .81086        .71242        .52089E-03   -1.5690    
  23  norm          .54179E-07    12.130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.0494        1.5557        .44727E-03   -1.5663    
  25  Prefactor     .11657E-08    3.5990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .24417E-05    4.4451        .59211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .63106        .16500        .68177E-01   -1.0668    
  28  Prefactor     1.1607        .14685        .35638E-01   -.87548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92351e-07
Minuit parameter uncertainties:
  1  19.2052
  2  0.0137095
  3  3.20871
  4  0.000704451
  5  0.00675893
  6  0.00183832
  7  5.56469e-07
  8  12.6598
  9  0.157365
  10  0.00141735
  11  19.434
  12  0.00211544
  13  0.00482106
  14  2.97189e-05
  15  1.49335
  16  0.0102357
  17  3.11082e-06
  18  7.98155e-05
  19  1.90886
  20  0.50652
  21  6.48972e-05
  22  0.71242
  23  0.0016216
  24  1.5557
  25  0.000130655
  26  0.00658899
  27  0.165133
  28  0.146898
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  7.322e-08  1.417e-03  0.000e+00  1.000e+06 ( 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 -5.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:  1.161e+00  1.469e-01  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:  6.311e-01  1.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 248.846 42.976
Photon Flux Upper Limit: 1.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491477/likelihoodResults_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.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) = 7896.68895781
delta logL = -0.0702807836205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7896.61867731
delta logL = -2.79549567495e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63083E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    4.3672       1.0000          .0000       5.0000    
     3 'Normalizat'    .63107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1607       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7896.619     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.4912        .42118E-03** at limit **
   2  alpha         .52261        .87292       -.88606E-04     .0000    
   3  Normalizat    .63106        .96954       -.14357E-04   -.35097E-04
   4  Prefactor     1.1607        1.1174        .11467E-04   -.23344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 0.52261
  Normalizat = 0.631062
  Prefactor  = 1.16073
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7896.619     FROM HESSE     STATUS=FAILED         7 CALLS      223 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.4912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .27488E-01    .87292       -.88606E-04   -.91237    
   3  Normalizat    .63106        .96954       -.14357E-04   -1.0668    
   4  Prefactor     1.1607        1.1174        .11467E-04   -.87549    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.30555e-11
Minuit parameter uncertainties:
  1  1.14407e-05
  2  0.928982
  3  0.99775
  4  1.14139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491477': 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): 101
logL (Free Index) = 7896.61867702
delta logL = 5.29234966962e-09

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  0.000e+00  1.144e-05  0.000e+00  1.000e+06 ( 1.000e-13)
312        alpha:  5.226e-01  9.290e-01  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  4.797e-01  0.000e+00 -5.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:  1.161e+00  1.141e+00  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:  6.311e-01  9.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 248.846 42.976

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/491477/cmap_HighResolution_698112001_698371201_4FGL_J1635.3+4258_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='1.78e-08', time_completed='2023-02-18 01:25:08.238204', job_id='491477', GAL2='1.16', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1676712308.24', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.29e-09', ts2='0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1770' AND source_name='4FGL J1635.3+4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:25:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 491477: <4FGL_J1635.3+4258_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1635.3+4258_daily_bin1770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Feb 18 01:10:32 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 01:10:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 01:10:33 2023
Terminated at Sat Feb 18 01:25:09 2023
Results reported at Sat Feb 18 01:25:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_daily_bin1770 248.846 42.9756 698112001 698371201 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 :                                   862.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

