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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin513
RA = 34.4621, Dec = 1.7346
tmin = 372297601, tmax = 372556801
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='287080', job_status='RUN', time_executed='2021-08-15 16:36:23.965431', time_epoch_executed='1629070583.97' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287080/ft1_4FGL_J0217.8+0144_daily_bin513.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287080/ft2_4FGL_J0217.8+0144_daily_bin513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287080/ft1_4FGL_J0217.8+0144_daily_bin513.fits outfile=/scratch/kocevski/287080/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin513.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=372297601.0 tmax=372556801.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 3.30
user 2.54
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287080/ft2_4FGL_J0217.8+0144_daily_bin513.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/287080/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin513.fits evtable="EVENTS" outfile="/scratch/kocevski/287080/ft1_filtered_4FGL_J0217.8+0144_daily_bin513.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 0.99
user 0.29
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287080/ft1_filtered_4FGL_J0217.8+0144_daily_bin513.fits" evtable="EVENTS" scfile=/scratch/kocevski/287080/ft2_4FGL_J0217.8+0144_daily_bin513.fits sctable="SC_DATA" outfile=/scratch/kocevski/287080/ltcube_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.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/287080/ft2_4FGL_J0217.8+0144_daily_bin513.fits
.....................!
real 11.83
user 10.91
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287080/ft1_filtered_4FGL_J0217.8+0144_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/287080/ft2_4FGL_J0217.8+0144_daily_bin513.fits sctable="SC_DATA" expcube=/scratch/kocevski/287080/ltcube_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.fits outfile=/scratch/kocevski/287080/expmap_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.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/287080/ltcube_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.fits
.....................!
real 157.82
user 152.83
sys 4.64

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/287080/ft1_filtered_4FGL_J0217.8+0144_daily_bin513.fits scfile=/scratch/kocevski/287080/ft2_4FGL_J0217.8+0144_daily_bin513.fits outfile=/scratch/kocevski/287080/cmap_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.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 0.99
user 0.32
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287080/ft1_filtered_4FGL_J0217.8+0144_daily_bin513.fits scfile=/scratch/kocevski/287080/ft2_4FGL_J0217.8+0144_daily_bin513.fits outfile=/scratch/kocevski/287080/cmap_HighResolution_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.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.01
user 0.32
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23644       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.1974       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5210       1.0000         .10000E-03   10000.    
     5 'norm      '    10.278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .48921       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11538E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.620       1.0000         .10000E-03   10000.    
    15 'norm      '    .12867       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15668E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11766E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9395       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73487       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5480.017     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1731 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94972E-02    6474.6        .85648E-04    .14363E-02
   2  Prefactor     .10000E-03    1.7252       -.28169E-08** at limit **
   3  norm          9.1951        1.1956       -.38080E-08    .10977E-03
   4  Prefactor     1.5206        7.0054       -.37772E-06   -.75002E-04
   5  norm          10.271        6.7000        .67342E-06    .39139E-03
   6  Prefactor     .10000E-03    2.3383        .20249E-07** at limit **
   7  norm          .48899        .50968        .27111E-07   -.43896E-04
   8  Prefactor     .10000E-03    8.8717        .28463E-06** at limit **
   9  Prefactor     13.261        1.5522       -.99738E-07   -.46140E-03
  10  Prefactor     .10000E-03    27.780       -.23142E-05** at limit **
  11  Prefactor     .10000E-03    4.9360        .91199E-07** at limit **
  12  Prefactor     35.113        25.519       -.14048E-05    .42144E-02
  13  Prefactor     .10000E-03    12.505       -.11364E-05** at limit **
  14  Prefactor     14.610        21.481       -.11188E-05   -.10660E-01
  15  norm          .25091E-01    1013.5        .46953E-04   -.27434E-02
  16  Prefactor     7.8729        13.156       -.98031E-07    .33476E-02
  17  Prefactor     .10001E-03    29.034        .24850E-05** at limit **
  18  Prefactor     .10000E-03    5.1217        .32779E-07** at limit **
  19  norm          .10000E-03    2.7509        .68376E-07** at limit **
  20  norm          3.9382        4.0419       -.19820E-07   -.43675E-04
  21  Normalizat    .73474        .21255       -.23537E-06   -.15687E-03
  22  Prefactor     1.0523        .15713       -.76094E-06   -.23800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00949719
  Prefactor  = 0.0001
  norm       = 9.19514
  Prefactor  = 1.52064
  norm       = 10.271
  Prefactor  = 0.0001
  norm       = 0.488992
  Prefactor  = 0.0001
  Prefactor  = 13.2613
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 35.1129
  Prefactor  = 0.0001
  Prefactor  = 14.6097
  norm       = 0.0250906
  Prefactor  = 7.87289
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.9382
  Normalizat = 0.734742
  Prefactor  = 1.05235
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.017     FROM HESSE     STATUS=OK           398 CALLS     2129 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94972E-02    110.44        .20676       -1.5689    
   2  Prefactor     .10000E-03    1.7207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.1951        10.992        .33038E-02   -1.5101    
   4  Prefactor     1.5206        7.1309        .86606E-02   -1.5461    
   5  norm          10.271        6.7676        .31245E-02   -1.5067    
   6  Prefactor     .10000E-03    2.2660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .48899        .51877        .11227E-01   -1.5568    
   8  Prefactor     .10000E-03    8.8706        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.261        11.996        .27500E-02   -1.4979    
  10  Prefactor     .10000E-03    27.862        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.113        25.793        .16903E-02   -1.4522    
  13  Prefactor     .10000E-03    12.484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.610        21.619        .26188E-02   -1.4943    
  15  norm          .25091E-01    14.669        .96471E-01   -1.5676    
  16  Prefactor     7.8729        13.109        .35692E-02   -1.5147    
  17  Prefactor     .10001E-03    29.124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9382        4.0505        .50811E-02   -1.5311    
  21  Normalizat    .73474        .18965        .68285E-01   -1.0254    
  22  Prefactor     1.0523        .13994        .39798E-01   -.91004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58345e-06
