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


Performing analysis on: 4FGL_J0245.4+2408_weekly_bin616
RA = 41.3545, Dec = 24.1498
tmin = 611539201, tmax = 612144001
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='692396', job_status='RUN', time_executed='2021-07-05 14:40:01.184926', time_epoch_executed='1625521201.18' WHERE source_name='4FGL J0245.4+2408' and cadence='weekly' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692396

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692396/ft1_4FGL_J0245.4+2408_weekly_bin616.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692396/ft1_4FGL_J0245.4+2408_weekly_bin616.fits outfile=/scratch/kocevski/692396/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin616.fits ra=41.3545 dec=24.1498 rad=12.0 tmin=611539201.0 tmax=612144001.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 8.52
user 7.13
sys 0.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.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/692396/ft1_filteredMKT_4FGL_J0245.4+2408_weekly_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/692396/ft1_filtered_4FGL_J0245.4+2408_weekly_bin616.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.98
user 0.37
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692396/ft1_filtered_4FGL_J0245.4+2408_weekly_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/692396/ltcube_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.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/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits
.....................!
real 27.04
user 25.88
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692396/ft1_filtered_4FGL_J0245.4+2408_weekly_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/692396/ltcube_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.fits outfile=/scratch/kocevski/692396/expmap_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.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/692396/ltcube_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.fits
.....................!
real 196.46
user 186.67
sys 4.96

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/692396/ft1_filtered_4FGL_J0245.4+2408_weekly_bin616.fits scfile=/scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits outfile=/scratch/kocevski/692396/cmap_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.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 0.77
user 0.39
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692396/ft1_filtered_4FGL_J0245.4+2408_weekly_bin616.fits scfile=/scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits outfile=/scratch/kocevski/692396/cmap_HighResolution_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.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.75
user 0.41
sys 0.24

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692396/ft1_filtered_4FGL_J0245.4+2408_weekly_bin616.fits', '/scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits', expMap='/scratch/kocevski/692396/expmap_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.fits', expCube='/scratch/kocevski/692396/ltcube_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692396/Model_4FGL_J0245.4+2408_weekly_bin616.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/692396/ft1_filtered_4FGL_J0245.4+2408_weekly_bin616.fits
Spacecraft file(s): /scratch/kocevski/692396/ft2_4FGL_J0245.4+2408_weekly_bin616.fits
Exposure map: /scratch/kocevski/692396/expmap_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.fits
Exposure cube: /scratch/kocevski/692396/ltcube_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692396/Model_4FGL_J0245.4+2408_weekly_bin616.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) = 26811.60409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.362       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.898       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12488E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0930       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.281       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19016E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.0896       1.0000         .10000E-03   10000.    
    21 'norm      '    9.1674       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .40709       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7075       1.0000         .10000E-03   10000.    
    25 'norm      '    20.327       1.0000         .10000E-03   10000.    
    26 'norm      '    10.858       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3368       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0198       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=   26811.58     FROM MIGRAD    STATUS=CONVERGED   1230 CALLS     4551 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3173        .26005E-02** at limit **
   2  Prefactor     37.334        73.294        .65569E-04    .27742E-06
   3  Prefactor     .10000E-03    2.3014        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.8756        .36285E-03** at limit **
   5  Prefactor     .10000E-03    1.5721        .18142E-02** at limit **
   6  norm          .10000E-03    13.811        .18142E-02** at limit **
   7  Prefactor     12.907        28.242        .11153E-03    .15901E-04
   8  Prefactor     .10000E-03    2.9104        .18142E-02** at limit **
   9  Prefactor     .10000E-03    19.990        .18142E-02** at limit **
  10  Prefactor     .10000E-03    9.8863        .36285E-03** at limit **
  11  norm          1.7274        1.0426        .12498E-03   -.41842E-04
  12  Prefactor     .10000E-03    3.7250        .18142E-02** at limit **
  13  norm          1.0926        .38497        .56231E-04   -.86776E-03
  14  Prefactor     .10000E-03    21.107        .18142E-02** at limit **
  15  Prefactor     13.289        12.017        .10991E-03   -.46752E-04
  16  Prefactor     .10000E-03    10.397        .16385    ** at limit **
  17  Prefactor     1.8247        5.5651        .30918E-03    .10296E-04
  18  Prefactor     .10000E-03    5.2133        .18142E-02** at limit **
  19  Prefactor     .10000E-03    11.615        .18142E-02** at limit **
  20  norm          5.0897        4.2362        .89111E-03   -.13881E-04
  21  norm          9.1743        15.590        .13237E-03   -.27827E-04
  22  Prefactor     .10000E-03    25.865        .18142E-02** at limit **
  23  Prefactor     .40707        3.9677        .21771E-02    .19330E-03
  24  Prefactor     5.7073        4.8594        .16813E-03   -.11360E-04
  25  norm          20.328        2.7488        .88838E-04   -.18530E-03
  26  norm          10.857        7.7117        .12158E-03   -.82284E-05
  27  Normalizat    1.3367        .17044        .41590E-03   -.20644E-03
  28  Prefactor     1.0198        .61293E-01    .17629E-03   -.26786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 37.3344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72745
  Prefactor  = 0.0001
  norm       = 1.09264
  Prefactor  = 0.0001
  Prefactor  = 13.2892
  Prefactor  = 0.0001
  Prefactor  = 1.82465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.08975
  norm       = 9.17432
  Prefactor  = 0.0001
  Prefactor  = 0.407073
  Prefactor  = 5.70731
  norm       = 20.3277
  norm       = 10.8569
  Normalizat = 1.3367
  Prefactor  = 1.01984
 **********
 **   18 **HESSE 
 **********

 FCN=   26811.58     FROM HESSE     STATUS=OK           503 CALLS     5054 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3233        .52010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.334        73.288        .13114E-04   -1.4485    
   3  Prefactor     .10000E-03    2.3021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8758        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.907        28.218        .44614E-05   -1.4989    
   8  Prefactor     .10000E-03    2.9119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8870        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7274        1.0425        .49993E-05   -1.5445    
  12  Prefactor     .10000E-03    3.7259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0926        .38492        .22492E-05   -1.5499    
  14  Prefactor     .10000E-03    21.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.289        12.016        .43965E-05   -1.4979    
  16  Prefactor     .10000E-03    10.398        .16383       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8247        5.5634        .12367E-04   -1.5438    
  18  Prefactor     .10000E-03    5.2142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.0897        4.2361        .35644E-04   -1.5257    
  21  norm          9.1743        15.587        .52948E-05   -1.5102    
  22  Prefactor     .10000E-03    25.865        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .40707        3.9557        .87083E-04   -1.5580    
  24  Prefactor     5.7073        4.8593        .67253E-05   -1.5230    
  25  norm          20.328        2.7454        .35535E-05   -1.4806    
  26  norm          10.857        7.7116        .48634E-05   -1.5049    
  27  Normalizat    1.3367        .17050        .16636E-04   -.82477    
  28  Prefactor     1.0198        .61322E-01    .35258E-04   -.92071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79559e-10
