aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 154 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0221.5+2513_weekly_bin717
RA = 35.3809, Dec = 25.2305
tmin = 672624001, tmax = 673228801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='367586', job_status='RUN', time_executed='2022-05-03 01:06:35.882062', time_epoch_executed='1651565195.88' WHERE source_name='4FGL J0221.5+2513' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367586

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367586/ft1_4FGL_J0221.5+2513_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367586/ft1_4FGL_J0221.5+2513_weekly_bin717.fits outfile=/scratch/kocevski/367586/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin717.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=672624001.0 tmax=673228801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.39
user 6.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/367586/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.59
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 123

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367586/ltcube_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits
.....................!
real 41.88
user 41.38
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367586/ltcube_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits outfile=/scratch/kocevski/367586/expmap_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/367586/ltcube_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits
.....................!
real 192.63
user 187.07
sys 5.13

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/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits scfile=/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits outfile=/scratch/kocevski/367586/cmap_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits scfile=/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits outfile=/scratch/kocevski/367586/cmap_HighResolution_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.60
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367586/Model_4FGL_J0221.5+2513_weekly_bin717.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits.....................!
real 28.05
user 26.66
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits', '/scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits', expMap='/scratch/kocevski/367586/expmap_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits', expCube='/scratch/kocevski/367586/ltcube_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367586/Model_4FGL_J0221.5+2513_weekly_bin717.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/367586/ft1_filtered_4FGL_J0221.5+2513_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367586/ft2_4FGL_J0221.5+2513_weekly_bin717.fits
Exposure map: /scratch/kocevski/367586/expmap_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367586/ltcube_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367586/Model_4FGL_J0221.5+2513_weekly_bin717.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    74.752       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.874       1.0000         .10000E-03   10000.    
     7 'Prefactor '    423.64       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.152       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1843.7       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    574.06       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .53688       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89069       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=   1419.995     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3592 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.542        67.871        .18537E-06    .83943E-05
   2  Prefactor     74.742        177.73        .45603E-06    .57318E-05
   3  norm          1.7030        1.1660        .53230E-08    .88903E-04
   4  Prefactor     .10000E-03    12.970       -.21515E-08** at limit **
   5  Prefactor     .10000E-03    128.17       -.42221E-07** at limit **
   6  norm          21.874        14.205       -.45865E-07    .59852E-04
   7  Prefactor     423.49        541.32       -.50603E-07    .29765E-05
   8  Prefactor     28.477        16.989        .30700E-07    .42474E-04
   9  Prefactor     .10000E-03    21.423        .18640E-06** at limit **
  10  Prefactor     .10000E-03    38.493       -.22798E-06** at limit **
  11  norm          14.154        15.250       -.37296E-05   -.35946E-03
  12  Prefactor     .10000E-03    44.236        .54381E-06** at limit **
  13  norm          .10000E-03    3.5082        .29514E-05** at limit **
  14  norm          .10000E-03    246.22        .32720E-06** at limit **
  15  Prefactor     .10000E-03    400.88       -.27245E-06** at limit **
  16  Prefactor     .10000E-03    163.14        .18509E-06** at limit **
  17  norm          .10000E-03    17.493        .20642E-06** at limit **
  18  Prefactor     .10000E-03    297.51        .17045E-06** at limit **
  19  norm          .10000E-03    17.954        .13784E-08** at limit **
  20  Prefactor    10000.0        5011.4        .52565E-05** at limit **
  21  Prefactor     1843.9        1089.5       -.17942E-06    .64596E-05
  22  Prefactor     .10003E-03    6540.7       -.36754E-05** at limit **
  23  Prefactor     .10002E-03    1262.0       -.24883E-05** at limit **
  24  norm          574.00        626.21       -.16876E-06    .23802E-05
  25  Normalizat    .53708        .53902       -.11788E-05    .23423E-04
  26  Prefactor     .89059        .28040       -.96019E-07    .42306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5422
  Prefactor  = 74.7422
  norm       = 1.70304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.8737
  Prefactor  = 423.49
  Prefactor  = 28.4771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1544
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 1843.94
  Prefactor  = 0.000100035
  Prefactor  = 0.000100018
  norm       = 574.003
  Normalizat = 0.537076
  Prefactor  = 0.890587
 **********
 **   18 **HESSE 
 **********

 FCN=   1419.995     FROM HESSE     STATUS=OK           444 CALLS     4036 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.542        67.954        .68186E-04   -1.4532    
   2  Prefactor     74.742        177.23        .46439E-04   -1.3977    
   3  norm          1.7030        1.1689        .30088E-04   -1.5447    
   4  Prefactor     .10000E-03    12.984        .13255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    128.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.874        14.154        .85641E-04   -1.4772    
   7  Prefactor     423.49        541.73        .99295E-04   -1.1563    
   8  Prefactor     28.477        16.984        .75077E-04   -1.4640    
   9  Prefactor     .10000E-03    21.484        .17012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.154        16.550        .10647E-03   -1.4955    
  12  Prefactor     .10000E-03    44.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3829        .12607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    246.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    400.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    163.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.586        .15393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    297.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.966        .15600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        5010.3        .18223E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1843.9        1087.8        .51575E-04   -.68311    
  22  Prefactor     .10003E-03    6540.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    1261.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          574.00        626.35        .85979E-04   -1.0869    
  25  Normalizat    .53708        .56193        .46033E-03   -1.1073    
  26  Prefactor     .89059        .30353        .20163E-03   -.96471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91929e-10
