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


Performing analysis on: 4FGL_J0221.1+3556_daily_bin1673
RA = 35.281, Dec = 35.9359
tmin = 672969601, 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='351195', job_status='RUN', time_executed='2022-05-03 00:09:33.227016', time_epoch_executed='1651561773.23' WHERE source_name='4FGL J0221.1+3556' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351195

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=672969601.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>=672969601.0 && nMetStart<673228801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351195/ft1_4FGL_J0221.1+3556_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351195/ft1_4FGL_J0221.1+3556_daily_bin1673.fits outfile=/scratch/kocevski/351195/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1673.fits ra=35.281 dec=35.9359 rad=12.0 tmin=672969601.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 3.08
user 2.76
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.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/351195/ft1_filteredMKT_4FGL_J0221.1+3556_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.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.53
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351195/ltcube_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.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/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits
.....................!
real 16.50
user 16.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351195/ltcube_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.fits outfile=/scratch/kocevski/351195/expmap_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.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/351195/ltcube_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.fits
.....................!
real 191.73
user 186.31
sys 4.94

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0221.1+3556 @ 35.281 35.9359

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits scfile=/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits outfile=/scratch/kocevski/351195/cmap_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.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.281 yref=35.9359 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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits scfile=/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits outfile=/scratch/kocevski/351195/cmap_HighResolution_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.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.281 yref=35.9359 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351195/Model_4FGL_J0221.1+3556_daily_bin1673.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/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits.........................!
real 19.67
user 17.49
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits', '/scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits', expMap='/scratch/kocevski/351195/expmap_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.fits', expCube='/scratch/kocevski/351195/ltcube_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351195/Model_4FGL_J0221.1+3556_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.1+3556'

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.936e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351195/ft1_filtered_4FGL_J0221.1+3556_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351195/ft2_4FGL_J0221.1+3556_daily_bin1673.fits
Exposure map: /scratch/kocevski/351195/expmap_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351195/ltcube_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351195/Model_4FGL_J0221.1+3556_daily_bin1673.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) = 493.626228404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .34512       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13781E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6765.4       1.0000         .10000E-03   10000.    
    15 'norm      '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'norm      '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .23761       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   492.2510     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     3117 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .87754        .29895E-06** at limit **
   2  norm          .34380        2.1827       -.11768E-05    .38665E-03
   3  Prefactor     .10000E-03    11.915        .66546E-06** at limit **
   4  Prefactor     .10000E-03    30.831       -.26742E-06** at limit **
   5  Prefactor     .10002E-03    44.623        .30830E-05** at limit **
   6  Prefactor     .10026E-03    28.665        .79182E-06** at limit **
   7  norm          .10000E-03    11.847        .13142E-05** at limit **
   8  Prefactor     .10078E-03    14.937        .21210E-05** at limit **
   9  norm          .12387E-03    68.272        .48413E-05** at limit **
  10  Prefactor     .11980E-03    55.593        .33736E-05** at limit **
  11  norm          .10078E-03    14.963       -.12922E-05** at limit **
  12  norm          .68504E-02    10.939       -.42613E-05    .78622E-03
  13  norm          .10000E-03    2.5864        .13116E-06** at limit **
  14  Prefactor     6765.4        1.0002       -.24993E-09    .92532E-04
  15  norm         10000.0        238.45        .17579E-04** at limit **
  16  Prefactor    10000.0        20.037        .57768E-05   -.10263E-02
  17  norm         10000.0        242.35        .17503E-04** at limit **
  18  Prefactor     .80513E-02    3.5177       -.23738E-05    .45635E-03
  19  norm          .10394E-03    49.866        .40881E-05** at limit **
  20  Prefactor     .10000E-03    19.824        .65933E-06** at limit **
  21  Normalizat    .10000E-01    .22694        .10507E-05** at limit **
  22  Prefactor     .23766        .11560        .73405E-07    .32601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.343804
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100024
  Prefactor  = 0.000100262
  norm       = 0.000100001
  Prefactor  = 0.00010078
  norm       = 0.000123873
  Prefactor  = 0.000119804
  norm       = 0.00010078
  norm       = 0.00685035
  norm       = 0.0001
  Prefactor  = 6765.37
  norm       = 10000
  Prefactor  = 9999.99
  norm       = 10000
  Prefactor  = 0.00805133
  norm       = 0.000103937
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.237657
 **********
 **   18 **HESSE 
 **********

 FCN=   492.2510     FROM HESSE     STATUS=OK           376 CALLS     3493 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .87574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .34380        2.2852        .10621E-01   -1.5591    
   3  Prefactor     .10000E-03    11.919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.118        .48387E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    44.777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10026E-03    56.022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10078E-03    16.454        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .12387E-03    127.25        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11980E-03    156.34        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10078E-03    16.426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .68504E-02    7184.0        .90712E-02   -1.5692    
  13  norm          .10000E-03    2.5870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6765.4        2594.3        .21377E-03    .36086    
  15  norm         10000.0        532.56        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6643.6        .90712E-02    1.5693    
  17  norm         10000.0        510.30        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .80513E-02    8483.4        .90712E-02   -1.5690    
  19  norm          .10394E-03    148.22        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .21319        .14769       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23766        .12375        .35851E-01   -1.2612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12244e-06
