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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin1672
RA = 34.3163, Dec = 8.6234
tmin = 672710401, tmax = 672969601
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='154081', job_status='RUN', time_executed='2022-04-30 00:15:18.517230', time_epoch_executed='1651302918.52' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154081

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154081/ft1_4FGL_J0217.2+0837_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154081/ft1_4FGL_J0217.2+0837_daily_bin1672.fits outfile=/scratch/kocevski/154081/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin1672.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=672710401.0 tmax=672969601.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.13
user 2.89
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.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/154081/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/154081/ltcube_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.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/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits
.....................!
real 14.23
user 13.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/154081/ltcube_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.fits outfile=/scratch/kocevski/154081/expmap_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.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/154081/ltcube_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.fits
.....................!
real 192.66
user 186.70
sys 4.81

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

Setting source of interest to:
4FGL J0217.2+0837 @ 34.3163 8.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits scfile=/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits outfile=/scratch/kocevski/154081/cmap_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.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=34.3163 yref=8.6234 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits scfile=/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits outfile=/scratch/kocevski/154081/cmap_HighResolution_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.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=34.3163 yref=8.6234 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154081/Model_4FGL_J0217.2+0837_daily_bin1672.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/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits......................!
real 22.90
user 20.84
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits', '/scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits', expMap='/scratch/kocevski/154081/expmap_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.fits', expCube='/scratch/kocevski/154081/ltcube_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/154081/Model_4FGL_J0217.2+0837_daily_bin1672.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.2+0837'

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.926e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/154081/ft1_filtered_4FGL_J0217.2+0837_daily_bin1672.fits
Spacecraft file(s): /scratch/kocevski/154081/ft2_4FGL_J0217.2+0837_daily_bin1672.fits
Exposure map: /scratch/kocevski/154081/expmap_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.fits
Exposure cube: /scratch/kocevski/154081/ltcube_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/154081/Model_4FGL_J0217.2+0837_daily_bin1672.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) = 844.727541097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12459E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.489       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2703       1.0000         .10000E-03   10000.    
     8 'Prefactor '    296.50       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13733E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14097E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.761       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71631E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11137E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13955E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6884.1       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20311E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .32188E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    34.371       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1752       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .66034       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   844.1566     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3741 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3028       -.12865E-06** at limit **
   2  norm          .10000E-03    39.247       -.42775E-05** at limit **
   3  Prefactor     .10000E-03    25.859        .26515E-04** at limit **
   4  Prefactor     12.484        17.886       -.10339E-05    .87578E-05
   5  norm          .10000E-03    16.723        .34419E-06** at limit **
   6  Prefactor     .10000E-03    9.2773        .12816E-06** at limit **
   7  norm          3.2710        3.0609        .58394E-06    .29262E-03
   8  Prefactor     296.47        351.88       -.16323E-04    .13771E-04
   9  Prefactor     .10000E-03    397.13       -.16908E-03** at limit **
  10  Prefactor     .10000E-03    46.842        .10086E-04** at limit **
  11  Prefactor     .10000E-03    493.15       -.38045E-03** at limit **
  12  Prefactor     .10000E-03    292.54        .96363E-04** at limit **
  13  Prefactor     74.551        362.76       -.23331E-03    .59529E-05
  14  Prefactor     .10000E-03    77.524       -.45974E-04** at limit **
  15  Prefactor     .10001E-03    836.75       -.15649E-03** at limit **
  16  norm          .10000E-03    27.217       -.30149E-04** at limit **
  17  Prefactor     .10000E-03    2112.0       -.17905E-02** at limit **
  18  Prefactor     .10000E-03    87.436       -.23296E-06** at limit **
  19  norm          .10000E-03    225.32        .25029E-03** at limit **
  20  Prefactor     6883.2        8050.5       -.17934E-03    .14876E-04
  21  Prefactor     .10000E-03    7681.3       -.25978E-02** at limit **
  22  Prefactor     .10000E-03    6777.7       -.24169E-03** at limit **
  23  Prefactor     .10000E-03    18.479       -.12978E-05** at limit **
  24  norm          .10000E-03    43.981        .14036E-04** at limit **
  25  norm          34.384        37.953       -.66597E-06   -.12119E-04
  26  Normalizat    1.1755        .52557        .57236E-05    .38933E-04
  27  Prefactor     .66018        .36766        .11352E-04    .35851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4845
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27099
  Prefactor  = 296.467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 74.5514
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 6883.24
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 34.3842
  Normalizat = 1.17554
  Prefactor  = 0.660176
 **********
 **   18 **HESSE 
 **********

 FCN=   844.1566     FROM HESSE     STATUS=OK           468 CALLS     4209 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3058        .65353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    39.255        .17792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.892        .14437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.484        17.932        .11335E-03   -1.5001    
   5  norm          .10000E-03    16.728        .11609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2808        .86449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2710        3.0572        .46116E-04   -1.5346    
   8  Prefactor     296.47        351.80        .11791E-03   -1.2247    
   9  Prefactor     .10000E-03    397.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    493.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    292.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     74.551        363.85        .23218E-03   -1.3979    
  14  Prefactor     .10000E-03    77.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    836.90        .20967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.226        .14799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2112.4        .18185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    87.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    225.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6883.2        8048.5        .43183E-04    .38618    
  21  Prefactor     .10000E-03    7681.6        .18248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6777.7        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.489        .12204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    43.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          34.384        37.994        .68353E-04   -1.4535    
  26  Normalizat    1.1755        .60037        .28344E-03   -.87362    
  27  Prefactor     .66018        .42042        .25016E-03   -1.0511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82118e-10
