aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0231.8+1322_weekly_bin717
RA = 37.9616, Dec = 13.3692
tmin = 672624001, tmax = 673228801
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='367614', job_status='RUN', time_executed='2022-05-03 01:05:05.356724', time_epoch_executed='1651565105.36' WHERE source_name='4FGL J0231.8+1322' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367614

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367614/ft1_4FGL_J0231.8+1322_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits


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

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

Done.
real 6.31
user 6.03
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.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/367614/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367614/ft1_filtered_4FGL_J0231.8+1322_weekly_bin717.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.55
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367614/ft1_filtered_4FGL_J0231.8+1322_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367614/ltcube_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.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/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits
.....................!
real 31.81
user 31.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367614/ft1_filtered_4FGL_J0231.8+1322_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367614/ltcube_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.fits outfile=/scratch/kocevski/367614/expmap_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.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/367614/ltcube_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.fits
.....................!
real 191.43
user 185.67
sys 5.32

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/367614/ft1_filtered_4FGL_J0231.8+1322_weekly_bin717.fits scfile=/scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits outfile=/scratch/kocevski/367614/cmap_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.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.60
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367614/ft1_filtered_4FGL_J0231.8+1322_weekly_bin717.fits scfile=/scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits outfile=/scratch/kocevski/367614/cmap_HighResolution_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.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.59
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367614/ft1_filtered_4FGL_J0231.8+1322_weekly_bin717.fits', '/scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits', expMap='/scratch/kocevski/367614/expmap_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.fits', expCube='/scratch/kocevski/367614/ltcube_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367614/Model_4FGL_J0231.8+1322_weekly_bin717.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/367614/ft1_filtered_4FGL_J0231.8+1322_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367614/ft2_4FGL_J0231.8+1322_weekly_bin717.fits
Exposure map: /scratch/kocevski/367614/expmap_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367614/ltcube_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367614/Model_4FGL_J0231.8+1322_weekly_bin717.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) = 941.950655707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.626       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.230       1.0000         .10000E-03   10000.    
     4 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4498       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.233       1.0000         .10000E-03   10000.    
     7 'Prefactor '    309.33       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15077E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.986       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8936.4       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12993E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    349.67       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11894E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    794.33       1.0000         .10000E-03   10000.    
    26 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    29.426       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10019E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .61879       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=   941.9053     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4344 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.286        29.232       -.38629E-06   -.40731E-04
   2  Prefactor     27.627        23.638       -.45013E-06   -.82683E-04
   3  Prefactor     42.229        17.496       -.25298E-06   -.14471E-03
   4  norm          .10000E-03    13.197        .30414E-07** at limit **
   5  Prefactor     7.4505        37.956        .85772E-07   -.35440E-04
   6  Prefactor     19.234        16.329       -.89550E-07   -.15531E-03
   7  Prefactor     309.31        219.27       -.67991E-07   -.89111E-04
   8  Prefactor     .10000E-03    556.42        .78489E-06** at limit **
   9  Prefactor     .10000E-03    36.534        .11385E-06** at limit **
  10  Prefactor     .10000E-03    428.22        .65684E-06** at limit **
  11  Prefactor     .10000E-03    165.27       -.25022E-06** at limit **
  12  Prefactor     .10000E-03    186.30        .41929E-06** at limit **
  13  Prefactor     .10000E-03    402.01        .52305E-06** at limit **
  14  Prefactor     .10000E-03    36.834        .12066E-07** at limit **
  15  Prefactor     .10000E-03    220.29        .63594E-06** at limit **
  16  norm          .10000E-03    16.732        .44220E-06** at limit **
  17  Prefactor     .10000E-03    787.29       -.55753E-06** at limit **
  18  Prefactor     34.033        72.544       -.30516E-05   -.59467E-04
  19  norm          .10000E-03    120.82        .12525E-06** at limit **
  20  Prefactor     8939.3        9306.9       -.20174E-04   -.53278E-06
  21  Prefactor     .10001E-03    7410.6       -.83686E-06** at limit **
  22  Prefactor     349.63        624.17        .92190E-07    .43116E-06
  23  Prefactor     .10005E-03    6753.5       -.39964E-05** at limit **
  24  Prefactor     .10000E-03    12.649        .12744E-06** at limit **
  25  norm          794.16        695.74       -.13917E-06    .16416E-05
  26  norm          .10000E-03    37.056        .28200E-07** at limit **
  27  norm          29.423        26.449        .68809E-07   -.28851E-04
  28  norm          .10000E-03    16.260        .93654E-08** at limit **
  29  Prefactor     .10001E-03    1282.9       -.21346E-05** at limit **
  30  Prefactor     .10000E-03    9.5720        .19326E-07** at limit **
  31  Normalizat    .10000E-01    .55103        .32721E-04** at limit **
  32  Prefactor     .61893        .18971       -.44072E-05   -.13940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2865
  Prefactor  = 27.6274
  Prefactor  = 42.2287
  norm       = 0.0001
  Prefactor  = 7.45048
  Prefactor  = 19.234
  Prefactor  = 309.308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 34.0326
  norm       = 0.0001
  Prefactor  = 8939.31
  Prefactor  = 0.000100013
  Prefactor  = 349.63
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  norm       = 794.156
  norm       = 0.0001
  norm       = 29.4228
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.618926
 **********
 **   18 **HESSE 
 **********

 FCN=   941.9053     FROM HESSE     STATUS=OK           633 CALLS     4977 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.286        29.380        .10988E-03   -1.4979    
   2  Prefactor     27.627        23.703        .76221E-04   -1.4656    
   3  Prefactor     42.229        17.594        .61688E-04   -1.4407    
   4  norm          .10000E-03    13.207        .10889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4505        38.538        .14694E-03   -1.5162    
   6  Prefactor     19.234        16.347        .91327E-04   -1.4831    
   7  Prefactor     309.31        219.70        .11552E-03   -1.2172    
   8  Prefactor     .10000E-03    556.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.546        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    428.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    165.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    186.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    403.14        .20467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    220.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.716        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    787.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.033        73.317        .68738E-04   -1.4541    
  19  norm          .10000E-03    120.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8939.3        9311.3        .64873E-04    .90733    
  21  Prefactor     .10001E-03    7410.2        .20580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     349.63        624.27        .10888E-03   -1.1946    
  23  Prefactor     .10005E-03    6752.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.661        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          794.16        695.77        .73961E-04   -.99944    
  26  norm          .10000E-03    37.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          29.423        26.495        .73858E-04   -1.4623    
  28  norm          .10000E-03    16.260        .12092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    1282.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.5777        .92765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    1.2820        .12549E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .61893        .19824        .18894E-03   -1.0680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10575e-10
