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 70 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_J0217.2+0837_weekly_bin717
RA = 34.3163, Dec = 8.6234
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='367577', job_status='RUN', time_executed='2022-05-03 01:05:05.139342', time_epoch_executed='1651565105.14' WHERE source_name='4FGL J0217.2+0837' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367577

Creating custom pfile directory:
/scratch/kocevski/367577/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/367577/ft1_4FGL_J0217.2+0837_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/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367577/ft1_4FGL_J0217.2+0837_weekly_bin717.fits outfile=/scratch/kocevski/367577/ft1_filteredMKT_4FGL_J0217.2+0837_weekly_bin717.fits ra=34.3163 dec=8.6234 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.37
user 6.10
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_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/367577/ft1_filteredMKT_4FGL_J0217.2+0837_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367577/ft1_filtered_4FGL_J0217.2+0837_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.39
sys 0.16

Number of photons that the gtmktime cut: 146

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367577/ltcube_672624001_673228801_4FGL_J0217.2+0837_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/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits
.....................!
real 34.01
user 33.49
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367577/ltcube_672624001_673228801_4FGL_J0217.2+0837_weekly_bin717.fits outfile=/scratch/kocevski/367577/expmap_672624001_673228801_4FGL_J0217.2+0837_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/367577/ltcube_672624001_673228801_4FGL_J0217.2+0837_weekly_bin717.fits
.....................!
real 192.98
user 187.23
sys 5.27

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/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits scfile=/scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits outfile=/scratch/kocevski/367577/cmap_672624001_673228801_4FGL_J0217.2+0837_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=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.61
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits scfile=/scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits outfile=/scratch/kocevski/367577/cmap_HighResolution_672624001_673228801_4FGL_J0217.2+0837_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=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.62
user 0.43
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367577/Model_4FGL_J0217.2+0837_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/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits.....................!
real 32.48
user 31.05
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits', '/scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits', expMap='/scratch/kocevski/367577/expmap_672624001_673228801_4FGL_J0217.2+0837_weekly_bin717.fits', expCube='/scratch/kocevski/367577/ltcube_672624001_673228801_4FGL_J0217.2+0837_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367577/Model_4FGL_J0217.2+0837_weekly_bin717.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/367577/ft1_filtered_4FGL_J0217.2+0837_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367577/ft2_4FGL_J0217.2+0837_weekly_bin717.fits
Exposure map: /scratch/kocevski/367577/expmap_672624001_673228801_4FGL_J0217.2+0837_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367577/ltcube_672624001_673228801_4FGL_J0217.2+0837_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367577/Model_4FGL_J0217.2+0837_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) = 1886.4207148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10493E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.036       1.0000         .10000E-03   10000.    
     5 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.505       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    153.15       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25366E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15200E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10744E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15172E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11667E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10829E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8223.5       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .91741E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10668E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.170       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .38642       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2146       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=   1885.371     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3774 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2148       -.65522E-07** at limit **
   2  norm          .10000E-03    75.962        .24908E-04** at limit **
   3  Prefactor     13.104        20.735        .27630E-05   -.64512E-04
   4  Prefactor     24.053        15.625        .19348E-05   -.12182E-03
   5  norm          .10000E-03    11.893        .20039E-06** at limit **
   6  Prefactor     12.500        15.518        .10991E-05   -.86438E-04
   7  norm          2.8155        1.9492       -.44096E-06   -.37702E-03
   8  Prefactor     153.18        193.41        .23137E-04   -.54374E-04
   9  Prefactor     .10002E-03    462.88       -.27088E-05** at limit **
  10  Prefactor     .10000E-03    32.411        .14210E-04** at limit **
  11  Prefactor     .10000E-03    467.41       -.11479E-04** at limit **
  12  Prefactor     .10002E-03    163.94        .47514E-04** at limit **
  13  Prefactor     .10000E-03    236.11        .90326E-04** at limit **
  14  Prefactor     .10000E-03    37.741        .30038E-04** at limit **
  15  Prefactor     .10002E-03    256.69        .76322E-04** at limit **
  16  norm          .10002E-03    18.960        .26882E-05** at limit **
  17  Prefactor     .10000E-03    837.83       -.81940E-03** at limit **
  18  Prefactor     .10000E-03    82.495       -.32192E-04** at limit **
  19  norm          .10000E-03    128.38       -.56061E-04** at limit **
  20  Prefactor     8214.6        8923.7       -.23432E-02   -.35094E-05
  21  Prefactor     .10009E-03    7891.3       -.17361E-02** at limit **
  22  Prefactor     .10001E-03    6772.6       -.49960E-03** at limit **
  23  Prefactor     .10000E-03    8.6627       -.10486E-07** at limit **
  24  norm          .10000E-03    35.338       -.42198E-04** at limit **
  25  norm          18.173        27.612        .71661E-06    .88962E-04
  26  Normalizat    .38674        .35867        .21290E-04    .25909E-04
  27  Prefactor     1.2147        .28373       -.41353E-05   -.79340E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1037
  Prefactor  = 24.0534
  norm       = 0.0001
  Prefactor  = 12.5001
  norm       = 2.81552
  Prefactor  = 153.185
  Prefactor  = 0.00010002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 0.00010002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8214.55
  Prefactor  = 0.000100085
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.1727
  Normalizat = 0.386736
  Prefactor  = 1.21466
 **********
 **   18 **HESSE 
 **********

 FCN=   1885.371     FROM HESSE     STATUS=OK           474 CALLS     4248 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2167        .63105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    77.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.104        20.744        .11062E-03   -1.4984    
   4  Prefactor     24.053        15.659        .81705E-04   -1.4727    
   5  norm          .10000E-03    11.901        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.500        15.523        .11328E-03   -1.5001    
   7  norm          2.8155        1.9442        .47332E-04   -1.5372    
   8  Prefactor     153.18        193.31        .16286E-03   -1.3226    
   9  Prefactor     .10002E-03    463.16        .21459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    467.43        .21240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    164.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    236.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    257.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    18.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    836.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    82.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    128.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8214.6        8918.0        .52326E-04    .69829    
  21  Prefactor     .10009E-03    7889.9        .18234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    6772.7        .20719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6666        .12483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    35.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.173        27.677        .93961E-04   -1.4855    
  26  Normalizat    .38674        .36883        .44324E-03   -1.1799    
  27  Prefactor     1.2147        .29780        .19881E-03   -.85881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52383e-09
