aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 136 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 = 17268
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0245.4+2408_weekly_bin664
RA = 41.3545, Dec = 24.1498
tmin = 640569601, tmax = 641174401
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='692477', job_status='RUN', time_executed='2021-07-05 02:57:30.953100', time_epoch_executed='1625479050.95' WHERE source_name='4FGL J0245.4+2408' and cadence='weekly' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692477

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692477/ft1_4FGL_J0245.4+2408_weekly_bin664.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692477/ft1_4FGL_J0245.4+2408_weekly_bin664.fits outfile=/scratch/kocevski/692477/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin664.fits ra=41.3545 dec=24.1498 rad=12.0 tmin=640569601.0 tmax=641174401.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 6.88
user 6.15
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.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/692477/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin664.fits evtable="EVENTS" outfile="/scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.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 1.58
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/692477/ltcube_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.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/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits
.....................!
real 27.33
user 26.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/692477/ltcube_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.fits outfile=/scratch/kocevski/692477/expmap_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.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/692477/ltcube_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.fits
.....................!
real 198.50
user 187.87
sys 4.21

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

Setting source of interest to:
4FGL J0245.4+2408 @ 41.3545 24.1498

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits scfile=/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits outfile=/scratch/kocevski/692477/cmap_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.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=41.3545 yref=24.1498 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 1.78
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits scfile=/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits outfile=/scratch/kocevski/692477/cmap_HighResolution_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.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=41.3545 yref=24.1498 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.60
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692477/Model_4FGL_J0245.4+2408_weekly_bin664.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/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits........................!
real 38.53
user 27.65
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits', '/scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits', expMap='/scratch/kocevski/692477/expmap_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.fits', expCube='/scratch/kocevski/692477/ltcube_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692477/Model_4FGL_J0245.4+2408_weekly_bin664.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0245.4+2408'

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  3.151e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/692477/ft1_filtered_4FGL_J0245.4+2408_weekly_bin664.fits
Spacecraft file(s): /scratch/kocevski/692477/ft2_4FGL_J0245.4+2408_weekly_bin664.fits
Exposure map: /scratch/kocevski/692477/expmap_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.fits
Exposure cube: /scratch/kocevski/692477/ltcube_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692477/Model_4FGL_J0245.4+2408_weekly_bin664.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) = 1103.86912444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13502E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52665E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13750E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12270E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72325E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7239       1.0000         .10000E-03   10000.    
    11 'norm      '    82.720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    392.61       1.0000         .10000E-03   10000.    
    13 'norm      '    .64665E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28457       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53265       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18374       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38939E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13334E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .27229       1.0000         .10000E-03   10000.    
    21 'norm      '    .14236E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14682E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28732E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    77.279       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0595       1.0000         .10000E-03   10000.    
    26 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1097.290     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2819 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.8857        .15254E-06** at limit **
   2  Prefactor     .10000E-03    741.39       -.42269E-05** at limit **
   3  Prefactor     .10000E-03    17.601        .48707E-06** at limit **
   4  Prefactor     .10000E-03    137.75        .35540E-06** at limit **
   5  Prefactor     .10000E-03    26.876       -.11898E-05** at limit **
   6  norm          .10000E-03    6331.2       -.12258E-04** at limit **
   7  Prefactor    10000.0        1639.9       -.54235E-05** at limit **
   8  Prefactor     .10000E-03    106.12        .80543E-06** at limit **
   9  Prefactor    10000.0        6315.2       -.10497E-05** at limit **
  10  Prefactor     .10000E-03    416.14        .90474E-05** at limit **
  11  norm          51.576        53.174       -.17128E-07   -.35855E-05
  12  Prefactor     174.13        298.12       -.15861E-05    .15908E-05
  13  norm          .10000E-03    15.706        .14872E-05** at limit **
  14  Prefactor     .10000E-03    587.11       -.16070E-04** at limit **
  15  Prefactor     .10000E-03    222.36        .48044E-05** at limit **
  16  Prefactor     .10000E-03    464.40       -.63954E-06** at limit **
  17  Prefactor     10.520        240.90       -.32121E-05   -.36896E-05
  18  Prefactor     .10000E-03    57.755       -.56054E-06** at limit **
  19  Prefactor     .10000E-03    107.28       -.45332E-06** at limit **
  20  norm          .10000E-03    264.80       -.41358E-06** at limit **
  21  norm          .10000E-03    46.799        .87599E-06** at limit **
  22  Prefactor     .10000E-03    224.99        .91024E-06** at limit **
  23  Prefactor     .10000E-03    36.616        .10522E-05** at limit **
  24  Prefactor     75.565        39.983        .33925E-06   -.60817E-05
  25  norm          1.4547        4.3582       -.23373E-06   -.43689E-05
  26  norm          .10000E-03    60.843        .48601E-06** at limit **
  27  Normalizat    .10000E-01    .20162        .14229E-04** at limit **
  28  Prefactor     .85210        .12000        .19924E-06   -.14636E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 51.5762
  Prefactor  = 174.126
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.5649
  norm       = 1.45473
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.852102
 **********
 **   18 **HESSE 
 **********

 FCN=   1097.290     FROM HESSE     STATUS=OK           571 CALLS     3390 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3990        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    727.16        .97538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.074        .95650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    137.33        .90916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6276.2        .57297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        1592.3        .17863E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    106.81        .93232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        6281.3        .30973E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    412.44        .36072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          51.576        53.013        .11041E-02   -1.4270    
  12  Prefactor     174.13        296.50        .51489E-03   -1.3061    
  13  norm          .10000E-03    15.516        .94127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    584.71        .10357E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    218.53        .11403E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    459.74        .99032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.520        228.39        .11949E-02   -1.5059    
  18  Prefactor     .10000E-03    58.107        .10638E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    106.70        .90896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    253.93        .10303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    46.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    225.93        .10244E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.994        .48411E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     75.565        40.081        .11420E-02   -1.3967    
  25  norm          1.4547        4.5563        .71992E-02   -1.5467    
  26  norm          .10000E-03    59.928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .19001        .20811       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .85210        .12303        .28180E-01   -.97835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59564e-11
