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


Performing analysis on: 4FGL_J0221.5+2513_weekly_bin88
RA = 35.3809, Dec = 25.2305
tmin = 292204801, tmax = 292809601
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='468622', job_status='RUN', time_executed='2021-07-04 19:06:59.983823', time_epoch_executed='1625450819.98' WHERE source_name='4FGL J0221.5+2513' and cadence='weekly' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468622

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468622/ft1_4FGL_J0221.5+2513_weekly_bin88.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468622/ft1_4FGL_J0221.5+2513_weekly_bin88.fits outfile=/scratch/kocevski/468622/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin88.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=292204801.0 tmax=292809601.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 14.60
user 13.33
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468622/ft1_filtered_4FGL_J0221.5+2513_weekly_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/468622/ltcube_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.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/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits
.....................!
real 27.12
user 25.11
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468622/ft1_filtered_4FGL_J0221.5+2513_weekly_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/468622/ltcube_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.fits outfile=/scratch/kocevski/468622/expmap_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.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/468622/ltcube_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.fits
.....................!
real 199.19
user 185.17
sys 5.72

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/468622/ft1_filtered_4FGL_J0221.5+2513_weekly_bin88.fits scfile=/scratch/kocevski/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits outfile=/scratch/kocevski/468622/cmap_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.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 0.93
user 0.40
sys 0.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468622/ft1_filtered_4FGL_J0221.5+2513_weekly_bin88.fits scfile=/scratch/kocevski/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits outfile=/scratch/kocevski/468622/cmap_HighResolution_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.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.84
user 0.41
sys 0.27

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468622/ft1_filtered_4FGL_J0221.5+2513_weekly_bin88.fits', '/scratch/kocevski/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits', expMap='/scratch/kocevski/468622/expmap_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.fits', expCube='/scratch/kocevski/468622/ltcube_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468622/Model_4FGL_J0221.5+2513_weekly_bin88.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/468622/ft1_filtered_4FGL_J0221.5+2513_weekly_bin88.fits
Spacecraft file(s): /scratch/kocevski/468622/ft2_4FGL_J0221.5+2513_weekly_bin88.fits
Exposure map: /scratch/kocevski/468622/expmap_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.fits
Exposure cube: /scratch/kocevski/468622/ltcube_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468622/Model_4FGL_J0221.5+2513_weekly_bin88.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) = 26158.1571751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    51.117       1.0000         .10000E-03   10000.    
     3 'norm      '    .91605       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6001       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1966       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7510       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26733       1.0000         .10000E-03   10000.    
    11 'norm      '    6.6865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91916       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5999       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.989       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.914       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1391       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0489       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=   26158.15     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3138 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2451        .54468E-07** at limit **
   2  Prefactor     51.112        51.770       -.49740E-05    .58440E-06
   3  norm          .91605        .35005       -.27027E-07   -.57931E-04
   4  Prefactor     .10000E-03    2.2643        .24120E-07** at limit **
   5  Prefactor     2.5993        2.4957        .30280E-06   -.73689E-03
   6  norm          3.1962        2.0361        .37829E-09   -.64445E-05
   7  Prefactor     .10000E-03    51.873        .93772E-06** at limit **
   8  Prefactor     2.7508        1.3738       -.27807E-08   -.44308E-05
   9  Prefactor     1.0340        2.5335       -.32044E-06   -.36324E-03
  10  Prefactor     .27746        1.3914       -.25773E-06    .21605E-03
  11  norm          6.6864        2.5472       -.15391E-07   -.51407E-04
  12  Prefactor     .10000E-03    2.4876       -.97659E-07** at limit **
  13  norm          .91918        .40272       -.53768E-07   -.28297E-03
  14  norm          .10000E-03    22.233        .83869E-06** at limit **
  15  Prefactor     18.460        20.937       -.31004E-05    .17660E-04
  16  Prefactor     .10000E-03    4.7470        .12742E-06** at limit **
  17  norm          1.6001        .95656       -.88841E-08   -.17195E-03
  18  Prefactor     .10000E-03    2.1897        .53112E-07** at limit **
  19  norm          .10000E-03    .53396E-01   -.18439E-07** at limit **
  20  Prefactor     15.990        8.5746        .60792E-06    .53964E-04
  21  Prefactor     15.913        5.8018       -.46294E-07    .30346E-04
  22  Prefactor     .10000E-03    4.0227        .88611E-07** at limit **
  23  Prefactor     .10000E-03    7.8435       -.13218E-06** at limit **
  24  norm          .10000E-03    1.2563        .15579E-06** at limit **
  25  Normalizat    1.1392        .12302        .80322E-06    .10279E-03
  26  Prefactor     1.0488        .55813E-01    .13427E-06    .29576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.1121
  norm       = 0.916054
  Prefactor  = 0.0001
  Prefactor  = 2.59931
  norm       = 3.19618
  Prefactor  = 0.0001
  Prefactor  = 2.75084
  Prefactor  = 1.03397
  Prefactor  = 0.277463
  norm       = 6.68641
  Prefactor  = 0.0001
  norm       = 0.919184
  norm       = 0.0001
  Prefactor  = 18.4602
  Prefactor  = 0.0001
  norm       = 1.60005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9903
  Prefactor  = 15.9133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.13915
  Prefactor  = 1.04882
 **********
 **   18 **HESSE 
 **********

 FCN=   26158.15     FROM HESSE     STATUS=OK           460 CALLS     3598 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.112        51.625        .56093E-04   -1.4277    
   3  norm          .91605        .34425        .54155E-04   -1.5517    
   4  Prefactor     .10000E-03    2.2947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5993        5.6982        .12651E-02   -1.5386    
   6  norm          3.1962        2.0133        .17290E-03   -1.5350    
   7  Prefactor     .10000E-03    51.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7508        1.3725        .12940E-03   -1.5376    
   9  Prefactor     1.0340        2.5191        .38227E-03   -1.5505    
  10  Prefactor     .27746        8.0589        .36408E-02   -1.5603    
  11  norm          6.6864        2.5696        .13605E-03   -1.5191    
  12  Prefactor     .10000E-03    2.5396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91918        .39986        .57654E-04   -1.5516    
  14  norm          .10000E-03    22.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.460        20.918        .93202E-04   -1.4848    
  16  Prefactor     .10000E-03    4.7487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6001        .94873        .11723E-03   -1.5455    
  18  Prefactor     .10000E-03    2.2108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .17869        .71764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.990        8.4919        .10016E-03   -1.4908    
  21  Prefactor     15.913        5.8055        .10040E-03   -1.4910    
  22  Prefactor     .10000E-03    4.0558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.8494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.2582        .17700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1392        .13818        .35523E-03   -.88505    
  26  Prefactor     1.0488        .63295E-01    .17751E-03   -.91119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54457e-09