Minuit parameter uncertainties:
  1  2.95811e-05
  2  73.4652
  3  1.5865e-06
  4  5.37336e-05
  5  2.37059e-06
  6  7.71325e-06
  7  28.2474
  8  4.30801e-06
  9  4.88568e-06
  10  2.18848e-05
  11  1.04252
  12  9.70683e-06
  13  0.38492
  14  3.19317e-05
  15  12.0184
  16  0.000137285
  17  5.56499
  18  7.62156e-06
  19  7.41142e-07
  20  4.23634
  21  15.5934
  22  5.41446e-06
  23  2.53781
  24  4.85964
  25  2.74542
  26  7.7123
  27  0.170575
  28  0.0613258
Done.

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

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.825e+00  5.565e+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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.020e+00  6.133e-02  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.337e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 41.355 24.150
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692396/likelihoodResults_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.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) = 26811.4896269
delta logL = 0.0907770852136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26811.4896056
delta logL = 0.0907983502439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8233       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3608       1.0000          .0000       10.000    
     3 'Normalizat'    1.3231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0223       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26811.49     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      270 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8349        6.7772        .15460E-02    .24816E-02
   2  Index         3.3577        2.4722        .11011E-01    .65832E-05
   3  Normalizat    1.3230        .16487        .41775E-03    .16982E-04
   4  Prefactor     1.0223        .61031E-01    .17610E-03    .12137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83488
  Index      = 3.35765
  Normalizat = 1.32303
  Prefactor  = 1.02234
 **********
 **   18 **HESSE 
 **********

 FCN=   26811.49     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8349        4.7617        .30920E-03   -1.5437    
   2  Index         3.3577        1.7822        .44044E-03   -.33468    
   3  Normalizat    1.3230        .16513        .16710E-04   -.82882    
   4  Prefactor     1.0223        .60905E-01    .70439E-05   -.91988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33886e-12
Minuit parameter uncertainties:
  1  4.76272
  2  1.82749
  3  0.165199
  4  0.060909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692396': 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) = 26811.4896025
delta logL = 0.0908015217065

Extracting fit parameters...

4FGL J0245.4+2408
   Spectrum: PowerLaw
272    Prefactor:  1.835e+00  4.763e+00  1.000e-04  1.000e+04 ( 1.000e-12)
273        Index:  3.358e+00  1.827e+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:  1.022e+00  6.091e-02  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.323e+00  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/692396/cmap_HighResolution_611539201_612144001_4FGL_J0245.4+2408_weekly_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-07-05 15:25:57.217489', job_id='692396', GAL2='1.02', fit_tolerance='1e-08', EG2='1.32', EG='1.34', time_epoch_completed='1625523957.22', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.08e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='616' AND source_name='4FGL J0245.4+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 15:25:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 692396: <4FGL_J0245.4+2408_weekly_bin616> in cluster <slac> Done

Job <4FGL_J0245.4+2408_weekly_bin616> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul  5 02:51:15 2021
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 02:51:18 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:18 2021
Terminated at Mon Jul  5 15:26:06 2021
Results reported at Mon Jul  5 15:26:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0245.4+2408_weekly_bin616 41.3545 24.1498 611539201 612144001 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 :                                   2740.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             67.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   45288 sec.
    Turnaround time :                            45291 sec.

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

