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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin805
RA = 34.3163, Dec = 8.6234
tmin = 447984001, tmax = 448243201
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='266722', job_status='RUN', time_executed='2021-08-15 15:23:12.490166', time_epoch_executed='1629066192.49' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266722/ft1_4FGL_J0217.2+0837_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266722/ft2_4FGL_J0217.2+0837_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266722/ft1_4FGL_J0217.2+0837_daily_bin805.fits outfile=/scratch/kocevski/266722/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin805.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=447984001.0 tmax=448243201.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.47
user 3.77
sys 0.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266722/ft1_filtered_4FGL_J0217.2+0837_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/266722/ft2_4FGL_J0217.2+0837_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/266722/ltcube_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.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/266722/ft2_4FGL_J0217.2+0837_daily_bin805.fits
.....................!
real 14.21
user 13.45
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266722/ft1_filtered_4FGL_J0217.2+0837_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/266722/ft2_4FGL_J0217.2+0837_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/266722/ltcube_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.fits outfile=/scratch/kocevski/266722/expmap_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.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/266722/ltcube_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.fits
.....................!
real 193.07
user 186.88
sys 5.70

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/266722/ft1_filtered_4FGL_J0217.2+0837_daily_bin805.fits scfile=/scratch/kocevski/266722/ft2_4FGL_J0217.2+0837_daily_bin805.fits outfile=/scratch/kocevski/266722/cmap_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.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.82
user 0.37
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266722/ft1_filtered_4FGL_J0217.2+0837_daily_bin805.fits scfile=/scratch/kocevski/266722/ft2_4FGL_J0217.2+0837_daily_bin805.fits outfile=/scratch/kocevski/266722/cmap_HighResolution_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.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.84
user 0.37
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8662       1.0000         .10000E-03   10000.    
     2 'norm      '    .10742E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31679E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .58970       1.0000         .10000E-03   10000.    
     5 'norm      '    20.792       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5351       1.0000         .10000E-03   10000.    
     7 'norm      '    .44303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16640E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67265       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .35848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.317       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.566       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.588       1.0000         .10000E-03   10000.    
    24 'norm      '    .10536E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82462       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0192       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=   6373.569     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3437 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8671        5.7917        .33408E-05   -.72652E-03
   2  norm          .10000E-03    17.854        .39403E-06** at limit **
   3  Prefactor     .10006E-03    5.8452        .62296E-06** at limit **
   4  Prefactor     .58985        2.3534        .37748E-06   -.22091E-03
   5  norm          20.791        7.3569       -.54332E-07   -.52506E-03
   6  Prefactor     2.5367        2.4907       -.26601E-07   -.37312E-03
   7  norm          .44310        .56114        .88268E-08   -.12092E-03
   8  Prefactor     18.741        23.365       -.17453E-07   -.51567E-04
   9  Prefactor     .10000E-03    82.477        .27508E-06** at limit **
  10  Prefactor     .10000E-03    6.4826        .89719E-06** at limit **
  11  Prefactor     .37683        95.022       -.16286E-05    .20306E-04
  12  Prefactor     18.030        12.015       -.13230E-05   -.11345E-02
  13  Prefactor     .10000E-03    7.2416        .99335E-07** at limit **
  14  Prefactor     1.1053        26.887       -.80712E-06   -.89333E-04
  15  Prefactor     .10000E-03    3.9177        .14380E-06** at limit **
  16  norm          .35859        .40869        .17777E-06    .20440E-02
  17  Prefactor     .10000E-03    23.471        .25258E-07** at limit **
  18  Prefactor     .10000E-03    16.003        .42810E-07** at limit **
  19  norm          17.328        14.541        .91772E-06    .16833E-03
  20  Prefactor     .10000E-03    16.993       -.29313E-06** at limit **
  21  Prefactor     .10000E-03    15.076        .12369E-06** at limit **
  22  Prefactor     15.559        17.086       -.83014E-07    .11551E-03
  23  Prefactor     14.588        8.3425        .25544E-06   -.20193E-03
  24  norm          .10000E-03    4.1074       -.91176E-07** at limit **
  25  norm          .10000E-03    3.6121       -.15442E-06** at limit **
  26  Normalizat    .82466        .19869       -.13466E-05   -.27548E-03
  27  Prefactor     1.0191        .11436       -.10561E-06   -.53323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86714
  norm       = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.589855
  norm       = 20.7911
  Prefactor  = 2.53668
  norm       = 0.4431
  Prefactor  = 18.7405
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.376829
  Prefactor  = 18.03
  Prefactor  = 0.0001
  Prefactor  = 1.10528
  Prefactor  = 0.0001
  norm       = 0.358587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.3276
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.5592
  Prefactor  = 14.5883
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.824661
  Prefactor  = 1.01912
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.569     FROM HESSE     STATUS=OK           506 CALLS     3943 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8671        5.7823        .12005E-02   -1.5369    
   2  norm          .10000E-03    17.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10006E-03    6.8395        .56146E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58985        2.3343        .23134E-03   -1.5554    
   5  norm          20.791        7.3452        .87840E-04   -1.4796    
   6  Prefactor     2.5367        2.4753        .11735E-03   -1.5389    
   7  norm          .44310        .52866        .64877E-03   -1.5575    
   8  Prefactor     18.741        23.345        .92552E-04   -1.4842    
   9  Prefactor     .10000E-03    83.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.557        .35697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37683        82.035        .19271       -1.5585    
  12  Prefactor     18.030        11.792        .94286E-04   -1.4858    
  13  Prefactor     .10000E-03    7.2495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1053        26.676        .45081E-03   -1.5498    
  15  Prefactor     .10000E-03    3.9272        .15430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .35859        .38195        .53100E-03   -1.5588    
  17  Prefactor     .10000E-03    23.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.328        14.434        .96247E-04   -1.4875    
  20  Prefactor     .10000E-03    16.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.559        17.046        .10152E-03   -1.4919    
  23  Prefactor     14.588        8.3234        .10487E-03   -1.4944    
  24  norm          .10000E-03    4.1122        .15803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.7097        .29617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82466        .21850        .34102E-03   -.99160    
  27  Prefactor     1.0191        .12747        .18210E-03   -.92095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76821e-09
