/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 38 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.2+0837_daily_bin951
RA = 34.3163, Dec = 8.6234
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='268117', job_status='RUN', time_executed='2021-08-15 15:27:34.454188', time_epoch_executed='1629066454.45' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268117

Creating custom pfile directory:
/scratch/kocevski/268117/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/268117/ft1_4FGL_J0217.2+0837_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/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268117/ft1_4FGL_J0217.2+0837_daily_bin951.fits outfile=/scratch/kocevski/268117/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin951.fits ra=34.3163 dec=8.6234 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 6.40
user 3.59
sys 2.60

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_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/268117/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin951.fits evtable="EVENTS" outfile="/scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_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 3.08
user 0.33
sys 2.56

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits" evtable="EVENTS" scfile=/scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits sctable="SC_DATA" outfile=/scratch/kocevski/268117/ltcube_485827201_486086401_4FGL_J0217.2+0837_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/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits
.....................!
real 16.07
user 12.90
sys 3.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/268117/ltcube_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.fits outfile=/scratch/kocevski/268117/expmap_485827201_486086401_4FGL_J0217.2+0837_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/268117/ltcube_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.fits
.....................!
real 195.42
user 186.29
sys 7.90

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J0217.2+0837 @ 34.3163 8.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits scfile=/scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits outfile=/scratch/kocevski/268117/cmap_485827201_486086401_4FGL_J0217.2+0837_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.3163 yref=8.6234 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 2.93
user 0.39
sys 2.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits scfile=/scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits outfile=/scratch/kocevski/268117/cmap_HighResolution_485827201_486086401_4FGL_J0217.2+0837_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.3163 yref=8.6234 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 2.94
user 0.39
sys 2.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268117/Model_4FGL_J0217.2+0837_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/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits.....................!
real 84.97
user 80.29
sys 4.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits', '/scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits', expMap='/scratch/kocevski/268117/expmap_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.fits', expCube='/scratch/kocevski/268117/ltcube_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268117/Model_4FGL_J0217.2+0837_daily_bin951.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.2+0837'

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.926e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/268117/ft1_filtered_4FGL_J0217.2+0837_daily_bin951.fits
Spacecraft file(s): /scratch/kocevski/268117/ft2_4FGL_J0217.2+0837_daily_bin951.fits
Exposure map: /scratch/kocevski/268117/expmap_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.fits
Exposure cube: /scratch/kocevski/268117/ltcube_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268117/Model_4FGL_J0217.2+0837_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) = 6862.73573304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19151E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8112       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3387       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9952       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1083       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.195       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5943       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4707       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4900       1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.732       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7943       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3791       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .69197       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1722       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6862.712     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3297 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3114        .77485E-06** at limit **
   2  norm          .10000E-03    8.3894        .18222E-06** at limit **
   3  Prefactor     .10000E-03    1.8098        .51029E-07** at limit **
   4  Prefactor     .10000E-03    1.1964        .30490E-06** at limit **
   5  norm          1.8112        3.9285        .43651E-05   -.18940E-03
   6  Prefactor     2.3406        2.3261       -.34488E-06   -.72025E-03
   7  norm          1.9952        1.0780        .22373E-07   -.19490E-03
   8  Prefactor     12.690        23.022        .19439E-05    .86007E-04
   9  Prefactor     .10000E-03    55.346        .20386E-06** at limit **
  10  Prefactor     8.1080        6.8458       -.17674E-07   -.84039E-05
  11  Prefactor     .10000E-03    33.270       -.10912E-05** at limit **
  12  Prefactor     11.193        9.4893        .30520E-07   -.52414E-04
  13  Prefactor     9.5998        17.384       -.38399E-06   -.30962E-04
  14  Prefactor     .10000E-03    9.9965       -.12247E-06** at limit **
  15  Prefactor     .10000E-03    5.5867       -.28283E-06** at limit **
  16  norm          2.4173        .75116        .12931E-07    .79965E-04
  17  Prefactor     .10000E-03    29.781       -.15194E-06** at limit **
  18  Prefactor     5.4707        15.789        .39971E-06    .73914E-05
  19  norm          .10000E-03    7.7523       -.34162E-06** at limit **
  20  Prefactor     5.4842        21.494        .32272E-06   -.24653E-04
  21  Prefactor     62.726        43.303        .24013E-06   -.76240E-04
  22  Prefactor     .10000E-03    8.2880        .14166E-07** at limit **
  23  Prefactor     4.7942        6.7079        .19543E-06    .81951E-05
  24  norm          .10000E-03    3.1949        .10503E-07** at limit **
  25  norm          3.3790        3.1820        .33831E-06   -.38429E-05
  26  Normalizat    .69200        .19918       -.40724E-06   -.15234E-03
  27  Prefactor     1.1722        .12020       -.69021E-06   -.27133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81115
  Prefactor  = 2.34063
  norm       = 1.99524
  Prefactor  = 12.6904
  Prefactor  = 0.0001
  Prefactor  = 8.10801
  Prefactor  = 0.0001
  Prefactor  = 11.1933
  Prefactor  = 9.59979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4173
  Prefactor  = 0.000100001
  Prefactor  = 5.47072
  norm       = 0.0001
  Prefactor  = 5.48423
  Prefactor  = 62.726
  Prefactor  = 0.0001
  Prefactor  = 4.79419
  norm       = 0.0001
  norm       = 3.37903
  Normalizat = 0.692002
  Prefactor  = 1.1722
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.712     FROM HESSE     STATUS=OK           490 CALLS     3787 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.864        .28941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.4253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8142        .10884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0373        .17495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8112        3.9401        .11692E-02   -1.5439    
   6  Prefactor     2.3406        2.3173        .11951E-03   -1.5402    
   7  norm          1.9952        1.0788        .29327E-04   -1.5425    
   8  Prefactor     12.690        23.106        .11229E-03   -1.4995    
   9  Prefactor     .10000E-03    55.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1080        6.8346        .14080E-03   -1.5138    
  11  Prefactor     .10000E-03    33.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.193        9.4631        .11974E-03   -1.5039    
  13  Prefactor     9.5998        17.359        .12938E-03   -1.5088    
  14  Prefactor     .10000E-03    10.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4173        .75724        .34911E-04   -1.5397    
  17  Prefactor     .10000E-03    29.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4707        15.771        .17179E-03   -1.5240    
  19  norm          .10000E-03    7.8278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4842        21.652        .17148E-03   -1.5240    
  21  Prefactor     62.726        43.198        .50664E-04   -1.4122    
  22  Prefactor     .10000E-03    8.2893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7942        6.6997        .18374E-03   -1.5270    
  24  norm          .10000E-03    3.1963        .14461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3790        3.1821        .69441E-03   -1.5340    
  26  Normalizat    .69200        .21351        .37117E-03   -1.0421    
  27  Prefactor     1.1722        .13141        .18050E-03   -.87191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74955e-10
