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 2 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_J0238.6+1637_weekly_bin664
RA = 39.668, Dec = 16.6179
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='615180', job_status='RUN', time_executed='2021-07-04 22:18:57.968897', time_epoch_executed='1625462337.97' WHERE source_name='4FGL J0238.6+1637' and cadence='weekly' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/615180

Creating custom pfile directory:
/scratch/kocevski/615180/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/615180/ft1_4FGL_J0238.6+1637_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/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/615180/ft1_4FGL_J0238.6+1637_weekly_bin664.fits outfile=/scratch/kocevski/615180/ft1_filteredMKT_4FGL_J0238.6+1637_weekly_bin664.fits ra=39.668 dec=16.6179 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.95
user 6.09
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_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/615180/ft1_filteredMKT_4FGL_J0238.6+1637_weekly_bin664.fits evtable="EVENTS" outfile="/scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_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 0.99
user 0.37
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/615180/ltcube_640569601_641174401_4FGL_J0238.6+1637_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/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits
.....................!
real 27.48
user 26.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/615180/ltcube_640569601_641174401_4FGL_J0238.6+1637_weekly_bin664.fits outfile=/scratch/kocevski/615180/expmap_640569601_641174401_4FGL_J0238.6+1637_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/615180/ltcube_640569601_641174401_4FGL_J0238.6+1637_weekly_bin664.fits
.....................!
real 194.09
user 185.18
sys 4.94

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

