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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin968
RA = 34.4621, Dec = 1.7346
tmin = 490233601, tmax = 490492801
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='289872', job_status='RUN', time_executed='2021-08-15 16:44:39.741199', time_epoch_executed='1629071079.74' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289872/ft1_4FGL_J0217.8+0144_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289872/ft2_4FGL_J0217.8+0144_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289872/ft1_4FGL_J0217.8+0144_daily_bin968.fits outfile=/scratch/kocevski/289872/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin968.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=490233601.0 tmax=490492801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.53
user 3.50
sys 0.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289872/ft2_4FGL_J0217.8+0144_daily_bin968.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/289872/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/289872/ft1_filtered_4FGL_J0217.8+0144_daily_bin968.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.31
user 0.36
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289872/ft1_filtered_4FGL_J0217.8+0144_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/289872/ft2_4FGL_J0217.8+0144_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/289872/ltcube_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.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/289872/ft2_4FGL_J0217.8+0144_daily_bin968.fits
.....................!
real 15.52
user 14.11
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289872/ft1_filtered_4FGL_J0217.8+0144_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/289872/ft2_4FGL_J0217.8+0144_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/289872/ltcube_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.fits outfile=/scratch/kocevski/289872/expmap_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.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/289872/ltcube_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.fits
.....................!
real 193.70
user 185.75
sys 7.29

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/289872/ft1_filtered_4FGL_J0217.8+0144_daily_bin968.fits scfile=/scratch/kocevski/289872/ft2_4FGL_J0217.8+0144_daily_bin968.fits outfile=/scratch/kocevski/289872/cmap_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.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.31
user 0.37
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289872/ft1_filtered_4FGL_J0217.8+0144_daily_bin968.fits scfile=/scratch/kocevski/289872/ft2_4FGL_J0217.8+0144_daily_bin968.fits outfile=/scratch/kocevski/289872/cmap_HighResolution_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.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.36
user 0.39
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.2536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5993       1.0000         .10000E-03   10000.    
     5 'norm      '    14.296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.731       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5545       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11668E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7832       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.003       1.0000         .10000E-03   10000.    
    15 'norm      '    .76661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10538E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.267       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6438       1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93624       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84660       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=   5619.212     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2348 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.155       -.29647E-05** at limit **
   2  Prefactor     .10000E-03    1.5241        .59974E-07** at limit **
   3  norm          7.2536        11.879        .13166E-05   -.63250E-04
   4  Prefactor     9.6002        5.9620       -.30057E-06   -.27626E-04
   5  norm          14.296        5.8615       -.30327E-06   -.68728E-04
   6  Prefactor     12.731        3.9631       -.19451E-05   -.42979E-03
   7  norm          1.1655        .92781       -.36812E-07   -.10807E-02
   8  Prefactor     7.5781        33.234        .39770E-04   -.37855E-05
   9  Prefactor     .10000E-03    5.4953       -.86133E-06** at limit **
  10  Prefactor     5.8277        276.40        .16783E-03    .24250E-04
  11  Prefactor     .10000E-03    3.6134        .31525E-07** at limit **
  12  Prefactor     .10001E-03    28.321       -.57988E-05** at limit **
  13  Prefactor     9.1972        13.698        .19227E-05    .64623E-03
  14  Prefactor     15.013        19.150        .71912E-07   -.50968E-05
  15  norm          .83707        13.012       -.70763E-05    .42617E-03
  16  Prefactor     .10081E-03    7.3702        .15316E-05** at limit **
  17  Prefactor     67.292        48.394        .23823E-04   -.61451E-04
  18  Prefactor     3.6448        5.3981        .93852E-07   -.43603E-03
  19  norm          .10000E-03    4.5111        .10316E-06** at limit **
  20  norm          .10000E-03    1.2836        .48791E-09** at limit **
  21  Normalizat    .93610        .18734       -.25749E-05   -.64343E-04
  22  Prefactor     .84654        .13864       -.46636E-05    .45706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.25364
  Prefactor  = 9.60018
  norm       = 14.2958
  Prefactor  = 12.7307
  norm       = 1.16548
  Prefactor  = 7.57811
  Prefactor  = 0.000100001
  Prefactor  = 5.82772
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 9.19724
  Prefactor  = 15.0133
  norm       = 0.837072
  Prefactor  = 0.000100811
  Prefactor  = 67.2925
  Prefactor  = 3.64483
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.936101
  Prefactor  = 0.846539
 **********
 **   18 **HESSE 
 **********

 FCN=   5619.212     FROM HESSE     STATUS=OK           352 CALLS     2700 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5295        .90367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.2536        11.879        .14893E-03   -1.5169    
   4  Prefactor     9.6002        5.9616        .12934E-03   -1.5088    
   5  norm          14.296        5.8605        .10593E-03   -1.4952    
   6  Prefactor     12.731        3.9586        .74977E-04   -1.4994    
   7  norm          1.1655        .91044        .60690E-04   -1.5492    
   8  Prefactor     7.5781        32.666        .14591E-03   -1.5157    
   9  Prefactor     .10000E-03    17.412        .33919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8277        272.50        .16701E-03   -1.5225    
  11  Prefactor     .10000E-03    3.6180        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    28.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1972        13.256        .13202E-03   -1.5101    
  14  Prefactor     15.013        19.144        .10340E-03   -1.4933    
  15  norm          .83707        43.988        .44905E-02   -1.5525    
  16  Prefactor     .10081E-03    71.437        .38706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.292        48.203        .24469E-03   -1.4065    
  18  Prefactor     3.6448        5.3924        .20247E-03   -1.5326    
  19  norm          .10000E-03    4.5370        .15549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2846        .82940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93610        .20889        .27188E-03   -.95203    
  22  Prefactor     .84654        .15645        .20933E-03   -.98035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52594e-08