Minuit parameter uncertainties:
  1  6.2622e-06
  2  0.00089834
  3  8.95947e-06
  4  2.68192e-05
  5  2.40448e-05
  6  0.000438702
  7  0.000802952
  8  0.000239836
  9  0.00324471
  10  0.000264947
  11  53.0615
  12  299.104
  13  1.5659e-05
  14  9.42334e-05
  15  3.72119e-05
  16  0.000464773
  17  98.4623
  18  4.18599e-06
  19  4.26778e-05
  20  6.05495e-06
  21  3.77314e-05
  22  2.95694e-07
  23  3.64278e-05
  24  40.0958
  25  4.55742
  26  7.45276e-05
  27  9.24488e-07
  28  0.123071
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.052e+01  9.846e+01  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  2.676e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.521e-01  1.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.000e-02  9.245e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 2.01e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692477/likelihoodResults_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.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) = 1097.28232686
delta logL = 0.00806687206432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1097.26879282
delta logL = 0.0216009106618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.540       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6496       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84906       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1097.269     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      311 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.649        127.09        .11793E-03    .41935E-04
   2  Index         3.6331        6.7577        .97633E-02    .41372E-05
   3  Normalizat    .10000E-01    .19690        .84521E-02** at limit **
   4  Prefactor     .84895        .10971        .12466E-03    .43296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6487
  Index      = 3.63306
  Normalizat = 0.01
  Prefactor  = 0.848949
 **********
 **   18 **HESSE 
 **********

 FCN=   1097.269     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.649        106.25        .47172E-05   -1.5025    
   2  Index         3.6331        4.0051        .39053E-03   -.27691    
   3  Normalizat    .10000E-01    .19692        .16904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84895        .10972        .49864E-05   -.97948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10443e-09
Minuit parameter uncertainties:
  1  70.5264
  2  4.73283
  3  1.28998e-05
  4  0.109752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692477': 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) = 1097.26878409
delta logL = 0.0216096403606

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.165e+01  7.053e+01  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  3.633e+00  4.733e+00  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  5.508e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.489e-01  1.098e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.000e-02  1.290e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 41.355 24.150

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/692477/cmap_HighResolution_640569601_641174401_4FGL_J0245.4+2408_weekly_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-01', job_status='DONE', photon_flux_upper_limit='2.01e-06', time_completed='2021-07-05 03:05:31.767680', job_id='692477', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625479531.77', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.16e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='664' AND source_name='4FGL J0245.4+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 03:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 692477: <4FGL_J0245.4+2408_weekly_bin664> in cluster <slac> Done

Job <4FGL_J0245.4+2408_weekly_bin664> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul  5 02:51:23 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 02:51:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 02:51:24 2021
Terminated at Mon Jul  5 03:05:38 2021
Results reported at Mon Jul  5 03:05:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_weekly_bin664 41.3545 24.1498 640569601 641174401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0245.4+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   431.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             193.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

