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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin994
RA = 34.4621, Dec = 1.7346
tmin = 496972801, tmax = 497232001
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='289909', job_status='RUN', time_executed='2021-08-15 16:44:15.970883', time_epoch_executed='1629071055.97' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289909/ft1_4FGL_J0217.8+0144_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289909/ft2_4FGL_J0217.8+0144_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289909/ft1_4FGL_J0217.8+0144_daily_bin994.fits outfile=/scratch/kocevski/289909/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin994.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=496972801.0 tmax=497232001.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 8.12
user 3.90
sys 4.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289909/ft2_4FGL_J0217.8+0144_daily_bin994.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/289909/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/289909/ft1_filtered_4FGL_J0217.8+0144_daily_bin994.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 4.57
user 0.27
sys 3.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289909/ft1_filtered_4FGL_J0217.8+0144_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/289909/ft2_4FGL_J0217.8+0144_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/289909/ltcube_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.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/289909/ft2_4FGL_J0217.8+0144_daily_bin994.fits
.....................!
real 16.42
user 11.54
sys 4.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289909/ft1_filtered_4FGL_J0217.8+0144_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/289909/ft2_4FGL_J0217.8+0144_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/289909/ltcube_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.fits outfile=/scratch/kocevski/289909/expmap_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.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/289909/ltcube_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.fits
.....................!
real 162.17
user 152.18
sys 9.13

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/289909/ft1_filtered_4FGL_J0217.8+0144_daily_bin994.fits scfile=/scratch/kocevski/289909/ft2_4FGL_J0217.8+0144_daily_bin994.fits outfile=/scratch/kocevski/289909/cmap_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.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 4.57
user 0.33
sys 3.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289909/ft1_filtered_4FGL_J0217.8+0144_daily_bin994.fits scfile=/scratch/kocevski/289909/ft2_4FGL_J0217.8+0144_daily_bin994.fits outfile=/scratch/kocevski/289909/cmap_HighResolution_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.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 4.32
user 0.31
sys 3.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2870       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3930       1.0000         .10000E-03   10000.    
     7 'norm      '    .32879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .87433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.143       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.579       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5961       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74007       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1772       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=   6765.252     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2018 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.970        .47767E-06** at limit **
   2  Prefactor     .10000E-03    2.6205       -.14801E-07** at limit **
   3  norm          15.078        14.506        .11439E-06    .13638E-04
   4  Prefactor     .10000E-03    7.9957       -.19906E-06** at limit **
   5  norm          6.2858        5.5277        .14333E-06    .67851E-04
   6  Prefactor     3.3926        2.6755       -.72434E-07   -.64973E-04
   7  norm          .32881        .53222        .10297E-06    .41789E-03
   8  Prefactor     .10000E-03    9.9115        .15576E-07** at limit **
   9  Prefactor     4.2397        9.1393        .23145E-05   -.78255E-04
  10  Prefactor     .10000E-03    30.907       -.14847E-05** at limit **
  11  Prefactor     .10000E-03    2.1801        .17259E-07** at limit **
  12  Prefactor     2.2485        39.688        .58674E-05    .73460E-04
  13  Prefactor     .86341        10.031        .40612E-06   -.11243E-03
  14  Prefactor     15.139        17.456       -.10822E-05   -.10231E-03
  15  norm          .10000E-03    14.393       -.39721E-06** at limit **
  16  Prefactor     .10000E-03    7.3618       -.49106E-07** at limit **
  17  Prefactor     .10000E-03    19.927        .14745E-05** at limit **
  18  Prefactor     .10000E-03    2.8398        .22615E-07** at limit **
  19  norm          12.578        9.6867       -.19388E-06    .67239E-05
  20  norm          4.5956        6.4499        .18769E-05   -.18517E-03
  21  Normalizat    .73994        .15978       -.33882E-06   -.14664E-04
  22  Prefactor     1.1772        .13127       -.26986E-06    .20375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0782
  Prefactor  = 0.0001
  norm       = 6.28583
  Prefactor  = 3.39256
  norm       = 0.328807
  Prefactor  = 0.0001
  Prefactor  = 4.2397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24852
  Prefactor  = 0.863412
  Prefactor  = 15.1386
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5782
  norm       = 4.59556
  Normalizat = 0.73994
  Prefactor  = 1.17725
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.252     FROM HESSE     STATUS=OK           344 CALLS     2362 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6673        .12998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.078        14.506        .10314E-03   -1.4931    
   4  Prefactor     .10000E-03    8.1916        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2858        5.5222        .16009E-03   -1.5206    
   6  Prefactor     3.3926        2.6637        .11230E-03   -1.5340    
   7  norm          .32881        .45730        .73736E-03   -1.5593    
   8  Prefactor     .10000E-03    9.9036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2397        9.1782        .97842E-03   -1.5296    
  10  Prefactor     .10000E-03    30.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1819        .11860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2485        40.640        .27126E-03   -1.5408    
  13  Prefactor     .86341        35.277        .46107E-02   -1.5522    
  14  Prefactor     15.139        17.515        .10293E-03   -1.4930    
  15  norm          .10000E-03    14.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8743        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.578        9.6985        .11294E-03   -1.4999    
  20  norm          4.5956        6.5003        .93876E-03   -1.5279    
  21  Normalizat    .73994        .17711        .30054E-03   -1.0234    
  22  Prefactor     1.1772        .14743        .19056E-03   -.87034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76301e-08
