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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin951
RA = 34.4621, Dec = 1.7346
tmin = 485827201, tmax = 486086401
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='289847', job_status='RUN', time_executed='2021-08-15 16:44:54.051487', time_epoch_executed='1629071094.05' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289847

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289847/ft1_4FGL_J0217.8+0144_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289847/ft2_4FGL_J0217.8+0144_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289847/ft1_4FGL_J0217.8+0144_daily_bin951.fits outfile=/scratch/kocevski/289847/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin951.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=485827201.0 tmax=486086401.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.79
user 3.59
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289847/ft1_filtered_4FGL_J0217.8+0144_daily_bin951.fits" evtable="EVENTS" scfile=/scratch/kocevski/289847/ft2_4FGL_J0217.8+0144_daily_bin951.fits sctable="SC_DATA" outfile=/scratch/kocevski/289847/ltcube_485827201_486086401_4FGL_J0217.8+0144_daily_bin951.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/289847/ft2_4FGL_J0217.8+0144_daily_bin951.fits
.....................!
real 15.06
user 13.63
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289847/ft1_filtered_4FGL_J0217.8+0144_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/289847/ft2_4FGL_J0217.8+0144_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/289847/ltcube_485827201_486086401_4FGL_J0217.8+0144_daily_bin951.fits outfile=/scratch/kocevski/289847/expmap_485827201_486086401_4FGL_J0217.8+0144_daily_bin951.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/289847/ltcube_485827201_486086401_4FGL_J0217.8+0144_daily_bin951.fits
.....................!
real 193.47
user 186.47
sys 6.34

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/289847/ft1_filtered_4FGL_J0217.8+0144_daily_bin951.fits scfile=/scratch/kocevski/289847/ft2_4FGL_J0217.8+0144_daily_bin951.fits outfile=/scratch/kocevski/289847/cmap_485827201_486086401_4FGL_J0217.8+0144_daily_bin951.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.43
user 0.39
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289847/ft1_filtered_4FGL_J0217.8+0144_daily_bin951.fits scfile=/scratch/kocevski/289847/ft2_4FGL_J0217.8+0144_daily_bin951.fits outfile=/scratch/kocevski/289847/cmap_HighResolution_485827201_486086401_4FGL_J0217.8+0144_daily_bin951.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.43
user 0.40
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19395E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32168E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1873       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8252       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.681       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8058       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2071       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28202E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.914       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0255       1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.8674       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81030       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1684       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=   5522.201     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2374 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    221.56        .26449E-05** at limit **
   2  Prefactor     .10000E-03    2.8385       -.99272E-07** at limit **
   3  norm          .10000E-03    7.7180        .37627E-07** at limit **
   4  Prefactor     .10000E-03    1.7420       -.59927E-09** at limit **
   5  norm          1.4662        3.8567       -.82408E-06   -.83207E-03
   6  Prefactor     2.1905        2.3045       -.64260E-07   -.39683E-03
   7  norm          1.8256        1.0455       -.19612E-06   -.28054E-02
   8  Prefactor     10.684        22.914       -.19452E-05   -.33496E-04
   9  Prefactor     8.7438        7.0720       -.33630E-06   -.12471E-04
  10  Prefactor     .10000E-03    33.501        .12061E-05** at limit **
  11  Prefactor     .10000E-03    14.878       -.11652E-08** at limit **
  12  Prefactor     8.8092        17.277        .20566E-05   -.56758E-04
  13  Prefactor     .10000E-03    10.847        .63926E-07** at limit **
  14  Prefactor     2.2416        26.110        .82527E-05   -.14739E-03
  15  norm          .10000E-03    12.488       -.38323E-06** at limit **
  16  Prefactor     .10000E-03    10.333        .51214E-05** at limit **
  17  Prefactor     26.878        61.491       -.40895E-04   -.16729E-03
  18  Prefactor     5.0281        6.8079        .14911E-05   -.30164E-03
  19  norm          .10000E-03    3.2092       -.39097E-07** at limit **
  20  norm          6.8684        5.3964       -.22237E-06   -.80641E-04
  21  Normalizat    .81014        .19331        .14199E-05   -.48948E-03
  22  Prefactor     1.1684        .14758       -.40048E-07   -.44596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46616
  Prefactor  = 2.19045
  norm       = 1.82557
  Prefactor  = 10.6842
  Prefactor  = 8.7438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8092
  Prefactor  = 0.0001
  Prefactor  = 2.24158
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 26.8781
  Prefactor  = 5.02809
  norm       = 0.0001
  norm       = 6.86841
  Normalizat = 0.810143
  Prefactor  = 1.16844
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.201     FROM HESSE     STATUS=OK           342 CALLS     2716 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    222.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5798        .24253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.7459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7454        .95779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4662        3.8670        .22780E-03   -1.5466    
   6  Prefactor     2.1905        2.2853        .10922E-03   -1.5412    
   7  norm          1.8256        1.0503        .15450E-03   -1.5438    
   8  Prefactor     10.684        22.809        .12259E-03   -1.5054    
   9  Prefactor     8.7438        7.0719        .13555E-03   -1.5116    
  10  Prefactor     .10000E-03    33.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8092        17.240        .13507E-03   -1.5114    
  13  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2416        25.621        .27690E-03   -1.5409    
  15  norm          .10000E-03    12.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    66.858        .44779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.878        61.773        .77220E-04   -1.4671    
  18  Prefactor     5.0281        6.7875        .17938E-03   -1.5259    
  19  norm          .10000E-03    3.2105        .13001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.8684        5.4047        .14811E-03   -1.5184    
  21  Normalizat    .81014        .21242        .30339E-03   -.99694    
  22  Prefactor     1.1684        .16564        .19588E-03   -.87308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03844e-09
