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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin828
RA = 34.3163, Dec = 8.6234
tmin = 453945601, tmax = 454204801
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='266754', job_status='RUN', time_executed='2021-08-15 15:23:34.140781', time_epoch_executed='1629066214.14' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266754/ft1_4FGL_J0217.2+0837_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266754/ft2_4FGL_J0217.2+0837_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266754/ft1_4FGL_J0217.2+0837_daily_bin828.fits outfile=/scratch/kocevski/266754/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin828.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=453945601.0 tmax=454204801.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.44
user 3.82
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266754/ft2_4FGL_J0217.2+0837_daily_bin828.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/266754/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin828.fits evtable="EVENTS" outfile="/scratch/kocevski/266754/ft1_filtered_4FGL_J0217.2+0837_daily_bin828.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.33
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266754/ft1_filtered_4FGL_J0217.2+0837_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/266754/ft2_4FGL_J0217.2+0837_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/266754/ltcube_453945601_454204801_4FGL_J0217.2+0837_daily_bin828.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/266754/ft2_4FGL_J0217.2+0837_daily_bin828.fits
.....................!
real 13.90
user 13.18
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266754/ft1_filtered_4FGL_J0217.2+0837_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/266754/ft2_4FGL_J0217.2+0837_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/266754/ltcube_453945601_454204801_4FGL_J0217.2+0837_daily_bin828.fits outfile=/scratch/kocevski/266754/expmap_453945601_454204801_4FGL_J0217.2+0837_daily_bin828.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/266754/ltcube_453945601_454204801_4FGL_J0217.2+0837_daily_bin828.fits
.....................!
real 192.98
user 186.65
sys 5.84

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/266754/ft1_filtered_4FGL_J0217.2+0837_daily_bin828.fits scfile=/scratch/kocevski/266754/ft2_4FGL_J0217.2+0837_daily_bin828.fits outfile=/scratch/kocevski/266754/cmap_453945601_454204801_4FGL_J0217.2+0837_daily_bin828.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.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266754/ft1_filtered_4FGL_J0217.2+0837_daily_bin828.fits scfile=/scratch/kocevski/266754/ft2_4FGL_J0217.2+0837_daily_bin828.fits outfile=/scratch/kocevski/266754/cmap_HighResolution_453945601_454204801_4FGL_J0217.2+0837_daily_bin828.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.38
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    14.066       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9844       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16365       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14436       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32766E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4529       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.222       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.360       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.930       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.3604       1.0000         .10000E-03   10000.    
    25 'norm      '    3.3072       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99882       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6103.714     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     2779 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8547       -.10919E-06** at limit **
   2  norm          14.066        1.1026        .42097E-07    .52850E-04
   3  Prefactor     8.4984        1.0904        .42780E-07   -.41807E-03
   4  Prefactor     1.9839        2.7943        .24320E-06   -.17626E-04
   5  norm          7.4996        4.3407        .41586E-07    .25696E-03
   6  Prefactor     .10000E-03    .96570        .18807E-06** at limit **
   7  norm          .16533        1.6071        .21384E-06    .53873E-04
   8  Prefactor     .10000E-03    8.9744        .95619E-06** at limit **
   9  Prefactor     .10026E-03    10.297       -.21958E-05** at limit **
  10  Prefactor     8.4914        3.7972       -.72260E-06    .20678E-02
  11  Prefactor     .10002E-03    22.347        .24005E-06** at limit **
  12  Prefactor     .10069E-03    898.94        .33536E-04** at limit **
  13  Prefactor     .10001E-03    12.119        .12946E-05** at limit **
  14  Prefactor     .10000E-03    4.3484        .43502E-06** at limit **
  15  Prefactor     .10054E-03    45.157        .56205E-05** at limit **
  16  norm          4.4513        .92447       -.52007E-07   -.69574E-03
  17  Prefactor     49.214        7.5539        .25686E-06   -.15062E-01
  18  Prefactor     54.362        1.6772       -.44661E-07    .15868E-02
  19  norm          .10000E-03    3.5593       -.71328E-07** at limit **
  20  Prefactor     .10000E-03    29.528        .38158E-05** at limit **
  21  Prefactor     .10032E-03    8.2598       -.16538E-05** at limit **
  22  Prefactor     20.925        1.4030        .90643E-07   -.84530E-03
  23  Prefactor     .10000E-03    6.8159       -.11395E-05** at limit **
  24  norm          2.3614        1.1242        .62783E-07   -.60703E-04
  25  norm          3.3069        5.0584       -.10117E-06    .25066E-03
  26  Normalizat    .99895        .21693       -.39971E-06   -.11733E-03
  27  Prefactor     .88960        .12840       -.61260E-06   -.20227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.0655
  Prefactor  = 8.49845
  Prefactor  = 1.98389
  norm       = 7.49961
  Prefactor  = 0.0001
  norm       = 0.165328
  Prefactor  = 0.0001
  Prefactor  = 0.000100261
  Prefactor  = 8.49141
  Prefactor  = 0.000100022
  Prefactor  = 0.000100691
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100542
  norm       = 4.45128
  Prefactor  = 49.2142
  Prefactor  = 54.3616
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100319
  Prefactor  = 20.9246
  Prefactor  = 0.0001
  norm       = 2.36135
  norm       = 3.30694
  Normalizat = 0.998952
  Prefactor  = 0.889595
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.714     FROM HESSE     STATUS=OK           552 CALLS     3331 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.066        13.314        .26699E-02   -1.4958    
   3  Prefactor     8.4984        8.1500        .34375E-02   -1.5125    
   4  Prefactor     1.9839        2.8201        .73546E-02   -1.5426    
   5  norm          7.4996        4.3620        .36611E-02   -1.5160    
   6  Prefactor     .10000E-03    .95563        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .16533        .83323        .22350E-01   -1.5627    
   8  Prefactor     .10000E-03    9.0046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10026E-03    15.640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4914        7.6601        .34458E-02   -1.5125    
  11  Prefactor     .10002E-03    24.162        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10069E-03    8.1519        .72498E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    12.579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10054E-03    10.257        .98654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4513        1.0185        .47706E-02   -1.5286    
  17  Prefactor     49.214        45.921        .14289E-02   -1.4304    
  18  Prefactor     54.362        22.279        .13601E-02   -1.4232    
  19  norm          .10000E-03    3.5591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10032E-03    14.603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.925        23.505        .21888E-02   -1.4793    
  23  Prefactor     .10000E-03    6.7021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3614        11.267        .66687E-02   -1.5401    
  25  norm          3.3069        5.1418        .55653E-02   -1.5344    
  26  Normalizat    .99895        .20188        .69655E-01   -.93066    
  27  Prefactor     .88960        .11599        .44872E-01   -.96506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14603e-06