Minuit parameter uncertainties:
  1  2.04123
  2  5.01835e-07
  3  10.9945
  4  6.58697
  5  6.76806
  6  1.62589e-06
  7  0.518773
  8  2.31699e-05
  9  11.998
  10  0.000474565
  11  6.34764e-06
  12  25.8016
  13  0.000107334
  14  21.6301
  15  1.21122
  16  13.114
  17  0.000797171
  18  2.7584e-06
  19  2.38489e-06
  20  4.05074
  21  0.189824
  22  0.139993
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  4.890e-01  5.188e-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.052e+00  1.400e-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.347e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 2.17e-08
Energy Flux (Fixed Index): 8.69e-06 +/- 9.22e-06

TS (Fixed Index): 2.73
Ra Dec: 34.462 1.735
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287080/likelihoodResults_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.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) = 5479.62830409
delta logL = 0.388199397582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5479.62806054
delta logL = 0.388442947159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31106       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3789       1.0000          .0000       5.0000    
     3 'Normalizat'    .74982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0466       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=   5479.628     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30981        .33218        .96060E-02   -.50454E-03
   2  alpha         1.3766        .49546        .42558       -.37119E-04
   3  Normalizat    .74982        .17897        .67641E-01    .18455E-03
   4  Prefactor     1.0466        .13315        .40114E-01    .30876E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.309814
  alpha      = 1.3766
  Normalizat = 0.749824
  Prefactor  = 1.04661
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.628     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30981        .43193        .42000E-04   -1.5597    
   2  alpha         1.3766        .75380        .15753E-01   -.46605    
   3  Normalizat    .74982        .20232        .29929E-03   -1.0196    
   4  Prefactor     1.0466        .15079        .19034E-03   -.91192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95663e-11
Minuit parameter uncertainties:
  1  0.431934
  2  0.768899
  3  0.20252
  4  0.150847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287080': 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) = 5479.62805585
delta logL = 0.388447640409

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.098e-01  4.319e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.377e+00  7.689e-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.047e+00  1.508e-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.498e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 34.462 1.735
Photon Index (Free Index): 1.38 +/- 0.77
Photon Flux (Free Index): 8.26e-09 +/- 1.15e-08
Energy Flux (Free Index): 2.06e-05 +/- 3.43e-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/287080/cmap_HighResolution_372297601_372556801_4FGL_J0217.8+0144_daily_bin513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='2.06e-05', photon_flux_error='2.17e-08', dlogl='3.88e-01', energy_flux='8.69e-06', photon_flux2='8.26e-09', job_status='DONE', time_completed='2021-08-15 16:44:22.246213', photon_index_error2='0.77', photon_index2='1.38', ts='2.73', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.36e-08', energy_flux_error2='3.43e-05', EG='0.73', time_epoch_completed='1629071062.25', return_code='0', job_id='287080', GAL2='1.05', EG2='0.75', return_code2='0', energy_flux_error='9.22e-06', photon_flux_error2='1.15e-08', ts2='3.51', photon_index='2.16' WHERE bin_id='513' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:44:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 287080: <4FGL_J0217.8+0144_daily_bin513> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin513> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:30:49 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:32:27 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:32:27 2021
Terminated at Sun Aug 15 16:44:23 2021
Results reported at Sun Aug 15 16:44:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin513 34.4621 1.7346 372297601 372556801 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 :                                   480.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            814 sec.

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

