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


Performing analysis on: 4FGL_J0239.7+0415_weekly_bin589
RA = 39.9403, Dec = 4.2643
tmin = 595209601, tmax = 595814401
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='627976', job_status='RUN', time_executed='2021-07-04 23:05:00.597668', time_epoch_executed='1625465100.6' WHERE source_name='4FGL J0239.7+0415' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627976

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627976/ft1_4FGL_J0239.7+0415_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627976/ft1_4FGL_J0239.7+0415_weekly_bin589.fits outfile=/scratch/kocevski/627976/ft1_filteredMKT_4FGL_J0239.7+0415_weekly_bin589.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=595209601.0 tmax=595814401.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.14
user 5.50
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.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/627976/ft1_filteredMKT_4FGL_J0239.7+0415_weekly_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.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 2.99
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/627976/ltcube_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.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/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits
.....................!
real 29.15
user 26.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/627976/ltcube_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.fits outfile=/scratch/kocevski/627976/expmap_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.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/627976/ltcube_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.fits
.....................!
real 196.74
user 185.04
sys 4.88

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

Setting source of interest to:
4FGL J0239.7+0415 @ 39.9403 4.2643

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits scfile=/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits outfile=/scratch/kocevski/627976/cmap_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.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=39.9403 yref=4.2643 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.33
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits scfile=/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits outfile=/scratch/kocevski/627976/cmap_HighResolution_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.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=39.9403 yref=4.2643 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.51
user 0.41
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627976/Model_4FGL_J0239.7+0415_weekly_bin589.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/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits..........................!
real 26.87
user 15.53
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits', '/scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits', expMap='/scratch/kocevski/627976/expmap_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.fits', expCube='/scratch/kocevski/627976/ltcube_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/627976/Model_4FGL_J0239.7+0415_weekly_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.7+0415'

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  7.975e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/627976/ft1_filtered_4FGL_J0239.7+0415_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/627976/ft2_4FGL_J0239.7+0415_weekly_bin589.fits
Exposure map: /scratch/kocevski/627976/expmap_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.fits
Exposure cube: /scratch/kocevski/627976/ltcube_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/627976/Model_4FGL_J0239.7+0415_weekly_bin589.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 370.763031616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 366.455195111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .57311E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13715E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    482.15       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .86434E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35760       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2639       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .62857E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.530       1.0000         .10000E-03   10000.    
    20 'norm      '    .57255E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5577       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6270       1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.053       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .32162E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1322       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .53808       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   366.1190     FROM MIGRAD    STATUS=CONVERGED    365 CALLS      791 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.760       -.25890E-08** at limit **
   2  norm          .10000E-03    30.918       -.44414E-08** at limit **
   3  Prefactor     .10000E-03    29.716        .96738E-06** at limit **
   4  norm          .10000E-03    1.5671       -.18187E-08** at limit **
   5  Prefactor     .10000E-03    899.17        .23009E-05** at limit **
   6  Prefactor     .10000E-03    183.90        .87153E-06** at limit **
   7  Prefactor     .10017E-03    8156.5        .10128E-03** at limit **
   8  Prefactor     59.170        46.544       -.13633E-05    .24238E-04
   9  Prefactor     .10000E-03    1449.1        .18477E-05** at limit **
  10  Prefactor     2135.0        2214.9       -.61089E-04    .83771E-05
  11  Prefactor     .10001E-03    8414.4        .58450E-05** at limit **
  12  Prefactor     1.9562        1.0371         .0000         .0000    
  13  Prefactor     3.2214        1.0126         .0000         .0000    
  14  Prefactor     .10000E-03    214.32        .23435E-06** at limit **
  15  norm          4.1065        1.0076         .0000         .0000    
  16  Prefactor     64.429        47.757       -.11897E-05    .79310E-05
  17  Prefactor     6.1829        1.0033         .0000         .0000    
  18  Prefactor     .10000E-03    55.492        .69668E-08** at limit **
  19  Prefactor     43.508        66.376        .29038E-06    .49058E-04
  20  norm          .10000E-03    297.63       -.43491E-07** at limit **
  21  norm          .10000E-03    475.46       -.94560E-06** at limit **
  22  Prefactor     .10000E-03    25.831       -.52455E-08** at limit **
  23  norm          4.6270        1.0060         .0000         .0000    
  24  Prefactor     49.353        117.18       -.25315E-04    .20046E-04
  25  Prefactor     .10000E-03    146.48        .21333E-04** at limit **
  26  Prefactor     .10000E-03    689.97       -.21892E-06** at limit **
  27  Normalizat    .10000E-01    .43775        .17110E-05** at limit **
  28  Prefactor     .52991        .25730        .72252E-05   -.10834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100167
  Prefactor  = 59.1702
  Prefactor  = 0.000100002
  Prefactor  = 2135.01
  Prefactor  = 0.000100009
  Prefactor  = 1.95624
  Prefactor  = 3.22138
  Prefactor  = 0.0001
  norm       = 4.10648
  Prefactor  = 64.4291
  Prefactor  = 6.1829
  Prefactor  = 0.0001
  Prefactor  = 43.5085
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.62701
  Prefactor  = 49.3534
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.529908
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   366.1190     FROM HESSE     STATUS=FAILED        53 CALLS      844 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    29.551        .95040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5552        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    910.66        .46681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    181.01        .91707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10017E-03    8159.4        .25744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.170        41.279        .13065E-02   -1.4168    
   9  Prefactor     .10000E-03    1442.1        .11833E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2135.0        2211.3        .13939E-02   -.61016    
  11  Prefactor     .10001E-03    8418.9        .10675E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     569.71        567.62         .0000       -1.5428    
  13  Prefactor     3.2214        1.0126         .0000       -1.5349    
  14  Prefactor     .10000E-03    .78510E-01    .23435E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1065        1.0076         .0000       -1.5303    
  16  Prefactor     64.429        1.0038       -.11897E-05   -1.4101    
  17  Prefactor     6.1829        1.0033         .0000       -1.5211    
  18  Prefactor     .10000E-03    .21774        .69668E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     43.508        .99982        .29038E-06   -1.4388    
  20  norm          .10000E-03    .21648       -.43491E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .18172       -.94560E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20571       -.52455E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6270        1.0060         .0000       -1.5278    
  24  Prefactor     49.353        1.0241       -.25315E-04   -1.4302    
  25  Prefactor     .10000E-03    .21080        .21333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .30072       -.21892E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .25748        .17110E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .52991        .87654        .72252E-05   -1.1062    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.8009e-11
