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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin864
RA = 34.4621, Dec = 1.7346
tmin = 463276801, tmax = 463536001
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='288649', job_status='RUN', time_executed='2021-08-15 16:40:41.193679', time_epoch_executed='1629070841.19' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='864'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288649

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288649/ft1_4FGL_J0217.8+0144_daily_bin864.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288649/ft1_4FGL_J0217.8+0144_daily_bin864.fits outfile=/scratch/kocevski/288649/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin864.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=463276801.0 tmax=463536001.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 10.46
user 3.45
sys 6.57

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.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/288649/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin864.fits evtable="EVENTS" outfile="/scratch/kocevski/288649/ft1_filtered_4FGL_J0217.8+0144_daily_bin864.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 6.94
user 0.33
sys 6.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288649/ft1_filtered_4FGL_J0217.8+0144_daily_bin864.fits" evtable="EVENTS" scfile=/scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits sctable="SC_DATA" outfile=/scratch/kocevski/288649/ltcube_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.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/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits
.....................!
real 20.97
user 13.30
sys 7.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288649/ft1_filtered_4FGL_J0217.8+0144_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits sctable="SC_DATA" expcube=/scratch/kocevski/288649/ltcube_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.fits outfile=/scratch/kocevski/288649/expmap_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.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/288649/ltcube_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.fits
.....................!
real 200.57
user 185.81
sys 14.23

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/288649/ft1_filtered_4FGL_J0217.8+0144_daily_bin864.fits scfile=/scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits outfile=/scratch/kocevski/288649/cmap_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.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 6.89
user 0.36
sys 6.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288649/ft1_filtered_4FGL_J0217.8+0144_daily_bin864.fits scfile=/scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits outfile=/scratch/kocevski/288649/cmap_HighResolution_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.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 6.84
user 0.39
sys 6.41

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/288649/ft1_filtered_4FGL_J0217.8+0144_daily_bin864.fits', '/scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits', expMap='/scratch/kocevski/288649/expmap_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.fits', expCube='/scratch/kocevski/288649/ltcube_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/288649/Model_4FGL_J0217.8+0144_daily_bin864.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/288649/ft1_filtered_4FGL_J0217.8+0144_daily_bin864.fits
Spacecraft file(s): /scratch/kocevski/288649/ft2_4FGL_J0217.8+0144_daily_bin864.fits
Exposure map: /scratch/kocevski/288649/expmap_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.fits
Exposure cube: /scratch/kocevski/288649/ltcube_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/288649/Model_4FGL_J0217.8+0144_daily_bin864.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) = 5064.3983607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33084E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .72536E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5726       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5908       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.629       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12609E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.841       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5587       1.0000         .10000E-03   10000.    
    19 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1682       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .57781       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96214       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=   5064.388     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2392 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.760        .65717E-06** at limit **
   2  Prefactor     .10000E-03    7.7585        .31595E-05** at limit **
   3  norm          .10003E-03    12.177        .32201E-05** at limit **
   4  Prefactor     .10000E-03    5.7355        .17344E-06** at limit **
   5  norm          10.902        5.8527       -.11470E-05   -.12896E-04
   6  Prefactor     2.5728        2.5861        .68432E-07    .21128E-04
   7  norm          2.5906        1.0175        .11803E-07   -.25189E-05
   8  Prefactor     18.859        24.690       -.11566E-05   -.25857E-04
   9  Prefactor     .10000E-03    6.1888        .65346E-06** at limit **
  10  Prefactor     64.598        58.544        .29940E-05    .41432E-04
  11  Prefactor     .10000E-03    10.869        .69651E-06** at limit **
  12  Prefactor     .10000E-03    10.861       -.31838E-06** at limit **
  13  Prefactor     .10000E-03    6.2856        .23893E-06** at limit **
  14  Prefactor     32.825        18.809        .33084E-06    .28242E-04
  15  norm          .10000E-03    2.6538        .33789E-07** at limit **
  16  Prefactor     .68878        25.150        .50052E-05   -.58332E-04
  17  Prefactor     5.9144        129.42        .26918E-05    .12483E-04
  18  Prefactor     9.5584        6.7084       -.40653E-07   -.20027E-04
  19  norm          .10000E-03    3.5508       -.19514E-09** at limit **
  20  norm          8.1669        5.7505       -.40082E-07   -.23632E-04
  21  Normalizat    .57813        .18091        .63430E-06   -.67719E-04
  22  Prefactor     .96201        .13288       -.70743E-06    .11730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100032
  Prefactor  = 0.0001
  norm       = 10.9017
  Prefactor  = 2.57278
  norm       = 2.5906
  Prefactor  = 18.8591
  Prefactor  = 0.0001
  Prefactor  = 64.5985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8249
  norm       = 0.0001
  Prefactor  = 0.688776
  Prefactor  = 5.91441
  Prefactor  = 9.55843
  norm       = 0.0001
  norm       = 8.16691
  Normalizat = 0.578134
  Prefactor  = 0.96201
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.388     FROM HESSE     STATUS=OK           352 CALLS     2744 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.863        .23147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10003E-03    51.624        .39431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8374        .16646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.902        5.9195        .60338E-03   -1.5047    
   6  Prefactor     2.5728        2.5648        .10538E-03   -1.5387    
   7  norm          2.5906        1.0182        .25351E-04   -1.5386    
   8  Prefactor     18.859        24.612        .92250E-04   -1.4839    
   9  Prefactor     .10000E-03    6.2621        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.598        58.774        .24960E-03   -1.4099    
  11  Prefactor     .10000E-03    11.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.399        .34206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.825        18.826        .69922E-04   -1.4561    
  15  norm          .10000E-03    2.6557        .11321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68878        56.783        .44994E-02   -1.5542    
  17  Prefactor     5.9144        130.74        .16475E-03   -1.5222    
  18  Prefactor     9.5584        6.7123        .12962E-03   -1.5090    
  19  norm          .10000E-03    3.5551        .13096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.1669        5.7622        .13805E-03   -1.5136    
  21  Normalizat    .57813        .20035        .30863E-03   -1.0892    
  22  Prefactor     .96201        .14886        .18337E-03   -.94007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21744e-08