Minuit parameter uncertainties:
  1  68.1068
  2  178.505
  3  1.16892
  4  9.55969e-06
  5  4.06949e-05
  6  14.156
  7  548.484
  8  16.987
  9  1.5406e-05
  10  0.000137287
  11  16.5556
  12  0.000112277
  13  0.000289141
  14  0.000528403
  15  0.000694584
  16  0.000218302
  17  6.67133e-05
  18  0.000273662
  19  4.97529e-06
  20  0.202625
  21  1102.63
  22  0.0218733
  23  0.00983876
  24  634.173
  25  0.568031
  26  0.304111
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  5.284e-04  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:  8.906e-01  3.041e-01  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:  5.371e-01  5.680e-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: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367586/likelihoodResults_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1419.99454833
delta logL = -1.9193511207e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1419.99452954
delta logL = -4.02897512686e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10592E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8632       1.0000          .0000       5.0000    
     3 'Normalizat'    .53707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89059       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=   1419.995     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      288 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8718.5        .18142E-01** at limit **
   2  alpha         1.1326        2.5344        .16686        .50079E-08
   3  Normalizat    .53708        .78542E-01    .46033E-03    .47646E-04
   4  Prefactor     .89059        .44030E-01    .20163E-03    .10850E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.13259
  Normalizat = 0.537076
  Prefactor  = 0.890588
 **********
 **   18 **HESSE 
 **********

 FCN=   1419.995     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    314.38        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1326        4.4331        .66742E-02   -.57873    
   3  Normalizat    .53708        .52123        .18413E-04   -1.1073    
   4  Prefactor     .89059        .29435        .40326E-04   -.96471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65487e-11
Minuit parameter uncertainties:
  1  0.000915394
  2  2651.87
  3  0.526085
  4  0.294873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367586': 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) = 1419.9945291
delta logL = 3.1157014746e-08

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  1.000e-04  9.154e-04  1.000e-04  1.000e+04 ( 1.000e-14)
232        alpha:  1.133e+00  2.652e+03  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:  8.906e-01  2.949e-01  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:  5.371e-01  5.261e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/367586/cmap_HighResolution_672624001_673228801_4FGL_J0221.5+2513_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-04', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2022-05-03 01:14:32.733426', job_id='367586', GAL2='0.89', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1651565672.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='717' AND source_name='4FGL J0221.5+2513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:14:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 367586: <4FGL_J0221.5+2513_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0221.5+2513_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:27 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:03:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:03:51 2022
Terminated at Tue May  3 01:14:33 2022
Results reported at Tue May  3 01:14:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_weekly_bin717 35.3809 25.2305 672624001 673228801 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 :                                   477.31 sec.
    Max Memory :                                 1091 MB
    Average Memory :                             241.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            846 sec.

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

