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


Performing analysis on: 4FGL_J0221.5+2513_weekly_bin367
RA = 35.3809, Dec = 25.2305
tmin = 460944001, tmax = 461548801
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='469188', job_status='RUN', time_executed='2021-07-04 19:06:13.190194', time_epoch_executed='1625450773.19' WHERE source_name='4FGL J0221.5+2513' and cadence='weekly' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469188

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469188/ft1_4FGL_J0221.5+2513_weekly_bin367.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469188/ft2_4FGL_J0221.5+2513_weekly_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469188/ft1_4FGL_J0221.5+2513_weekly_bin367.fits outfile=/scratch/kocevski/469188/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin367.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=460944001.0 tmax=461548801.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.54
user 6.98
sys 0.39

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469188/ft1_filtered_4FGL_J0221.5+2513_weekly_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/469188/ft2_4FGL_J0221.5+2513_weekly_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/469188/ltcube_460944001_461548801_4FGL_J0221.5+2513_weekly_bin367.fits outfile=/scratch/kocevski/469188/expmap_460944001_461548801_4FGL_J0221.5+2513_weekly_bin367.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/469188/ltcube_460944001_461548801_4FGL_J0221.5+2513_weekly_bin367.fits
.....................!
real 201.54
user 185.98
sys 5.33

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/469188/ft1_filtered_4FGL_J0221.5+2513_weekly_bin367.fits scfile=/scratch/kocevski/469188/ft2_4FGL_J0221.5+2513_weekly_bin367.fits outfile=/scratch/kocevski/469188/cmap_460944001_461548801_4FGL_J0221.5+2513_weekly_bin367.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.28
user 0.41
sys 0.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469188/ft1_filtered_4FGL_J0221.5+2513_weekly_bin367.fits scfile=/scratch/kocevski/469188/ft2_4FGL_J0221.5+2513_weekly_bin367.fits outfile=/scratch/kocevski/469188/cmap_HighResolution_460944001_461548801_4FGL_J0221.5+2513_weekly_bin367.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 1.50
user 0.43
sys 0.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11425E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1155       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8629       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0922       1.0000         .10000E-03   10000.    
    13 'norm      '    .46213E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1713       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.950       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3806       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.242       1.0000         .10000E-03   10000.    
    19 'norm      '    5.4444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3479       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2820       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0071       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=   26684.81     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3242 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.999        15.839        .15138E-07   -.60260E-05
   2  Prefactor     .10000E-03    46.621       -.16900E-06** at limit **
   3  norm          2.1155        .46919        .19041E-08   -.19978E-03
   4  Prefactor     6.5666        6.9613        .89345E-07   -.71961E-04
   5  Prefactor     .10000E-03    33.723        .10442E-06** at limit **
   6  norm          .10000E-03    1.0982       -.83683E-08** at limit **
   7  Prefactor     21.880        65.512       -.23963E-05   -.43582E-04
   8  Prefactor     .10000E-03    .34992        .10369E-07** at limit **
   9  Prefactor     6.6335        4.4819        .20700E-07   -.11350E-03
  10  Prefactor     5.8635        3.1882        .10626E-05   -.12437E-02
  11  norm          2.5128        2.1658        .28531E-06    .52849E-04
  12  Prefactor     8.0945        5.6898        .30802E-06    .35172E-03
  13  norm          .36548E-02    .10361       -.63892E-07    .38443E-04
  14  norm          .10000E-03    10.684       -.31015E-07** at limit **
  15  Prefactor     2.1086        54.948        .17829E-05    .73942E-05
  16  Prefactor     13.939        16.865       -.15717E-05   -.35519E-03
  17  norm          4.3805        1.1398        .17061E-07   -.12425E-03
  18  Prefactor     24.241        10.941       -.11443E-05   -.95050E-03
  19  norm          5.4447        .67961        .90270E-07   -.73290E-03
  20  Prefactor     .10000E-03    7.6310       -.75261E-07** at limit **
  21  Prefactor     .10000E-03    4.7385        .43708E-07** at limit **
  22  Prefactor     .10000E-03    5.8290        .14437E-07** at limit **
  23  Prefactor     7.3463        26.725        .19976E-05    .82543E-04
  24  norm          1.2818        2.9676        .14350E-05   -.34980E-03
  25  Normalizat    1.1409        .13335       -.13124E-06    .52812E-05
  26  Prefactor     1.0070        .57592E-01   -.17366E-06    .56581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9986
  Prefactor  = 0.0001
  norm       = 2.1155
  Prefactor  = 6.56658
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.8797
  Prefactor  = 0.0001
  Prefactor  = 6.63351
  Prefactor  = 5.86349
  norm       = 2.5128
  Prefactor  = 8.09452
  norm       = 0.00365477
  norm       = 0.0001
  Prefactor  = 2.10864
  Prefactor  = 13.9392
  norm       = 4.38046
  Prefactor  = 24.2407
  norm       = 5.44469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34633
  norm       = 1.2818
  Normalizat = 1.14092
  Prefactor  = 1.00703
 **********
 **   18 **HESSE 
 **********

 FCN=   26684.81     FROM HESSE     STATUS=OK           466 CALLS     3708 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.999        15.837        .91884E-04   -1.4836    
   2  Prefactor     .10000E-03    46.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1155        .46934        .50646E-04   -1.5417    
   4  Prefactor     6.5666        6.9858        .15659E-03   -1.5195    
   5  Prefactor     .10000E-03    35.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1309        .33361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.880        65.660        .85271E-04   -1.4772    
   8  Prefactor     .10000E-03    .35339        .94333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6335        4.4761        .15581E-03   -1.5193    
  10  Prefactor     5.8635        3.2491        .82928E-03   -1.5224    
  11  norm          2.5128        2.3983        .19157E-03   -1.5391    
  12  Prefactor     8.0945        5.7112        .14094E-03   -1.5139    
  13  norm          .36548E-02    .26656        .16008E-01   -1.5696    
  14  norm          .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1086        54.847        .27945E-03   -1.5418    
  16  Prefactor     13.939        17.246        .10724E-03   -1.4961    
  17  norm          4.3805        1.1393        .85396E-04   -1.5289    
  18  Prefactor     24.241        11.491        .81357E-04   -1.4723    
  19  norm          5.4447        .68963        .39597E-04   -1.5241    
  20  Prefactor     .10000E-03    7.6675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3463        26.838        .14796E-03   -1.5166    
  24  norm          1.2818        2.9666        .39188E-03   -1.5482    
  25  Normalizat    1.1409        .15195        .38222E-03   -.88449    
  26  Prefactor     1.0070        .65879E-01    .18605E-03   -.92496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29832e-09
