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 8 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1748
RA = 35.3809, Dec = 25.2305
tmin = 692409601, tmax = 692668801
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='875671', job_status='RUN', time_executed='2022-12-14 00:05:19.971746', time_epoch_executed='1671005119.97' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875671/ft1_4FGL_J0221.5+2513_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875671/ft1_4FGL_J0221.5+2513_daily_bin1748.fits outfile=/scratch/kocevski/875671/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1748.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=692409601.0 tmax=692668801.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 3.61
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.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/875671/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/875671/ft1_filtered_4FGL_J0221.5+2513_daily_bin1748.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.57
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 784

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875671/ft1_filtered_4FGL_J0221.5+2513_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/875671/ltcube_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.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/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits
.....................!
real 16.10
user 15.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875671/ft1_filtered_4FGL_J0221.5+2513_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/875671/ltcube_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.fits outfile=/scratch/kocevski/875671/expmap_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.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/875671/ltcube_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.fits
.....................!
real 191.22
user 185.34
sys 5.46

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/875671/ft1_filtered_4FGL_J0221.5+2513_daily_bin1748.fits scfile=/scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits outfile=/scratch/kocevski/875671/cmap_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875671/ft1_filtered_4FGL_J0221.5+2513_daily_bin1748.fits scfile=/scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits outfile=/scratch/kocevski/875671/cmap_HighResolution_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875671/ft1_filtered_4FGL_J0221.5+2513_daily_bin1748.fits', '/scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits', expMap='/scratch/kocevski/875671/expmap_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.fits', expCube='/scratch/kocevski/875671/ltcube_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875671/Model_4FGL_J0221.5+2513_daily_bin1748.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  0.000e+00  1.000e+06 ( 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 -5.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/875671/ft1_filtered_4FGL_J0221.5+2513_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/875671/ft2_4FGL_J0221.5+2513_daily_bin1748.fits
Exposure map: /scratch/kocevski/875671/expmap_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.fits
Exposure cube: /scratch/kocevski/875671/ltcube_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875671/Model_4FGL_J0221.5+2513_daily_bin1748.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) = 8534.56649237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15460E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .14573       1.0000          .0000       .10000E+07
     3 'Prefactor '    31.665       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.1816       1.0000          .0000       .10000E+07
     5 'norm      '    2.8644       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.0876       1.0000          .0000       .10000E+07
     7 'Prefactor '    .38586E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0316       1.0000          .0000       .10000E+07
     9 'norm      '    4.9397       1.0000          .0000       .10000E+07
    10 'norm      '    1.4334       1.0000          .0000       .10000E+07
    11 'norm      '    .24448E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .11195E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.976       1.0000          .0000       .10000E+07
    14 'norm      '    2.8087       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14733E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.1482       1.0000          .0000       .10000E+07
    17 'Prefactor '    .86325E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .26243E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19475E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .25546E-01   1.0000          .0000       .10000E+07
    21 'norm      '    .44167E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8534.495     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1883 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12834E-06    43.908        .38152E-06** at limit **
   2  norm          .14566        .41493        .32021E-07** at limit **
   3  Prefactor     31.697        9.8094       -.41575E-08   -.24562E-01
   4  Prefactor     7.2141        11.373       -.62782E-08    .20597E-02
   5  norm          2.8641        2.5645        .15986E-07    .84312E-03
   6  Prefactor     6.0877        3.6977       -.18141E-07   -.26440E-03
   7  Prefactor      .0000        3.3724       -.21414E-07** at limit **
   8  Prefactor     4.0251        5.3155        .53461E-08    .58384E-04
   9  norm          4.9396        3.9041        .24429E-07    .10391E-02
  10  norm          1.4335        .69722       -.80156E-11    .25825E-02
  11  norm          .23337E-06    23.430        .13521E-06** at limit **
  12  Prefactor     .47851E-07    10.369        .96308E-07** at limit **
  13  Prefactor     40.819        9.5895        .96510E-08    .11242    
  14  norm          2.8090        1.6367        .21152E-08    .84367E-03
  15  Prefactor     .44409E-09    5.7922        .53690E-07** at limit **
  16  norm          1.1484        .52444       -.68080E-08   -.16731E-02
  17  Prefactor     .27756E-09    5.7335        .35694E-07** at limit **
  18  Prefactor      .0000        4.6527        .67546E-07** at limit **
  19  Prefactor     .12285E-06    8.2273        .80744E-07** at limit **
  20  Prefactor      .0000        30.918        .11127E-06** at limit **
  21  norm          .98588E-07    16.006        .88562E-08** at limit **
  22  Normalizat    1.0215        .22374        .20836E-05    .90291E-04
  23  Prefactor     .88886        .98957E-01   -.24224E-06    .13608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28342e-07
  norm       = 0.145663
  Prefactor  = 31.6975
  Prefactor  = 7.21414
  norm       = 2.86406
  Prefactor  = 6.08768
  Prefactor  = 0
  Prefactor  = 4.02509
  norm       = 4.93957
  norm       = 1.43353
  norm       = 2.33369e-07
  Prefactor  = 4.78506e-08
  Prefactor  = 40.8193
  norm       = 2.80898
  Prefactor  = 4.44089e-10
  norm       = 1.14842
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 1.22846e-07
  Prefactor  = 0
  norm       = 9.85878e-08
  Normalizat = 1.02147
  Prefactor  = 0.888859
 **********
 **   18 **HESSE 
 **********

 FCN=   8534.495     FROM HESSE     STATUS=OK           416 CALLS     2299 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12834E-06    43.972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .14566        .42128        .12835E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.697        13.036        .17774E-03   -1.5595    
   4  Prefactor     7.2141        11.381        .37407E-03   -1.5654    
   5  norm          2.8641        2.5705        .60038E-03   -1.5674    
   6  Prefactor     6.0877        3.6992        .40668E-03   -1.5659    
   7  Prefactor      .0000        3.3569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0251        5.3368        .50198E-03   -1.5668    
   9  norm          4.9396        3.8562        .45228E-03   -1.5664    
  10  norm          1.4335        .69047        .90158E-03   -1.5684    
  11  norm          .23337E-06    23.876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .47851E-07    18.751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.819        46.301        .15623E-03   -1.5580    
  14  norm          2.8090        1.6361        .60671E-03   -1.5674    
  15  Prefactor     .44409E-09    7.9334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1484        .52736        .98929E-03   -1.5687    
  17  Prefactor     .27756E-09    7.9780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        4.6324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12285E-06    17.985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        30.865        .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .98588E-07    16.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0215        .19937        .79098E-01   -.92315    
  23  Prefactor     .88886        .86917E-01    .44863E-01   -.96531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96702e-07