Setting source of interest to:
4FGL J0238.6+1637 @ 39.668 16.6179

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits scfile=/scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits outfile=/scratch/kocevski/615180/cmap_640569601_641174401_4FGL_J0238.6+1637_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=39.668 yref=16.6179 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.04
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits scfile=/scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits outfile=/scratch/kocevski/615180/cmap_HighResolution_640569601_641174401_4FGL_J0238.6+1637_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=39.668 yref=16.6179 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.89
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/615180/Model_4FGL_J0238.6+1637_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/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits........................!
real 32.25
user 27.72
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits', '/scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits', expMap='/scratch/kocevski/615180/expmap_640569601_641174401_4FGL_J0238.6+1637_weekly_bin664.fits', expCube='/scratch/kocevski/615180/ltcube_640569601_641174401_4FGL_J0238.6+1637_weekly_bin664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/615180/Model_4FGL_J0238.6+1637_weekly_bin664.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.6+1637'

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.740e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
254        alpha:  2.090e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
255         beta:  9.194e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  8.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/615180/ft1_filtered_4FGL_J0238.6+1637_weekly_bin664.fits
Spacecraft file(s): /scratch/kocevski/615180/ft2_4FGL_J0238.6+1637_weekly_bin664.fits
Exposure map: /scratch/kocevski/615180/expmap_640569601_641174401_4FGL_J0238.6+1637_weekly_bin664.fits
Exposure cube: /scratch/kocevski/615180/ltcube_640569601_641174401_4FGL_J0238.6+1637_weekly_bin664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/615180/Model_4FGL_J0238.6+1637_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) = 1157.6571751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27975E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30477E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    64.654       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9819       1.0000         .10000E-03   10000.    
     7 'norm      '    .21119E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.227       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    323.94       1.0000         .10000E-03   10000.    
    17 'norm      '    .11299E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10281E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13346E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28815E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .94128E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.9797       1.0000         .10000E-03   10000.    
    27 'norm      '    18.633       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.7805       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .22334E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    75.726       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80752       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1151.813     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     4555 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7556       -.12056E-04** at limit **
   2  Prefactor     .10161E-03    2.2744        .23403E-06** at limit **
   3  Prefactor     .10018E-03    35.060        .44943E-04** at limit **
   4  norm          64.613        3.9588       -.17297E-06   -.10136E-02
   5  Prefactor     .10032E-03    75.943       -.83817E-04** at limit **
   6  Prefactor     7.9892        1.5351       -.14922E-05   -.83083E-03
   7  norm          .57275E-02    110.51       -.41553E-04    .15254E-02
   8  Prefactor     .10509E-03    47.222        .11377E-04** at limit **
   9  Prefactor    10000.0        4.0771        .52336E-05** at limit **
  10  Prefactor     .10495E-03    51.682        .47425E-04** at limit **
  11  Prefactor     .15145E-03    65.902        .17210E-04** at limit **
  12  Prefactor    10000.0        8.9761        .13107E-04   -.48925E-03
  13  Prefactor     .10503E-03    3.8801        .30910E-05** at limit **
  14  Prefactor     20.033        26.430       -.96528E-05    .49029E-02
  15  Prefactor     .10097E-03    26.731       -.34485E-04** at limit **
  16  Prefactor     323.93        1.8455       -.21375E-06    .23626E-02
  17  norm          .10000E-03    13.724        .27201E-05** at limit **
  18  Prefactor     .16327E-03    66.001        .17618E-04** at limit **
  19  norm          .10196E-03    16.620        .26859E-04** at limit **
  20  Prefactor     .12124E-03    84.037       -.29440E-04** at limit **
  21  Prefactor     .11113E-03    158.76       -.22851E-04** at limit **
  22  Prefactor     .21558E-03    304.76       -.94210E-05** at limit **
  23  Prefactor     .10063E-03    51.167       -.67123E-04** at limit **
  24  norm          .10878E-03    6.5893        .44429E-05** at limit **
  25  norm          .10000E-03    27.360        .34992E-05** at limit **
  26  norm          3.9822        1.4404        .36268E-05    .14337E-02
  27  norm          18.621        1.5774       -.42991E-06    .47655E-03
  28  Prefactor     .13088E-03    85.683       -.38523E-04** at limit **
  29  Prefactor     4.7818        10.071        .12978E-04    .14160E-02
  30  Prefactor     .10000E-03    18.151       -.49537E-05** at limit **
  31  Prefactor     75.716        1.3225       -.90577E-07   -.10859E-03
  32  Normalizat    .10000E-01    .21674        .90162E-04** at limit **
  33  Prefactor     .80760        .11771       -.13817E-04    .21111E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000101606
  Prefactor  = 0.000100182
  norm       = 64.6129
  Prefactor  = 0.000100316
  Prefactor  = 7.98924
  norm       = 0.00572753
  Prefactor  = 0.000105093
  Prefactor  = 10000
  Prefactor  = 0.000104953
  Prefactor  = 0.000151453
  Prefactor  = 10000
  Prefactor  = 0.000105033
  Prefactor  = 20.0326
  Prefactor  = 0.000100973
  Prefactor  = 323.935
  norm       = 0.0001
  Prefactor  = 0.000163271
  norm       = 0.00010196
  Prefactor  = 0.000121235
  Prefactor  = 0.000111134
  Prefactor  = 0.000215576
  Prefactor  = 0.000100626
  norm       = 0.000108784
  norm       = 0.0001
  norm       = 3.9822
  norm       = 18.6208
  Prefactor  = 0.000130883
  Prefactor  = 4.78182
  Prefactor  = 0.0001
  Prefactor  = 75.7163
  Normalizat = 0.01
  Prefactor  = 0.807604
 **********
 **   18 **HESSE 
 **********

 FCN=   1151.813     FROM HESSE     STATUS=OK           749 CALLS     5304 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    157.75        .10709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10161E-03    740.70        .10692E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10018E-03    39.698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          64.613        51.710        .12477E-02   -1.4099    
   5  Prefactor     .10032E-03    113.21        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9892        14.237        .35480E-02   -1.5143    
   7  norm          .57275E-02    2263.8        .91282E-02   -1.5693    
   8  Prefactor     .10509E-03    90.078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        1407.5        .10614E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10495E-03    68.650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15145E-03    339.81        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        7438.2        .94714E-02    1.5696    
  13  Prefactor     .10503E-03    570.78        .10545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.033        84.998        .22264E-02   -1.4813    
  15  Prefactor     .10097E-03    34.471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     323.93        347.40        .56483E-03   -1.2089    
  17  norm          .10000E-03    13.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16327E-03    353.16        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10196E-03    35.839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12124E-03    220.77        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11113E-03    795.64        .90896E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .21558E-03    607.01        .91662E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10063E-03    56.032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10878E-03    72.790        .10401       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    27.350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.9822        11.767        .50545E-02   -1.5309    
  27  norm          18.621        23.426        .23196E-02   -1.4845    
  28  Prefactor     .13088E-03    211.33        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.7818        10.345        .46003E-02   -1.5271    
  30  Prefactor     .10000E-03    17.839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     75.716        39.884        .11536E-02   -1.3965    
  32  Normalizat    .10000E-01    .20333        .22137       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .80760        .14486        .31456E-01   -.99449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97701e-06
