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


Performing analysis on: 4FGL_J0231.8+1322_weekly_bin507
RA = 37.9616, Dec = 13.3692
tmin = 545616001, tmax = 546220801
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='575673', job_status='RUN', time_executed='2021-07-04 20:11:05.786950', time_epoch_executed='1625454665.79' WHERE source_name='4FGL J0231.8+1322' and cadence='weekly' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575673

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575673/ft1_4FGL_J0231.8+1322_weekly_bin507.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575673/ft1_4FGL_J0231.8+1322_weekly_bin507.fits outfile=/scratch/kocevski/575673/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin507.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=545616001.0 tmax=546220801.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 9.47
user 8.37
sys 0.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.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/575673/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.42
user 0.37
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/575673/ltcube_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.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/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits
.....................!
real 27.56
user 26.45
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/575673/ltcube_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.fits outfile=/scratch/kocevski/575673/expmap_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.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/575673/ltcube_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.fits
.....................!
real 196.80
user 185.96
sys 5.49

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

Setting source of interest to:
4FGL J0231.8+1322 @ 37.9616 13.3692

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits scfile=/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits outfile=/scratch/kocevski/575673/cmap_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.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=37.9616 yref=13.3692 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.84
user 0.40
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits scfile=/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits outfile=/scratch/kocevski/575673/cmap_HighResolution_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.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=37.9616 yref=13.3692 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.69
user 0.43
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575673/Model_4FGL_J0231.8+1322_weekly_bin507.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/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits.......................!
real 39.41
user 34.42
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits', '/scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits', expMap='/scratch/kocevski/575673/expmap_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.fits', expCube='/scratch/kocevski/575673/ltcube_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575673/Model_4FGL_J0231.8+1322_weekly_bin507.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0231.8+1322'

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  4.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/575673/ft1_filtered_4FGL_J0231.8+1322_weekly_bin507.fits
Spacecraft file(s): /scratch/kocevski/575673/ft2_4FGL_J0231.8+1322_weekly_bin507.fits
Exposure map: /scratch/kocevski/575673/expmap_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.fits
Exposure cube: /scratch/kocevski/575673/ltcube_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575673/Model_4FGL_J0231.8+1322_weekly_bin507.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) = 1946.64541983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.616       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .90151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    432.84       1.0000         .10000E-03   10000.    
     9 'Prefactor '    89.802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.235       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.689       1.0000         .10000E-03   10000.    
    19 'norm      '    40.129       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    27.533       1.0000         .10000E-03   10000.    
    26 'norm      '    21.197       1.0000         .10000E-03   10000.    
    27 'norm      '    25.074       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1677.1       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.3532       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .33366       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92139       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1945.756     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     5114 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.361        .11779E-04** at limit **
   2  Prefactor     .10000E-03    19.690       -.30197E-05** at limit **
   3  Prefactor     19.619        24.366       -.10783E-05   -.50168E-05
   4  norm          .10000E-03    7.1410       -.11900E-06** at limit **
   5  Prefactor     .10000E-03    290.61        .90699E-04** at limit **
   6  Prefactor     .90400        7.1837       -.11441E-05   -.42568E-03
   7  Prefactor     .10000E-03    33.627       -.71521E-05** at limit **
   8  Prefactor     432.83        556.66       -.84204E-05   -.46709E-05
   9  Prefactor     89.815        57.803        .56531E-05   -.15468E-04
  10  Prefactor     .10000E-03    74.179       -.26964E-04** at limit **
  11  Prefactor     .10000E-03    943.56       -.96919E-03** at limit **
  12  Prefactor     .10000E-03    25.244       -.94419E-05** at limit **
  13  Prefactor     49.221        44.802       -.42604E-05   -.10185E-04
  14  Prefactor     .10000E-03    6.8215       -.71125E-07** at limit **
  15  Prefactor     .10000E-03    94.543        .42905E-04** at limit **
  16  norm          4.0861        3.3227       -.28359E-06   -.79689E-03
  17  Prefactor     .10000E-03    59.165       -.56237E-05** at limit **
  18  Prefactor     32.706        40.865        .55720E-06   -.25731E-04
  19  norm          40.119        38.530       -.23040E-06   -.30644E-04
  20  Prefactor     .10000E-03    69.909       -.29158E-04** at limit **
  21  Prefactor     .10000E-03    60.597       -.11110E-04** at limit **
  22  Prefactor     .10000E-03    306.70        .51409E-04** at limit **
  23  Prefactor     .10000E-03    49.619        .38789E-04** at limit **
  24  Prefactor     .10000E-03    3.2309        .25185E-07** at limit **
  25  norm          27.562        74.924        .34097E-04   -.77061E-05
  26  norm          21.200        20.120       -.37833E-06   -.44641E-04
  27  norm          25.072        10.747       -.33618E-06   -.15320E-03
  28  norm          .10000E-03    4.6027       -.13848E-06** at limit **
  29  Prefactor     1676.5        2021.3       -.16606E-03   -.37298E-05
  30  Prefactor     5.3493        8.9524        .83121E-05   -.11634E-03
  31  Normalizat    .33330        .52953        .90404E-05   -.18854E-05
  32  Prefactor     .92151        .22061       -.22719E-05   -.17432E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.903999
  Prefactor  = 0.0001
  Prefactor  = 432.827
  Prefactor  = 89.8153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.2214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.08614
  Prefactor  = 0.0001
  Prefactor  = 32.7061
  norm       = 40.1191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.5616
  norm       = 21.2
  norm       = 25.072
  norm       = 0.0001
  Prefactor  = 1676.53
  Prefactor  = 5.34934
  Normalizat = 0.3333
  Prefactor  = 0.92151
 **********
 **   18 **HESSE 
 **********

 FCN=   1945.756     FROM HESSE     STATUS=OK           643 CALLS     5757 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.619        24.353        .90431E-04   -1.4822    
   4  norm          .10000E-03    7.1420        .11513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    290.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .90400        6.9345        .22163E-03   -1.5518    
   7  Prefactor     .10000E-03    33.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     432.83        556.68        .98282E-04   -1.1516    
   9  Prefactor     89.815        57.523        .42402E-04   -1.3810    
  10  Prefactor     .10000E-03    74.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    943.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.221        44.700        .57150E-04   -1.4304    
  14  Prefactor     .10000E-03    6.8221        .11253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    94.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0861        3.3153        .69143E-04   -1.5304    
  17  Prefactor     .10000E-03    59.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.706        39.332        .70085E-04   -1.4564    
  19  norm          40.119        38.632        .63276E-04   -1.4440    
  20  Prefactor     .10000E-03    69.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    60.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    306.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    49.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2360        .77424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          27.562        74.942        .76350E-04   -1.4657    
  26  norm          21.200        20.157        .86997E-04   -1.4787    
  27  norm          25.072        10.775        .79998E-04   -1.4706    
  28  norm          .10000E-03    4.6043        .92424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1676.5        2021.4        .53531E-04   -.72709    
  30  Prefactor     5.3493        9.0069        .16108E-03   -1.5245    
  31  Normalizat    .33330        .47893        .65903E-03   -1.2090    
  32  Prefactor     .92151        .21710        .18130E-03   -.95393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54102e-10
