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 192 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17013
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0231.8+1322_weekly_bin589
RA = 37.9616, Dec = 13.3692
tmin = 595209601, tmax = 595814401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='575829', job_status='RUN', time_executed='2021-07-04 20:12:06.328488', time_epoch_executed='1625454726.33' WHERE source_name='4FGL J0231.8+1322' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575829

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575829/ft1_4FGL_J0231.8+1322_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575829/ft1_4FGL_J0231.8+1322_weekly_bin589.fits outfile=/scratch/kocevski/575829/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin589.fits ra=37.9616 dec=13.3692 rad=12.0 tmin=595209601.0 tmax=595814401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 7.09
user 5.53
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/575829/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/575829/ltcube_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits
.....................!
real 29.46
user 28.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/575829/ltcube_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits outfile=/scratch/kocevski/575829/expmap_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/575829/ltcube_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits
.....................!
real 196.62
user 188.01
sys 4.56

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/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits scfile=/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits outfile=/scratch/kocevski/575829/cmap_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits scfile=/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits outfile=/scratch/kocevski/575829/cmap_HighResolution_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.76
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575829/Model_4FGL_J0231.8+1322_weekly_bin589.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits.......!
real 18.04
user 13.19
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits', '/scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits', expMap='/scratch/kocevski/575829/expmap_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits', expCube='/scratch/kocevski/575829/ltcube_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575829/Model_4FGL_J0231.8+1322_weekly_bin589.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/575829/ft1_filtered_4FGL_J0231.8+1322_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/575829/ft2_4FGL_J0231.8+1322_weekly_bin589.fits
Exposure map: /scratch/kocevski/575829/expmap_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits
Exposure cube: /scratch/kocevski/575829/ltcube_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575829/Model_4FGL_J0231.8+1322_weekly_bin589.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37937       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.770       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .18777E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    494.96       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29613E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.079       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8288       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14100E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.051       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18202       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9562       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2214       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4704       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1065       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1829       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1506       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5180       1.0000         .10000E-03   10000.    
    24 'Prefactor '    88.914       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    26 'norm      '    1.9882       1.0000         .10000E-03   10000.    
    27 'norm      '    .52029       1.0000         .10000E-03   10000.    
    28 'norm      '    4.6270       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .67607       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .52244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   94.09072     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     1016 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6809.6       -.12142E-03** at limit **
   2  Prefactor     20.391        66.004       -.59693E-05    .38542E-04
   3  Prefactor     .10000E-03    15.825        .15663E-06** at limit **
   4  norm          .10000E-03    32.014        .56934E-07** at limit **
   5  Prefactor     .10000E-03    75.063        .13135E-07** at limit **
   6  Prefactor     .10000E-03    29.802        .47699E-06** at limit **
   7  Prefactor     .10002E-03    1042.8        .38684E-04** at limit **
   8  Prefactor     .10000E-03    1861.8       -.11707E-05** at limit **
   9  Prefactor     .10000E-03    154.32        .17438E-06** at limit **
  10  Prefactor     .10010E-03    8002.9        .91116E-04** at limit **
  11  Prefactor     .10000E-03    6466.1        .52730E-05** at limit **
  12  Prefactor     .10000E-03    1150.7       -.15037E-05** at limit **
  13  Prefactor     2081.8        2185.8       -.20922E-04   -.18865E-06
  14  Prefactor     .10001E-03    8400.2        .60359E-04** at limit **
  15  Prefactor     1.9562        1.0371         .0000         .0000    
  16  norm          1.7400        1.0487         .0000         .0000    
  17  Prefactor     3.2214        1.0126         .0000         .0000    
  18  Prefactor     .10000E-03    261.95       -.13185E-05** at limit **
  19  norm          4.1065        1.0076         .0000         .0000    
  20  Prefactor     3.1966        1.0128         .0000         .0000    
  21  Prefactor     6.1829        1.0033         .0000         .0000    
  22  Prefactor     3.1506        1.0132         .0000         .0000    
  23  Prefactor     2.5180        1.0212         .0000         .0000    
  24  Prefactor     89.047        103.59       -.27743E-05   -.90899E-05
  25  norm          1.0397        1.2531         .0000         .0000    
  26  norm          .10000E-03    341.70        .26845E-05** at limit **
  27  norm          .10000E-03    510.64       -.99932E-07** at limit **
  28  norm          4.6270        1.0060         .0000         .0000    
  29  Prefactor     6.6702        1.0028         .0000         .0000    
  30  Prefactor     .10000E-03    964.84       -.41510E-05** at limit **
  31  Normalizat    .10000E-01    .75762        .78508E-05** at limit **
  32  Prefactor     .51752        .38710       -.87156E-06    .35255E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 20.3908
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100095
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2081.84
  Prefactor  = 0.000100014
  Prefactor  = 1.95624
  norm       = 1.74003
  Prefactor  = 3.22138
  Prefactor  = 0.0001
  norm       = 4.10648
  Prefactor  = 3.19661
  Prefactor  = 6.1829
  Prefactor  = 3.15065
  Prefactor  = 2.51803
  Prefactor  = 89.0472
  norm       = 1.03974
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.62701
  Prefactor  = 6.67016
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.517524
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   94.09072     FROM HESSE     STATUS=FAILED        67 CALLS     1083 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    458.75        .10768       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.391        50.423        .22520E-02   -1.4805    
   3  Prefactor     .10000E-03    15.897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    30.841        .10142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    75.079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    1064.8        .46104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1858.6        .50919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    148.81        .99212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10010E-03    8032.8        .24971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6471.8        .77160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1187.3        .90934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2081.8        2187.6        .12536E-02   -.62320    
  14  Prefactor     .10001E-03    8394.3        .98953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     569.71        567.62         .0000       -1.5428    
  16  norm          1.7400        1.0487         .0000       -1.5444    
  17  Prefactor     3.2214        1.0126         .0000       -1.5349    
  18  Prefactor     .10000E-03    .10575       -.13185E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.1065        1.0076         .0000       -1.5303    
  20  Prefactor     3.1966        1.0128         .0000       -1.5350    
  21  Prefactor     6.1829        1.0033         .0000       -1.5211    
  22  Prefactor     3.1506        1.0132         .0000       -1.5353    
  23  Prefactor     2.5180        1.0212         .0000       -1.5391    
  24  Prefactor     89.047        1.0008       -.27743E-05   -1.3818    
  25  norm          1.0397        1.2531         .0000       -1.5504    
  26  norm          .10000E-03    .13492        .26845E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .32224       -.99932E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.6270        1.0060         .0000       -1.5278    
  29  Prefactor     6.6702        1.0028         .0000       -1.5191    
  30  Prefactor     .10000E-03    .35818       -.41510E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .25505        .78508E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .51752        .86237       -.87156E-06   -1.1118    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.56485e-11
