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 20 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_J0233.5+0654_weekly_bin717
RA = 38.3857, Dec = 6.9083
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='367616', job_status='RUN', time_executed='2022-05-03 01:05:04.458357', time_epoch_executed='1651565104.46' WHERE source_name='4FGL J0233.5+0654' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367616

Creating custom pfile directory:
/scratch/kocevski/367616/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/367616/ft1_4FGL_J0233.5+0654_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/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367616/ft1_4FGL_J0233.5+0654_weekly_bin717.fits outfile=/scratch/kocevski/367616/ft1_filteredMKT_4FGL_J0233.5+0654_weekly_bin717.fits ra=38.3857 dec=6.9083 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/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_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/367616/ft1_filteredMKT_4FGL_J0233.5+0654_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_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.37
sys 0.17

Number of photons that the gtmktime cut: 119

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367616/ltcube_672624001_673228801_4FGL_J0233.5+0654_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/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits
.....................!
real 35.16
user 34.70
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367616/ltcube_672624001_673228801_4FGL_J0233.5+0654_weekly_bin717.fits outfile=/scratch/kocevski/367616/expmap_672624001_673228801_4FGL_J0233.5+0654_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/367616/ltcube_672624001_673228801_4FGL_J0233.5+0654_weekly_bin717.fits
.....................!
real 191.96
user 186.15
sys 5.41

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

Setting source of interest to:
4FGL J0233.5+0654 @ 38.3857 6.9083

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits scfile=/scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits outfile=/scratch/kocevski/367616/cmap_672624001_673228801_4FGL_J0233.5+0654_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=38.3857 yref=6.9083 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.62
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits scfile=/scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits outfile=/scratch/kocevski/367616/cmap_HighResolution_672624001_673228801_4FGL_J0233.5+0654_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=38.3857 yref=6.9083 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.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367616/Model_4FGL_J0233.5+0654_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/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits........................!
real 29.86
user 28.54
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits', '/scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits', expMap='/scratch/kocevski/367616/expmap_672624001_673228801_4FGL_J0233.5+0654_weekly_bin717.fits', expCube='/scratch/kocevski/367616/ltcube_672624001_673228801_4FGL_J0233.5+0654_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367616/Model_4FGL_J0233.5+0654_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0233.5+0654'

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  5.436e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.332e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  1.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367616/ft1_filtered_4FGL_J0233.5+0654_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367616/ft2_4FGL_J0233.5+0654_weekly_bin717.fits
Exposure map: /scratch/kocevski/367616/expmap_672624001_673228801_4FGL_J0233.5+0654_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367616/ltcube_672624001_673228801_4FGL_J0233.5+0654_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367616/Model_4FGL_J0233.5+0654_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) = 1538.4302509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.3826       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.526       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.297       1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.261       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    265.36       1.0000         .10000E-03   10000.    
     9 'Prefactor '    234.15       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .82516E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16140E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .20169E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19859E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4699.8       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .41042E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25094E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    26.987       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    76.627       1.0000         .10000E-03   10000.    
    30 'Prefactor '    123.71       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .62212       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .46161       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1538.001     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     5297 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1968       -.83495E-07** at limit **
   2  norm          8.3816        25.046        .78889E-07   -.45561E-06
   3  Prefactor     25.524        22.883       -.41484E-07    .17717E-05
   4  Prefactor     26.298        16.228       -.22063E-07   -.34951E-05
   5  norm          .10000E-03    13.422       -.91003E-07** at limit **
   6  Prefactor     19.265        16.158       -.22877E-06    .13050E-04
   7  norm          4.7501        2.2876        .15479E-07    .15656E-03
   8  Prefactor     265.12        214.16        .31498E-05    .29947E-04
   9  Prefactor     233.90        1031.1       -.85609E-07   -.47144E-06
  10  Prefactor     .10000E-03    43.903        .13803E-06** at limit **
  11  Prefactor     .10000E-03    480.44        .25084E-05** at limit **
  12  Prefactor     .10000E-03    464.76        .24169E-05** at limit **
  13  Prefactor     .10000E-03    972.04       -.17649E-06** at limit **
  14  Prefactor     .10000E-03    37.973       -.11901E-07** at limit **
  15  Prefactor     .10000E-03    401.97        .59039E-05** at limit **
  16  norm          .10000E-03    32.185        .60408E-06** at limit **
  17  Prefactor     .10000E-03    910.70       -.90534E-05** at limit **
  18  Prefactor     .10000E-03    1553.4       -.76724E-05** at limit **
  19  norm          .10000E-03    127.34        .45457E-06** at limit **
  20  Prefactor     4705.9        7094.8       -.48289E-04   -.11057E-05
  21  Prefactor     .10000E-03    7860.8       -.17780E-04** at limit **
  22  Prefactor     .10000E-03    119.60       -.23029E-05** at limit **
  23  Prefactor     .10000E-03    6283.9       -.10535E-04** at limit **
  24  Prefactor     .10000E-03    9.8220       -.21678E-06** at limit **
  25  norm          .10000E-03    35.953       -.48069E-06** at limit **
  26  norm          26.984        26.475        .27391E-06    .19951E-04
  27  Prefactor     .10000E-03    8.0670       -.25161E-06** at limit **
  28  norm          .10000E-03    16.462       -.16879E-07** at limit **
  29  Prefactor     76.660        95.397        .27610E-06    .12146E-04
  30  Prefactor     123.68        129.63       -.25722E-06    .13634E-04
  31  Prefactor     .10000E-03    8.5038       -.14058E-06** at limit **
  32  Normalizat    .62202        .34764        .33381E-05    .36996E-04
  33  Prefactor     .46164        .24358       -.11890E-05    .76499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.38164
  Prefactor  = 25.5239
  Prefactor  = 26.2976
  norm       = 0.0001
  Prefactor  = 19.2646
  norm       = 4.7501
  Prefactor  = 265.119
  Prefactor  = 233.898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4705.86
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.9836
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 76.6602
  Prefactor  = 123.678
  Prefactor  = 0.0001
  Normalizat = 0.622022
  Prefactor  = 0.461644
 **********
 **   18 **HESSE 
 **********

 FCN=   1538.001     FROM HESSE     STATUS=OK           687 CALLS     5984 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1981        .56781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.3816        25.107        .13846E-03   -1.5129    
   3  Prefactor     25.524        22.875        .79288E-04   -1.4697    
   4  Prefactor     26.298        16.235        .78119E-04   -1.4682    
   5  norm          .10000E-03    13.429        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.265        16.185        .91261E-04   -1.4830    
   7  norm          4.7501        2.2918        .37408E-04   -1.5272    
   8  Prefactor     265.12        215.00        .12444E-03   -1.2437    
   9  Prefactor     233.90        1044.3        .26452E-04   -1.2637    
  10  Prefactor     .10000E-03    43.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    480.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    464.31        .20884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    971.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    401.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    32.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    911.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    162.96        .12734       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    127.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4705.9        7087.8        .40072E-04   -.58863E-01
  21  Prefactor     .10000E-03    7860.7        .19462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    120.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6284.4        .20014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.8304        .12005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    35.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          26.984        26.558        .77117E-04   -1.4669    
  27  Prefactor     .10000E-03    8.0727        .10875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    16.462        .15546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     76.660        95.587        .45872E-04   -1.3955    
  30  Prefactor     123.68        129.99        .36188E-04   -1.3479    
  31  Prefactor     .10000E-03    8.5087        .11171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .62202        .38568        .31585E-03   -1.0706    
  33  Prefactor     .46164        .27172        .23994E-03   -1.1377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66032e-11