Minuit parameter uncertainties:
  1  4.159e-05
  2  0.000293839
  3  0.00258583
  4  3.8225e-05
  5  5.91986
  6  2.56491
  7  1.01819
  8  24.6257
  9  1.51429e-05
  10  58.8267
  11  1.54247e-06
  12  1.68723e-06
  13  3.21124e-05
  14  18.8296
  15  4.10562e-07
  16  12.5191
  17  55.7537
  18  6.71283
  19  1.98007e-06
  20  5.76258
  21  0.200603
  22  0.148928
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.591e+00  1.018e+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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.620e-01  1.489e-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:  5.781e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.56
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 4.25e-08
Energy Flux (Fixed Index): 4.60e-05 +/- 1.81e-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) = 5064.38395122
delta logL = 0.00383471605892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5064.3836054
delta logL = 0.00418053659814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6068       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1256       1.0000          .0000       5.0000    
     3 'Normalizat'    .58145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96051       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=   5064.384     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      192 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6068        1.6273        .63165E-03   -.79841E-03
   2  alpha         2.1256        .54154        .22695        .11854E-04
   3  Normalizat    .58145        .17304        .69547E-01   -.12658E-04
   4  Prefactor     .96052        .12883        .45772E-01    .17007E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60682
  alpha      = 2.12556
  Normalizat = 0.58145
  Prefactor  = 0.960515
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.384     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6068        1.0429        .25266E-04   -1.5385    
   2  alpha         2.1256        .37144        .93757E-02   -.15034    
   3  Normalizat    .58145        .19404        .30784E-03   -1.0878    
   4  Prefactor     .96052        .14440        .18350E-03   -.94057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04881e-11
Minuit parameter uncertainties:
  1  1.04293
  2  0.372851
  3  0.19427
  4  0.14446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288649': 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) = 5064.3836054
delta logL = 0.00418053684825

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.607e+00  1.043e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.126e+00  3.729e-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:  9.605e-01  1.445e-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:  5.814e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.49
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.13 +/- 0.37
Photon Flux (Free Index): 1.05e-07 +/- 5.12e-08
Energy Flux (Free Index): 4.72e-05 +/- 2.31e-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/288649/cmap_HighResolution_463276801_463536001_4FGL_J0217.8+0144_daily_bin864.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='4.72e-05', photon_flux_error='4.25e-08', dlogl='4.18e-03', energy_flux='4.60e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-15 16:51:12.732426', photon_index_error2='0.37', photon_index2='2.13', ts='17.56', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.31e-05', EG='0.58', time_epoch_completed='1629071472.73', return_code='0', job_id='288649', GAL2='0.96', EG2='0.58', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.12e-08', ts2='17.49', photon_index='2.16' WHERE bin_id='864' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 288649: <4FGL_J0217.8+0144_daily_bin864> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin864> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 16:35:44 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:36:36 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:36:36 2021
Terminated at Sun Aug 15 16:51:15 2021
Results reported at Sun Aug 15 16:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin864 34.4621 1.7346 463276801 463536001 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 :                                   726.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             239.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            931 sec.

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