Minuit parameter uncertainties:
  1  0.00083711
  2  0.069855
  3  0.00538467
  4  51.7465
  5  0.0119919
  6  14.2434
  7  7.43975
  8  0.0429029
  9  0.21519
  10  0.0369222
  11  0.265976
  12  9.02031
  13  0.108239
  14  82.7291
  15  0.011589
  16  349.664
  17  3.42438e-06
  18  0.300753
  19  0.0167707
  20  0.13745
  21  0.190833
  22  0.535253
  23  0.0118587
  24  0.0506323
  25  0.000221681
  26  11.7735
  27  23.4373
  28  0.162148
  29  10.3486
  30  1.75387e-05
  31  39.8977
  32  5.14869e-07
  33  0.144924
Done.

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

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.000e-04  3.424e-06  1.000e-04  1.000e+04 ( 1.000e-11)
254        alpha:  2.090e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
255         beta:  9.194e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  8.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.076e-01  1.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.000e-02  5.149e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.668 16.618
Photon Flux Upper Limit: 3.11e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/615180/likelihoodResults_640569601_641174401_4FGL_J0238.6+1637_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) = 1151.81347042
delta logL = -0.000358509092848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1151.81311297
delta logL = -1.05970229924e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13606E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1388       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80752       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1151.813     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    73.032        .90712E-02** at limit **
   2  alpha         2.1999        3.4024        .41708       -.21023E-04
   3  Normalizat    .10000E-01    .18406        .22137    ** at limit **
   4  Prefactor     .80760        .11971        .31456E-01   -.44761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 2.1999
  Normalizat = 0.01
  Prefactor  = 0.807604
 **********
 **   18 **HESSE 
 **********

 FCN=   1151.813     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    18.158        .14087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1999        3.4770        .16683       -.12033    
   3  Normalizat    .10000E-01    .19958        .89165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80760        .11414        .13902E-03   -.99449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47564e-10
Minuit parameter uncertainties:
  1  0.000638672
  2  2.49004
  3  2.46643e-06
  4  0.114172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/615180': 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) = 1151.81311102
delta logL = 8.92522393769e-07

Extracting fit parameters...

4FGL J0238.6+1637
   Spectrum: LogParabola
253         norm:  1.000e-04  6.387e-04  1.000e-04  1.000e+04 ( 1.000e-11)
254        alpha:  2.200e+00  2.490e+00  0.000e+00  5.000e+00 ( 1.000e+00)
255         beta:  9.194e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
256           Eb:  8.889e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.076e-01  1.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.000e-02  2.466e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.668 16.618

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/615180/cmap_HighResolution_640569601_641174401_4FGL_J0238.6+1637_weekly_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-03', job_status='DONE', photon_flux_upper_limit='3.11e-06', time_completed='2021-07-04 22:27:03.905778', job_id='615180', GAL2='0.81', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625462823.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='664' AND source_name='4FGL J0238.6+1637' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 22:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 615180: <4FGL_J0238.6+1637_weekly_bin664> in cluster <slac> Done

Job <4FGL_J0238.6+1637_weekly_bin664> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Jul  4 22:17:42 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 22:17:43 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:17:43 2021
Terminated at Sun Jul  4 22:27:07 2021
Results reported at Sun Jul  4 22:27:07 2021

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   461.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            565 sec.

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