Minuit parameter uncertainties:
  1  7.58767e-05
  2  1.17354e-05
  3  4.99667e-06
  4  2.47974e-05
  5  3.94062
  6  2.31734
  7  1.07881
  8  23.1225
  9  0.000190942
  10  6.83521
  11  0.00011829
  12  9.46437
  13  17.3678
  14  9.65313e-06
  15  5.10198e-05
  16  0.757243
  17  0.000364053
  18  15.783
  19  3.84675e-05
  20  21.6828
  21  43.2194
  22  1.79414e-05
  23  6.70078
  24  1.59253e-06
  25  3.18224
  26  0.213763
  27  0.13145
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  2.341e+00  2.317e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.172e+00  1.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.920e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.44e-05

TS (Fixed Index): 1.56
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268117/likelihoodResults_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.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) = 6862.49636121
delta logL = 0.215360010794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6862.49600288
delta logL = 0.215718334635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1779       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8993       1.0000          .0000       10.000    
     3 'Normalizat'    .70096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1683       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   6862.496     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      278 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1779        2.9229        .13054E-03   -.13159E-03
   2  Index         1.8993        .52083        .90712E-02    .81503E-04
   3  Normalizat    .70096        .20501        .36899E-03   -.16884E-04
   4  Prefactor     1.1683        .12776        .18072E-03   -.23780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1779
  Index      = 1.89927
  Normalizat = 0.700958
  Prefactor  = 1.16831
 **********
 **   18 **HESSE 
 **********

 FCN=   6862.496     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1779        2.9107        .52216E-05   -1.5351    
   2  Index         1.8993        .51875        .18142E-02   -.66893    
   3  Normalizat    .70096        .20509        .14759E-04   -1.0386    
   4  Prefactor     1.1683        .12782        .72287E-05   -.87312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9653e-12
Minuit parameter uncertainties:
  1  2.91088
  2  0.520271
  3  0.205319
  4  0.127849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268117': 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) = 6862.49600288
delta logL = 0.215718334757

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  3.178e+00  2.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.899e+00  5.203e-01  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.168e+00  1.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.010e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 34.316 8.623
Photon Index (Free Index): 1.90 +/- 0.52
Photon Flux (Free Index): 2.95e-08 +/- 3.14e-08
Energy Flux (Free Index): 2.66e-05 +/- 3.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/268117/cmap_HighResolution_485827201_486086401_4FGL_J0217.2+0837_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='2.66e-05', photon_flux_error='3.62e-08', dlogl='2.16e-01', energy_flux='1.46e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-08-15 15:41:56.717418', photon_index_error2='0.52', photon_index2='1.90', ts='1.56', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='3.37e-05', EG='0.69', time_epoch_completed='1629067316.72', return_code='0', job_id='268117', GAL2='1.17', EG2='0.70', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.14e-08', ts2='1.99', photon_index='2.27' WHERE bin_id='951' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 268117: <4FGL_J0217.2+0837_daily_bin951> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin951> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 15:25:32 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:25:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 15:25:47 2021
Terminated at Sun Aug 15 15:41:58 2021
Results reported at Sun Aug 15 15:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin951 34.3163 8.6234 485827201 486086401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.2+0837 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   895.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            986 sec.

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

