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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin565
RA = 34.4621, Dec = 1.7346
tmin = 385776001, tmax = 386035201
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='287135', job_status='RUN', time_executed='2021-08-15 16:36:15.500717', time_epoch_executed='1629070575.5' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287135

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287135/ft1_4FGL_J0217.8+0144_daily_bin565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287135/ft2_4FGL_J0217.8+0144_daily_bin565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287135/ft1_4FGL_J0217.8+0144_daily_bin565.fits outfile=/scratch/kocevski/287135/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin565.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=385776001.0 tmax=386035201.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.20
user 3.64
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287135/ft2_4FGL_J0217.8+0144_daily_bin565.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/287135/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin565.fits evtable="EVENTS" outfile="/scratch/kocevski/287135/ft1_filtered_4FGL_J0217.8+0144_daily_bin565.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.81
user 0.33
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287135/ft1_filtered_4FGL_J0217.8+0144_daily_bin565.fits" evtable="EVENTS" scfile=/scratch/kocevski/287135/ft2_4FGL_J0217.8+0144_daily_bin565.fits sctable="SC_DATA" outfile=/scratch/kocevski/287135/ltcube_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.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/287135/ft2_4FGL_J0217.8+0144_daily_bin565.fits
.....................!
real 13.69
user 12.93
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287135/ft1_filtered_4FGL_J0217.8+0144_daily_bin565.fits evtable="EVENTS" scfile=/scratch/kocevski/287135/ft2_4FGL_J0217.8+0144_daily_bin565.fits sctable="SC_DATA" expcube=/scratch/kocevski/287135/ltcube_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.fits outfile=/scratch/kocevski/287135/expmap_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.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/287135/ltcube_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.fits
.....................!
real 191.80
user 186.32
sys 4.87

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/287135/ft1_filtered_4FGL_J0217.8+0144_daily_bin565.fits scfile=/scratch/kocevski/287135/ft2_4FGL_J0217.8+0144_daily_bin565.fits outfile=/scratch/kocevski/287135/cmap_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=34.4621 yref=1.7346 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.86
user 0.36
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287135/ft1_filtered_4FGL_J0217.8+0144_daily_bin565.fits scfile=/scratch/kocevski/287135/ft2_4FGL_J0217.8+0144_daily_bin565.fits outfile=/scratch/kocevski/287135/cmap_HighResolution_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.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 0.85
user 0.38
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.1384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39568E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4007       1.0000         .10000E-03   10000.    
     7 'norm      '    .83096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.387       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.743       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0894       1.0000         .10000E-03   10000.    
    19 'norm      '    8.5344       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7911       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82766       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99985       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=   5298.561     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2351 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8284        260.29       -.10528E-04   -.40739E-04
   2  Prefactor     .10000E-03    1.5395        .99387E-07** at limit **
   3  norm          6.1356        11.222        .31772E-05   -.73332E-04
   4  Prefactor     .10023E-03    6.2418        .17744E-05** at limit **
   5  norm          7.6435        6.1108        .12416E-06   -.27465E-03
   6  Prefactor     5.4002        3.2600        .52924E-07   -.19478E-03
   7  norm          .83119        1.0851        .36106E-06    .91134E-04
   8  Prefactor     28.386        26.827       -.51627E-07   -.34676E-04
   9  Prefactor     .10000E-03    3.4206        .13688E-06** at limit **
  10  Prefactor     .10000E-03    18.915        .21931E-07** at limit **
  11  Prefactor     10.744        14.218        .26663E-06   -.10932E-04
  12  Prefactor     9.0052        24.413        .45910E-06   -.31760E-04
  13  Prefactor     .10000E-03    2.9442        .57342E-07** at limit **
  14  Prefactor     .10000E-03    12.242        .16000E-06** at limit **
  15  norm          .10000E-03    8.2317        .26509E-06** at limit **
  16  Prefactor     10.501        12.448        .38160E-07   -.22993E-05
  17  Prefactor     25.102        52.869       -.51449E-06   -.93359E-04
  18  Prefactor     3.0897        5.1444        .15475E-06   -.30129E-04
  19  norm          8.5333        11.186       -.10418E-05   -.37874E-04
  20  norm          5.7905        8.4946        .55024E-05   -.11039E-03
  21  Normalizat    .82754        .18941        .47615E-06   -.23548E-03
  22  Prefactor     .99992        .14313       -.22657E-05   -.14031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8284
  Prefactor  = 0.0001
  norm       = 6.13557
  Prefactor  = 0.000100228
  norm       = 7.64346
  Prefactor  = 5.4002
  norm       = 0.831189
  Prefactor  = 28.3862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7438
  Prefactor  = 9.00516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5007
  Prefactor  = 25.1025
  Prefactor  = 3.08971
  norm       = 8.53327
  norm       = 5.79054
  Normalizat = 0.827538
  Prefactor  = 0.999924
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.561     FROM HESSE     STATUS=OK           350 CALLS     2701 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8284        269.19        .18077E-03   -1.5268    
   2  Prefactor     .10000E-03    1.5417        .88202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.1356        11.203        .81020E-03   -1.5213    
   4  Prefactor     .10023E-03    42.090        .33864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6435        6.0882        .14501E-03   -1.5155    
   6  Prefactor     5.4002        3.2538        .94320E-04   -1.5243    
   7  norm          .83119        1.0544        .80796E-04   -1.5526    
   8  Prefactor     28.386        26.783        .75194E-04   -1.4642    
   9  Prefactor     .10000E-03    3.4295        .13148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.744        14.230        .12223E-03   -1.5052    
  12  Prefactor     9.0052        24.456        .13353E-03   -1.5108    
  13  Prefactor     .10000E-03    2.9473        .12197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.2780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.501        12.464        .12365E-03   -1.5060    
  17  Prefactor     25.102        52.959        .79853E-04   -1.4705    
  18  Prefactor     3.0897        5.1267        .20446E-03   -1.5356    
  19  norm          8.5333        11.198        .13722E-03   -1.5124    
  20  norm          5.7905        8.5115        .83448E-03   -1.5227    
  21  Normalizat    .82754        .21187        .29595E-03   -.99055    
  22  Prefactor     .99992        .16028        .19915E-03   -.92732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53251e-09
