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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin806
RA = 34.4621, Dec = 1.7346
tmin = 448243201, tmax = 448502401
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='288556', job_status='RUN', time_executed='2021-08-15 16:38:23.268910', time_epoch_executed='1629070703.27' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288556

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288556/ft1_4FGL_J0217.8+0144_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288556/ft2_4FGL_J0217.8+0144_daily_bin806.fits


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

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

Done.
real 6.40
user 4.95
sys 1.34

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288556/ft1_filtered_4FGL_J0217.8+0144_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/288556/ft2_4FGL_J0217.8+0144_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/288556/ltcube_448243201_448502401_4FGL_J0217.8+0144_daily_bin806.fits outfile=/scratch/kocevski/288556/expmap_448243201_448502401_4FGL_J0217.8+0144_daily_bin806.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/288556/ltcube_448243201_448502401_4FGL_J0217.8+0144_daily_bin806.fits
.....................!
real 195.52
user 186.96
sys 6.42

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/288556/ft1_filtered_4FGL_J0217.8+0144_daily_bin806.fits scfile=/scratch/kocevski/288556/ft2_4FGL_J0217.8+0144_daily_bin806.fits outfile=/scratch/kocevski/288556/cmap_448243201_448502401_4FGL_J0217.8+0144_daily_bin806.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.67
user 0.37
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288556/ft1_filtered_4FGL_J0217.8+0144_daily_bin806.fits scfile=/scratch/kocevski/288556/ft2_4FGL_J0217.8+0144_daily_bin806.fits outfile=/scratch/kocevski/288556/cmap_HighResolution_448243201_448502401_4FGL_J0217.8+0144_daily_bin806.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.66
user 0.38
sys 1.22

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    111.88       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.519       1.0000         .10000E-03   10000.    
     3 'norm      '    9.1510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0463       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4598       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8183       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.506       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2459       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4946       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96278       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91980       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=   3850.205     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2335 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.86        125.51       -.13980E-04   -.19298E-06
   2  Prefactor     10.518        7.8173       -.41631E-06   -.23453E-04
   3  norm          9.1509        14.829        .68296E-08   -.14422E-04
   4  Prefactor     4.0458        8.9590       -.49340E-06   -.21591E-03
   5  norm          7.1500        5.8801        .42145E-05   -.10696E-04
   6  Prefactor     .10000E-03    1.6771       -.64107E-07** at limit **
   7  norm          1.4597        1.2209       -.54068E-07   -.31271E-03
   8  Prefactor     .10000E-03    31.095       -.13626E-06** at limit **
   9  Prefactor     .10000E-03    9.1796        .28876E-06** at limit **
  10  Prefactor     .10000E-03    87.106       -.20632E-05** at limit **
  11  Prefactor     2.8136        29.756        .79611E-06   -.11657E-03
  12  Prefactor     7.1782        24.837        .12680E-05   -.15696E-04
  13  Prefactor     .10000E-03    11.479       -.34233E-06** at limit **
  14  Prefactor     12.506        21.514       -.17511E-05   -.16639E-04
  15  norm          8.6761        14.363       -.38747E-06   -.36270E-04
  16  Prefactor     1.2375        55.547        .91541E-05   -.15998E-03
  17  Prefactor     9.8050        49.549       -.32795E-04   -.17451E-04
  18  Prefactor     3.4947        8.1843       -.10611E-05   -.25222E-03
  19  norm          .10000E-03    3.7613       -.14401E-06** at limit **
  20  norm          .10000E-03    4.9837       -.10315E-06** at limit **
  21  Normalizat    .96300        .25139       -.46918E-06   -.56526E-04
  22  Prefactor     .91970        .17040        .75712E-06   -.72297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.863
  Prefactor  = 10.5182
  norm       = 9.15087
  Prefactor  = 4.0458
  norm       = 7.15002
  Prefactor  = 0.0001
  norm       = 1.4597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.81365
  Prefactor  = 7.17818
  Prefactor  = 0.0001
  Prefactor  = 12.506
  norm       = 8.67611
  Prefactor  = 1.23746
  Prefactor  = 9.80501
  Prefactor  = 3.49474
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.963
  Prefactor  = 0.919701
 **********
 **   18 **HESSE 
 **********

 FCN=   3850.205     FROM HESSE     STATUS=OK           346 CALLS     2681 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.86        125.89        .38031E-04   -1.3589    
   2  Prefactor     10.518        7.8307        .12354E-03   -1.5059    
   3  norm          9.1509        14.822        .13249E-03   -1.5103    
   4  Prefactor     4.0458        8.9521        .20045E-03   -1.5306    
   5  norm          7.1500        5.8711        .13066E-03   -1.5173    
   6  Prefactor     .10000E-03    1.6960        .78413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4597        1.2055        .59192E-04   -1.5466    
   8  Prefactor     .10000E-03    31.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8136        29.281        .24228E-03   -1.5372    
  12  Prefactor     7.1782        24.762        .14975E-03   -1.5172    
  13  Prefactor     .10000E-03    11.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.506        21.499        .11327E-03   -1.5001    
  15  norm          8.6761        14.426        .13608E-03   -1.5119    
  16  Prefactor     1.2375        54.011        .40115E-03   -1.5485    
  17  Prefactor     9.8050        49.380        .12787E-03   -1.5082    
  18  Prefactor     3.4947        8.2128        .21629E-03   -1.5334    
  19  norm          .10000E-03    3.7619        .11753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.0521        .13524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96300        .28565        .27801E-03   -.94280    
  22  Prefactor     .91970        .19628        .20450E-03   -.95456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15785e-10