Minuit parameter uncertainties:
  1  29.4124
  2  23.7113
  3  17.5958
  4  8.92132e-06
  5  33.9238
  6  16.3503
  7  220.294
  8  0.000665036
  9  2.27999e-05
  10  0.00143262
  11  0.000395534
  12  0.000766451
  13  0.00118719
  14  8.48358e-06
  15  0.000246569
  16  0.000178324
  17  0.00241429
  18  73.5124
  19  7.78714e-05
  20  6528.94
  21  0.0173387
  22  636.96
  23  0.0275596
  24  3.18841e-05
  25  703.685
  26  6.24486e-06
  27  26.5057
  28  1.55018e-06
  29  0.00741139
  30  4.95156e-06
  31  5.4169e-05
  32  0.198464
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  7.665e-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:  6.189e-01  1.985e-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  5.417e-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: 3.48e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367614/likelihoodResults_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.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) = 941.905301415
delta logL = -2.83061700657e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 941.905275803
delta logL = -2.69402949016e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13196E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3461       1.0000          .0000       10.000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61893       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=   941.9053     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      287 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11588E-03    314.08        .18142E-01** at limit **
   2  Index         3.0114        8.1981        .50000        .17758E-05
   3  Normalizat    .10000E-01    .59728E-02    .12554E-01** at limit **
   4  Prefactor     .61893        .10161E-01    .18894E-03    .20593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000115884
  Index      = 3.01144
  Normalizat = 0.01
  Prefactor  = 0.618927
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11588E-03    1472.7        .35739E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0114        8.4942        .50000       -.40902    
   3  Normalizat    .10000E-01    .29850E-01    .25109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61893        .22645E-01    .37789E-04   -1.0680    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01854e-09
Minuit parameter uncertainties:
  1  0.313937
  2  2786.85
  3  5.29158e-08
  4  0.0226456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367614': 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) = 941.905273249
delta logL = -1.40248744174e-07

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  1.159e-04  3.139e-01  1.000e-04  1.000e+04 ( 1.000e-12)
242        Index:  3.011e+00  2.787e+03  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:  6.189e-01  2.265e-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  5.292e-08  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/367614/cmap_HighResolution_672624001_673228801_4FGL_J0231.8+1322_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-01', job_status='DONE', photon_flux_upper_limit='3.48e-06', time_completed='2022-05-03 01:12:21.502595', job_id='367614', GAL2='0.62', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651565541.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='-1.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='717' AND source_name='4FGL J0231.8+1322' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:12:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 367614: <4FGL_J0231.8+1322_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0231.8+1322_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:29 2022
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:04:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:04:30 2022
Terminated at Tue May  3 01:12:22 2022
Results reported at Tue May  3 01:12:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_weekly_bin717 37.9616 13.3692 672624001 673228801 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 :                                   437.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   471 sec.
    Turnaround time :                            713 sec.

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

