/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 183 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 = 7462
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0217.2+0837_daily_bin808
RA = 34.3163, Dec = 8.6234
tmin = 448761601, tmax = 449020801
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='266726', job_status='RUN', time_executed='2021-08-15 15:24:47.921746', time_epoch_executed='1629066287.92' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266726/ft1_4FGL_J0217.2+0837_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266726/ft2_4FGL_J0217.2+0837_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266726/ft1_4FGL_J0217.2+0837_daily_bin808.fits outfile=/scratch/kocevski/266726/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin808.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=448761601.0 tmax=449020801.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 8.08
user 5.49
sys 2.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266726/ft2_4FGL_J0217.2+0837_daily_bin808.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/266726/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/266726/ft1_filtered_4FGL_J0217.2+0837_daily_bin808.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 2.68
user 0.34
sys 2.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266726/ft1_filtered_4FGL_J0217.2+0837_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/266726/ft2_4FGL_J0217.2+0837_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/266726/ltcube_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.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/266726/ft2_4FGL_J0217.2+0837_daily_bin808.fits
.....................!
real 15.45
user 12.52
sys 2.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266726/ft1_filtered_4FGL_J0217.2+0837_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/266726/ft2_4FGL_J0217.2+0837_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/266726/ltcube_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.fits outfile=/scratch/kocevski/266726/expmap_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.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/266726/ltcube_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.fits
.....................!
real 196.54
user 186.32
sys 8.00

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/266726/ft1_filtered_4FGL_J0217.2+0837_daily_bin808.fits scfile=/scratch/kocevski/266726/ft2_4FGL_J0217.2+0837_daily_bin808.fits outfile=/scratch/kocevski/266726/cmap_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.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 2.75
user 0.38
sys 2.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266726/ft1_filtered_4FGL_J0217.2+0837_daily_bin808.fits scfile=/scratch/kocevski/266726/ft2_4FGL_J0217.2+0837_daily_bin808.fits outfile=/scratch/kocevski/266726/cmap_HighResolution_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.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 2.66
user 0.40
sys 2.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7299       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .45957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2354       1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9948       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .53082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15973E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.9392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.535       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.578       1.0000         .10000E-03   10000.    
    25 'norm      '    4.1335       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .71270       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2259       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=   3249.944     FROM MIGRAD    STATUS=CONVERGED   1149 CALLS     4360 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8830        .94493E-03** at limit **
   2  norm          .10000E-03    31.614        .18142E-02** at limit **
   3  Prefactor     .10000E-03    6.1098        .13733E-02** at limit **
   4  Prefactor     7.7289        4.6943        .92036E-04    .72570E-04
   5  norm          .10000E-03    13.129        .36285E-03** at limit **
   6  Prefactor     .10000E-03    1.4418        .66625E-03** at limit **
   7  norm          .45901        1.8886        .11363E-02    .35456E-03
   8  Prefactor     10.423        31.878        .12410E-03   -.59408E-04
   9  Prefactor     .10000E-03    11.985        .18142E-02** at limit **
  10  Prefactor     5.2358        11.639        .87838E-03    .96275E-04
  11  Prefactor     50.080        98.855        .56664E-04   -.24317E-04
  12  Prefactor     .10000E-03    9.0845        .16736E-02** at limit **
  13  Prefactor     .10000E-03    21.281        .18142E-02** at limit **
  14  Prefactor     5.9957        26.722        .16400E-03   -.23535E-04
  15  Prefactor     .10000E-03    10.727        .18142E-02** at limit **
  16  norm          .53051        .58948        .46283E-03   -.86553E-03
  17  Prefactor     .10000E-03    80.566        .18142E-02** at limit **
  18  Prefactor     .10000E-03    25.915        .18142E-02** at limit **
  19  norm          8.9366        26.661        .13406E-03   -.18212E-03
  20  Prefactor     .10000E-03    11.386        .18142E-02** at limit **
  21  Prefactor     28.535        59.389        .75000E-04   -.15684E-03
  22  Prefactor     .10000E-03    41.660        .11362    ** at limit **
  23  Prefactor     .10000E-03    2.9013        .94800E-03** at limit **
  24  norm          10.579        19.025        .12319E-03    .34977E-04
  25  norm          4.1333        6.8541        .89834E-03    .42033E-03
  26  Normalizat    .71264        .32646        .37206E-03    .12123E-03
  27  Prefactor     1.2259        .19812        .17576E-03   -.19652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.72894
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.459013
  Prefactor  = 10.4226
  Prefactor  = 0.0001
  Prefactor  = 5.23577
  Prefactor  = 50.0796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99573
  Prefactor  = 0.0001
  norm       = 0.530511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.93665
  Prefactor  = 0.0001
  Prefactor  = 28.5345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5793
  norm       = 4.13334
  Normalizat = 0.712638
  Prefactor  = 1.22593
 **********
 **   18 **HESSE 
 **********

 FCN=   3249.944     FROM HESSE     STATUS=OK           474 CALLS     4834 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.8830        .18899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    31.621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1103        .27465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7289        4.6935        .36814E-05   -1.5152    
   5  norm          .10000E-03    13.130        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4418        .13325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .45901        1.8716        .45450E-04   -1.5572    
   8  Prefactor     10.423        31.881        .49640E-05   -1.5062    
   9  Prefactor     .10000E-03    11.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2358        11.634        .35135E-04   -1.5250    
  11  Prefactor     50.080        98.849        .11333E-04   -1.4291    
  12  Prefactor     .10000E-03    9.0855        .33471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9957        26.669        .65598E-05   -1.5218    
  15  Prefactor     .10000E-03    10.730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .53051        .58935        .18513E-04   -1.5562    
  17  Prefactor     .10000E-03    80.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.9366        26.636        .53623E-05   -1.5110    
  20  Prefactor     .10000E-03    11.387        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.535        59.369        .15000E-04   -1.4639    
  22  Prefactor     .10000E-03    40.887        .11536       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9013        .18960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.579        19.023        .49275E-05   -1.5057    
  25  norm          4.1333        6.8503        .35933E-04   -1.5301    
  26  Normalizat    .71264        .32576        .14882E-04   -1.0340    
  27  Prefactor     1.2259        .19817        .35151E-04   -.85537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.469e-09