Minuit parameter uncertainties:
  1  0.00198998
  2  50.5283
  3  2.5958e-06
  4  4.14875e-06
  5  2.66739e-06
  6  4.9762e-05
  7  0.0103314
  8  0.00100255
  9  1.60972e-05
  10  0.0551172
  11  0.00291922
  12  0.000876489
  13  2310.24
  14  0.0231511
  15  1.0371
  16  1.04876
  17  1.01258
  18  1.93666e-06
  19  1.00761
  20  1.01279
  21  1.00331
  22  1.01318
  23  1.02121
  24  1.00076
  25  1.25317
  26  5.52625e-06
  27  1.06138e-06
  28  1.00596
  29  1.00284
  30  1.30271e-05
  31  1.40743e-07
  32  0.885786
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  8.765e-04  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:  5.175e-01  8.858e-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:  1.000e-02  1.407e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 3.86e-05 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575829/likelihoodResults_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 94.0907199403
delta logL = -4.0133819823e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 94.0907252163
delta logL = -9.28938726474e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96267E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6782       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51775       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=   94.09072     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10390E-03    6823.6        .18144E-01** at limit **
   2  Index         2.5044        6.0391        .50000        .70193E-07
   3  Normalizat    .10000E-01    .47970E-02    .49755E-02** at limit **
   4  Prefactor     .51752        .23559E-01    .12747E-03   -.99953E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001039
  Index      = 2.50436
  Normalizat = 0.01
  Prefactor  = 0.517522
 **********
 **   18 **HESSE 
 **********

 FCN=   94.09072     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10390E-03    9925.0        .34835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5044        8.5900        .50000       -.52259    
   3  Normalizat    .10000E-01    .24526E-01    .99509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51752        .53278E-01    .25493E-04   -1.1118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12111e-10
Minuit parameter uncertainties:
  1  0.571931
  2  12841.6
  3  6.15594e-07
  4  0.0532834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575829': 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) = 94.0907159251
delta logL = 1.79343828677e-09

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.039e-04  5.719e-01  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.504e+00  1.284e+04  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:  5.175e-01  5.328e-02  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:  1.000e-02  6.156e-07  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/575829/cmap_HighResolution_595209601_595814401_4FGL_J0231.8+1322_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e+00', job_status='DONE', photon_flux_upper_limit='3.86e-05', time_completed='2021-07-04 20:19:33.551452', job_id='575829', GAL2='0.52', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625455173.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.52', dlogl='1.79e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='589' AND source_name='4FGL J0231.8+1322' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 20:19:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 575829: <4FGL_J0231.8+1322_weekly_bin589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_weekly_bin589 37.9616 13.3692 595209601 595814401 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 :                                   358.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             232.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

