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 144 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 = 17039
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0221.5+2513_weekly_bin171
RA = 35.3809, Dec = 25.2305
tmin = 342403201, tmax = 343008001
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='468787', job_status='RUN', time_executed='2021-07-04 19:06:23.354663', time_epoch_executed='1625450783.35' WHERE source_name='4FGL J0221.5+2513' and cadence='weekly' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468787

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468787/ft1_4FGL_J0221.5+2513_weekly_bin171.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468787/ft1_4FGL_J0221.5+2513_weekly_bin171.fits outfile=/scratch/kocevski/468787/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin171.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=342403201.0 tmax=343008001.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 8.50
user 7.11
sys 0.38

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.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/468787/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin171.fits evtable="EVENTS" outfile="/scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.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 3.13
user 0.37
sys 0.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/468787/ltcube_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.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/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits
.....................!
real 27.61
user 25.92
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/468787/ltcube_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.fits outfile=/scratch/kocevski/468787/expmap_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.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/468787/ltcube_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.fits
.....................!
real 198.60
user 185.79
sys 5.91

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

Setting source of interest to:
4FGL J0221.5+2513 @ 35.3809 25.2305

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits scfile=/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits outfile=/scratch/kocevski/468787/cmap_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.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=35.3809 yref=25.2305 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 1.19
user 0.43
sys 0.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits scfile=/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits outfile=/scratch/kocevski/468787/cmap_HighResolution_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.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=35.3809 yref=25.2305 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.96
user 0.41
sys 0.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468787/Model_4FGL_J0221.5+2513_weekly_bin171.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/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits.....................!
real 307.36
user 299.65
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits', '/scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits', expMap='/scratch/kocevski/468787/expmap_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.fits', expCube='/scratch/kocevski/468787/ltcube_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468787/Model_4FGL_J0221.5+2513_weekly_bin171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.5+2513'

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  4.372e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/468787/ft1_filtered_4FGL_J0221.5+2513_weekly_bin171.fits
Spacecraft file(s): /scratch/kocevski/468787/ft2_4FGL_J0221.5+2513_weekly_bin171.fits
Exposure map: /scratch/kocevski/468787/expmap_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.fits
Exposure cube: /scratch/kocevski/468787/ltcube_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468787/Model_4FGL_J0221.5+2513_weekly_bin171.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) = 23790.4547721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    17.326       1.0000         .10000E-03   10000.    
     3 'norm      '    .76836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92366E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.824       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2156       1.0000         .10000E-03   10000.    
    13 'norm      '    .56007       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.051       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    38.796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0970       1.0000         .10000E-03   10000.    
    19 'norm      '    .16172       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.616       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.4167       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1755       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23790.40     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3158 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2659       -.99694E-06** at limit **
   2  Prefactor     17.310        40.482       -.18398E-04   -.17516E-03
   3  norm          .76857        .38165        .17296E-06    .10586E-02
   4  Prefactor     .10000E-03    1.8819        .57406E-08** at limit **
   5  Prefactor     .10000E-03    3.9949       -.12406E-07** at limit **
   6  norm          15.823        3.3525       -.87506E-08   -.39956E-03
   7  Prefactor     .10000E-03    74.376        .36424E-06** at limit **
   8  Prefactor     1.0908        1.4179        .41886E-08   -.86537E-03
   9  Prefactor     .10000E-03    2.6659       -.80667E-08** at limit **
  10  Prefactor     .10000E-03    2.5292       -.22732E-08** at limit **
  11  norm          6.4452        2.5094       -.16519E-07   -.12277E-03
  12  Prefactor     4.2154        4.7031       -.11862E-06   -.15197E-03
  13  norm          .55998        .34370       -.37885E-08   -.59722E-03
  14  norm          .10000E-03    11.609       -.68591E-06** at limit **
  15  Prefactor     49.053        25.186        .16753E-06    .83046E-04
  16  Prefactor     .10000E-03    11.608       -.73658E-06** at limit **
  17  norm          38.796        2.6464       -.22259E-07    .75823E-04
  18  Prefactor     4.0965        4.6964        .15357E-05   -.21920E-02
  19  norm          .16181        .29111       -.22361E-06   -.24756E-02
  20  Prefactor     15.617        13.371       -.75920E-07    .11228E-03
  21  Prefactor     .10000E-03    2.0233       -.22495E-07** at limit **
  22  Prefactor     .10000E-03    5.0744        .31492E-08** at limit **
  23  Prefactor     .10000E-03    10.130        .21369E-05** at limit **
  24  norm          7.4166        5.2124       -.37367E-07   -.25198E-04
  25  Normalizat    1.1755        .14107        .64020E-06    .27445E-04
  26  Prefactor     .94453        .60979E-01   -.11438E-08    .20821E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.3101
  norm       = 0.768574
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 15.8233
  Prefactor  = 0.0001
  Prefactor  = 1.09079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.44517
  Prefactor  = 4.21544
  norm       = 0.559985
  norm       = 0.0001
  Prefactor  = 49.0527
  Prefactor  = 0.0001
  norm       = 38.7962
  Prefactor  = 4.0965
  norm       = 0.161807
  Prefactor  = 15.6167
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.41657
  Normalizat = 1.17548
  Prefactor  = 0.94453
 **********
 **   18 **HESSE 
 **********

 FCN=   23790.40     FROM HESSE     STATUS=OK           462 CALLS     3620 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.310        40.959        .96220E-04   -1.4876    
   3  norm          .76857        .36696        .63392E-03   -1.5533    
   4  Prefactor     .10000E-03    15.850        .40240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.823        3.3525        .50343E-03   -1.4912    
   7  Prefactor     .10000E-03    74.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0908        1.3913        .20309E-03   -1.5499    
   9  Prefactor     .10000E-03    2.7808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4452        2.4865        .13275E-03   -1.5200    
  12  Prefactor     4.2154        4.6872        .19627E-03   -1.5297    
  13  norm          .55998        .33419        .61307E-04   -1.5558    
  14  norm          .10000E-03    11.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.053        25.202        .57257E-04   -1.4306    
  16  Prefactor     .10000E-03    11.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          38.796        2.6421        .61854E-04   -1.4461    
  18  Prefactor     4.0965        8.1399        .99586E-03   -1.5303    
  19  norm          .16181        .28170        .89183E-04   -1.5628    
  20  Prefactor     15.617        12.823        .10135E-03   -1.4917    
  21  Prefactor     .10000E-03    13.762        .41660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.4166        5.2229        .14727E-03   -1.5163    
  25  Normalizat    1.1755        .15623        .37994E-03   -.87364    
  26  Prefactor     .94453        .69241E-01    .19418E-03   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71763e-09
