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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin804
RA = 34.4621, Dec = 1.7346
tmin = 447724801, tmax = 447984001
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='288553', job_status='RUN', time_executed='2021-08-15 16:40:10.471971', time_epoch_executed='1629070810.47' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288553/ft1_4FGL_J0217.8+0144_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288553/ft2_4FGL_J0217.8+0144_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288553/ft1_4FGL_J0217.8+0144_daily_bin804.fits outfile=/scratch/kocevski/288553/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin804.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=447724801.0 tmax=447984001.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 10.17
user 3.20
sys 6.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288553/ft1_filtered_4FGL_J0217.8+0144_daily_bin804.fits" evtable="EVENTS" scfile=/scratch/kocevski/288553/ft2_4FGL_J0217.8+0144_daily_bin804.fits sctable="SC_DATA" outfile=/scratch/kocevski/288553/ltcube_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.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/288553/ft2_4FGL_J0217.8+0144_daily_bin804.fits
.....................!
real 21.98
user 13.98
sys 7.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288553/ft1_filtered_4FGL_J0217.8+0144_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/288553/ft2_4FGL_J0217.8+0144_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/288553/ltcube_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.fits outfile=/scratch/kocevski/288553/expmap_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.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/288553/ltcube_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.fits
.....................!
real 201.24
user 185.78
sys 14.43

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/288553/ft1_filtered_4FGL_J0217.8+0144_daily_bin804.fits scfile=/scratch/kocevski/288553/ft2_4FGL_J0217.8+0144_daily_bin804.fits outfile=/scratch/kocevski/288553/cmap_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.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 7.25
user 0.39
sys 6.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288553/ft1_filtered_4FGL_J0217.8+0144_daily_bin804.fits scfile=/scratch/kocevski/288553/ft2_4FGL_J0217.8+0144_daily_bin804.fits outfile=/scratch/kocevski/288553/cmap_HighResolution_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.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 7.19
user 0.39
sys 6.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1489       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    28.018       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8589       1.0000         .10000E-03   10000.    
     7 'norm      '    .61847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17682E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12770E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2102       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.586       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.135       1.0000         .10000E-03   10000.    
    15 'norm      '    14.408       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.156       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24816       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .66955E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93416       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81897       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=   5832.519     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     2065 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    29.052       -.28608E-05** at limit **
   2  Prefactor     6.1485        4.2437       -.19822E-06   -.17362E-03
   3  norm          8.9244        9.5795       -.18023E-04   -.20315E-02
   4  Prefactor     .10000E-03    2.5392        .18003E-06** at limit **
   5  norm          28.018        7.7582       -.22845E-06    .15792E-03
   6  Prefactor     3.8593        2.8180        .69101E-07    .72688E-03
   7  norm          .61865        .89899       -.52389E-07    .71458E-03
   8  Prefactor     .10000E-03    26.701        .39305E-05** at limit **
   9  Prefactor     .10000E-03    23.990       -.33397E-05** at limit **
  10  Prefactor     .10035E-03    352.13        .32034E-04** at limit **
  11  Prefactor     8.2089        2.8613       -.40791E-06   -.20898E-03
  12  Prefactor     22.589        16.156        .14365E-04   -.53264E-02
  13  Prefactor     23.575        6.3496       -.27835E-05   -.31026E-02
  14  Prefactor     12.132        12.070       -.10517E-04   -.30138E-02
  15  norm          14.411        3.9200        .17178E-05    .28586E-02
  16  Prefactor     24.157        16.771        .29614E-05   -.14570E-02
  17  Prefactor     .10000E-03    6232.0       -.13593E-03** at limit **
  18  Prefactor     .10000E-03    5.6840       -.56276E-06** at limit **
  19  norm          .10000E-03    3.1790       -.10015E-05** at limit **
  20  norm          .10000E-03    18.038        .10658E-05** at limit **
  21  Normalizat    .93423        .20773       -.26526E-06    .75395E-03
  22  Prefactor     .81898        .14772        .16860E-05    .11198E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 6.14852
  norm       = 8.92443
  Prefactor  = 0.0001
  norm       = 28.0178
  Prefactor  = 3.85934
  norm       = 0.618646
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.000100355
  Prefactor  = 8.20895
  Prefactor  = 22.5889
  Prefactor  = 23.5746
  Prefactor  = 12.1317
  norm       = 14.4111
  Prefactor  = 24.1568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.93423
  Prefactor  = 0.81898
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.519     FROM HESSE     STATUS=OK           408 CALLS     2473 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    29.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1485        4.2502        .40475E-02   -1.5212    
   3  norm          8.9244        9.8869        .33540E-02   -1.5110    
   4  Prefactor     .10000E-03    2.5337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          28.018        7.7905        .18922E-02   -1.4649    
   6  Prefactor     3.8593        2.8291        .51357E-02   -1.5315    
   7  norm          .61865        .97886        .19187E-01   -1.5551    
   8  Prefactor     .10000E-03    26.530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3269        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10035E-03    345.17        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2089        12.250        .34979E-02   -1.5135    
  12  Prefactor     22.589        22.029        .21071E-02   -1.4757    
  13  Prefactor     23.575        14.641        .20624E-02   -1.4737    
  14  Prefactor     12.132        17.015        .28748E-02   -1.5011    
  15  norm          14.411        13.094        .26380E-02   -1.4949    
  16  Prefactor     24.157        17.793        .20375E-02   -1.4725    
  17  Prefactor     .10000E-03    69.828        .15438       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.5803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1802        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.0764        .52933E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93423        .19216        .45337E-01   -.95268    
  22  Prefactor     .81898        .13639        .43964E-01   -.99032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0289e-07