Minuit parameter uncertainties:
  1  72.4483
  2  1.02297e-06
  3  11.2065
  4  0.00620023
  5  6.08874
  6  3.25392
  7  1.0544
  8  26.7943
  9  2.94559e-06
  10  6.42625e-06
  11  14.2348
  12  24.4835
  13  1.47858e-07
  14  8.45163e-06
  15  3.76782e-06
  16  12.4674
  17  53.0583
  18  5.12738
  19  11.2011
  20  8.51328
  21  0.212082
  22  0.160356
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  8.312e-01  1.054e+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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.999e-01  1.604e-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.275e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287135/likelihoodResults_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.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) = 5298.54179477
delta logL = 0.0188825644109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5298.54105533
delta logL = 0.0196220021662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84371       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9717       1.0000          .0000       5.0000    
     3 'Normalizat'    .83479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99624       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=   5298.541     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84442        1.0560        .83073E-03    .31291E-03
   2  alpha         1.9725        .86527        .18886E-01    .10062E-04
   3  Normalizat    .83446        .20398        .29480E-03   -.20798E-03
   4  Prefactor     .99649        .14891        .19944E-03   -.82701E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.844425
  alpha      = 1.9725
  Normalizat = 0.834455
  Prefactor  = 0.996487
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.541     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84442        1.0600        .33229E-04   -1.5524    
   2  alpha         1.9725        .86897        .75544E-03   -.21260    
   3  Normalizat    .83446        .20406        .11792E-04   -.98803    
   4  Prefactor     .99649        .14894        .39887E-04   -.92847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09791e-10
Minuit parameter uncertainties:
  1  1.06004
  2  0.888407
  3  0.204244
  4  0.149005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287135': 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) = 5298.54105346
delta logL = 0.0196238767076

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  8.444e-01  1.060e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.973e+00  8.884e-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:  9.965e-01  1.490e-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.345e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
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/287135/cmap_HighResolution_385776001_386035201_4FGL_J0217.8+0144_daily_bin565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-05', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-08-15 16:46:12.586442', job_id='287135', GAL2='1.00', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629071172.59', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.96e-02', ts2='0.80', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='565' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 287135: <4FGL_J0217.8+0144_daily_bin565> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin565> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:30:56 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:32:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 16:32:58 2021
Terminated at Sun Aug 15 16:46:13 2021
Results reported at Sun Aug 15 16:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin565 34.4621 1.7346 385776001 386035201 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 :                                   599.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            917 sec.

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