Minuit parameter uncertainties:
  1  2.07329e-05
  2  2.38192e-05
  3  6.82453e-05
  4  17.9396
  5  4.44312e-05
  6  7.50026e-05
  7  3.05732
  8  354.374
  9  0.000428792
  10  8.71898e-05
  11  0.00105799
  12  0.00138201
  13  332.708
  14  0.000413387
  15  0.00506625
  16  0.000334046
  17  0.00237262
  18  0.00132116
  19  0.000505237
  20  6431.44
  21  0.00810643
  22  0.00137701
  23  7.53409e-05
  24  4.34156e-05
  25  38.0206
  26  0.603928
  27  0.422456
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  7.500e-05  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  6.602e-01  4.225e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.176e+00  6.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 7.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154081/likelihoodResults_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.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) = 844.157069952
delta logL = -0.000445782638508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 844.156624211
delta logL = -4.16797547587e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2633       1.0000          .0000       10.000    
     3 'Normalizat'    1.1754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   844.1566     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      235 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8962        .86607E-03** at limit **
   2  Index         1.9559        5.9774        .20000E-01    .24727E-07
   3  Normalizat    1.1755        .59458        .28344E-03    .58839E-04
   4  Prefactor     .66018        .40701        .25016E-03    .73302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95593
  Normalizat = 1.17554
  Prefactor  = 0.660178
 **********
 **   18 **HESSE 
 **********

 FCN=   844.1566     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7336        .17321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9559        5.2856        .80000E-03   -.65457    
   3  Normalizat    1.1755        .59499        .56687E-04   -.87362    
   4  Prefactor     .66018        .40728        .50032E-04   -1.0511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94877e-11
Minuit parameter uncertainties:
  1  9.40276e-06
  2  424.294
  3  0.598453
  4  0.409131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154081': 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) = 844.156623919
delta logL = 2.50566699833e-07

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  9.403e-06  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.956e+00  4.243e+02  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  6.602e-01  4.091e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.176e+00  5.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.316 8.623

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/154081/cmap_HighResolution_672710401_672969601_4FGL_J0217.2+0837_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-02', job_status='DONE', photon_flux_upper_limit='7.42e-07', time_completed='2022-04-30 00:21:40.357341', job_id='154081', GAL2='0.66', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1651303300.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1672' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:21:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 154015: <4FGL_J0217.2+0837_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:51 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:11:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:11:11 2022
Terminated at Sat Apr 30 00:18:27 2022
Results reported at Sat Apr 30 00:18:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin1672 34.3163 8.6234 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.2+0837 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   382.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   436 sec.
    Turnaround time :                            756 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 154081: <4FGL_J0217.2+0837_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:55 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:14:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:14:30 2022
Terminated at Sat Apr 30 00:21:41 2022
Results reported at Sat Apr 30 00:21:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin1672 34.3163 8.6234 672710401 672969601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.2+0837 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   379.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   430 sec.
    Turnaround time :                            946 sec.

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

