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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin768
RA = 34.4621, Dec = 1.7346
tmin = 438393601, tmax = 438652801
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='288495', job_status='RUN', time_executed='2021-08-15 16:38:10.900652', time_epoch_executed='1629070690.9' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288495

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288495/ft1_4FGL_J0217.8+0144_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288495/ft2_4FGL_J0217.8+0144_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288495/ft1_4FGL_J0217.8+0144_daily_bin768.fits outfile=/scratch/kocevski/288495/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin768.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=438393601.0 tmax=438652801.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.08
user 6.02
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288495/ft1_filtered_4FGL_J0217.8+0144_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/288495/ft2_4FGL_J0217.8+0144_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/288495/ltcube_438393601_438652801_4FGL_J0217.8+0144_daily_bin768.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/288495/ft2_4FGL_J0217.8+0144_daily_bin768.fits
.....................!
real 15.25
user 13.83
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288495/ft1_filtered_4FGL_J0217.8+0144_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/288495/ft2_4FGL_J0217.8+0144_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/288495/ltcube_438393601_438652801_4FGL_J0217.8+0144_daily_bin768.fits outfile=/scratch/kocevski/288495/expmap_438393601_438652801_4FGL_J0217.8+0144_daily_bin768.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/288495/ltcube_438393601_438652801_4FGL_J0217.8+0144_daily_bin768.fits
.....................!
real 193.69
user 186.18
sys 6.87

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/288495/ft1_filtered_4FGL_J0217.8+0144_daily_bin768.fits scfile=/scratch/kocevski/288495/ft2_4FGL_J0217.8+0144_daily_bin768.fits outfile=/scratch/kocevski/288495/cmap_438393601_438652801_4FGL_J0217.8+0144_daily_bin768.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.26
user 0.38
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288495/ft1_filtered_4FGL_J0217.8+0144_daily_bin768.fits scfile=/scratch/kocevski/288495/ft2_4FGL_J0217.8+0144_daily_bin768.fits outfile=/scratch/kocevski/288495/cmap_HighResolution_438393601_438652801_4FGL_J0217.8+0144_daily_bin768.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.27
user 0.37
sys 0.88

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15210E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4537       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5075       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5792       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13277E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12681E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2974       1.0000         .10000E-03   10000.    
    15 'norm      '    .10842E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.161       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3260       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.4993       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63322       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0086       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4837.281     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     2416 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.996        .18142E-02** at limit **
   2  Prefactor     .10000E-03    3.2690        .12174E-02** at limit **
   3  norm          .10000E-03    5.7022        .16214E-02** at limit **
   4  Prefactor     .10000E-03    2.1393        .99226E-03** at limit **
   5  norm          6.4558        4.8224        .12563E-03    .10678E-03
   6  Prefactor     2.5037        3.5199        .13088E-03    .68841E-03
   7  norm          1.5790        1.0074        .53106E-04    .32411E-03
   8  Prefactor     .47916        374.13        .64242E-02    .21990E-03
   9  Prefactor     .10000E-03    12.071        .18142E-02** at limit **
  10  Prefactor     .10000E-03    37.718        .18142E-02** at limit **
  11  Prefactor     .10000E-03    18.281        .36285E-03** at limit **
  12  Prefactor     .10000E-03    11.150        .18142E-02** at limit **
  13  Prefactor     .10000E-03    8.2268        .18142E-02** at limit **
  14  Prefactor     1.3001        50.362        .19409E-02    .37635E-03
  15  norm          .10000E-03    17.630        .18142E-02** at limit **
  16  Prefactor     14.155        10.952        .10644E-03    .42083E-04
  17  Prefactor     .10000E-03    17.821        .18142E-02** at limit **
  18  Prefactor     4.3229        4.7010        .15180E-03    .54672E-04
  19  norm          .10038E-03    99.697        .43971E-02** at limit **
  20  norm          7.4919        9.2541        .14645E-03    .99055E-04
  21  Normalizat    .63324        .19868        .29631E-03    .21225E-03
  22  Prefactor     1.0086        .15172        .17906E-03    .34408E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.45579
  Prefactor  = 2.50373
  norm       = 1.57904
  Prefactor  = 0.479157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30013
  norm       = 0.0001
  Prefactor  = 14.1555
  Prefactor  = 0.0001
  Prefactor  = 4.32294
  norm       = 0.000100376
  norm       = 7.49188
  Normalizat = 0.633238
  Prefactor  = 1.00855
 **********
 **   18 **HESSE 
 **********

 FCN=   4837.281     FROM HESSE     STATUS=OK           322 CALLS     2738 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.998        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2700        .24349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.7024        .32427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1394        .19845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4558        4.8209        .50252E-05   -1.5200    
   6  Prefactor     2.5037        3.4121        .52351E-05   -1.5391    
   7  norm          1.5790        1.0074        .21243E-05   -1.5457    
   8  Prefactor     .47916        358.86        .25697E-03   -1.5570    
   9  Prefactor     .10000E-03    12.078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.282        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3001        50.093        .77638E-04   -1.5480    
  15  norm          .10000E-03    17.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.155        10.950        .42575E-05   -1.4955    
  17  Prefactor     .10000E-03    17.821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3229        4.7005        .60719E-05   -1.5292    
  19  norm          .10038E-03    102.00        .17589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4919        9.2319        .58579E-05   -1.5160    
  21  Normalizat    .63324        .19860        .11852E-04   -1.0659    
  22  Prefactor     1.0086        .15167        .35812E-04   -.92445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09789e-08