Minuit parameter uncertainties:
  1  3.40098e-06
  2  6.87165e-06
  3  24.365
  4  8.65884e-06
  5  5.16273e-07
  6  5.00803
  7  1.08408e-05
  8  563.867
  9  57.559
  10  1.73141e-05
  11  1.21315e-06
  12  5.90431e-05
  13  44.7305
  14  5.76938e-07
  15  9.24918e-05
  16  3.31545
  17  1.45442e-05
  18  39.3628
  19  38.6558
  20  3.12144e-05
  21  8.70784e-06
  22  0.000130665
  23  1.90664e-05
  24  2.4356e-06
  25  75.1994
  26  20.1635
  27  10.7761
  28  1.33811e-05
  29  2135.92
  30  9.00921
  31  0.484991
  32  0.217308
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  5.904e-05  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  9.215e-01  2.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  3.333e-01  4.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 6.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575673/likelihoodResults_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.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) = 1945.75597341
delta logL = -0.000188112246178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1945.75578612
delta logL = -8.27385747471e-07

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1053.6        .18142E-01** at limit **
   2  Index         2.6021        6.2514        .83787E-01    .70217E-08
   3  Normalizat    .33330        .83012E-01    .65902E-03    .14443E-04
   4  Prefactor     .92151        .37506E-01    .18130E-03    .54758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60206
  Normalizat = 0.3333
  Prefactor  = 0.921511
 **********
 **   18 **HESSE 
 **********

 FCN=   1945.756     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.391        .21663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6021        6.2448        .33515E-02   -.50019    
   3  Normalizat    .33330        .42499        .26361E-04   -1.2090    
   4  Prefactor     .92151        .19373        .36260E-04   -.95393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72169e-12
Minuit parameter uncertainties:
  1  2.38191e-05
  2  805.08
  3  0.429197
  4  0.193879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575673': 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) = 1945.75578529
delta logL = 4.53565007774e-09

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  2.382e-05  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.602e+00  8.051e+02  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  9.215e-01  1.939e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  3.333e-01  4.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.962 13.369

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/575673/cmap_HighResolution_545616001_546220801_4FGL_J0231.8+1322_weekly_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-02', job_status='DONE', photon_flux_upper_limit='6.41e-07', time_completed='2021-07-04 20:21:55.801167', job_id='575673', GAL2='0.92', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1625455315.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.54e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='507' AND source_name='4FGL J0231.8+1322' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 20:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 575673: <4FGL_J0231.8+1322_weekly_bin507> in cluster <slac> Done

Job <4FGL_J0231.8+1322_weekly_bin507> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jul  4 20:06:01 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 20:06:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 20:06:02 2021
Terminated at Sun Jul  4 20:21:58 2021
Results reported at Sun Jul  4 20:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_weekly_bin507 37.9616 13.3692 545616001 546220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0231.8+1322 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   537.00 sec.
    Max Memory :                                 1080 MB
    Average Memory :                             218.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

