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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin986
RA = 34.3163, Dec = 8.6234
tmin = 494899201, tmax = 495158401
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='268172', job_status='RUN', time_executed='2021-08-15 15:28:47.120473', time_epoch_executed='1629066527.12' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='986'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268172/ft1_4FGL_J0217.2+0837_daily_bin986.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268172/ft2_4FGL_J0217.2+0837_daily_bin986.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268172/ft1_4FGL_J0217.2+0837_daily_bin986.fits outfile=/scratch/kocevski/268172/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin986.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=494899201.0 tmax=495158401.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 4.27
user 3.38
sys 0.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268172/ft2_4FGL_J0217.2+0837_daily_bin986.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/268172/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin986.fits evtable="EVENTS" outfile="/scratch/kocevski/268172/ft1_filtered_4FGL_J0217.2+0837_daily_bin986.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 1.31
user 0.32
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268172/ft1_filtered_4FGL_J0217.2+0837_daily_bin986.fits" evtable="EVENTS" scfile=/scratch/kocevski/268172/ft2_4FGL_J0217.2+0837_daily_bin986.fits sctable="SC_DATA" outfile=/scratch/kocevski/268172/ltcube_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.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/268172/ft2_4FGL_J0217.2+0837_daily_bin986.fits
.....................!
real 13.19
user 12.03
sys 1.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268172/ft1_filtered_4FGL_J0217.2+0837_daily_bin986.fits evtable="EVENTS" scfile=/scratch/kocevski/268172/ft2_4FGL_J0217.2+0837_daily_bin986.fits sctable="SC_DATA" expcube=/scratch/kocevski/268172/ltcube_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.fits outfile=/scratch/kocevski/268172/expmap_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.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/268172/ltcube_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.fits
.....................!
real 193.38
user 186.63
sys 6.06

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/268172/ft1_filtered_4FGL_J0217.2+0837_daily_bin986.fits scfile=/scratch/kocevski/268172/ft2_4FGL_J0217.2+0837_daily_bin986.fits outfile=/scratch/kocevski/268172/cmap_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.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 1.15
user 0.38
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268172/ft1_filtered_4FGL_J0217.2+0837_daily_bin986.fits scfile=/scratch/kocevski/268172/ft2_4FGL_J0217.2+0837_daily_bin986.fits outfile=/scratch/kocevski/268172/cmap_HighResolution_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.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 1.22
user 0.38
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    67.876       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3149       1.0000         .10000E-03   10000.    
     5 'norm      '    31.890       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7236       1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7594       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.801       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5603       1.0000         .10000E-03   10000.    
    19 'norm      '    11.287       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.446       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0821       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .60373       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1106       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=   6853.334     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     2781 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0127        .45217E-07** at limit **
   2  norm          67.873        28.545       -.21944E-05   -.25373E-06
   3  Prefactor     6.8519        5.3951        .12807E-06    .27040E-04
   4  Prefactor     1.3151        2.0352       -.28798E-06   -.88098E-03
   5  norm          31.890        7.7854        .27624E-07   -.14730E-04
   6  Prefactor     2.7235        2.2098       -.53179E-07   -.28127E-03
   7  norm          .10000E-03    .28700        .15386E-08** at limit **
   8  Prefactor     .10000E-03    7.0130        .56835E-05** at limit **
   9  Prefactor     .10000E-03    15.337        .40203E-06** at limit **
  10  Prefactor     .10000E-03    6.7551        .32501E-05** at limit **
  11  Prefactor     8.7598        36.043        .93053E-06   -.11877E-05
  12  Prefactor     25.803        10.960       -.26578E-07   -.21179E-03
  13  Prefactor     .10000E-03    6.1155       -.91622E-05** at limit **
  14  Prefactor     .10000E-03    9.1318       -.74307E-05** at limit **
  15  Prefactor     .10000E-03    5.3285        .18338E-05** at limit **
  16  norm          2.7157        .69895       -.30362E-07   -.80913E-03
  17  Prefactor     .10000E-03    25.176       -.53122E-05** at limit **
  18  Prefactor     9.5605        16.771        .32721E-06   -.52382E-05
  19  norm          11.285        12.204       -.38842E-06    .68485E-04
  20  Prefactor     .10000E-03    15.799        .52100E-05** at limit **
  21  Prefactor     .10000E-03    15.518        .16862E-05** at limit **
  22  Prefactor     13.446        13.355        .58834E-06    .44890E-03
  23  Prefactor     .10000E-03    6.6618        .30168E-05** at limit **
  24  norm          .10000E-03    8.5015       -.27211E-06** at limit **
  25  norm          3.0824        2.9638        .63720E-06   -.18721E-04
  26  Normalizat    .60373        .19377        .18099E-07   -.35757E-04
  27  Prefactor     1.1105        .11726        .28482E-06   -.34251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 67.873
  Prefactor  = 6.85195
  Prefactor  = 1.31513
  norm       = 31.8901
  Prefactor  = 2.7235
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.75977
  Prefactor  = 25.8034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71573
  Prefactor  = 0.0001
  Prefactor  = 9.56046
  norm       = 11.2849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4464
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.08245
  Normalizat = 0.603728
  Prefactor  = 1.11055
 **********
 **   18 **HESSE 
 **********

 FCN=   6853.334     FROM HESSE     STATUS=OK           486 CALLS     3267 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0198        .11467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          67.873        28.532        .48719E-04   -1.4058    
   3  Prefactor     6.8519        5.3942        .15327E-03   -1.5184    
   4  Prefactor     1.3151        2.0145        .14169E-03   -1.5479    
   5  norm          31.890        7.7793        .70955E-04   -1.4578    
   6  Prefactor     2.7235        2.2021        .10626E-03   -1.5378    
   7  norm          .10000E-03    .37328        .85863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7598        36.029        .13543E-03   -1.5116    
  12  Prefactor     25.803        10.914        .78865E-04   -1.4692    
  13  Prefactor     .10000E-03    6.0996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7157        .69945        .33637E-04   -1.5378    
  17  Prefactor     .10000E-03    25.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5605        16.796        .12961E-03   -1.5089    
  19  norm          11.285        12.214        .11924E-03   -1.5036    
  20  Prefactor     .10000E-03    16.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.446        13.421        .54616E-03   -1.4974    
  23  Prefactor     .10000E-03    6.7914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.5813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0824        2.9650        .13533E-03   -1.5357    
  26  Normalizat    .60373        .20644        .38751E-03   -1.0783    
  27  Prefactor     1.1105        .12743        .18092E-03   -.89130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6866e-10