Minuit parameter uncertainties:
  1  0.00475113
  2  0.421275
  3  13.0361
  4  11.3806
  5  2.57047
  6  3.69921
  7  7.3241e-06
  8  5.33678
  9  3.85617
  10  0.690469
  11  0.00472112
  12  0.00189429
  13  46.3014
  14  1.63615
  15  0.000115669
  16  0.527357
  17  9.56976e-05
  18  4.33988e-07
  19  0.00297268
  20  5.38187e-05
  21  0.00254103
  22  0.199519
  23  0.0869308
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  2.334e-07  4.721e-03  0.000e+00  1.000e+06 ( 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 -5.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.889e-01  8.693e-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.021e+00  1.995e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875671/likelihoodResults_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.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) = 8534.35586697
delta logL = 0.139522237654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8534.35267967
delta logL = 0.142709535821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22050       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .99701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89359       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8534.353     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      361 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22033        .45266        .81458E-05** at limit **
   2  alpha         5.0000        3.5946        .50000    ** at limit **
   3  Normalizat    .99698        .21857        .35393E-03    .13684E-04
   4  Prefactor     .89359        .98738E-01    .17083E-03    .10116E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.220326
  alpha      = 5
  Normalizat = 0.996976
  Prefactor  = 0.893585
 **********
 **   18 **HESSE 
 **********

 FCN=   8534.353     FROM HESSE     STATUS=OK            29 CALLS      390 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22033        .45137        .32583E-06   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.5899        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .99698        .21877        .14157E-04   -.93132    
   4  Prefactor     .89359        .98815E-01    .68330E-05   -.96366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95397e-12
Minuit parameter uncertainties:
  1  0.45137
  2  1.8085e-05
  3  0.218969
  4  0.0988349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875671': 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) = 8534.35267939
delta logL = 0.142709817348

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  2.203e-01  4.514e-01  0.000e+00  1.000e+06 ( 1.000e-14)
232        alpha:  5.000e+00  1.808e-05  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  4.094e-01  0.000e+00 -5.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.936e-01  9.883e-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:  9.970e-01  2.190e-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/875671/cmap_HighResolution_692409601_692668801_4FGL_J0221.5+2513_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', job_status='DONE', photon_flux_upper_limit='1.45e-08', time_completed='2022-12-14 00:17:11.430930', job_id='875671', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.02', time_epoch_completed='1671005831.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.43e-01', ts2='0.29', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1748' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:17:11 PST 2022


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

Job <4FGL_J0221.5+2513_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:04:59 2022
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:05:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:05:00 2022
Terminated at Wed Dec 14 00:17:12 2022
Results reported at Wed Dec 14 00:17:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1748 35.3809 25.2305 692409601 692668801 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 :                                   712.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

