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


Performing analysis on: 4FGL_J0239.5+1326_weekly_bin641
RA = 39.8847, Dec = 13.4366
tmin = 626659201, tmax = 627264001
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='622107', job_status='RUN', time_executed='2021-07-04 22:43:01.856530', time_epoch_executed='1625463781.86' WHERE source_name='4FGL J0239.5+1326' and cadence='weekly' and bin_id='641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622107

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622107/ft1_4FGL_J0239.5+1326_weekly_bin641.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622107/ft1_4FGL_J0239.5+1326_weekly_bin641.fits outfile=/scratch/kocevski/622107/ft1_filteredMKT_4FGL_J0239.5+1326_weekly_bin641.fits ra=39.8847 dec=13.4366 rad=12.0 tmin=626659201.0 tmax=627264001.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.36
user 5.89
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.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/622107/ft1_filteredMKT_4FGL_J0239.5+1326_weekly_bin641.fits evtable="EVENTS" outfile="/scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.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.67
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits" evtable="EVENTS" scfile=/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits sctable="SC_DATA" outfile=/scratch/kocevski/622107/ltcube_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.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/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits
.....................!
real 28.22
user 27.39
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits sctable="SC_DATA" expcube=/scratch/kocevski/622107/ltcube_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.fits outfile=/scratch/kocevski/622107/expmap_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.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/622107/ltcube_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.fits
.....................!
real 192.41
user 186.22
sys 4.67

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

Setting source of interest to:
4FGL J0239.5+1326 @ 39.8847 13.4366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits scfile=/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits outfile=/scratch/kocevski/622107/cmap_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.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.8847 yref=13.4366 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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits scfile=/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits outfile=/scratch/kocevski/622107/cmap_HighResolution_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.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.8847 yref=13.4366 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.82
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622107/Model_4FGL_J0239.5+1326_weekly_bin641.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/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits........................!
real 20.91
user 16.23
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits', '/scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits', expMap='/scratch/kocevski/622107/expmap_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.fits', expCube='/scratch/kocevski/622107/ltcube_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622107/Model_4FGL_J0239.5+1326_weekly_bin641.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.5+1326'

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  3.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/622107/ft1_filtered_4FGL_J0239.5+1326_weekly_bin641.fits
Spacecraft file(s): /scratch/kocevski/622107/ft2_4FGL_J0239.5+1326_weekly_bin641.fits
Exposure map: /scratch/kocevski/622107/expmap_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.fits
Exposure cube: /scratch/kocevski/622107/ltcube_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622107/Model_4FGL_J0239.5+1326_weekly_bin641.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) = 325.974885482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.791       1.0000         .10000E-03   10000.    
     3 'norm      '    .31447E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68882E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29182E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57290E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40974E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    160.21       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28539E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .88884E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .98063E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    200.12       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.143       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12529E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    25 'norm      '    .45714E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    33.335       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22428E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .30463       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    30 'Prefactor '    61.800       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.3563       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .71099       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .31975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   320.8371     FROM MIGRAD    STATUS=CONVERGED    373 CALLS      852 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.550        40.890        .47643E-05    .11785E-03
   2  Prefactor     13.158        24.268        .54496E-05    .21427E-04
   3  norm          .10000E-03    13.480       -.98048E-07** at limit **
   4  Prefactor     .10000E-03    43.843       -.75550E-07** at limit **
   5  Prefactor     .10000E-03    5.2139       -.46443E-07** at limit **
   6  Prefactor     .10000E-03    70.428        .12556E-05** at limit **
   7  Prefactor     .10002E-03    1664.3        .22792E-03** at limit **
   8  Prefactor     .10000E-03    50.253        .95087E-07** at limit **
   9  Prefactor     .10000E-03    278.28        .82940E-05** at limit **
  10  Prefactor     .10000E-03    987.92        .10531E-04** at limit **
  11  Prefactor     .10000E-03    165.71       -.11454E-05** at limit **
  12  Prefactor     159.26        149.39        .11061E-06    .37735E-05
  13  Prefactor     .10000E-03    39.334        .69014E-09** at limit **
  14  Prefactor     .10000E-03    383.79        .60447E-05** at limit **
  15  norm          .10000E-03    65.847        .15264E-05** at limit **
  16  Prefactor     .10000E-03    1175.5        .15659E-04** at limit **
  17  Prefactor     .10000E-03    71.174        .19803E-06** at limit **
  18  norm          .10000E-03    421.25        .37363E-04** at limit **
  19  Prefactor     3.1966        1.0128         .0000         .0000    
  20  Prefactor     1987.3        2077.3       -.41597E-04   -.10506E-04
  21  Prefactor     3.1506        1.0132         .0000         .0000    
  22  Prefactor     2.5180        1.0212         .0000         .0000    
  23  Prefactor     .10000E-03    13.312       -.15098E-07** at limit **
  24  norm          1.0397        1.2531         .0000         .0000    
  25  norm          .10000E-03    36.185        .45203E-07** at limit **
  26  norm          32.698        57.728        .46061E-05   -.11036E-04
  27  Prefactor     .10000E-03    21.793        .19728E-06** at limit **
  28  norm          .10000E-03    257.35        .27474E-05** at limit **
  29  Prefactor     6.6702        1.0028         .0000         .0000    
  30  Prefactor     69.321        153.40        .22341E-04    .40831E-05
  31  Prefactor     1.3563        1.0925         .0000         .0000    
  32  Normalizat    .76874        .98075        .29244E-04    .17046E-04
  33  Prefactor     .28734        .60549       -.27779E-04    .23315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5504
  Prefactor  = 13.1577
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 159.264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 3.19661
  Prefactor  = 1987.29
  Prefactor  = 3.15065
  Prefactor  = 2.51803
  Prefactor  = 0.0001
  norm       = 1.03974
  norm       = 0.0001
  norm       = 32.6984
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.67016
  Prefactor  = 69.3213
  Prefactor  = 1.35625
  Normalizat = 0.768741
  Prefactor  = 0.287339
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   320.8371     FROM HESSE     STATUS=FAILED        81 CALLS      933 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.550        39.185        .12995E-02   -1.4163    
   2  Prefactor     13.158        21.026        .28000E-02   -1.4982    
   3  norm          .10000E-03    13.447        .98884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.928        .93628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.985        .91680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    1656.7        .35544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.058        .95043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    276.77        .65629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    986.61        .60982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    162.46        .92259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     159.26        141.19        .79645E-03   -1.3177    
  13  Prefactor     .10000E-03    38.839        .99409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    385.51        .91456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    65.917        .90720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1194.6        .57247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.542        .10528E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    420.31        .71407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     551.80        548.52         .0000       -1.5350    
  20  Prefactor     1987.3        11.022       -.41597E-04   -.64668    
  21  Prefactor     3.1506        1.0132         .0000       -1.5353    
  22  Prefactor     2.5180        1.0212         .0000       -1.5391    
  23  Prefactor     .10000E-03    .20571       -.15098E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0397        1.2531         .0000       -1.5504    
  25  norm          .10000E-03    .21387        .45203E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          32.698        .99054        .46061E-05   -1.4564    
  27  Prefactor     .10000E-03    .20571        .19728E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .27276        .27474E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.6702        1.0028         .0000       -1.5191    
  30  Prefactor     69.321        1.0587        .22341E-04   -1.4041    
  31  Prefactor     1.3563        1.0925         .0000       -1.5475    
  32  Normalizat    .76874        1.0897        .29244E-04   -1.0124    
  33  Prefactor     .28734        .60537       -.27779E-04   -1.2301    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.81227e-11
