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


Performing analysis on: 4FGL_J0221.5+2513_daily_bin1776
RA = 35.3809, Dec = 25.2305
tmin = 699667201, tmax = 699926401
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='823942', job_status='RUN', time_executed='2023-03-08 00:08:34.338903', time_epoch_executed='1678262914.34' WHERE source_name='4FGL J0221.5+2513' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823942/ft1_4FGL_J0221.5+2513_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823942/ft2_4FGL_J0221.5+2513_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823942/ft1_4FGL_J0221.5+2513_daily_bin1776.fits outfile=/scratch/kocevski/823942/ft1_filteredMKT_4FGL_J0221.5+2513_daily_bin1776.fits ra=35.3809 dec=25.2305 rad=12.0 tmin=699667201.0 tmax=699926401.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 4.04
user 3.71
sys 0.21

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

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

Number of photons that the gtmktime cut: 905

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823942/ft1_filtered_4FGL_J0221.5+2513_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/823942/ft2_4FGL_J0221.5+2513_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/823942/ltcube_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.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/823942/ft2_4FGL_J0221.5+2513_daily_bin1776.fits
.....................!
real 19.99
user 19.51
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823942/ft1_filtered_4FGL_J0221.5+2513_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/823942/ft2_4FGL_J0221.5+2513_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/823942/ltcube_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.fits outfile=/scratch/kocevski/823942/expmap_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.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/823942/ltcube_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.fits
.....................!
real 190.98
user 185.97
sys 4.52

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/823942/ft1_filtered_4FGL_J0221.5+2513_daily_bin1776.fits scfile=/scratch/kocevski/823942/ft2_4FGL_J0221.5+2513_daily_bin1776.fits outfile=/scratch/kocevski/823942/cmap_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823942/ft1_filtered_4FGL_J0221.5+2513_daily_bin1776.fits scfile=/scratch/kocevski/823942/ft2_4FGL_J0221.5+2513_daily_bin1776.fits outfile=/scratch/kocevski/823942/cmap_HighResolution_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35287E-01   1.0000          .0000       .10000E+07
     2 'norm      '    2.1577       1.0000          .0000       .10000E+07
     3 'Prefactor '    .26247E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    33.820       1.0000          .0000       .10000E+07
     5 'norm      '    1.2598       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.0999       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.7606       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14034E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .13695E-03   1.0000          .0000       .10000E+07
    10 'norm      '    1.4206       1.0000          .0000       .10000E+07
    11 'norm      '    .44440       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.5105       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21256E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13162E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.7759       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.713       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.4471       1.0000          .0000       .10000E+07
    19 'Prefactor '    9.2362       1.0000          .0000       .10000E+07
    20 'Prefactor '    32.279       1.0000          .0000       .10000E+07
    21 'norm      '    .74199E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0240       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=   9411.565     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1846 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75662E-07    51.307       -.47015E-07** at limit **
   2  norm          2.1585        .79996        .97287E-08    .11667E-02
   3  Prefactor      .0000        2.3506       -.24368E-07** at limit **
   4  Prefactor     34.229        3.4986       -.53257E-07    .28870E-01
   5  norm          1.3064        4.3488       -.16278E-06   -.62096E-02
   6  Prefactor     7.0957        3.2119       -.45440E-07    .72480E-03
   7  Prefactor     4.6792        5.3971       -.23977E-07    .44934E-01
   8  Prefactor      .0000        1.2641       -.87102E-07** at limit **
   9  norm           .0000        2.7237       -.74553E-07** at limit **
  10  norm          1.4216        .56576       -.45294E-07   -.45229E-02
  11  norm          .23256E-05    20.448        .70799E-06** at limit **
  12  Prefactor     10.388        33.256       -.46600E-06    .10025E-01
  13  Prefactor     .47351E-07    27.781        .12538E-05** at limit **
  14  norm           .0000        .59088        .11026E-06** at limit **
  15  Prefactor     .77716E-09    5.7201        .27734E-06** at limit **
  16  norm          1.7756        .63413       -.36729E-07   -.37389E-02
  17  Prefactor     14.407        18.911       -.52647E-07   -.98630E-02
  18  Prefactor     8.4450        7.8190        .59455E-07    .40194E-01
  19  Prefactor     9.3914        13.872       -.94631E-07    .10644E-01
  20  Prefactor     31.608        14.533        .58301E-07    .61801E-01
  21  norm          .11657E-08    5.5107        .13400E-06** at limit **
  22  Normalizat    1.1700        .23311        .30100E-05    .68618E-05
  23  Prefactor     1.0241        .10629       -.24393E-06    .19654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.56617e-08
  norm       = 2.1585
  Prefactor  = 0
  Prefactor  = 34.2286
  norm       = 1.30636
  Prefactor  = 7.09567
  Prefactor  = 4.67918
  Prefactor  = 0
  norm       = 0
  norm       = 1.42165
  norm       = 2.32558e-06
  Prefactor  = 10.3882
  Prefactor  = 4.7351e-08
  norm       = 0
  Prefactor  = 7.77156e-10
  norm       = 1.77559
  Prefactor  = 14.4073
  Prefactor  = 8.44495
  Prefactor  = 9.39136
  Prefactor  = 31.6076
  norm       = 1.16573e-09
  Normalizat = 1.17001
  Prefactor  = 1.02411
 **********
 **   18 **HESSE 
 **********

 FCN=   9411.565     FROM HESSE     STATUS=OK           420 CALLS     2266 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75662E-07    50.714        .16184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1585        .80184        .70102E-03   -1.5679    
   3  Prefactor      .0000        2.3486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.229        28.530        .17198E-03   -1.5591    
   5  norm          1.3064        5.6749        .99353E-03   -1.5685    
   6  Prefactor     7.0957        3.2188        .37624E-03   -1.5655    
   7  Prefactor     4.6792        11.004        .46090E-03   -1.5665    
   8  Prefactor      .0000        1.2675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.7058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4216        .56977        .90728E-03   -1.5684    
  11  norm          .23256E-05    119.92        .84513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.388        35.988        .34338E-03   -1.5644    
  13  Prefactor     .47351E-07    31.081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .59205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .77716E-09    5.7210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7756        .63931        .78525E-03   -1.5681    
  17  Prefactor     14.407        20.825        .26086E-03   -1.5632    
  18  Prefactor     8.4450        8.7340        .34468E-03   -1.5650    
  19  Prefactor     9.3914        14.160        .32953E-03   -1.5647    
  20  Prefactor     31.608        36.429        .17604E-03   -1.5596    
  21  norm          .11657E-08    5.5123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1700        .21137        .81292E-01   -.87535    
  23  Prefactor     1.0241        .93750E-01    .41763E-01   -.91930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44182e-06