Minuit parameter uncertainties:
  1  3.58668e-06
  2  5.70386e-05
  3  8.82035e-06
  4  4.69373
  5  2.02842e-05
  6  8.62916e-06
  7  1.85365
  8  31.9326
  9  3.20809e-05
  10  11.6388
  11  99.1748
  12  3.78754e-05
  13  8.5132e-05
  14  25.3089
  15  0.000107482
  16  0.589352
  17  4.98649e-05
  18  2.71819e-05
  19  26.6713
  20  5.28055e-05
  21  59.4924
  22  0.000115767
  23  2.80531e-06
  24  19.0337
  25  6.85157
  26  0.326653
  27  0.19829
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  8.629e-06  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.226e+00  1.983e-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:  7.126e-01  3.267e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266726/likelihoodResults_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.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): 102
logL (Free Index) = 3249.94711892
delta logL = -0.00316968575771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3249.94394898
delta logL = 2.56010480371e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2548       1.0000          .0000       10.000    
     3 'Normalizat'    .71263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2260       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3249.944     FROM MIGRAD    STATUS=FAILED        84 CALLS      233 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    41.265        .67220E-03** at limit **
   2  Index         2.2029        8.3869        .50000        .72202E-04
   3  Normalizat    .71263        .41161E-01    .37206E-03    .35308E-04
   4  Prefactor     1.2259        .25031E-01    .17576E-03    .77065E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3249.944     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      364 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    41.265        .13999E-03** at limit **
   2  Index         2.2018        8.3869        .36761E-03    .72202E-04
   3  Normalizat    .71262        .41161E-01    .78907E-05    .35308E-04
   4  Prefactor     1.2259        .25031E-01    .41413E-05    .77065E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3249.944     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      412 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.031        .13444E-02** at limit **
   2  Index         1.9002        5.1528        .50000       -.48237E-06
   3  Normalizat    .71263        .38345E-01    .14882E-04   -.20320E-04
   4  Prefactor     1.2259        .23319E-01    .35151E-04   -.11676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90025
  Normalizat = 0.712631
  Prefactor  = 1.22594
 **********
 **   18 **HESSE 
 **********

 FCN=   3249.944     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    163.30        .26888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9002        8.7988        .50000       -.66868    
   3  Normalizat    .71263        .87758E-01    .29765E-05   -1.0340    
   4  Prefactor     1.2259        .53372E-01    .70303E-05   -.85537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25843e-08
Minuit parameter uncertainties:
  1  0.000245618
  2  605.697
  3  0.0877755
  4  0.0533743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266726': 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) = 3249.94394545
delta logL = 3.7886870814e-06

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  2.456e-04  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.900e+00  6.057e+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:  1.226e+00  5.337e-02  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:  7.126e-01  8.778e-02  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/266726/cmap_HighResolution_448761601_449020801_4FGL_J0217.2+0837_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-15 15:35:42.144737', job_id='266726', GAL2='1.23', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1629066942.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='808' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:35:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 266726: <4FGL_J0217.2+0837_daily_bin808> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin808> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 15:20:23 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:20:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 15:20:53 2021
Terminated at Sun Aug 15 15:35:43 2021
Results reported at Sun Aug 15 15:35:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin808 34.3163 8.6234 448761601 449020801 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 :                                   679.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            920 sec.

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