Minuit parameter uncertainties:
  1  0.000586324
  2  9.30319e-07
  3  7.40045e-07
  4  5.15373e-07
  5  4.82116
  6  3.41235
  7  1.00737
  8  26.3833
  9  2.35596e-05
  10  0.000127374
  11  3.35876e-05
  12  2.79519e-05
  13  1.4854e-06
  14  16.1542
  15  6.91377e-05
  16  10.952
  17  4.46761e-05
  18  4.70092
  19  0.0124
  20  9.23366
  21  0.198825
  22  0.151729
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.579e+00  1.007e+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:  1.009e+00  1.517e-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:  6.332e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.02
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.79e-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) = 4836.29914254
delta logL = 0.982101570554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4836.23404389
delta logL = 1.04720022434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76433E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9989       1.0000          .0000       5.0000    
     3 'Normalizat'    .47935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0995       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4836.234     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      412 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76295E-01    .59123E-01    .87400E-05   -.31739E-03
   2  alpha         5.0000        3.1837        .39674    ** at limit **
   3  Normalizat    .47937        .20877        .33730E-03    .13495E-03
   4  Prefactor     1.0995        .15094        .17259E-03   -.50457E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0762953
  alpha      = 5
  Normalizat = 0.479366
  Prefactor  = 1.09951
 **********
 **   18 **HESSE 
 **********

 FCN=   4836.234     FROM HESSE     STATUS=OK            29 CALLS      441 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76295E-01    .54446E-01    .34960E-06   -1.5653    
   2  alpha         5.0000        1.0192        .44316        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .47937        .20952        .13492E-04   -1.1338    
   4  Prefactor     1.0995        .15120        .69036E-05   -.89482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39591e-10
Minuit parameter uncertainties:
  1  0.0544463
  2  0.000168489
  3  0.209868
  4  0.151256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288495': 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) = 4836.23402982
delta logL = 1.04721429673

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  7.630e-02  5.445e-02  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  5.000e+00  1.685e-04  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.100e+00  1.513e-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:  4.794e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 34.462 1.735
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.65e-07 +/- 1.17e-07
Energy Flux (Free Index): 2.23e-05 +/- 1.59e-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/288495/cmap_HighResolution_438393601_438652801_4FGL_J0217.8+0144_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='2.23e-05', photon_flux_error='4.21e-08', dlogl='1.05e+00', energy_flux='2.81e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-08-15 16:47:37.109752', photon_index_error2='0.00', photon_index2='5.00', ts='4.02', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.63', time_epoch_completed='1629071257.11', return_code='0', job_id='288495', GAL2='1.10', EG2='0.48', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='1.17e-07', ts2='7.10', photon_index='2.16' WHERE bin_id='768' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 288495: <4FGL_J0217.8+0144_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin768 34.4621 1.7346 438393601 438652801 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            725 sec.

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

