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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin943
RA = 34.3163, Dec = 8.6234
tmin = 483753601, tmax = 484012801
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='268104', job_status='RUN', time_executed='2021-08-15 15:28:56.963160', time_epoch_executed='1629066536.96' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268104/ft1_4FGL_J0217.2+0837_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268104/ft2_4FGL_J0217.2+0837_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268104/ft1_4FGL_J0217.2+0837_daily_bin943.fits outfile=/scratch/kocevski/268104/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin943.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=483753601.0 tmax=484012801.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 7.28
user 5.30
sys 1.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268104/ft2_4FGL_J0217.2+0837_daily_bin943.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/268104/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin943.fits evtable="EVENTS" outfile="/scratch/kocevski/268104/ft1_filtered_4FGL_J0217.2+0837_daily_bin943.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.07
user 0.33
sys 1.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268104/ft1_filtered_4FGL_J0217.2+0837_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/268104/ft2_4FGL_J0217.2+0837_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/268104/ltcube_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.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/268104/ft2_4FGL_J0217.2+0837_daily_bin943.fits
.....................!
real 14.41
user 12.21
sys 2.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268104/ft1_filtered_4FGL_J0217.2+0837_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/268104/ft2_4FGL_J0217.2+0837_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/268104/ltcube_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.fits outfile=/scratch/kocevski/268104/expmap_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.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/268104/ltcube_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.fits
.....................!
real 195.55
user 187.51
sys 7.41

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/268104/ft1_filtered_4FGL_J0217.2+0837_daily_bin943.fits scfile=/scratch/kocevski/268104/ft2_4FGL_J0217.2+0837_daily_bin943.fits outfile=/scratch/kocevski/268104/cmap_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.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.01
user 0.37
sys 1.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268104/ft1_filtered_4FGL_J0217.2+0837_daily_bin943.fits scfile=/scratch/kocevski/268104/ft2_4FGL_J0217.2+0837_daily_bin943.fits outfile=/scratch/kocevski/268104/cmap_HighResolution_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.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.01
user 0.39
sys 1.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54381       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9639       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8046       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18928E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    113.63       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12377E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.132       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.423       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.300       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.003       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.2329       1.0000         .10000E-03   10000.    
    25 'norm      '    9.4911       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83119       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4771.656     FROM MIGRAD    STATUS=CONVERGED   1154 CALLS     3883 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4582        .10570E-02** at limit **
   2  norm          .10000E-03    24.153        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.030        .36285E-03** at limit **
   4  Prefactor     .54242        10.077        .22102E-02   -.13594E-03
   5  norm          .10000E-03    3.2985        .12228E-02** at limit **
   6  Prefactor     6.9580        4.7928        .11405E-03   -.28380E-03
   7  norm          2.8047        1.4027        .55066E-04   -.16702E-03
   8  Prefactor     .10000E-03    44.847        .12056    ** at limit **
   9  Prefactor     13.624        103.22        .10862E-03   -.77451E-05
  10  Prefactor     .10000E-03    6.0237        .16534E-02** at limit **
  11  Prefactor     113.61        105.08        .18870E-03   -.21629E-04
  12  Prefactor     .10000E-03    35.930        .18142E-02** at limit **
  13  Prefactor     .10000E-03    85.026        .18142E-02** at limit **
  14  Prefactor     .10000E-03    7.4857        .18142E-02** at limit **
  15  Prefactor     50.152        36.352        .56639E-04   -.41951E-04
  16  norm          6.0707        1.8694        .41516E-04   -.24919E-04
  17  Prefactor     55.445        95.752        .53882E-04   -.39245E-05
  18  Prefactor     41.294        29.030        .62376E-04   -.68166E-04
  19  norm          .10000E-03    12.006        .18142E-02** at limit **
  20  Prefactor     .10000E-03    37.972        .18142E-02** at limit **
  21  Prefactor     .10000E-03    33.298        .18142E-02** at limit **
  22  Prefactor     22.009        47.880        .85391E-04   -.19970E-05
  23  Prefactor     .10000E-03    3.0336        .11742E-02** at limit **
  24  norm          8.2338        13.826        .69862E-03   -.59901E-04
  25  norm          9.4915        6.5846        .13008E-03   -.84775E-05
  26  Normalizat    .83086        .30545        .40135E-03   -.93788E-04
  27  Prefactor     1.1819        .18337        .20600E-03   -.26658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.542419
  norm       = 0.0001
  Prefactor  = 6.95805
  norm       = 2.80474
  Prefactor  = 0.0001
  Prefactor  = 13.6237
  Prefactor  = 0.0001
  Prefactor  = 113.611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.1515
  norm       = 6.07066
  Prefactor  = 55.4452
  Prefactor  = 41.2939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0086
  Prefactor  = 0.0001
  norm       = 8.23385
  norm       = 9.49147
  Normalizat = 0.83086
  Prefactor  = 1.18186
 **********
 **   18 **HESSE 
 **********

 FCN=   4771.656     FROM HESSE     STATUS=OK           472 CALLS     4355 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4583        .21140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    24.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.031        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .54242        9.9862        .88407E-04   -1.5561    
   5  norm          .10000E-03    3.2988        .24456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9580        4.7925        .45618E-05   -1.5180    
   7  norm          2.8047        1.4025        .22026E-05   -1.5373    
   8  Prefactor     .10000E-03    43.321        .12362       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.624        103.51        .43449E-05   -1.4970    
  10  Prefactor     .10000E-03    6.0242        .33067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     113.61        105.09        .75479E-05   -1.3572    
  12  Prefactor     .10000E-03    35.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    85.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.4862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.152        36.367        .22656E-05   -1.4290    
  16  norm          6.0707        1.8696        .16606E-05   -1.5215    
  17  Prefactor     55.445        95.757        .10776E-04   -1.4217    
  18  Prefactor     41.294        29.023        .12475E-04   -1.4422    
  19  norm          .10000E-03    12.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.009        47.867        .34157E-05   -1.4769    
  23  Prefactor     .10000E-03    3.0337        .23483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.2338        13.825        .27945E-04   -1.5134    
  25  norm          9.4915        6.5838        .52033E-05   -1.5092    
  26  Normalizat    .83086        .30522        .16054E-04   -.98934    
  27  Prefactor     1.1819        .18343        .41201E-04   -.86891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34444e-10
