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 213 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.1+3556_weekly_bin717
RA = 35.281, Dec = 35.9359
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='367584', job_status='RUN', time_executed='2022-05-03 01:07:32.730783', time_epoch_executed='1651565252.73' WHERE source_name='4FGL J0221.1+3556' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367584

Creating custom pfile directory:
/scratch/kocevski/367584/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/367584/ft1_4FGL_J0221.1+3556_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/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367584/ft1_4FGL_J0221.1+3556_weekly_bin717.fits outfile=/scratch/kocevski/367584/ft1_filteredMKT_4FGL_J0221.1+3556_weekly_bin717.fits ra=35.281 dec=35.9359 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.41
user 6.13
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_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/367584/ft1_filteredMKT_4FGL_J0221.1+3556_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367584/ft1_filtered_4FGL_J0221.1+3556_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.56
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 198

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367584/ltcube_672624001_673228801_4FGL_J0221.1+3556_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/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits
.....................!
real 34.83
user 34.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367584/ltcube_672624001_673228801_4FGL_J0221.1+3556_weekly_bin717.fits outfile=/scratch/kocevski/367584/expmap_672624001_673228801_4FGL_J0221.1+3556_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/367584/ltcube_672624001_673228801_4FGL_J0221.1+3556_weekly_bin717.fits
.....................!
real 192.14
user 185.82
sys 5.80

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/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits scfile=/scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits outfile=/scratch/kocevski/367584/cmap_672624001_673228801_4FGL_J0221.1+3556_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.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits scfile=/scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits outfile=/scratch/kocevski/367584/cmap_HighResolution_672624001_673228801_4FGL_J0221.1+3556_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.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.60
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367584/Model_4FGL_J0221.1+3556_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/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits......................!
real 33.03
user 31.69
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits', '/scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits', expMap='/scratch/kocevski/367584/expmap_672624001_673228801_4FGL_J0221.1+3556_weekly_bin717.fits', expCube='/scratch/kocevski/367584/ltcube_672624001_673228801_4FGL_J0221.1+3556_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367584/Model_4FGL_J0221.1+3556_weekly_bin717.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/367584/ft1_filtered_4FGL_J0221.1+3556_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367584/ft2_4FGL_J0221.1+3556_weekly_bin717.fits
Exposure map: /scratch/kocevski/367584/expmap_672624001_673228801_4FGL_J0221.1+3556_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367584/ltcube_672624001_673228801_4FGL_J0221.1+3556_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367584/Model_4FGL_J0221.1+3556_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) = 2218.55827138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74981       1.0000         .10000E-03   10000.    
     2 'norm      '    .71136       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.175       1.0000         .10000E-03   10000.    
     7 'norm      '    24.648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12686E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18491E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .80825       1.0000         .10000E-03   10000.    
    12 'norm      '    .15059E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .54501       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.773       1.0000         .10000E-03   10000.    
    15 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3868       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13646E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77708       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88332       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.

 FCN=   2218.514     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2456 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74981        .80754       -.19503E-07   -.28669E-04
   2  norm          .71137        .74357       -.15939E-07   -.11465E-03
   3  Prefactor     .10000E-03    11.599        .38431E-06** at limit **
   4  Prefactor     8.0352        6.9647       -.29824E-06   -.50206E-04
   5  Prefactor     .10000E-03    193.29        .18742E-05** at limit **
   6  Prefactor     22.055        116.03       -.26709E-06   -.27050E-05
   7  norm          24.649        14.888        .17480E-05   -.91875E-05
   8  Prefactor     .10000E-03    39.829       -.10988E-05** at limit **
   9  norm          .10000E-03    104.87       -.13242E-04** at limit **
  10  Prefactor     .10004E-03    1678.9        .98111E-05** at limit **
  11  norm          .80674        2.0317       -.25514E-06    .37005E-04
  12  norm          .10000E-03    276.49       -.18589E-05** at limit **
  13  norm          .54510        .55812       -.17625E-06   -.49471E-03
  14  Prefactor     20.778        21.598       -.59241E-06    .24900E-04
  15  norm          .10000E-03    34.934       -.21236E-06** at limit **
  16  Prefactor     .10000E-03    67.702       -.79836E-06** at limit **
  17  norm          8.3904        22.912        .12402E-05    .64902E-05
  18  Prefactor     .10000E-03    8319.9        .14764E-04** at limit **
  19  norm          .10000E-03    139.68       -.26706E-06** at limit **
  20  Prefactor     .10000E-03    22.860        .17466E-06** at limit **
  21  Normalizat    .77693        .37033        .46091E-05    .67483E-05
  22  Prefactor     .88341        .17788       -.32488E-06    .15431E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.749814
  norm       = 0.711367
  Prefactor  = 0.0001
  Prefactor  = 8.03524
  Prefactor  = 0.0001
  Prefactor  = 22.0554
  norm       = 24.6491
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100042
  norm       = 0.806743
  norm       = 0.0001
  norm       = 0.545105
  Prefactor  = 20.7779
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.39037
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.776932
  Prefactor  = 0.883409
 **********
 **   18 **HESSE 
 **********

 FCN=   2218.514     FROM HESSE     STATUS=OK           350 CALLS     2806 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74981        .81023        .42745E-04   -1.5535    
   2  norm          .71137        .75359        .40438E-04   -1.5539    
   3  Prefactor     .10000E-03    11.635        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0352        6.9856        .10141E-03   -1.5141    
   5  Prefactor     .10000E-03    193.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.055        116.04        .85059E-04   -1.4768    
   7  norm          24.649        15.117        .80685E-04   -1.4715    
   8  Prefactor     .10000E-03    40.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    104.71        .36457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    104.75        .99578E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .80674        2.3045        .10028E-03   -1.5528    
  12  norm          .10000E-03    276.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54510        .56086        .34378E-04   -1.5560    
  14  Prefactor     20.778        21.338        .87879E-04   -1.4796    
  15  norm          .10000E-03    34.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    67.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3904        23.078        .13843E-03   -1.5129    
  18  Prefactor     .10000E-03    8319.3        .20544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    139.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77693        .41130        .35310E-03   -1.0093    
  22  Prefactor     .88341        .20097        .17473E-03   -.96723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51016e-10
