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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin595
RA = 34.3163, Dec = 8.6234
tmin = 393552001, tmax = 393811201
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='265214', job_status='RUN', time_executed='2021-08-15 15:18:48.756354', time_epoch_executed='1629065928.76' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265214

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265214/ft1_4FGL_J0217.2+0837_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265214/ft2_4FGL_J0217.2+0837_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265214/ft1_4FGL_J0217.2+0837_daily_bin595.fits outfile=/scratch/kocevski/265214/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin595.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=393552001.0 tmax=393811201.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 5.71
user 3.25
sys 2.34

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265214/ft1_filtered_4FGL_J0217.2+0837_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/265214/ft2_4FGL_J0217.2+0837_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/265214/ltcube_393552001_393811201_4FGL_J0217.2+0837_daily_bin595.fits outfile=/scratch/kocevski/265214/expmap_393552001_393811201_4FGL_J0217.2+0837_daily_bin595.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/265214/ltcube_393552001_393811201_4FGL_J0217.2+0837_daily_bin595.fits
.....................!
real 198.32
user 190.41
sys 7.17

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/265214/ft1_filtered_4FGL_J0217.2+0837_daily_bin595.fits scfile=/scratch/kocevski/265214/ft2_4FGL_J0217.2+0837_daily_bin595.fits outfile=/scratch/kocevski/265214/cmap_393552001_393811201_4FGL_J0217.2+0837_daily_bin595.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.64
user 0.38
sys 2.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265214/ft1_filtered_4FGL_J0217.2+0837_daily_bin595.fits scfile=/scratch/kocevski/265214/ft2_4FGL_J0217.2+0837_daily_bin595.fits outfile=/scratch/kocevski/265214/cmap_HighResolution_393552001_393811201_4FGL_J0217.2+0837_daily_bin595.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.64
user 0.38
sys 2.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88394       1.0000         .10000E-03   10000.    
     2 'norm      '    17.689       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18006       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72743       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8302       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7080       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5785       1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.692       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9403       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42346E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    82.402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.739       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5616       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78013       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0353       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=   6446.923     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3336 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88364        5.8894        .27711E-05   -.11824E-03
   2  norm          17.686        18.176        .26669E-06    .79902E-05
   3  Prefactor     .21800        6.7066        .98518E-07    .49451E-04
   4  Prefactor     .73510        2.4263        .83976E-06   -.96206E-04
   5  norm          .10000E-03    2.9381        .57794E-07** at limit **
   6  Prefactor     5.8312        3.3462        .39778E-07    .91549E-04
   7  norm          1.7082        1.0419        .94579E-07    .33027E-04
   8  Prefactor     .10000E-03    17.688       -.39624E-06** at limit **
   9  Prefactor     16.635        31.446       -.89622E-06   -.53735E-05
  10  Prefactor     5.5820        7.1871       -.15008E-06    .66227E-04
  11  Prefactor     83.702        69.504        .34534E-07    .69235E-05
  12  Prefactor     2.9314        8.4022       -.74946E-06    .48152E-04
  13  Prefactor     .10000E-03    5.1001        .99730E-08** at limit **
  14  Prefactor     .10000E-03    6.3466       -.20194E-06** at limit **
  15  Prefactor     .10001E-03    8.0302        .10440E-05** at limit **
  16  norm          .10000E-03    .27928        .20051E-06** at limit **
  17  Prefactor     30.496        42.092       -.12903E-05    .96702E-04
  18  Prefactor     .10000E-03    10.119       -.10014E-06** at limit **
  19  norm          82.408        20.147        .29289E-07    .88197E-04
  20  Prefactor     .10000E-03    15.922        .11924E-05** at limit **
  21  Prefactor     63.694        45.980       -.14221E-05    .15518E-03
  22  Prefactor     5.5560        21.990       -.78806E-06   -.60115E-05
  23  Prefactor     .10000E-03    1.6704        .37993E-08** at limit **
  24  norm          .10000E-03    5.0400       -.35844E-07** at limit **
  25  norm          .10000E-03    1.5794        .48967E-07** at limit **
  26  Normalizat    .78016        .20570       -.17750E-05   -.79298E-04
  27  Prefactor     1.0352        .11581       -.12975E-05    .58750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.883641
  norm       = 17.6864
  Prefactor  = 0.218
  Prefactor  = 0.735096
  norm       = 0.0001
  Prefactor  = 5.8312
  norm       = 1.70821
  Prefactor  = 0.0001
  Prefactor  = 16.6346
  Prefactor  = 5.58202
  Prefactor  = 83.702
  Prefactor  = 2.93135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 30.4959
  Prefactor  = 0.0001
  norm       = 82.4075
  Prefactor  = 0.0001
  Prefactor  = 63.6942
  Prefactor  = 5.55602
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.780165
  Prefactor  = 1.03515
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.923     FROM HESSE     STATUS=OK           494 CALLS     3830 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88364        5.9446        .18446E-02   -1.5520    
   2  norm          17.686        18.154        .95228E-04   -1.4867    
   3  Prefactor     .21800        63.204        .38172E-02   -1.5615    
   4  Prefactor     .73510        3.0897        .20380E-02   -1.5536    
   5  norm          .10000E-03    2.9679        .13431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8312        3.3429        .10396E-03   -1.5225    
   7  norm          1.7082        1.0394        .60471E-04   -1.5447    
   8  Prefactor     .10000E-03    17.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.635        31.476        .98183E-04   -1.4892    
  10  Prefactor     5.5820        7.1250        .17010E-03   -1.5235    
  11  Prefactor     83.702        69.463        .21954E-03   -1.3876    
  12  Prefactor     2.9314        8.2489        .23687E-03   -1.5366    
  13  Prefactor     .10000E-03    5.1021        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    71.694        .41434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .47785        .79110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.496        41.970        .72517E-04   -1.4603    
  18  Prefactor     .10000E-03    10.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          82.408        20.132        .44248E-04   -1.3890    
  20  Prefactor     .10000E-03    16.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.694        45.684        .50264E-04   -1.4110    
  22  Prefactor     5.5560        21.984        .17036E-03   -1.5236    
  23  Prefactor     .10000E-03    1.6746        .10134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.0530        .17603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5969        .98544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78016        .22587        .34499E-03   -1.0081    
  27  Prefactor     1.0352        .12751        .18191E-03   -.91567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97268e-08