Minuit parameter uncertainties:
  1  1.45842e-05
  2  41.0258
  3  0.366963
  4  0.000325653
  5  1.54277e-06
  6  3.35251
  7  1.60657e-05
  8  1.39135
  9  2.26862e-06
  10  4.09112e-06
  11  2.48657
  12  4.68757
  13  0.334193
  14  2.15548e-05
  15  25.2076
  16  2.71891e-05
  17  2.64207
  18  8.14214
  19  0.281706
  20  12.8253
  21  0.000287994
  22  9.12618e-07
  23  5.82835e-05
  24  5.22323
  25  0.156292
  26  0.0692479
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  2.155e-05  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.445e-01  6.925e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.175e+00  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.381 25.230
Photon Flux Upper Limit: 6.79e-09 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468787/likelihoodResults_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.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) = 23790.395924
delta logL = -0.000409731157561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23790.3955143
delta logL = -2.45927367359e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7386       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94454       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   23790.40     FROM MIGRAD    STATUS=FAILED        93 CALLS      240 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6221.7        .18142E-02** at limit **
   2  alpha         1.4768        3.2236        .17548        .93035E-07
   3  Normalizat    1.1755        .98325E-01    .37994E-03   -.27330E-02
   4  Prefactor     .94453        .45914E-01    .19418E-03   -.53944E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   23790.40     FROM SIMPLEX   STATUS=UNCHANGED    224 CALLS      464 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6221.7        .68813E-03** at limit **
   2  alpha         1.4768        3.2236        .59646E-08    .93035E-07
   3  Normalizat    1.1755        .98325E-01    .66555E-09   -.27330E-02
   4  Prefactor     .94453        .45914E-01    .18320E-09   -.53944E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23790.40     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      500 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.936        .36285E-03** at limit **
   2  alpha         1.4641        4.1502        .70191E-02    .64787E-08
   3  Normalizat    1.1755        .14669        .75988E-04    .12089E-04
   4  Prefactor     .94453        .68506E-01    .38837E-04    .15690E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.46406
  Normalizat = 1.17548
  Prefactor  = 0.94453
 **********
 **   18 **HESSE 
 **********

 FCN=   23790.40     FROM HESSE     STATUS=OK            29 CALLS      529 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.950        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4641        2.9939        .14038       -.42726    
   3  Normalizat    1.1755        .14670        .15198E-04   -.87364    
   4  Prefactor     .94453        .68513E-01    .77674E-05   -.94602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47991e-12
Minuit parameter uncertainties:
  1  4.81325e-05
  2  577.969
  3  0.146752
  4  0.0685191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468787': 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) = 23790.3955142
delta logL = 1.16498995339e-07

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  4.813e-05  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.464e+00  5.780e+02  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  4.094e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.445e-01  6.852e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.175e+00  1.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.381 25.230

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/468787/cmap_HighResolution_342403201_343008001_4FGL_J0221.5+2513_weekly_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-05', job_status='DONE', photon_flux_upper_limit='6.79e-09', time_completed='2021-07-04 19:45:54.319974', job_id='468787', GAL2='0.94', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1625453154.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='171' AND source_name='4FGL J0221.5+2513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 468787: <4FGL_J0221.5+2513_weekly_bin171> in cluster <slac> Done

Job <4FGL_J0221.5+2513_weekly_bin171> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 14:35:32 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 14:35:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 14:35:33 2021
Terminated at Sun Jul  4 19:45:59 2021
Results reported at Sun Jul  4 19:45:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_weekly_bin171 35.3809 25.2305 342403201 343008001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.5+2513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2148.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             85.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18625 sec.
    Turnaround time :                            18627 sec.

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