Minuit parameter uncertainties:
  1  1.36423e-06
  2  51.6706
  3  0.344251
  4  1.03839e-06
  5  5.6994
  6  2.01338
  7  3.21087e-06
  8  1.37255
  9  2.51932
  10  2.99058
  11  2.56969
  12  2.50448e-06
  13  0.39986
  14  2.29521e-06
  15  20.9266
  16  5.42279e-07
  17  0.948735
  18  1.55751e-06
  19  4.69888e-07
  20  8.49255
  21  5.80572
  22  3.44926e-06
  23  3.23592e-06
  24  4.6097e-07
  25  0.138221
  26  0.0632993
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  2.295e-06  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:  1.049e+00  6.330e-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.139e+00  1.382e-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: 7.84e-09 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468622/likelihoodResults_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.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) = 26158.1526623
delta logL = -0.000213719165913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26158.1524517
delta logL = -3.14284625347e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7725       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0488       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.

 FCN=   26158.15     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      289 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    720.99        .18142E-01** at limit **
   2  alpha         1.4412        3.7035        .16586       -.82253E-09
   3  Normalizat    1.1392        .18421E-01    .35523E-03    .34295E-03
   4  Prefactor     1.0488        .89323E-02    .17751E-03    .72232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.44117
  Normalizat = 1.13915
  Prefactor  = 1.04882
 **********
 **   18 **HESSE 
 **********

 FCN=   26158.15     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.073        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4412        2.5669        .66344E-02   -.43734    
   3  Normalizat    1.1392        .12960        .14209E-04   -.88505    
   4  Prefactor     1.0488        .62856E-01    .35502E-04   -.91119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86718e-11
Minuit parameter uncertainties:
  1  3.56235e-06
  2  569.317
  3  0.129638
  4  0.0628608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468622': 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) = 26158.1524484
delta logL = 1.38999894261e-07

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  3.562e-06  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.441e+00  5.693e+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:  1.049e+00  6.286e-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.139e+00  1.296e-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/468622/cmap_HighResolution_292204801_292809601_4FGL_J0221.5+2513_weekly_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-05', job_status='DONE', photon_flux_upper_limit='7.84e-09', time_completed='2021-07-04 19:46:56.453922', job_id='468622', GAL2='1.05', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1625453216.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='88' AND source_name='4FGL J0221.5+2513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 468622: <4FGL_J0221.5+2513_weekly_bin88> in cluster <slac> Done

Job <4FGL_J0221.5+2513_weekly_bin88> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 14:35:14 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 14:35:15 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:15 2021
Terminated at Sun Jul  4 19:47:01 2021
Results reported at Sun Jul  4 19:47:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_weekly_bin88 35.3809 25.2305 292204801 292809601 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 :                                   2194.00 sec.
    Max Memory :                                 1229 MB
    Average Memory :                             88.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18705 sec.
    Turnaround time :                            18707 sec.

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