Minuit parameter uncertainties:
  1  0.810238
  2  0.753603
  3  2.00776e-05
  4  6.98629
  5  8.66372e-05
  6  101.491
  7  15.1194
  8  0.000378662
  9  0.000110199
  10  0.00420837
  11  2.30471
  12  0.000203839
  13  0.560865
  14  21.3461
  15  9.89612e-05
  16  5.92192e-05
  17  23.1027
  18  0.00782627
  19  3.38948e-05
  20  3.60207e-06
  21  0.412959
  22  0.201142
Done.

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

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  8.067e-01  2.305e+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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  8.834e-01  2.011e-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:  7.769e-01  4.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 35.281 35.936
Photon Flux Upper Limit: 4.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367584/likelihoodResults_672624001_673228801_4FGL_J0221.1+3556_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): 0
logL (Free Index) = 2217.4506931
delta logL = 1.06355833842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2217.43359889
delta logL = 1.08065254796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17113       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4055       1.0000          .0000       5.0000    
     3 'Normalizat'    .62619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93021       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.

 FCN=   2217.434     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17091        3.7485        .33434E-02    .65394E-03
   2  alpha         4.4084        3.9163        .29851        .10885E-04
   3  Normalizat    .62607        .13838        .87564E-01    .35544E-05
   4  Prefactor     .93016        .73353E-01    .45389E-01   -.28860E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.17091
  alpha      = 4.40839
  Normalizat = 0.626074
  Prefactor  = 0.930159
 **********
 **   18 **HESSE 
 **********

 FCN=   2217.434     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      286 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17091        5.4360        .14992E-04   -1.5625    
   2  alpha         4.4084        3.2536        .14059E-01    .86849    
   3  Normalizat    .62607        .39545        .38791E-03   -1.0689    
   4  Prefactor     .93016        .20788        .17033E-03   -.95095    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.83764e-11
Minuit parameter uncertainties:
  1  1.92739
  2  6.73637
  3  0.397259
  4  0.20806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367584': 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) = 2217.43358899
delta logL = 1.08066245238

Extracting fit parameters...

4FGL J0221.1+3556
   Spectrum: LogParabola
272         norm:  1.709e-01  1.927e+00  1.000e-04  1.000e+04 ( 1.000e-11)
273        alpha:  4.408e+00  6.736e+00  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:  9.302e-01  2.081e-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:  6.261e-01  3.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 35.281 35.936
Photon Index (Free Index): 4.41 +/- 6.74
Photon Flux (Free Index): 3.40e-07 +/- 3.06e-07
Energy Flux (Free Index): 4.87e-05 +/- 4.61e-05

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/367584/cmap_HighResolution_672624001_673228801_4FGL_J0221.1+3556_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-04', comment='SUCCESS', energy_flux2='4.87e-05', dlogl='1.08e+00', photon_flux2='3.40e-07', job_status='DONE', time_completed='2022-05-03 01:15:44.036161', photon_index_error2='6.74', photon_index2='4.41', ts='0.20', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.20e-07', energy_flux_error2='4.61e-05', EG='0.78', time_epoch_completed='1651565744.04', return_code='0', job_id='367584', GAL2='0.93', EG2='0.63', return_code2='102', photon_flux_error2='3.06e-07', ts2='2.59', photon_index='2.25' WHERE bin_id='717' AND source_name='4FGL J0221.1+3556' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:15:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 367584: <4FGL_J0221.1+3556_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0221.1+3556_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) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:03:50 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:50 2022
Terminated at Tue May  3 01:15:44 2022
Results reported at Tue May  3 01:15:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0221.1+3556_weekly_bin717 35.281 35.9359 672624001 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 :                                   492.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             219.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            917 sec.

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

