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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin753
RA = 34.4621, Dec = 1.7346
tmin = 434505601, tmax = 434764801
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='287442', job_status='RUN', time_executed='2021-08-15 16:37:04.707387', time_epoch_executed='1629070624.71' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287442/ft1_4FGL_J0217.8+0144_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287442/ft2_4FGL_J0217.8+0144_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287442/ft1_4FGL_J0217.8+0144_daily_bin753.fits outfile=/scratch/kocevski/287442/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin753.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=434505601.0 tmax=434764801.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 6.69
user 5.66
sys 0.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287442/ft2_4FGL_J0217.8+0144_daily_bin753.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/287442/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/287442/ft1_filtered_4FGL_J0217.8+0144_daily_bin753.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.20
user 0.35
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287442/ft1_filtered_4FGL_J0217.8+0144_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/287442/ft2_4FGL_J0217.8+0144_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/287442/ltcube_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.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/287442/ft2_4FGL_J0217.8+0144_daily_bin753.fits
.....................!
real 15.50
user 14.35
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287442/ft1_filtered_4FGL_J0217.8+0144_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/287442/ft2_4FGL_J0217.8+0144_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/287442/ltcube_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.fits outfile=/scratch/kocevski/287442/expmap_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.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/287442/ltcube_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.fits
.....................!
real 193.40
user 185.85
sys 5.98

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/287442/ft1_filtered_4FGL_J0217.8+0144_daily_bin753.fits scfile=/scratch/kocevski/287442/ft2_4FGL_J0217.8+0144_daily_bin753.fits outfile=/scratch/kocevski/287442/cmap_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.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.21
user 0.39
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287442/ft1_filtered_4FGL_J0217.8+0144_daily_bin753.fits scfile=/scratch/kocevski/287442/ft2_4FGL_J0217.8+0144_daily_bin753.fits outfile=/scratch/kocevski/287442/cmap_HighResolution_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.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.22
user 0.40
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .40909E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.790       1.0000         .10000E-03   10000.    
     5 'norm      '    11.475       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6298       1.0000         .10000E-03   10000.    
     7 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.092       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3206       1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14196E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14690E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.734       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9828       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12576       1.0000         .10000E-03   10000.    
    20 'norm      '    5.9481       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0373       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95529       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=   4111.179     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2452 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.140       -.18308E-05** at limit **
   2  Prefactor     .10000E-03    1.7976        .20235E-06** at limit **
   3  norm          .10000E-03    98.457        .13049E-04** at limit **
   4  Prefactor     36.773        17.135       -.36372E-06   -.70961E-04
   5  norm          11.477        10.030       -.50964E-06   -.49117E-04
   6  Prefactor     1.6251        2.3886       -.53987E-06   -.11920E-03
   7  norm          .10000E-03    .40880       -.14926E-07** at limit **
   8  Prefactor     36.073        40.013        .14914E-06    .32236E-04
   9  Prefactor     7.3099        14.322       -.63966E-06   -.75055E-05
  10  Prefactor     49.944        71.403       -.72757E-06    .14017E-05
  11  Prefactor     .10001E-03    13.439       -.38017E-05** at limit **
  12  Prefactor     .10000E-03    23.826       -.46090E-05** at limit **
  13  Prefactor     .10000E-03    13.688       -.85172E-06** at limit **
  14  Prefactor     27.698        27.136       -.34304E-05   -.55737E-04
  15  norm          2.9322        16.005       -.25030E-05   -.15603E-04
  16  Prefactor     .10000E-03    5.8219        .32014E-06** at limit **
  17  Prefactor     .10000E-03    68.937        .23461E-05** at limit **
  18  Prefactor     .10043E-03    4.0014       -.15070E-05** at limit **
  19  norm          .17831E-01    12.397       -.21320E-05    .22538E-03
  20  norm          5.9542        5.9174       -.13145E-06    .48325E-04
  21  Normalizat    1.0377        .23074        .16420E-05   -.38010E-04
  22  Prefactor     .95513        .17323       -.46697E-06    .94188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 36.7726
  norm       = 11.477
  Prefactor  = 1.62511
  norm       = 0.0001
  Prefactor  = 36.073
  Prefactor  = 7.30992
  Prefactor  = 49.9444
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6984
  norm       = 2.93217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100427
  norm       = 0.0178314
  norm       = 5.95419
  Normalizat = 1.0377
  Prefactor  = 0.955128
 **********
 **   18 **HESSE 
 **********

 FCN=   4111.179     FROM HESSE     STATUS=OK           362 CALLS     2814 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7993        .83955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    126.03        .58521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.773        16.940        .66075E-04   -1.4494    
   5  norm          11.477        10.002        .11826E-03   -1.5030    
   6  Prefactor     1.6251        2.3594        .11395E-03   -1.5453    
   7  norm          .10000E-03    .41907        .79950E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.073        39.906        .66709E-04   -1.4506    
   9  Prefactor     7.3099        14.315        .14824E-03   -1.5167    
  10  Prefactor     49.944        71.376        .56759E-04   -1.4293    
  11  Prefactor     .10001E-03    31.566        .31592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.698        27.272        .76073E-04   -1.4655    
  15  norm          2.9322        16.132        .23507E-03   -1.5365    
  16  Prefactor     .10000E-03    5.8339        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    69.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10043E-03    4.2057        .42148E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .17831E-01    18.275        .65620E-01   -1.5681    
  20  norm          5.9542        5.9368        .14915E-03   -1.5220    
  21  Normalizat    1.0377        .26111        .28323E-03   -.91778    
  22  Prefactor     .95513        .19959        .21535E-03   -.94241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25892e-09