Minuit parameter uncertainties:
  1  5.78343
  2  0.000169742
  3  0.00130169
  4  2.33467
  5  7.34547
  6  2.47538
  7  0.528663
  8  23.3565
  9  4.38459e-05
  10  0.000707657
  11  11.1339
  12  11.7937
  13  1.60873e-05
  14  10.8648
  15  1.8779e-05
  16  0.381955
  17  0.000127771
  18  0.000113724
  19  14.4372
  20  0.000288371
  21  1.77707e-05
  22  17.0518
  23  8.3241
  24  1.0139e-05
  25  1.5177e-05
  26  0.218734
  27  0.127505
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  2.537e+00  2.475e+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.019e+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:  8.247e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/266722/likelihoodResults_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.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) = 6373.5690709
delta logL = 0.00032882515643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6373.56901716
delta logL = 0.000382570626243

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5622       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2512       1.0000          .0000       10.000    
     3 'Normalizat'    .82490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0192       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=   6373.569     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      213 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5631        84.636        .63760E-02    .27202E-03
   2  Index         2.2506        5.8373        .18048        .57501E-04
   3  Normalizat    .82521        .10460        .77018E-01    .22461E-04
   4  Prefactor     1.0190        .49638E-01    .42226E-01   -.37706E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56313
  Index      = 2.2506
  Normalizat = 0.825207
  Prefactor  = 1.01898
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.569     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5631        2.6759        .11826E-03   -1.5388    
   2  Index         2.2506        .67940        .94194E-02   -.58222    
   3  Normalizat    .82521        .21041        .34092E-03   -.99140    
   4  Prefactor     1.0190        .12399        .18211E-03   -.92099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28917e-12
Minuit parameter uncertainties:
  1  2.67602
  2  0.682432
  3  0.21062
  4  0.124027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266722': 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) = 6373.56901575
delta logL = 0.000383973027056

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  2.563e+00  2.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.251e+00  6.824e-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.019e+00  1.240e-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:  8.252e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 34.316 8.623
Photon Index (Free Index): 2.25 +/- 0.68
Photon Flux (Free Index): 3.89e-08 +/- 4.45e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/266722/cmap_HighResolution_447984001_448243201_4FGL_J0217.2+0837_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='1.60e-05', photon_flux_error='3.87e-08', dlogl='3.84e-04', energy_flux='1.58e-05', photon_flux2='3.89e-08', job_status='DONE', time_completed='2021-08-15 15:36:24.454616', photon_index_error2='0.68', photon_index2='2.25', ts='2.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.75e-05', EG='0.82', time_epoch_completed='1629066984.45', return_code='0', job_id='266722', GAL2='1.02', EG2='0.83', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.45e-08', ts2='2.01', photon_index='2.27' WHERE bin_id='805' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:36:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 266722: <4FGL_J0217.2+0837_daily_bin805> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin805> 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) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:20:52 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:52 2021
Terminated at Sun Aug 15 15:36:25 2021
Results reported at Sun Aug 15 15:36:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin805 34.3163 8.6234 447984001 448243201 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 :                                   794.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            962 sec.

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

