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 25 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 = 17175
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0238.2+1531_weekly_bin665
RA = 39.5617, Dec = 15.5175
tmin = 641174401, tmax = 641779201
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='603529', job_status='RUN', time_executed='2021-07-04 21:43:12.155184', time_epoch_executed='1625460192.16' WHERE source_name='4FGL J0238.2+1531' and cadence='weekly' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603529

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603529/ft1_4FGL_J0238.2+1531_weekly_bin665.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603529/ft1_4FGL_J0238.2+1531_weekly_bin665.fits outfile=/scratch/kocevski/603529/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin665.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=641174401.0 tmax=641779201.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.24
user 5.60
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.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/603529/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin665.fits evtable="EVENTS" outfile="/scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.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.91
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/603529/ltcube_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.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/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits
.....................!
real 28.44
user 27.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/603529/ltcube_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.fits outfile=/scratch/kocevski/603529/expmap_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.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/603529/ltcube_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.fits
.....................!
real 194.54
user 185.13
sys 5.46

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

Setting source of interest to:
4FGL J0238.2+1531 @ 39.5617 15.5175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits scfile=/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits outfile=/scratch/kocevski/603529/cmap_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.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.5617 yref=15.5175 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.68
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits scfile=/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits outfile=/scratch/kocevski/603529/cmap_HighResolution_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.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.5617 yref=15.5175 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.01
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603529/Model_4FGL_J0238.2+1531_weekly_bin665.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/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits......................!
real 41.26
user 33.97
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits', '/scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits', expMap='/scratch/kocevski/603529/expmap_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.fits', expCube='/scratch/kocevski/603529/ltcube_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603529/Model_4FGL_J0238.2+1531_weekly_bin665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.2+1531'

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.956e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/603529/ft1_filtered_4FGL_J0238.2+1531_weekly_bin665.fits
Spacecraft file(s): /scratch/kocevski/603529/ft2_4FGL_J0238.2+1531_weekly_bin665.fits
Exposure map: /scratch/kocevski/603529/expmap_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.fits
Exposure cube: /scratch/kocevski/603529/ltcube_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603529/Model_4FGL_J0238.2+1531_weekly_bin665.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) = 1612.79834664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.517       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .22722E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    80.566       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2243.2       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23261E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    262.84       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .45868E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    122.82       1.0000         .10000E-03   10000.    
    26 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.0103       1.0000         .10000E-03   10000.    
    28 'norm      '    .10431E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11946E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    18.170       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+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=   1612.416     FROM MIGRAD    STATUS=CONVERGED   1712 CALLS     6385 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.324        75.120        .46512E-04    .14311E-04
   2  Prefactor    10000.0        5002.6        .29346E-02** at limit **
   3  Prefactor     .10000E-03    78.780        .18142E-02** at limit **
   4  norm          .10000E-03    50.518        .18142E-02** at limit **
   5  Prefactor    10000.0        1357.6        .20680E-02** at limit **
   6  Prefactor     .10000E-03    8.6077        .11479E-02** at limit **
   7  norm          .10022E-03    9917.6        .18142E-02** at limit **
   8  Prefactor     80.615        79.888        .44746E-04    .15067E-04
   9  Prefactor    10000.0        8403.8        .18195E-02** at limit **
  10  Prefactor     .10000E-03    100.37        .18142E-02** at limit **
  11  Prefactor     .10000E-03    152.14        .18142E-02** at limit **
  12  Prefactor     2104.4        7896.0        .47946E-04   -.31062E-05
  13  Prefactor     .10000E-03    102.72        .18142E-02** at limit **
  14  Prefactor     .10000E-03    20.549        .17784E-02** at limit **
  15  Prefactor     .10000E-03    16.506        .15936E-02** at limit **
  16  Prefactor     .10000E-03    81.744        .18142E-02** at limit **
  17  norm          .10000E-03    8.5424        .11474E-02** at limit **
  18  Prefactor     .10000E-03    210.87        .18142E-02** at limit **
  19  Prefactor     .10000E-03    19.998        .17536E-02** at limit **
  20  norm          .10000E-03    89.964        .18142E-02** at limit **
  21  Prefactor     .10002E-03    384.64        .18142E-02** at limit **
  22  Prefactor     262.67        286.98        .12502E-03   -.64065E-05
  23  Prefactor     .10000E-03    29.724        .18142E-02** at limit **
  24  Prefactor     1.2687        201.33        .17805        .25508E-04
  25  norm          122.72        69.626        .18159E-03   -.43981E-05
  26  norm          .10000E-03    34.995        .18142E-02** at limit **
  27  norm          6.0169        10.303        .15291E-03    .14331E-04
  28  norm          .10000E-03    48.841        .18142E-02** at limit **
  29  Prefactor     .10019E-03    715.82        .18142E-02** at limit **
  30  Prefactor     .10000E-03    3.8319        .76665E-03** at limit **
  31  Prefactor     .10000E-03    16.016        .15585E-02** at limit **
  32  Prefactor     18.157        40.273        .93961E-04    .13581E-04
  33  Normalizat    .10000E-01    .35094        .11035E-01** at limit **
  34  Prefactor     1.0121        .12942        .14058E-03    .36209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.3236
  Prefactor  = 10000
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.000100216
  Prefactor  = 80.6151
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2104.37
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 262.666
  Prefactor  = 0.0001
  Prefactor  = 1.2687
  norm       = 122.718
  norm       = 0.0001
  norm       = 6.01692
  norm       = 0.0001
  Prefactor  = 0.000100195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1574
  Normalizat = 0.01
  Prefactor  = 1.0121
 **********
 **   18 **HESSE 
 **********

 FCN=   1612.416     FROM HESSE     STATUS=OK           702 CALLS     7087 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.324        75.121        .93024E-05   -1.3982    
   2  Prefactor    10000.0        5003.0        .58692E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    78.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    50.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1356.3        .41360E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6082        .22958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10022E-03    9917.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     80.615        79.889        .89491E-05   -1.3910    
   9  Prefactor    10000.0        8402.1        .36389E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    100.37        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    152.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2104.4        8038.9        .95893E-05   -.61766    
  13  Prefactor     .10000E-03    102.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.549        .35567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.506        .31871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    81.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.5426        .22948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    210.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.999        .35073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    89.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    384.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     262.67        286.91        .25003E-04   -1.2452    
  23  Prefactor     .10000E-03    29.724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2687        2049.5        .10873E-01   -1.5483    
  25  norm          122.72        69.962        .72636E-05   -1.3488    
  26  norm          .10000E-03    35.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.0169        10.304        .61162E-05   -1.5217    
  28  norm          .10000E-03    48.879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10019E-03    715.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.8320        .15333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    16.022        .31170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     18.157        40.286        .37585E-05   -1.4855    
  33  Normalizat    .10000E-01    .35102        .22070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.0121        .12961        .56233E-05   -.92327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33998e-08
