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 55 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 = 16996
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0221.5+2513_weekly_bin384
RA = 35.3809, Dec = 25.2305
tmin = 471225601, tmax = 471830401
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='469216', job_status='RUN', time_executed='2021-07-04 19:06:07.094636', time_epoch_executed='1625450767.09' WHERE source_name='4FGL J0221.5+2513' and cadence='weekly' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469216

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469216/ft1_4FGL_J0221.5+2513_weekly_bin384.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469216/ft2_4FGL_J0221.5+2513_weekly_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469216/ft1_4FGL_J0221.5+2513_weekly_bin384.fits outfile=/scratch/kocevski/469216/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin384.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=471225601.0 tmax=471830401.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 11.41
user 10.69
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469216/ft2_4FGL_J0221.5+2513_weekly_bin384.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/469216/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin384.fits evtable="EVENTS" outfile="/scratch/kocevski/469216/ft1_filtered_4FGL_J0221.5+2513_weekly_bin384.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.95
user 0.36
sys 0.25

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469216/ft1_filtered_4FGL_J0221.5+2513_weekly_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/469216/ft2_4FGL_J0221.5+2513_weekly_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/469216/ltcube_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.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/469216/ft2_4FGL_J0221.5+2513_weekly_bin384.fits
.....................!
real 26.53
user 25.59
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469216/ft1_filtered_4FGL_J0221.5+2513_weekly_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/469216/ft2_4FGL_J0221.5+2513_weekly_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/469216/ltcube_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.fits outfile=/scratch/kocevski/469216/expmap_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.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/469216/ltcube_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.fits
.....................!
real 193.05
user 185.14
sys 5.07

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/469216/ft1_filtered_4FGL_J0221.5+2513_weekly_bin384.fits scfile=/scratch/kocevski/469216/ft2_4FGL_J0221.5+2513_weekly_bin384.fits outfile=/scratch/kocevski/469216/cmap_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.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.74
user 0.39
sys 0.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469216/ft1_filtered_4FGL_J0221.5+2513_weekly_bin384.fits scfile=/scratch/kocevski/469216/ft2_4FGL_J0221.5+2513_weekly_bin384.fits outfile=/scratch/kocevski/469216/cmap_HighResolution_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.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.74
user 0.41
sys 0.23

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.322       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8895       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4354       1.0000         .10000E-03   10000.    
    11 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6235       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1625       1.0000         .10000E-03   10000.    
    14 'norm      '    18.328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0072       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13190E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5733       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   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      '    4.5163       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0970       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96625       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=   21833.16     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2696 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.438        20.655       -.20543E-05    .43198E-05
   2  Prefactor     41.320        34.388       -.20880E-05    .47980E-05
   3  norm          1.4317        .40458       -.15627E-07    .11312E-03
   4  Prefactor     1.4743        7.3561       -.11289E-06    .10591E-04
   5  Prefactor     .10000E-03    2.2647       -.14692E-06** at limit **
   6  norm          1.8895        1.3744       -.67456E-07   -.59022E-05
   7  Prefactor     .10000E-03    27.033       -.16016E-05** at limit **
   8  Prefactor     2.0676        1.7299       -.20418E-08   -.31620E-04
   9  Prefactor     2.4742        2.3370        .33091E-06   -.86621E-03
  10  Prefactor     4.4353        3.1531       -.17988E-05    .14198E-04
  11  norm          .10000E-03    .56388       -.42847E-07** at limit **
  12  Prefactor     2.6232        3.2342       -.36230E-06   -.67865E-03
  13  norm          1.1625        .35687       -.39617E-08    .38035E-03
  14  norm          18.328        21.453       -.10821E-07    .13856E-05
  15  Prefactor     6.9343        22.609       -.24290E-06    .14649E-04
  16  Prefactor     2.0045        66.571       -.88969E-05    .59542E-05
  17  norm          3.0468        1.0470       -.42814E-07    .53659E-04
  18  Prefactor     .10000E-03    2.1597       -.51053E-08** at limit **
  19  norm          5.5735        .61121        .14729E-07    .15716E-03
  20  Prefactor     .10000E-03    2.2143       -.48691E-07** at limit **
  21  Prefactor     .10000E-03    2.2185        .47941E-06** at limit **
  22  Prefactor     .10000E-03    3.6873        .31669E-06** at limit **
  23  Prefactor     .10000E-03    21.339        .75521E-06** at limit **
  24  norm          4.5162        6.5935       -.11460E-06   -.89820E-05
  25  Normalizat    1.0969        .13063        .76449E-06    .49812E-04
  26  Prefactor     .96626        .59103E-01    .15616E-06    .13425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4377
  Prefactor  = 41.32
  norm       = 1.43167
  Prefactor  = 1.47428
  Prefactor  = 0.0001
  norm       = 1.88945
  Prefactor  = 0.0001
  Prefactor  = 2.06763
  Prefactor  = 2.4742
  Prefactor  = 4.43531
  norm       = 0.0001
  Prefactor  = 2.62324
  norm       = 1.16255
  norm       = 18.3277
  Prefactor  = 6.93431
  Prefactor  = 2.00449
  norm       = 3.04681
  Prefactor  = 0.0001
  norm       = 5.57348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.51617
  Normalizat = 1.09693
  Prefactor  = 0.966258
 **********
 **   18 **HESSE 
 **********

 FCN=   21833.16     FROM HESSE     STATUS=OK           468 CALLS     3164 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.438        20.638        .10926E-03   -1.4975    
   2  Prefactor     41.320        34.401        .62359E-04   -1.4421    
   3  norm          1.4317        .40315        .47869E-04   -1.5469    
   4  Prefactor     1.4743        7.5536        .35374E-03   -1.5465    
   5  Prefactor     .10000E-03    2.2661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8895        1.3784        .14322E-03   -1.5433    
   7  Prefactor     .10000E-03    27.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0676        1.7271        .17129E-03   -1.5420    
   9  Prefactor     2.4742        2.9525        .12998E-02   -1.5393    
  10  Prefactor     4.4353        3.1516        .19121E-03   -1.5287    
  11  norm          .10000E-03    4.9441        .20538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6232        4.5895        .12590E-02   -1.5384    
  13  norm          1.1625        .33942        .44828E-04   -1.5492    
  14  norm          18.328        21.453        .93555E-04   -1.4851    
  15  Prefactor     6.9343        22.619        .15235E-03   -1.5181    
  16  Prefactor     2.0045        66.774        .29225E-03   -1.5425    
  17  norm          3.0468        1.0475        .23244E-04   -1.5359    
  18  Prefactor     .10000E-03    7.6403        .41029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5735        .59503        .35815E-04   -1.5236    
  20  Prefactor     .10000E-03    2.2171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5162        6.6324        .18944E-03   -1.5283    
  25  Normalizat    1.0969        .15290        .35339E-03   -.89850    
  26  Prefactor     .96626        .68145E-01    .17850E-03   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76556e-10