Minuit parameter uncertainties:
  1  4.58423
  2  18.16
  3  7.43011
  4  3.01419
  5  1.05938e-05
  6  3.34296
  7  1.03938
  8  3.75047e-05
  9  31.507
  10  7.12613
  11  69.5304
  12  8.25209
  13  1.22083e-05
  14  4.60637e-05
  15  0.00137971
  16  3.06586e-06
  17  42.011
  18  3.80754e-05
  19  20.1332
  20  1.5243e-05
  21  45.7087
  22  22.0162
  23  3.20278e-06
  24  8.36098e-06
  25  7.02213e-06
  26  0.226141
  27  0.127544
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  5.831e+00  3.343e+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.035e+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:  7.802e-01  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 9.11e-08 +/- 5.22e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 2.08e-05

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) = 6444.75743546
delta logL = 2.16583470302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6444.71519745
delta logL = 2.20807271591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4287       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4437       1.0000          .0000       10.000    
     3 'Normalizat'    .68742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0669       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=   6444.715     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      248 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4287        7.6107        .83812E-02   -.32444E-03
   2  Index         3.4437        2.1916        .78284E-01    .22013E-03
   3  Normalizat    .68737        .79034E-01    .82272E-01    .11679E-03
   4  Prefactor     1.0669        .45857E-01    .39007E-01   -.26089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.42874
  Index      = 3.44371
  Normalizat = 0.687367
  Prefactor  = 1.06694
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.715     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4287        2.8015        .37416E-04   -1.5469    
   2  Index         3.4437        1.0426        .32445E-02   -.31652    
   3  Normalizat    .68737        .21282        .36435E-03   -1.0439    
   4  Prefactor     1.0669        .12590        .17924E-03   -.90530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09003e-09
Minuit parameter uncertainties:
  1  2.80179
  2  1.05114
  3  0.213073
  4  0.125931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265214': 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) = 6444.71519735
delta logL = 2.20807280983

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.429e+00  2.802e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  3.444e+00  1.051e+00  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.067e+00  1.259e-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.874e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.24
Ra Dec: 34.316 8.623
Photon Index (Free Index): 3.44 +/- 1.05
Photon Flux (Free Index): 1.80e-07 +/- 7.64e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.39e-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/265214/cmap_HighResolution_393552001_393811201_4FGL_J0217.2+0837_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.11e-08', energy_flux2='3.04e-05', photon_flux_error='5.22e-08', dlogl='2.21e+00', energy_flux='3.63e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-08-15 15:31:17.114468', photon_index_error2='1.05', photon_index2='3.44', ts='5.44', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.78', time_epoch_completed='1629066677.11', return_code='0', job_id='265214', GAL2='1.07', EG2='0.69', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='7.64e-08', ts2='10.24', photon_index='2.27' WHERE bin_id='595' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:31:17 PDT 2021


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

Job <4FGL_J0217.2+0837_daily_bin595> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 15:15:31 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:15: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:15:53 2021
Terminated at Sun Aug 15 15:31:18 2021
Results reported at Sun Aug 15 15:31:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin595 34.3163 8.6234 393552001 393811201 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 :                                   779.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            947 sec.

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