Minuit parameter uncertainties:
  1  0.000124672
  2  7.75679e-06
  3  11.8828
  4  5.96192
  5  5.86076
  6  3.95867
  7  0.910446
  8  31.4963
  9  0.000318681
  10  80.0902
  11  5.55278e-06
  12  0.00109391
  13  13.2599
  14  19.1513
  15  12.1448
  16  0.0152377
  17  48.2314
  18  5.3931
  19  1.67476e-05
  20  2.40302e-06
  21  0.209071
  22  0.156535
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.165e+00  9.104e-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:  8.465e-01  1.565e-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:  9.361e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.62e-05

TS (Fixed Index): 2.86
Ra Dec: 34.462 1.735
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289872/likelihoodResults_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.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) = 5616.02937145
delta logL = 3.18272029682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5615.97057108
delta logL = 3.24152066287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22593       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3353       1.0000          .0000       5.0000    
     3 'Normalizat'    .77066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92730       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=   5615.971     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      224 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22554        1.4096        .31431E-02    .50461E-03
   2  alpha         4.3364        4.5792        .25840        .12756E-04
   3  Normalizat    .77087        .80078E-01    .66767E-01   -.75816E-05
   4  Prefactor     .92721        .59505E-01    .45352E-01    .39077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.225544
  alpha      = 4.33641
  Normalizat = 0.77087
  Prefactor  = 0.927214
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.971     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22554        .68909        .14000E-04   -1.5613    
   2  alpha         4.3364        3.8668        .11892E-01    .82502    
   3  Normalizat    .77087        .21131        .29540E-03   -1.0116    
   4  Prefactor     .92721        .15293        .20080E-03   -.95197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3968e-11
Minuit parameter uncertainties:
  1  0.689109
  2  2.02222
  3  0.211533
  4  0.152996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289872': 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) = 5615.97056984
delta logL = 3.24152190363

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.255e-01  6.891e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  4.336e+00  2.022e+00  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.272e-01  1.530e-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.709e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.25
Ra Dec: 34.462 1.735
Photon Index (Free Index): 4.34 +/- 2.02
Photon Flux (Free Index): 1.73e-07 +/- 7.45e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.19e-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/289872/cmap_HighResolution_490233601_490492801_4FGL_J0217.8+0144_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-05', comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='2.52e-05', photon_flux_error='3.80e-08', dlogl='3.24e+00', energy_flux='2.07e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-08-15 16:55:17.459440', photon_index_error2='2.02', photon_index2='4.34', ts='2.86', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.19e-05', EG='0.94', time_epoch_completed='1629071717.46', return_code='0', job_id='289872', GAL2='0.93', EG2='0.77', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='7.45e-08', ts2='10.25', photon_index='2.16' WHERE bin_id='968' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:55:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 289872: <4FGL_J0217.8+0144_daily_bin968> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin968> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 16:40:23 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:40:49 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:40:49 2021
Terminated at Sun Aug 15 16:55:18 2021
Results reported at Sun Aug 15 16:55:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin968 34.4621 1.7346 490233601 490492801 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 :                                   643.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            895 sec.

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