Minuit parameter uncertainties:
  1  1.94787e-08
  2  28.538
  3  5.39461
  4  2.01465
  5  7.77959
  6  2.20216
  7  7.804e-07
  8  3.72721e-07
  9  3.76296e-06
  10  1.0856e-05
  11  35.5672
  12  10.9149
  13  9.76006e-07
  14  2.90026e-05
  15  2.46837e-06
  16  0.699453
  17  1.81408e-06
  18  16.8042
  19  12.2165
  20  3.90562e-05
  21  6.6261e-07
  22  13.4239
  23  2.78619e-05
  24  1.2429e-05
  25  2.9651
  26  0.206703
  27  0.127465
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  2.724e+00  2.202e+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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.111e+00  1.275e-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:  6.037e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.37e-05

TS (Fixed Index): 2.86
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268172/likelihoodResults_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.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) = 6853.24769577
delta logL = 0.0861685372029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6853.23640315
delta logL = 0.0974611555002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0795       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9828       1.0000          .0000       10.000    
     3 'Normalizat'    .61331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1079       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.

 FCN=   6853.236     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0803        94.486        .57783E-02    .19549E-03
   2  Index         1.9833        5.3102        .19106        .23888E-04
   3  Normalizat    .61337        .14061        .86863E-01    .36542E-04
   4  Prefactor     1.1079        .61658E-01    .37295E-01   -.19414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08028
  Index      = 1.98329
  Normalizat = 0.613373
  Prefactor  = 1.10785
 **********
 **   18 **HESSE 
 **********

 FCN=   6853.236     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0803        2.5827        .11781E-03   -1.5357    
   2  Index         1.9833        .63026        .10098E-01   -.64769    
   3  Normalizat    .61337        .19944        .38484E-03   -1.0742    
   4  Prefactor     1.1079        .12363        .18114E-03   -.89216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87946e-12
Minuit parameter uncertainties:
  1  2.58282
  2  0.632911
  3  0.199671
  4  0.123658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268172': 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) = 6853.23640269
delta logL = 0.0974616237509

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  3.080e+00  2.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.983e+00  6.329e-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.108e+00  1.237e-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:  6.134e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 34.316 8.623
Photon Index (Free Index): 1.98 +/- 0.63
Photon Flux (Free Index): 3.19e-08 +/- 3.59e-08
Energy Flux (Free Index): 2.30e-05 +/- 2.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/268172/cmap_HighResolution_494899201_495158401_4FGL_J0217.2+0837_daily_bin986.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='2.30e-05', photon_flux_error='3.44e-08', dlogl='9.75e-02', energy_flux='1.69e-05', photon_flux2='3.19e-08', job_status='DONE', time_completed='2021-08-15 15:42:02.429591', photon_index_error2='0.63', photon_index2='1.98', ts='2.86', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.71e-05', EG='0.60', time_epoch_completed='1629067322.43', return_code='0', job_id='268172', GAL2='1.11', EG2='0.61', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.59e-08', ts2='3.06', photon_index='2.27' WHERE bin_id='986' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:42:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 268172: <4FGL_J0217.2+0837_daily_bin986> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin986> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 15:25:38 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:26:01 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:26:01 2021
Terminated at Sun Aug 15 15:42:03 2021
Results reported at Sun Aug 15 15:42:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin986 34.3163 8.6234 494899201 495158401 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 :                                   795.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            985 sec.

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