Minuit parameter uncertainties:
  1  2.46646e-06
  2  13.317
  3  8.1511
  4  2.82027
  5  4.36216
  6  2.10211e-06
  7  0.742104
  8  6.59869e-05
  9  0.00403961
  10  7.66097
  11  0.00144688
  12  0.00474812
  13  0.000777291
  14  9.07494e-06
  15  0.00471446
  16  1.01849
  17  45.9537
  18  22.2825
  19  6.91929e-07
  20  0.000163567
  21  0.00431572
  22  23.5159
  23  2.42157e-05
  24  10.3191
  25  5.14247
  26  0.202036
  27  0.116023
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  2.102e-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:  8.896e-01  1.160e-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:  9.990e-01  2.020e-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: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266754/likelihoodResults_453945601_454204801_4FGL_J0217.2+0837_daily_bin828.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) = 6103.7190648
delta logL = -0.00489731487323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6103.71416674
delta logL = 7.44893441151e-07

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 'Index     '    2.2503       1.0000          .0000       10.000    
     3 'Normalizat'    .99895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88960       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6103.714     FROM MIGRAD    STATUS=FAILED       112 CALLS      264 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.211        .82990E-03** at limit **
   2  Index         1.7890        9.1047        .50000       -.75105E-05
   3  Normalizat    .99895        .43482E-01    .30813E-03    .99986E-05
   4  Prefactor     .88960        .25896E-01    .19211E-03   -.28998E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6103.714     FROM SIMPLEX   STATUS=UNCHANGED    200 CALLS      464 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.211        .15502E-03** at limit **
   2  Index         1.7890        9.1047        .79989E-06   -.75105E-05
   3  Normalizat    .99895        .43482E-01    .61357E-08    .99986E-05
   4  Prefactor     .88960        .25896E-01    .28998E-08   -.28998E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6103.714     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      534 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3184        .33196E-04** at limit **
   2  Index         1.7889        5.4161        .50000       -.75638E-05
   3  Normalizat    .99895        .20677        .24651E-05    .10146E-04
   4  Prefactor     .88960        .12319        .15368E-05   -.28110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78892
  Normalizat = 0.998953
  Prefactor  = 0.889595
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.714     FROM HESSE     STATUS=OK            27 CALLS      561 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1976        .66392E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7889        5.7029        .50000       -.69739    
   3  Normalizat    .99895        .19991        .49302E-06   -.93066    
   4  Prefactor     .88960        .11898        .30737E-06   -.96506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09761e-08
Minuit parameter uncertainties:
  1  3.84941e-06
  2  53.0195
  3  0.20006
  4  0.119011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266754': 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) = 6103.71415767
delta logL = 9.815100384e-06

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  3.849e-06  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.789e+00  5.302e+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:  8.896e-01  1.190e-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:  9.990e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2021-08-15 15:36:25.871001', job_id='266754', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1629066985.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='9.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='828' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:36:25 PDT 2021


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

Job <4FGL_J0217.2+0837_daily_bin828> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 15:20:25 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:21:10 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:21:10 2021
Terminated at Sun Aug 15 15:36:26 2021
Results reported at Sun Aug 15 15:36:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin828 34.3163 8.6234 453945601 454204801 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 :                                   771.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            961 sec.

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