Minuit parameter uncertainties:
  1  20.6488
  2  34.4171
  3  0.403146
  4  6.67525
  5  1.26863e-06
  6  1.37837
  7  1.06507e-05
  8  1.72719
  9  2.95271
  10  3.15173
  11  1.93204e-06
  12  4.59015
  13  0.339423
  14  21.4625
  15  22.6467
  16  23.1661
  17  1.04749
  18  0.000100541
  19  0.595034
  20  9.91212e-07
  21  3.21382e-06
  22  1.4026e-06
  23  1.6648e-05
  24  6.63346
  25  0.152964
  26  0.0681507
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.833e+01  2.146e+01  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.663e-01  6.815e-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.097e+00  1.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 35.381 25.230
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.89e-09 +/- 2.22e-09
Energy Flux (Fixed Index): 3.86e-06 +/- 4.52e-06

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

Saving results to:
/scratch/kocevski/469216/likelihoodResults_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.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) = 21832.8912161
delta logL = 0.266865505509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21832.8882316
delta logL = 0.269849949356

Fit tolerance = 1e-08

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

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

 FCN=   21832.89     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      220 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.934        23.434        .22427E-02   -.23599E-02
   2  alpha         .94573        .99830        .50000        .11136E-04
   3  Normalizat    1.0969        .12039        .79828E-01    .53373E-04
   4  Prefactor     .96640        .57768E-01    .45846E-01    .28739E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9341
  alpha      = 0.945734
  Normalizat = 1.09693
  Prefactor  = 0.966401
 **********
 **   18 **HESSE 
 **********

 FCN=   21832.89     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.934        23.363        .89708E-04   -1.4815    
   2  alpha         .94573        1.0003        .73499E-02   -.67092    
   3  Normalizat    1.0969        .13642        .35338E-03   -.89851    
   4  Prefactor     .96640        .65572E-01    .17848E-03   -.93858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52571e-08
Minuit parameter uncertainties:
  1  23.3742
  2  1.0499
  3  0.136467
  4  0.0655775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469216': 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) = 21832.8882312
delta logL = 0.269850411711

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.993e+01  2.337e+01  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  9.457e-01  1.050e+00  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.664e-01  6.558e-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.097e+00  1.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 35.381 25.230
Photon Index (Free Index): 0.95 +/- 1.05
Photon Flux (Free Index): 1.49e-09 +/- 1.72e-09
Energy Flux (Free Index): 7.82e-06 +/- 1.15e-05

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/469216/cmap_HighResolution_471225601_471830401_4FGL_J0221.5+2513_weekly_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', comment='SUCCESS', photon_flux='1.89e-09', energy_flux2='7.82e-06', photon_flux_error='2.22e-09', dlogl='2.70e-01', energy_flux='3.86e-06', photon_flux2='1.49e-09', job_status='DONE', time_completed='2021-07-04 19:38:37.459830', photon_index_error2='1.05', photon_index2='0.95', ts='2.09', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.98e-09', energy_flux_error2='1.15e-05', EG='1.10', time_epoch_completed='1625452717.46', return_code='0', job_id='469216', GAL2='0.97', EG2='1.10', return_code2='0', energy_flux_error='4.52e-06', photon_flux_error2='1.72e-09', ts2='2.63', photon_index='1.74' WHERE bin_id='384' AND source_name='4FGL J0221.5+2513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:38:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 469216: <4FGL_J0221.5+2513_weekly_bin384> in cluster <slac> Done

Job <4FGL_J0221.5+2513_weekly_bin384> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jul  4 14:36:25 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 14:36:27 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:36:27 2021
Terminated at Sun Jul  4 19:38:40 2021
Results reported at Sun Jul  4 19:38:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_weekly_bin384 35.3809 25.2305 471225601 471830401 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 :                                   1762.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             79.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18133 sec.
    Turnaround time :                            18135 sec.

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