Minuit parameter uncertainties:
  1  9.09782e-06
  2  4.67936e-05
  3  20.7551
  4  15.6613
  5  8.63529e-05
  6  15.5281
  7  1.94427
  8  194.114
  9  0.00616611
  10  0.00027252
  11  3.06355e-05
  12  0.00334785
  13  0.00170876
  14  1.94084e-05
  15  0.00430805
  16  0.00121879
  17  0.00294435
  18  0.000398515
  19  0.000165709
  20  7190.28
  21  0.0504771
  22  0.00912942
  23  1.49824e-05
  24  1.10957e-05
  25  27.6969
  26  0.371178
  27  0.298214
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.250e+01  1.553e+01  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:  1.215e+00  2.982e-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:  3.867e-01  3.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.95e-07 +/- 2.43e-07
Energy Flux (Fixed Index): 7.77e-05 +/- 9.66e-05

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

Saving results to:
/scratch/kocevski/367577/likelihoodResults_672624001_673228801_4FGL_J0217.2+0837_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) = 1885.21134181
delta logL = 0.159606251502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1885.19149201
delta logL = 0.179456054241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.578       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8383       1.0000          .0000       10.000    
     3 'Normalizat'    .40230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2053       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=   1885.191     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      237 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.576        16.376        .10148E-03    .17281E-04
   2  Index         1.8383        .66175        .66134E-02    .11408E-04
   3  Normalizat    .40230        .36678        .43519E-03    .79769E-04
   4  Prefactor     1.2053        .28662        .19938E-03    .87806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5758
  Index      = 1.83828
  Normalizat = 0.402298
  Prefactor  = 1.20534
 **********
 **   18 **HESSE 
 **********

 FCN=   1885.191     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.576        16.402        .40590E-05   -1.4918    
   2  Index         1.8383        .66284        .26454E-03   -.68458    
   3  Normalizat    .40230        .36683        .17407E-04   -1.1718    
   4  Prefactor     1.2053        .28669        .39876E-04   -.86167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5158e-11
Minuit parameter uncertainties:
  1  16.4067
  2  0.666122
  3  0.369052
  4  0.287061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367577': 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) = 1885.19149198
delta logL = 0.179456081974

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.558e+01  1.641e+01  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.838e+00  6.661e-01  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:  1.205e+00  2.871e-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:  4.023e-01  3.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 34.316 8.623
Photon Index (Free Index): 1.84 +/- 0.67
Photon Flux (Free Index): 1.35e-07 +/- 1.82e-07
Energy Flux (Free Index): 1.44e-04 +/- 2.17e-04

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/367577/cmap_HighResolution_672624001_673228801_4FGL_J0217.2+0837_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-02', comment='SUCCESS', photon_flux='1.95e-07', energy_flux2='1.44e-04', photon_flux_error='2.43e-07', dlogl='1.79e-01', energy_flux='7.77e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2022-05-03 01:13:19.185177', photon_index_error2='0.67', photon_index2='1.84', ts='1.05', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='7.26e-07', energy_flux_error2='2.17e-04', EG='0.39', time_epoch_completed='1651565599.19', return_code='0', job_id='367577', GAL2='1.21', EG2='0.40', return_code2='0', energy_flux_error='9.66e-05', photon_flux_error2='1.82e-07', ts2='1.44', photon_index='2.27' WHERE bin_id='717' AND source_name='4FGL J0217.2+0837' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:13:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 367577: <4FGL_J0217.2+0837_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0217.2+0837_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:26 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:03:45 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:45 2022
Terminated at Tue May  3 01:13:19 2022
Results reported at Tue May  3 01:13:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_weekly_bin717 34.3163 8.6234 672624001 673228801 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 :                                   495.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             274.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            773 sec.

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