Minuit parameter uncertainties:
  1  0.000766533
  2  4.2504
  3  9.88866
  4  1.29155e-05
  5  7.79078
  6  2.82917
  7  0.978882
  8  0.000697268
  9  0.000114828
  10  0.0222602
  11  12.2538
  12  22.0366
  13  14.6433
  14  17.0214
  15  13.0965
  16  17.7968
  17  0.000145248
  18  1.82571e-05
  19  3.72549e-05
  20  2.42315e-05
  21  0.192304
  22  0.136447
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  6.186e-01  9.789e-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.190e-01  1.364e-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.342e-01  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/288553/likelihoodResults_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.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) = 5832.06851658
delta logL = 0.450637670942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5832.06820479
delta logL = 0.450949462329

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61554       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9158       1.0000          .0000       5.0000    
     3 'Normalizat'    .89640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83254       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=   5832.068     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61576        10.023        .11734E-01    .10557E-02
   2  alpha         2.9156        3.9516        .41791        .35938E-04
   3  Normalizat    .89639        .47348E-01    .64440E-01    .14900E-04
   4  Prefactor     .83254        .35024E-01    .44139E-01    .82213E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.615763
  alpha      = 2.9156
  Normalizat = 0.896394
  Prefactor  = 0.832537
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.068     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61576        .83583        .53820E-03   -1.5551    
   2  alpha         2.9156        .89628        .15625E-01    .16702    
   3  Normalizat    .89639        .20727        .28503E-03   -.96587    
   4  Prefactor     .83254        .14699        .21334E-03   -.98540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42031e-09
Minuit parameter uncertainties:
  1  0.835847
  2  0.9173
  3  0.207451
  4  0.147057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288553': 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) = 5832.06820474
delta logL = 0.450949506869

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  6.158e-01  8.358e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.916e+00  9.173e-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:  8.325e-01  1.471e-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:  8.964e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.92 +/- 0.92
Photon Flux (Free Index): 6.15e-08 +/- 5.93e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.29e-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/288553/cmap_HighResolution_447724801_447984001_4FGL_J0217.8+0144_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-05', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='4.51e-01', photon_flux2='6.15e-08', job_status='DONE', time_completed='2021-08-15 16:51:57.060794', photon_index_error2='0.92', photon_index2='2.92', ts='0.64', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.29e-05', EG='0.93', time_epoch_completed='1629071517.06', return_code='0', job_id='288553', GAL2='0.83', EG2='0.90', return_code2='0', photon_flux_error2='5.93e-08', ts2='1.58', photon_index='2.16' WHERE bin_id='804' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 288553: <4FGL_J0217.8+0144_daily_bin804> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin804 34.4621 1.7346 447724801 447984001 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 :                                   806.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            983 sec.

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