Minuit parameter uncertainties:
  1  1.41859e-06
  2  4.00107e-07
  3  6.97335e-05
  4  1.74956e-08
  5  0.00297886
  6  0.000598833
  7  0.0750614
  8  41.2991
  9  0.00380926
  10  2335.69
  11  0.0187778
  12  1.0371
  13  1.01258
  14  8.84733e-07
  15  1.00761
  16  1.00378
  17  1.00331
  18  2.46189e-07
  19  0.999824
  20  8.98314e-06
  21  1.19794e-05
  22  1.73246e-07
  23  1.00596
  24  1.0241
  25  5.8549e-05
  26  3.44184e-05
  27  3.90368e-07
  28  0.900603
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 366.119002386

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  8.847e-07  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  5.299e-01  9.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.000e-02  3.904e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.940 4.264
Photon Flux Upper Limit: 3.68e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627976/likelihoodResults_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.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): 102
logL (Free Index) = 366.119024797
delta logL = -2.24113542799e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 366.119002645
delta logL = -2.58441275491e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11416E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8796       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52991       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+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=   366.1190     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      286 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11280E-03    434.88        .18142E-01** at limit **
   2  Index         3.4662        6.2312        .50000        .10831E-05
   3  Normalizat    .10000E-01    .24494E-02    .67073E-02** at limit **
   4  Prefactor     .52991        .15673E-01    .17315E-03    .12147E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112799
  Index      = 3.46623
  Normalizat = 0.01
  Prefactor  = 0.529908
 **********
 **   18 **HESSE 
 **********

 FCN=   366.1190     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11280E-03    6416.3        .23287E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4662        7.3961        .50000       -.31178    
   3  Normalizat    .10000E-01    .18119E-01    .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52991        .42624E-01    .69261E-05   -1.1062    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10708e-08
Minuit parameter uncertainties:
  1  0.401593
  2  6065.11
  3  8.49799e-09
  4  0.0426267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627976': 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): 102
logL (Free Index) = 366.119002518
delta logL = -1.31620936372e-07

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.128e-04  4.016e-01  1.000e-04  1.000e+04 ( 1.000e-12)
278        Index:  3.466e+00  6.065e+03  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  5.299e-01  4.263e-02  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.000e-02  8.498e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.940 4.264

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/627976/cmap_HighResolution_595209601_595814401_4FGL_J0239.7+0415_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-01', job_status='DONE', photon_flux_upper_limit='3.68e-06', time_completed='2021-07-04 23:12:18.506832', job_id='627976', GAL2='0.53', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625465538.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.53', dlogl='-1.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='589' AND source_name='4FGL J0239.7+0415' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 23:12:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 627976: <4FGL_J0239.7+0415_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0239.7+0415_weekly_bin589> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 23:02:18 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 23:02:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 23:02:19 2021
Terminated at Sun Jul  4 23:12:23 2021
Results reported at Sun Jul  4 23:12:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_weekly_bin589 39.9403 4.2643 595209601 595814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.7+0415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   361.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             321.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            605 sec.

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