Minuit parameter uncertainties:
  1  1.80861e-05
  2  9.44126e-07
  3  14.5093
  4  5.25732e-06
  5  5.52264
  6  2.66376
  7  0.4573
  8  4.64086e-05
  9  9.18124
  10  7.85412e-05
  11  2.28598e-07
  12  19.1334
  13  11.0442
  14  17.5212
  15  2.40767e-05
  16  1.29855e-06
  17  4.0777e-05
  18  6.84563e-06
  19  9.69968
  20  6.50129
  21  0.177249
  22  0.147481
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.288e-01  4.573e-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.177e+00  1.475e-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.399e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/289909/likelihoodResults_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.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) = 6765.16273179
delta logL = 0.0893456234917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6765.16024201
delta logL = 0.0918354026207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35834       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7743       1.0000          .0000       5.0000    
     3 'Normalizat'    .74442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1746       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6765.160     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      255 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35829        .46818        .72883E-03    .50414E-02
   2  alpha         1.7743        .80038        .21789E-01   -.18277E-04
   3  Normalizat    .74439        .17384        .29970E-03   -.17905E-04
   4  Prefactor     1.1746        .13682        .19072E-03    .81688E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.358286
  alpha      = 1.7743
  Normalizat = 0.744391
  Prefactor  = 1.17464
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.160     FROM HESSE     STATUS=OK            27 CALLS      282 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35829        .47118        .14577E-03   -1.5588    
   2  alpha         1.7743        .80602        .87155E-03   -.29452    
   3  Normalizat    .74439        .17392        .11988E-04   -1.0217    
   4  Prefactor     1.1746        .13689        .38144E-04   -.87115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88396e-11
Minuit parameter uncertainties:
  1  0.471188
  2  0.822106
  3  0.174051
  4  0.136931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289909': 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) = 6765.16024199
delta logL = 0.0918354246714

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.583e-01  4.712e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.774e+00  8.221e-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.175e+00  1.369e-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.444e-01  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
Ra Dec: 34.462 1.735

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/289909/cmap_HighResolution_496972801_497232001_4FGL_J0217.8+0144_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-05', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-08-15 16:54:23.374719', job_id='289909', GAL2='1.17', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1629071663.37', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='9.18e-02', ts2='0.93', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='994' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:54:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 289909: <4FGL_J0217.8+0144_daily_bin994> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin994> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 16:40:26 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:41:01 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:41:01 2021
Terminated at Sun Aug 15 16:54:24 2021
Results reported at Sun Aug 15 16:54:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin994 34.4621 1.7346 496972801 497232001 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 :                                   648.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            838 sec.

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