Minuit parameter uncertainties:
  1  15.8405
  2  5.63069e-05
  3  0.469341
  4  6.98662
  5  5.11102e-05
  6  2.43021e-07
  7  65.8777
  8  1.98104e-07
  9  4.47628
  10  3.24924
  11  2.39844
  12  5.71155
  13  0.0615648
  14  4.09781e-06
  15  21.5298
  16  17.2517
  17  1.1393
  18  11.4924
  19  0.689629
  20  2.63426e-06
  21  7.08354e-06
  22  3.43704e-06
  23  26.882
  24  2.96689
  25  0.152011
  26  0.0658838
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  4.098e-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.007e+00  6.588e-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.141e+00  1.520e-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.30e-09 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469188/likelihoodResults_460944001_461548801_4FGL_J0221.5+2513_weekly_bin367.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) = 26684.8103388
delta logL = -0.000445208443125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26684.8098936
delta logL = -1.0371877579e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7411       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0070       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=   26684.81     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      237 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6166.0        .18142E-02** at limit **
   2  alpha         1.5917        3.5581        .17540        .10630E-07
   3  Normalizat    1.1409        .10733        .38222E-03   -.34967E-03
   4  Prefactor     1.0070        .49775E-01    .18605E-03   -.94350E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.59174
  Normalizat = 1.14092
  Prefactor  = 1.00703
 **********
 **   18 **HESSE 
 **********

 FCN=   26684.81     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5917        3.7263        .70158E-02   -.37181    
   3  Normalizat    1.1409        .13935        .15289E-04   -.88449    
   4  Prefactor     1.0070        .64631E-01    .37211E-04   -.92496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21806e-10
Minuit parameter uncertainties:
  1  0.000206456
  2  582.969
  3  0.139392
  4  0.0646361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469188': 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) = 26684.8098935
delta logL = 3.43679857906e-08

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  2.065e-04  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.592e+00  5.830e+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.007e+00  6.464e-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.141e+00  1.394e-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/469188/cmap_HighResolution_460944001_461548801_4FGL_J0221.5+2513_weekly_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-05', job_status='DONE', photon_flux_upper_limit='6.30e-09', time_completed='2021-07-04 19:46:44.667831', job_id='469188', GAL2='1.01', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1625453204.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='367' AND source_name='4FGL J0221.5+2513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:46:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 469188: <4FGL_J0221.5+2513_weekly_bin367> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_weekly_bin367 35.3809 25.2305 460944001 461548801 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 :                                   2225.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             87.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   18623 sec.
    Turnaround time :                            18626 sec.

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