Minuit parameter uncertainties:
  1  126.189
  2  7.83142
  3  14.8277
  4  8.95505
  5  5.87156
  6  2.33151e-05
  7  1.20556
  8  6.62557e-05
  9  2.87411e-05
  10  0.000152605
  11  18.1644
  12  24.797
  13  1.17133e-05
  14  21.5124
  15  14.4323
  16  16.3658
  17  44.0654
  18  8.21547
  19  1.51309e-06
  20  8.18099e-07
  21  0.286104
  22  0.196434
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.460e+00  1.206e+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.197e-01  1.964e-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.630e-01  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.10e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 2.14e-05

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

Saving results to:
/scratch/kocevski/288556/likelihoodResults_448243201_448502401_4FGL_J0217.8+0144_daily_bin806.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) = 3850.03782948
delta logL = 0.167270560836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3850.02591229
delta logL = 0.179187759414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2911       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5487       1.0000          .0000       5.0000    
     3 'Normalizat'    .93886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93044       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=   3850.026     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2911        24.601        .97423E-02    .33116E-03
   2  alpha         2.5489        3.4018        .30782        .22121E-04
   3  Normalizat    .93891        .89605E-01    .45396E-01    .92565E-05
   4  Prefactor     .93048        .69064E-01    .45392E-01    .30836E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29106
  alpha      = 2.54892
  Normalizat = 0.938912
  Prefactor  = 0.930476
 **********
 **   18 **HESSE 
 **********

 FCN=   3850.026     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .97E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2911        1.1834        .51243E-04   -1.5481    
   2  alpha         2.5489        .68965        .12318E-01    .19570E-01
   3  Normalizat    .93891        .26050        .28108E-03   -.95106    
   4  Prefactor     .93048        .18567        .20344E-03   -.95084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.70383e-13
Minuit parameter uncertainties:
  1  1.18343
  2  0.698713
  3  0.260855
  4  0.185798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288556': 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) = 3850.02591188
delta logL = 0.179188162763

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.291e+00  1.183e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.549e+00  6.987e-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.305e-01  1.858e-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.389e-01  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.55 +/- 0.70
Photon Flux (Free Index): 8.20e-08 +/- 6.69e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.82e-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/288556/cmap_HighResolution_448243201_448502401_4FGL_J0217.8+0144_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-05', comment='SUCCESS', photon_flux='6.10e-08', energy_flux2='2.24e-05', photon_flux_error='5.03e-08', dlogl='1.79e-01', energy_flux='2.59e-05', photon_flux2='8.20e-08', job_status='DONE', time_completed='2021-08-15 16:47:31.449576', photon_index_error2='0.70', photon_index2='2.55', ts='2.34', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.82e-05', EG='0.96', time_epoch_completed='1629071251.45', return_code='0', job_id='288556', GAL2='0.93', EG2='0.94', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='6.69e-08', ts2='2.71', photon_index='2.16' WHERE bin_id='806' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 288556: <4FGL_J0217.8+0144_daily_bin806> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin806> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 16:35:37 2021
Job was executed on host(s) <bullet0140>, 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:47:32 2021
Results reported at Sun Aug 15 16:47:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin806 34.4621 1.7346 448243201 448502401 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 :                                   555.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            715 sec.

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