Minuit parameter uncertainties:
  1  0.00391809
  2  0.801838
  3  4.46927e-06
  4  28.53
  5  5.44553
  6  3.21883
  7  11.0041
  8  1.08811e-06
  9  7.29001e-06
  10  0.569771
  11  0.0333998
  12  35.9886
  13  0.00242677
  14  8.9055e-07
  15  0.000131216
  16  0.639314
  17  20.8246
  18  8.73402
  19  14.16
  20  36.4296
  21  0.000161714
  22  0.211521
  23  0.0937653
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  2.326e-06  3.340e-02  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:  1.024e+00  9.377e-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.170e+00  2.115e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823942/likelihoodResults_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.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) = 9411.56897734
delta logL = -0.00410030823514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9411.47555532
delta logL = 0.0893217104167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3860       1.0000          .0000       .10000E+07
     2 'alpha     '    3.5961       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0227       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=   9411.476     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3833        1246.9        .21984E-04   -.38081E-02
   2  alpha         3.5954        3.3799        .36558E-01   -.37057E-04
   3  Normalizat    1.1657        .29292        .36046E-03   -.57607E-03
   4  Prefactor     1.0227        .11299        .18025E-03   -.11633E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.38334
  alpha      = 3.59537
  Normalizat = 1.16571
  Prefactor  = 1.02269
 **********
 **   18 **HESSE 
 **********

 FCN=   9411.476     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3833        17.810        .87937E-06   -1.5671    
   2  alpha         3.5954        3.8498        .14623E-02    .45354    
   3  Normalizat    1.1657        .22227        .72092E-04   -.87669    
   4  Prefactor     1.0227        .10500        .36049E-04   -.91977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31713e-09
Minuit parameter uncertainties:
  1  15.5254
  2  2.58499
  3  0.222448
  4  0.105018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823942': 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) = 9411.47555506
delta logL = 0.0893219770842

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  3.383e+00  1.553e+01  0.000e+00  1.000e+06 ( 1.000e-14)
232        alpha:  3.595e+00  2.585e+00  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:  1.023e+00  1.050e-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:  1.166e+00  2.224e-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/823942/cmap_HighResolution_699667201_699926401_4FGL_J0221.5+2513_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', job_status='DONE', photon_flux_upper_limit='1.82e-08', time_completed='2023-03-08 00:21:22.859015', job_id='823942', GAL2='1.02', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1678263682.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.93e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1776' AND source_name='4FGL J0221.5+2513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:21:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 823942: <4FGL_J0221.5+2513_daily_bin1776> in cluster <slac> Done

Job <4FGL_J0221.5+2513_daily_bin1776> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Mar  8 00:04:56 2023
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:05:00 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:05:00 2023
Terminated at Wed Mar  8 00:21:23 2023
Results reported at Wed Mar  8 00:21:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.5+2513_daily_bin1776 35.3809 25.2305 699667201 699926401 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 :                                   768.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            987 sec.

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