Minuit parameter uncertainties:
  1  75.2175
  2  0.627474
  3  0.00050722
  4  7.21757e-05
  5  0.0502949
  6  1.69831e-05
  7  0.134004
  8  79.9953
  9  0.0974479
  10  0.000471581
  11  0.000144602
  12  13100
  13  0.000493045
  14  3.72445e-05
  15  8.54345e-06
  16  0.000500987
  17  1.30531e-05
  18  0.000704146
  19  1.78038e-05
  20  0.000325826
  21  0.00568336
  22  288.477
  23  6.40268e-05
  24  105.837
  25  70.0093
  26  3.92807e-05
  27  10.3075
  28  0.000269847
  29  0.0239159
  30  1.77056e-06
  31  1.84759e-05
  32  40.3459
  33  5.03098e-06
  34  0.129647
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  5.010e-04  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.012e+00  1.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.000e-02  5.031e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 2.12e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603529/likelihoodResults_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.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) = 1612.41628867
delta logL = -6.53359170428e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1612.41622757
delta logL = -4.23686515205e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8646       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+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=   1612.416     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      287 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10697E-03    44.499        .18142E-01** at limit **
   2  Index         2.7314        5.7739        .50000        .55651E-05
   3  Normalizat    .10000E-01    .56778E-03    .11033E-01** at limit **
   4  Prefactor     1.0121        .43250E-02    .14059E-03   -.13302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106967
  Index      = 2.73137
  Normalizat = 0.01
  Prefactor  = 1.0121
 **********
 **   18 **HESSE 
 **********

 FCN=   1612.416     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10697E-03    323.59        .29273E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7314        7.9436        .50000       -.47094    
   3  Normalizat    .10000E-01    .42135E-02    .22065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0121        .11777E-01    .56235E-05   -.92327    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49026e-09
Minuit parameter uncertainties:
  1  0.095481
  2  687.41
  3  2.38654e-08
  4  0.0117768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603529': 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) = 1612.41622369
delta logL = -3.49869878846e-07

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.070e-04  9.548e-02  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.731e+00  6.874e+02  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.012e+00  1.178e-02  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.000e-02  2.387e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.562 15.518

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/603529/cmap_HighResolution_641174401_641779201_4FGL_J0238.2+1531_weekly_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-01', job_status='DONE', photon_flux_upper_limit='2.12e-06', time_completed='2021-07-04 21:52:22.859875', job_id='603529', GAL2='1.01', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625460742.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-3.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='665' AND source_name='4FGL J0238.2+1531' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 21:52:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 603529: <4FGL_J0238.2+1531_weekly_bin665> in cluster <slac> Done

Job <4FGL_J0238.2+1531_weekly_bin665> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 21:41:51 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 21:41:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 21:41:53 2021
Terminated at Sun Jul  4 21:52:24 2021
Results reported at Sun Jul  4 21:52:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_weekly_bin665 39.5617 15.5175 641174401 641779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.2+1531 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

