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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin632
RA = 34.4621, Dec = 1.7346
tmin = 403142401, tmax = 403401601
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='287220', job_status='RUN', time_executed='2021-08-15 16:34:04.096246', time_epoch_executed='1629070444.1' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287220/ft1_4FGL_J0217.8+0144_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287220/ft1_4FGL_J0217.8+0144_daily_bin632.fits outfile=/scratch/kocevski/287220/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin632.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=403142401.0 tmax=403401601.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.69
user 3.32
sys 1.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.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/287220/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin632.fits evtable="EVENTS" outfile="/scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.63
user 0.34
sys 1.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/287220/ltcube_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.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/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits
.....................!
real 15.32
user 13.50
sys 1.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/287220/ltcube_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.fits outfile=/scratch/kocevski/287220/expmap_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.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/287220/ltcube_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.fits
.....................!
real 193.05
user 185.80
sys 6.34

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0217.8+0144 @ 34.4621 1.7346

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits scfile=/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits outfile=/scratch/kocevski/287220/cmap_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.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.4621 yref=1.7346 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.60
user 0.38
sys 1.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits scfile=/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits outfile=/scratch/kocevski/287220/cmap_HighResolution_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.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.4621 yref=1.7346 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.60
user 0.39
sys 1.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287220/Model_4FGL_J0217.8+0144_daily_bin632.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/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits.....................!
real 60.28
user 57.20
sys 2.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits', '/scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits', expMap='/scratch/kocevski/287220/expmap_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.fits', expCube='/scratch/kocevski/287220/ltcube_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287220/Model_4FGL_J0217.8+0144_daily_bin632.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.8+0144'

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/287220/ft1_filtered_4FGL_J0217.8+0144_daily_bin632.fits
Spacecraft file(s): /scratch/kocevski/287220/ft2_4FGL_J0217.8+0144_daily_bin632.fits
Exposure map: /scratch/kocevski/287220/expmap_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.fits
Exposure cube: /scratch/kocevski/287220/ltcube_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287220/Model_4FGL_J0217.8+0144_daily_bin632.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) = 4824.55473238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7562       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6755       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8895       1.0000         .10000E-03   10000.    
     7 'norm      '    .36170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.146       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.468       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73736       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4824.534     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2391 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.255        113.29       -.16531E-05   -.17477E-05
   2  Prefactor     3.7558        4.1174        .60849E-07   -.82781E-04
   3  norm          .10000E-03    10.848        .32552E-07** at limit **
   4  Prefactor     3.6753        3.4756        .70770E-07    .14116E-03
   5  norm          .10000E-03    2.8611        .23023E-07** at limit **
   6  Prefactor     3.8891        2.5593       -.71725E-07    .83642E-05
   7  norm          .36173        .35211        .20067E-07    .37875E-03
   8  Prefactor     19.745        22.850        .23075E-05    .60815E-05
   9  Prefactor     .45009        6.2981       -.15124E-05   -.13902E-03
  10  Prefactor     .10000E-03    99.867        .57773E-06** at limit **
  11  Prefactor     .10000E-03    6.2936       -.49578E-07** at limit **
  12  Prefactor     .10000E-03    6.8348       -.26703E-07** at limit **
  13  Prefactor     6.6834        14.202        .29791E-05   -.14686E-04
  14  Prefactor     .10000E-03    12.013        .48420E-07** at limit **
  15  norm          11.145        15.429       -.38839E-05   -.25221E-04
  16  Prefactor     25.462        17.638        .50657E-05   -.18353E-04
  17  Prefactor     .10000E-03    80.892       -.13091E-05** at limit **
  18  Prefactor     .10000E-03    2.6145        .78076E-08** at limit **
  19  norm          .10000E-03    3.8791        .35501E-08** at limit **
  20  norm          .10000E-03    6.1105        .17352E-07** at limit **
  21  Normalizat    .73759        .19709       -.29787E-05    .85610E-04
  22  Prefactor     1.0514        .14384        .88391E-06   -.29805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2551
  Prefactor  = 3.75583
  norm       = 0.0001
  Prefactor  = 3.67533
  norm       = 0.0001
  Prefactor  = 3.8891
  norm       = 0.361725
  Prefactor  = 19.7454
  Prefactor  = 0.450091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6834
  Prefactor  = 0.0001
  norm       = 11.1452
  Prefactor  = 25.4619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.737587
  Prefactor  = 1.05139
 **********
 **   18 **HESSE 
 **********

 FCN=   4824.534     FROM HESSE     STATUS=OK           344 CALLS     2735 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.255        113.48        .65178E-04   -1.4486    
   2  Prefactor     3.7558        4.1138        .14300E-03   -1.5320    
   3  norm          .10000E-03    10.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6753        3.4839        .12284E-03   -1.5325    
   5  norm          .10000E-03    2.8920        .11467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8891        2.5522        .84747E-04   -1.5314    
   7  norm          .36173        .37108        .39628E-03   -1.5588    
   8  Prefactor     19.745        22.811        .90109E-04   -1.4819    
   9  Prefactor     .45009        17.673        .33764E-02   -1.5574    
  10  Prefactor     .10000E-03    100.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3099        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8419        .17734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6834        14.070        .15519E-03   -1.5191    
  14  Prefactor     .10000E-03    12.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.145        15.368        .12000E-03   -1.5040    
  16  Prefactor     25.462        17.526        .79378E-04   -1.4698    
  17  Prefactor     .10000E-03    81.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6268        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8835        .13361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.2379        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73759        .22132        .29716E-03   -1.0243    
  22  Prefactor     1.0514        .16347        .18823E-03   -.91036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10474e-08