Minuit parameter uncertainties:
  1  0.000106867
  2  1.02961e-06
  3  0.000863418
  4  16.942
  5  10.0039
  6  2.3595
  7  1.19251e-07
  8  39.9352
  9  14.322
  10  71.4984
  11  0.00119534
  12  4.66648e-05
  13  7.05538e-05
  14  27.2847
  15  13.7608
  16  1.32612e-06
  17  0.000139442
  18  0.0026809
  19  1.13883
  20  5.93737
  21  0.261436
  22  0.199747
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  1.193e-07  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.551e-01  1.997e-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:  1.038e+00  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287442/likelihoodResults_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.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) = 4111.17939324
delta logL = -0.000809937966551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4111.11504828
delta logL = 0.0635350176699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14070E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97104       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=   4111.115     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      452 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14059E-01    .46493E-01    .17725E-03    .22076E-01
   2  alpha         5.0000        4.9897        .50000    ** at limit **
   3  Normalizat    1.0011        .27357        .28764E-03   -.84107E-04
   4  Prefactor     .97111        .19140        .21381E-03    .91008E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0140589
  alpha      = 5
  Normalizat = 1.00106
  Prefactor  = 0.971113
 **********
 **   18 **HESSE 
 **********

 FCN=   4111.115     FROM HESSE     STATUS=OK            31 CALLS      483 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14059E-01    .43999E-01    .35450E-04   -1.5684    
   2  alpha         5.0000        4.9992        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0011        .27439        .11506E-04   -.92995    
   4  Prefactor     .97111        .19173        .42762E-04   -.93699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79154e-10
Minuit parameter uncertainties:
  1  0.0439986
  2  8.22043e-05
  3  0.274782
  4  0.191867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287442': 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) = 4111.11504754
delta logL = 0.0635357566935

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.406e-02  4.400e-02  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  5.000e+00  8.220e-05  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.711e-01  1.919e-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:  1.001e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.462 1.735

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/287442/cmap_HighResolution_434505601_434764801_4FGL_J0217.8+0144_daily_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-08-15 16:46:59.915078', job_id='287442', GAL2='0.97', fit_tolerance='1e-08', EG2='1.00', EG='1.04', time_epoch_completed='1629071219.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.35e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='753' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:46:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 287442: <4FGL_J0217.8+0144_daily_bin753> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin753> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:31:23 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:34:59 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:34:59 2021
Terminated at Sun Aug 15 16:47:00 2021
Results reported at Sun Aug 15 16:47:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin753 34.4621 1.7346 434505601 434764801 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 :                                   591.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            937 sec.

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