Minuit parameter uncertainties:
  1  7.6337e-06
  2  1.77258
  3  2.55364e-05
  4  0.000455908
  5  0.0020607
  6  0.00766678
  7  0.000156658
  8  0.00716578
  9  0.110466
  10  0.111577
  11  0.00716072
  12  11.8779
  13  5.7566e-06
  14  2750.03
  15  0.095047
  16  9.30923
  17  0.000375708
  18  17.6278
  19  0.0484333
  20  0.000230766
  21  4.19762e-07
  22  0.123888
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.008e-04  7.161e-03  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  2.377e-01  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.000e-02  4.198e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 35.281 35.936
Photon Flux Upper Limit: 5.85e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351195/likelihoodResults_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.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) = 492.251236164
delta logL = -0.000283986733507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 492.250955666
delta logL = -3.48869417621e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4966       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .23765       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   492.2510     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      267 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    604.96        .61788E-02** at limit **
   2  alpha         2.1344        2.8901        .50000       -.62613E-08
   3  Normalizat    .10000E-01    .18384E-01    .60045E-02** at limit **
   4  Prefactor     .23766        .31872E-01    .15998E-03   -.68478E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.1344
  Normalizat = 0.01
  Prefactor  = 0.237656
 **********
 **   18 **HESSE 
 **********

 FCN=   492.2510     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6352.6        .88199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1344        3.8767        .50000       -.14676    
   3  Normalizat    .10000E-01    .12847        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23766        .84359E-01    .31996E-04   -1.2612    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.53518e-09
Minuit parameter uncertainties:
  1  0.00233419
  2  6412.65
  3  5.184e-07
  4  0.0844019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351195': 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): 102
logL (Free Index) = 492.250952132
delta logL = 4.51961454928e-08

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.000e-04  2.334e-03  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  2.134e+00  6.413e+03  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  4.833e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  7.644e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  2.377e-01  8.440e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.000e-02  5.184e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 35.281 35.936

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/351195/cmap_HighResolution_672969601_673228801_4FGL_J0221.1+3556_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-03', job_status='DONE', photon_flux_upper_limit='5.85e-06', time_completed='2022-05-03 00:15:40.592463', job_id='351195', GAL2='0.24', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651562140.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.24', dlogl='4.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1673' AND source_name='4FGL J0221.1+3556' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:15:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 351097: <4FGL_J0221.1+3556_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:34 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:44 2022
Terminated at Tue May  3 00:14:18 2022
Results reported at Tue May  3 00:14:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1673 35.281 35.9359 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.1+3556 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   364.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   394 sec.
    Turnaround time :                            524 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 351195: <4FGL_J0221.1+3556_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0221.1+3556_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:40 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:08:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:08:08 2022
Terminated at Tue May  3 00:15:41 2022
Results reported at Tue May  3 00:15:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_daily_bin1673 35.281 35.9359 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0221.1+3556 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   363.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   452 sec.
    Turnaround time :                            601 sec.

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