Minuit parameter uncertainties:
  1  114.15
  2  4.11414
  3  6.06763e-06
  4  3.48411
  5  3.64851e-06
  6  2.55227
  7  0.371085
  8  22.8206
  9  5.64184
  10  4.53799e-05
  11  1.27215e-05
  12  7.13287e-06
  13  14.0767
  14  5.48114e-06
  15  15.3739
  16  17.53
  17  0.00029513
  18  1.47046e-06
  19  4.74424e-07
  20  5.62362e-06
  21  0.221591
  22  0.163549
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.617e-01  3.711e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.051e+00  1.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  7.376e-01  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.58
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.51e-08 +/- 1.55e-08
Energy Flux (Fixed Index): 6.43e-06 +/- 6.59e-06

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) = 4822.72534609
delta logL = 1.8083025022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4822.69307768
delta logL = 1.84057091804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20328       1.0000         .10000E-03   10000.    
     2 'alpha     '    .87245       1.0000          .0000       5.0000    
     3 'Normalizat'    .74314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0489       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4822.693     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20316        .19898        .66916E-02   -.55284E-03
   2  alpha         .87187        .38778        .30325       -.33641E-04
   3  Normalizat    .74329        .18720        .66892E-01    .18527E-04
   4  Prefactor     1.0488        .14019        .39976E-01    .36862E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.203155
  alpha      = 0.871871
  Normalizat = 0.743285
  Prefactor  = 1.04877
 **********
 **   18 **HESSE 
 **********

 FCN=   4822.693     FROM HESSE     STATUS=OK            35 CALLS      248 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20316        .29355        .27226E-03   -1.5618    
   2  alpha         .87187        .55302        .12696E-01   -.70923    
   3  Normalizat    .74329        .21085        .29597E-03   -1.0221    
   4  Prefactor     1.0488        .15819        .18838E-03   -.91121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65848e-09
Minuit parameter uncertainties:
  1  0.293556
  2  0.561165
  3  0.211081
  4  0.158256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287220': 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) = 4822.69307679
delta logL = 1.84057180054

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.032e-01  2.936e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  8.719e-01  5.612e-01  0.000e+00  5.000e+00 ( 1.000e+00)
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.049e+00  1.583e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  7.433e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 34.462 1.735
Photon Index (Free Index): 0.87 +/- 0.56
Photon Flux (Free Index): 7.43e-09 +/- 7.55e-09
Energy Flux (Free Index): 7.40e-05 +/- 1.05e-04

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/287220/cmap_HighResolution_403142401_403401601_4FGL_J0217.8+0144_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-08', energy_flux2='7.40e-05', photon_flux_error='1.55e-08', dlogl='1.84e+00', energy_flux='6.43e-06', photon_flux2='7.43e-09', job_status='DONE', time_completed='2021-08-15 16:43:15.004164', photon_index_error2='0.56', photon_index2='0.87', ts='4.58', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.05e-04', EG='0.74', time_epoch_completed='1629070995.0', return_code='0', job_id='287220', GAL2='1.05', EG2='0.74', return_code2='0', energy_flux_error='6.59e-06', photon_flux_error2='7.55e-09', ts2='8.26', photon_index='2.16' WHERE bin_id='632' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:43:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 287220: <4FGL_J0217.8+0144_daily_bin632> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin632> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:31:05 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:33:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 16:33:34 2021
Terminated at Sun Aug 15 16:43:16 2021
Results reported at Sun Aug 15 16:43:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin632 34.4621 1.7346 403142401 403401601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.8+0144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   560.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            731 sec.

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