Minuit parameter uncertainties:
  1  1.27107e-06
  2  25.1391
  3  22.8831
  4  16.238
  5  9.64273e-07
  6  16.1887
  7  2.29188
  8  215.643
  9  1019.74
  10  9.24006e-06
  11  0.000204768
  12  0.000383835
  13  0.0005487
  14  7.37345e-07
  15  0.000128037
  16  7.73028e-05
  17  0.00103484
  18  0.000815748
  19  1.35139e-05
  20  5226.99
  21  0.00594945
  22  8.4893e-05
  23  0.00204146
  24  3.8053e-06
  25  5.106e-06
  26  26.5695
  27  1.12573e-07
  28  2.96756e-07
  29  95.7795
  30  130.291
  31  1.74192e-07
  32  0.387366
  33  0.272489
Done.

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

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  5.487e-04  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.332e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  1.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  4.616e-01  2.725e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  6.220e-01  3.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 38.386 6.908
Photon Flux Upper Limit: 9.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367616/likelihoodResults_672624001_673228801_4FGL_J0233.5+0654_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) = 1538.00101417
delta logL = -4.74852777188e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1538.00101417
delta logL = -4.74851935905e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3319       1.0000          .0000       10.000    
     3 'Normalizat'    .62202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46164       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1538.001     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      205 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    734.72        .90712E-02** at limit **
   2  Index         2.3499        7.2945        .50000       -.88596E-07
   3  Normalizat    .62202        .76453E-02    .71348E-01    .69790E-05
   4  Prefactor     .46164        .50868E-02    .39132E-01    .99878E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34989
  Normalizat = 0.622023
  Prefactor  = 0.461643
 **********
 **   18 **HESSE 
 **********

 FCN=   1538.001     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6668.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3499        5.9830        .50000       -.55863    
   3  Normalizat    .62202        .17085E-01    .31586E-03   -1.0706    
   4  Prefactor     .46164        .11386E-01    .23993E-03   -1.1377    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.23904e-10
Minuit parameter uncertainties:
  1  0.00252589
  2  801.826
  3  0.0170847
  4  0.011386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367616': 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) = 1538.00100942
delta logL = 5.44787326362e-10

Extracting fit parameters...

4FGL J0233.5+0654
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  2.526e-03  1.000e-04  1.000e+04 ( 1.000e-13)
259        Index:  2.350e+00  8.018e+02  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  1.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  4.616e-01  1.139e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  6.220e-01  1.708e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 38.386 6.908

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/367616/cmap_HighResolution_672624001_673228801_4FGL_J0233.5+0654_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.06e-02', job_status='DONE', photon_flux_upper_limit='9.18e-07', time_completed='2022-05-03 01:13:28.839603', job_id='367616', GAL2='0.46', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1651565608.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='5.45e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='717' AND source_name='4FGL J0233.5+0654' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:13:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 367616: <4FGL_J0233.5+0654_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0233.5+0654_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) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:04:35 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:35 2022
Terminated at Tue May  3 01:13:29 2022
Results reported at Tue May  3 01:13:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0233.5+0654_weekly_bin717 38.3857 6.9083 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0233.5+0654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   506.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   537 sec.
    Turnaround time :                            780 sec.

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

