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

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

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

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

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

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


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

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='575969', job_status='RUN', time_executed='2021-07-04 20:11:56.249682', time_epoch_executed='1625454716.25' WHERE source_name='4FGL J0231.8+1322' and cadence='weekly' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575969

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575969/ft1_4FGL_J0231.8+1322_weekly_bin664.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575969/ft2_4FGL_J0231.8+1322_weekly_bin664.fits


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

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

Done.
real 7.26
user 6.11
sys 0.28

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

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

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

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

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

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

Working on file /scratch/kocevski/575969/ft2_4FGL_J0231.8+1322_weekly_bin664.fits
.....................!
real 30.34
user 28.83
sys 0.37

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

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/575969/ltcube_640569601_641174401_4FGL_J0231.8+1322_weekly_bin664.fits
.....................!
real 196.45
user 186.39
sys 5.14

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

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

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

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/575969/ft1_filtered_4FGL_J0231.8+1322_weekly_bin664.fits........................!
real 33.18
user 28.30
sys 1.27

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.284       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    57.890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    330.30       1.0000         .10000E-03   10000.    
    16 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.324       1.0000         .10000E-03   10000.    
    19 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28542E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2704       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.6947       1.0000         .10000E-03   10000.    
    28 'norm      '    24.194       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.6027       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10085E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76944       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=   1146.972     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     5358 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    68.125        .28796E-05** at limit **
   2  Prefactor     27.279        58.222        .96208E-06   -.18317E-04
   3  Prefactor     .10000E-03    29.686        .15768E-06** at limit **
   4  norm          57.889        55.167       -.38642E-06   -.13647E-04
   5  Prefactor     .10000E-03    128.64       -.56461E-05** at limit **
   6  Prefactor     8.9315        14.152        .32343E-06   -.27703E-04
   7  Prefactor     .10000E-03    83.047        .15382E-06** at limit **
   8  Prefactor    10000.0        1545.9        .10360E-04** at limit **
   9  Prefactor     .10000E-03    67.736        .23425E-05** at limit **
  10  Prefactor     .10000E-03    296.17        .99757E-05** at limit **
  11  Prefactor    10000.0        8066.8        .34732E-04** at limit **
  12  Prefactor     .10000E-03    659.42       -.22107E-04** at limit **
  13  Prefactor     .10000E-03    151.44        .30612E-05** at limit **
  14  Prefactor     .10000E-03    37.813        .99893E-06** at limit **
  15  Prefactor     328.99        345.92        .52676E-05   -.51738E-05
  16  norm          .10000E-03    12.258       -.80174E-06** at limit **
  17  Prefactor     .10000E-03    359.28        .53015E-05** at limit **
  18  Prefactor     65.310        65.441       -.54685E-06   -.29338E-04
  19  norm          .10000E-03    38.676       -.87812E-06** at limit **
  20  Prefactor     .10000E-03    193.43        .44486E-05** at limit **
  21  Prefactor     .10000E-03    887.70        .11443E-04** at limit **
  22  Prefactor     .10000E-03    58.112       -.93978E-06** at limit **
  23  Prefactor     .10000E-03    56.719       -.19667E-05** at limit **
  24  Prefactor     7.2701        17.558        .94361E-06   -.46943E-04
  25  norm          .10000E-03    1382.5       -.75582E-05** at limit **
  26  norm          .10000E-03    14.683        .50829E-06** at limit **
  27  norm          5.6930        12.680        .12487E-05   -.53194E-04
  28  norm          24.195        26.094        .25419E-05   -.52715E-04
  29  Prefactor     .10000E-03    363.90        .48310E-05** at limit **
  30  Prefactor     4.6028        9.9415        .61851E-06   -.39278E-04
  31  Normalizat    .10000E-01    .43395        .13544E-05** at limit **
  32  Prefactor     .76943        .16743       -.25966E-05   -.43675E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 27.2787
  Prefactor  = 0.0001
  norm       = 57.8895
  Prefactor  = 0.0001
  Prefactor  = 8.93153
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 328.985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.3099
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.27007
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 5.69296
  norm       = 24.1954
  Prefactor  = 0.0001
  Prefactor  = 4.6028
  Normalizat = 0.01
  Prefactor  = 0.769432
 **********
 **   18 **HESSE 
 **********

 FCN=   1146.972     FROM HESSE     STATUS=OK           651 CALLS     6009 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    68.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.279        58.657        .76696E-04   -1.4663    
   3  Prefactor     .10000E-03    29.750        .18026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          57.889        55.210        .52727E-04   -1.4185    
   5  Prefactor     .10000E-03    128.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9315        14.164        .13411E-03   -1.5110    
   7  Prefactor     .10000E-03    83.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        1545.6        .21258E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    67.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    296.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        8067.0        .20755E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    663.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    152.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     328.99        346.21        .11191E-03   -1.2060    
  16  norm          .10000E-03    12.331        .11579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    360.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     65.310        65.723        .49655E-04   -1.4090    
  19  norm          .10000E-03    38.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    193.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    899.50        .21411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    58.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    56.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.2701        17.574        .74378E-03   -1.5169    
  25  norm          .10000E-03    95.358        .87183E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    14.676        .12666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.6930        12.713        .15643E-03   -1.5231    
  28  norm          24.195        26.280        .81437E-04   -1.4724    
  29  Prefactor     .10000E-03    364.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.6028        9.9267        .14593E-03   -1.5279    
  31  Normalizat    .10000E-01    2.2730        .11452E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .76943        .17577        .14936E-03   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11614e-11