Minuit parameter uncertainties:
  1  4.4808e-06
  2  2.4493e-05
  3  4.03238e-05
  4  4.65525
  5  3.55285e-06
  6  4.7928
  7  1.4025
  8  0.000293923
  9  75.2883
  10  4.39683e-07
  11  105.262
  12  6.51864e-05
  13  0.000108612
  14  1.09224e-05
  15  36.383
  16  1.86965
  17  96.0247
  18  29.0327
  19  7.50691e-06
  20  3.44625e-06
  21  9.73029e-06
  22  47.9502
  23  1.76839e-06
  24  13.83
  25  6.58429
  26  0.30585
  27  0.183525
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  6.958e+00  4.793e+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.182e+00  1.835e-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.309e-01  3.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 7.49e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 2.98e-05

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

Saving results to:
/scratch/kocevski/268104/likelihoodResults_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.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) = 4771.60830709
delta logL = 0.0480475557488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4771.60592667
delta logL = 0.0504279762163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0674       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4586       1.0000          .0000       10.000    
     3 'Normalizat'    .81180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1880       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=   4771.606     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      259 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0694        77.813        .40750E-02    .17462E-03
   2  Index         2.4589        3.4802        .15392        .77954E-04
   3  Normalizat    .81229        .14449        .91484E-01    .18641E-04
   4  Prefactor     1.1875        .65745E-01    .34922E-01   -.17101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06942
  Index      = 2.45886
  Normalizat = 0.812289
  Prefactor  = 1.18754
 **********
 **   18 **HESSE 
 **********

 FCN=   4771.606     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0694        5.4331        .10216E-03   -1.5215    
   2  Index         2.4589        .64651        .54069E-02   -.53313    
   3  Normalizat    .81229        .29425        .40529E-03   -.99614    
   4  Prefactor     1.1875        .17445        .20556E-03   -.86715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22277e-09
Minuit parameter uncertainties:
  1  5.43359
  2  0.648963
  3  0.29483
  4  0.174539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268104': 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) = 4771.60592325
delta logL = 0.0504314022419

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  6.069e+00  5.434e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.459e+00  6.490e-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.188e+00  1.745e-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.123e-01  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 34.316 8.623
Photon Index (Free Index): 2.46 +/- 0.65
Photon Flux (Free Index): 1.28e-07 +/- 9.87e-08
Energy Flux (Free Index): 3.91e-05 +/- 2.81e-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/268104/cmap_HighResolution_483753601_484012801_4FGL_J0217.2+0837_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-02', comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.91e-05', photon_flux_error='7.49e-08', dlogl='5.04e-02', energy_flux='4.33e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-08-15 15:41:23.513438', photon_index_error2='0.65', photon_index2='2.46', ts='3.84', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='2.59e-07', energy_flux_error2='2.81e-05', EG='0.83', time_epoch_completed='1629067283.51', return_code='0', job_id='268104', GAL2='1.19', EG2='0.81', return_code2='0', energy_flux_error='2.98e-05', photon_flux_error2='9.87e-08', ts2='3.92', photon_index='2.27' WHERE bin_id='943' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 268104: <4FGL_J0217.2+0837_daily_bin943> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin943 34.3163 8.6234 483753601 484012801 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 :                                   757.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            953 sec.

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