Minuit parameter uncertainties:
  1  0.00017741
  2  2.95176e-05
  3  2.95022e-06
  4  1.67362e-07
  5  3.86763
  6  2.28536
  7  1.05036
  8  22.8272
  9  7.07256
  10  7.72459e-06
  11  7.49681e-06
  12  17.2499
  13  4.03222e-05
  14  15.1647
  15  1.95176e-05
  16  0.000913913
  17  61.9208
  18  6.78849
  19  2.90829e-06
  20  5.40505
  21  0.21264
  22  0.165711
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.826e+00  1.050e+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:  1.168e+00  1.657e-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.101e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.02
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 7.63e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 3.24e-05 +/- 1.87e-05

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) = 5522.17468763
delta logL = 0.026087590807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5522.17267202
delta logL = 0.0281031940031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7661       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2693       1.0000          .0000       5.0000    
     3 'Normalizat'    .80348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1714       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=   5522.173     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7662        24.129        .78799E-02    .58032E-03
   2  alpha         2.2692        3.3832        .28558        .26078E-04
   3  Normalizat    .80346        .10334        .68818E-01    .34213E-04
   4  Prefactor     1.1714        .86200E-01    .35345E-01    .38233E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.76615
  alpha      = 2.26923
  Normalizat = 0.803459
  Prefactor  = 1.1714
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.173     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7662        1.0696        .53661E-04   -1.5442    
   2  alpha         2.2692        .47014        .11602E-01   -.92439E-01
   3  Normalizat    .80346        .20959        .30450E-03   -.99940    
   4  Prefactor     1.1714        .15842        .19566E-03   -.87216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88995e-12
Minuit parameter uncertainties:
  1  1.06961
  2  0.47298
  3  0.209796
  4  0.158487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289847': 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) = 5522.17267201
delta logL = 0.0281032087441

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.766e+00  1.070e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.269e+00  4.730e-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.171e+00  1.585e-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.035e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.27 +/- 0.47
Photon Flux (Free Index): 8.23e-08 +/- 5.18e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.97e-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/289847/cmap_HighResolution_485827201_486086401_4FGL_J0217.8+0144_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.63e-08', energy_flux2='3.02e-05', photon_flux_error='4.39e-08', dlogl='2.81e-02', energy_flux='3.24e-05', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-08-15 16:54:26.804240', photon_index_error2='0.47', photon_index2='2.27', ts='5.02', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='0.81', time_epoch_completed='1629071666.8', return_code='0', job_id='289847', GAL2='1.17', EG2='0.80', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='5.18e-08', ts2='5.06', photon_index='2.16' WHERE bin_id='951' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:54:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 289847: <4FGL_J0217.8+0144_daily_bin951> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin951> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 16:40:22 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:40:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 16:40:41 2021
Terminated at Sun Aug 15 16:54:27 2021
Results reported at Sun Aug 15 16:54:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin951 34.4621 1.7346 485827201 486086401 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            845 sec.

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