Minuit parameter uncertainties:
  1  1.07108e-05
  2  58.781
  3  1.30043e-05
  4  55.2592
  5  4.6659e-05
  6  14.1698
  7  1.27698e-05
  8  0.00033697
  9  1.26967e-05
  10  0.000130894
  11  0.00228699
  12  0.00115175
  13  7.04778e-05
  14  1.05676e-05
  15  348.418
  16  2.86157e-05
  17  1.02427e-05
  18  65.7958
  19  7.55554e-06
  20  4.05573e-06
  21  0.000177355
  22  1.21224e-05
  23  2.23272e-05
  24  17.5865
  25  0.000846801
  26  2.86097e-05
  27  12.7187
  28  26.2926
  29  2.00223e-05
  30  9.93025
  31  3.13035e-05
  32  0.175894
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.152e-03  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:  7.694e-01  1.759e-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  3.130e-05  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.82e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575969/likelihoodResults_640569601_641174401_4FGL_J0231.8+1322_weekly_bin664.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1146.97174736
delta logL = -8.93486731002e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1146.97174735
delta logL = -8.9199231752e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6782       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76943       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.

 FCN=   1146.972     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      212 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1791.8        .90712E-02** at limit **
   2  Index         2.7631        6.0182        .50000       -.11971E-05
   3  Normalizat    .10000E-01    .43867        .32096    ** at limit **
   4  Prefactor     .76943        .15503        .43318E-01    .97021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 2.76305
  Normalizat = 0.01
  Prefactor  = 0.769433
 **********
 **   18 **HESSE 
 **********

 FCN=   1146.972     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    700.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7631        6.3705        .50000       -.46384    
   3  Normalizat    .10000E-01    1.1904        .11454E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76943        .12033        .14936E-03   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5174e-11
Minuit parameter uncertainties:
  1  0.0062039
  2  4.52986
  3  6.99634e-06
  4  0.120369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575969': 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) = 1146.9717384
delta logL = 2.2184849513e-08

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  6.204e-03  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  2.763e+00  4.530e+00  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:  7.694e-01  1.204e-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  6.996e-06  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/575969/cmap_HighResolution_640569601_641174401_4FGL_J0231.8+1322_weekly_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-01', job_status='DONE', photon_flux_upper_limit='6.82e-06', time_completed='2021-07-04 20:20:13.634090', job_id='575969', GAL2='0.77', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625455213.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='664' AND source_name='4FGL J0231.8+1322' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 20:20:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 575969: <4FGL_J0231.8+1322_weekly_bin664> in cluster <slac> Done

Job <4FGL_J0231.8+1322_weekly_bin664> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jul  4 20:06:32 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 20:06:37 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:37 2021
Terminated at Sun Jul  4 20:20:16 2021
Results reported at Sun Jul  4 20:20:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_weekly_bin664 37.9616 13.3692 640569601 641174401 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 :                                   468.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            824 sec.

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