Minuit parameter uncertainties:
  1  39.2015
  2  21.0379
  3  1.61278e-06
  4  3.8232e-06
  5  4.33633e-07
  6  3.3601e-05
  7  0.012691
  8  2.96995e-06
  9  0.000739852
  10  0.000455
  11  0.000200819
  12  141.486
  13  6.00698e-07
  14  0.000546066
  15  5.53309e-05
  16  0.0021023
  17  0.000240357
  18  0.00253027
  19  1.01279
  20  11.0225
  21  1.01318
  22  1.02121
  23  1.37267e-07
  24  1.25317
  25  1.08026e-07
  26  0.990544
  27  1.37232e-07
  28  5.72002e-06
  29  1.00284
  30  1.05874
  31  1.09255
  32  1.12311
  33  0.619473
Done.

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

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  2.102e-03  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  2.873e-01  6.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  7.687e-01  1.123e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.885 13.437
Photon Flux Upper Limit: 4.61e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/622107/likelihoodResults_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.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) = 320.837104309
delta logL = -3.82784008934e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 320.837104309
delta logL = -3.82721088954e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   320.8371     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      206 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10207E-03    1292.0        .90715E-02** at limit **
   2  Index         2.1384        6.7635        .50000        .27450E-06
   3  Normalizat    .76876        .19145E-01    .63961E-01    .84621E-05
   4  Prefactor     .28733        .11176E-01    .59103E-01   -.46674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102071
  Index      = 2.13838
  Normalizat = 0.768759
  Prefactor  = 0.287327
 **********
 **   18 **HESSE 
 **********

 FCN=   320.8371     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      237 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10207E-03    7720.1        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1384        6.1998        .50000       -.60934    
   3  Normalizat    .76876        .43290E-01    .28295E-03   -1.0124    
   4  Prefactor     .28733        .25243E-01    .26166E-03   -1.2301    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57417e-08
Minuit parameter uncertainties:
  1  0.238754
  2  1504.19
  3  0.0432918
  4  0.0252438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622107': 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) = 320.837100479
delta logL = 2.17954720938e-09

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.021e-04  2.388e-01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.138e+00  1.504e+03  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  2.873e-01  2.524e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  7.688e-01  4.329e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.885 13.437

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/622107/cmap_HighResolution_626659201_627264001_4FGL_J0239.5+1326_weekly_bin641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-01', job_status='DONE', photon_flux_upper_limit='4.61e-06', time_completed='2021-07-04 22:49:43.170420', job_id='622107', GAL2='0.29', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1625464183.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.29', dlogl='2.18e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='641' AND source_name='4FGL J0239.5+1326' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 22:49:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 622107: <4FGL_J0239.5+1326_weekly_bin641> in cluster <slac> Done

Job <4FGL_J0239.5+1326_weekly_bin641> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 22:42:16 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 22:42:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 22:42:17 2021
Terminated at Sun Jul  4 22:49:47 2021
Results reported at Sun Jul  4 22:49:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_weekly_bin641 39.8847 13.4366 626659201 627264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.5+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   362.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             444.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   448 sec.
    Turnaround time :                            451 sec.

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

