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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin666
RA = 34.3163, Dec = 8.6234
tmin = 411955201, tmax = 412214401
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='265317', job_status='RUN', time_executed='2021-08-15 15:19:28.062722', time_epoch_executed='1629065968.06' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265317

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265317/ft1_4FGL_J0217.2+0837_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265317/ft1_4FGL_J0217.2+0837_daily_bin666.fits outfile=/scratch/kocevski/265317/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin666.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=411955201.0 tmax=412214401.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 7.84
user 5.28
sys 2.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/265317/ltcube_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.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/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits
.....................!
real 16.34
user 13.13
sys 2.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/265317/ltcube_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.fits outfile=/scratch/kocevski/265317/expmap_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.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/265317/ltcube_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.fits
.....................!
real 196.72
user 187.58
sys 7.97

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/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits scfile=/scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits outfile=/scratch/kocevski/265317/cmap_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.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.73
user 0.38
sys 2.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits scfile=/scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits outfile=/scratch/kocevski/265317/cmap_HighResolution_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.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.72
user 0.40
sys 2.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265317/Model_4FGL_J0217.2+0837_daily_bin666.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/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits.....................!
real 59.62
user 54.25
sys 4.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits', '/scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits', expMap='/scratch/kocevski/265317/expmap_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.fits', expCube='/scratch/kocevski/265317/ltcube_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265317/Model_4FGL_J0217.2+0837_daily_bin666.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/265317/ft1_filtered_4FGL_J0217.2+0837_daily_bin666.fits
Spacecraft file(s): /scratch/kocevski/265317/ft2_4FGL_J0217.2+0837_daily_bin666.fits
Exposure map: /scratch/kocevski/265317/expmap_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.fits
Exposure cube: /scratch/kocevski/265317/ltcube_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265317/Model_4FGL_J0217.2+0837_daily_bin666.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) = 4175.66755687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6915       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9430       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3607       1.0000         .10000E-03   10000.    
     7 'norm      '    .20970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.018       1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0960       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .33861       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.637       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.168       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0471       1.0000         .10000E-03   10000.    
    24 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .90133       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92096       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0488       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=   4175.661     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3283 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6914        5.6492       -.27119E-07    .16613E-05
   2  norm          .10000E-03    9.8224       -.16201E-06** at limit **
   3  Prefactor     .10000E-03    3.0284       -.81164E-07** at limit **
   4  Prefactor     3.9433        4.0324       -.38081E-07   -.95276E-05
   5  norm          3.9113        4.0392       -.24726E-07   -.18118E-04
   6  Prefactor     1.3607        2.6398       -.38038E-07   -.47263E-06
   7  norm          .20908        1.0821       -.58809E-07   -.98914E-04
   8  Prefactor     27.022        25.549        .12825E-06   -.58975E-05
   9  Prefactor     62.073        44.940        .28497E-06   -.32030E-05
  10  Prefactor     .10000E-03    11.463        .12971E-06** at limit **
  11  Prefactor     .10000E-03    46.296       -.17255E-05** at limit **
  12  Prefactor     .10000E-03    5.0204        .55408E-06** at limit **
  13  Prefactor     21.584        22.183        .46351E-06   -.83321E-05
  14  Prefactor     2.0767        43.033       -.78805E-05   -.29645E-04
  15  Prefactor     .10000E-03    4.8838        .13337E-06** at limit **
  16  norm          .33808        .44164        .51654E-06    .22211E-03
  17  Prefactor     15.609        50.106       -.17986E-06    .17523E-04
  18  Prefactor     11.170        23.118        .23181E-06    .56038E-05
  19  norm          1.9056        24.416        .75969E-05   -.11703E-04
  20  Prefactor     .10000E-03    58.894        .19360E-05** at limit **
  21  Prefactor     .10000E-03    17.933        .95072E-06** at limit **
  22  Prefactor     .10000E-03    11.412       -.13683E-06** at limit **
  23  Prefactor     4.0471        5.0634        .26702E-07   -.14141E-05
  24  norm          .10000E-03    9.3954        .19352E-06** at limit **
  25  norm          .90080        5.5402        .18525E-05   -.21855E-04
  26  Normalizat    .92113        .26515        .21192E-05   -.77041E-04
  27  Prefactor     1.0488        .14705       -.70149E-06    .84745E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.69145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94334
  norm       = 3.9113
  Prefactor  = 1.36068
  norm       = 0.209083
  Prefactor  = 27.0217
  Prefactor  = 62.0733
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 21.5837
  Prefactor  = 2.07669
  Prefactor  = 0.0001
  norm       = 0.338079
  Prefactor  = 15.6093
  Prefactor  = 11.1696
  norm       = 1.9056
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.04707
  norm       = 0.0001
  norm       = 0.900804
  Normalizat = 0.921132
  Prefactor  = 1.04875
 **********
 **   18 **HESSE 
 **********

 FCN=   4175.661     FROM HESSE     STATUS=OK           496 CALLS     3779 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6914        5.6388        .18422E-03   -1.5324    
   2  norm          .10000E-03    9.8316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0331        .10982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9433        4.0232        .12384E-03   -1.5311    
   5  norm          3.9113        4.0400        .12816E-03   -1.5312    
   6  Prefactor     1.3607        2.5906        .13851E-03   -1.5475    
   7  norm          .20908        1.7950        .12216E-02   -1.5617    
   8  Prefactor     27.022        25.498        .77073E-04   -1.4668    
   9  Prefactor     62.073        44.874        .50924E-04   -1.4131    
  10  Prefactor     .10000E-03    11.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0099        .14102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.584        22.135        .86223E-04   -1.4778    
  14  Prefactor     2.0767        42.149        .28510E-03   -1.5420    
  15  Prefactor     .10000E-03    4.8873        .13932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33808        .41948        .48549E-03   -1.5592    
  17  Prefactor     15.609        50.057        .10128E-03   -1.4918    
  18  Prefactor     11.170        23.216        .11988E-03   -1.5039    
  19  norm          1.9056        23.908        .15130E-02   -1.5432    
  20  Prefactor     .10000E-03    59.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.0471        5.0581        .15794E-03   -1.5306    
  24  norm          .10000E-03    9.4258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .90080        5.5223        .14294E-02   -1.5518    
  26  Normalizat    .92113        .29113        .32777E-03   -.95721    
  27  Prefactor     1.0488        .16492        .18171E-03   -.91122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69302e-08
Minuit parameter uncertainties:
  1  5.6396
  2  1.02954e-05
  3  1.58228e-06
  4  4.02345
  5  4.04033
  6  2.59077
  7  1.22499
  8  25.5083
  9  44.8987
  10  6.68535e-05
  11  0.000541839
  12  4.28808e-05
  13  22.1437
  14  18.7262
  15  3.47198e-05
  16  0.41948
  17  50.1923
  18  23.2343
  19  13.5057
  20  0.000502988
  21  2.30844e-05
  22  2.83236e-05
  23  5.05861
  24  2.32756e-05
  25  4.46109
  26  0.291631
  27  0.164997
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.361e+00  2.591e+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.049e+00  1.650e-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:  9.211e-01  2.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265317/likelihoodResults_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.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) = 4175.58114115
delta logL = 0.0796229476518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4175.55727305
delta logL = 0.103491048584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83900       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0144       1.0000          .0000       10.000    
     3 'Normalizat'    .89444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0564       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.

 FCN=   4175.557     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      220 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83444        43.541        .12584E-02    .14319E-02
   2  Index         3.0187        6.3947        .14994        .15428E-03
   3  Normalizat    .89456        .98923E-01    .75008E-01   -.46024E-04
   4  Prefactor     1.0563        .47848E-01    .39551E-01   -.56033E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.834439
  Index      = 3.01874
  Normalizat = 0.894563
  Prefactor  = 1.05634
 **********
 **   18 **HESSE 
 **********

 FCN=   4175.557     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83444        4.7669        .50338E-04   -1.5525    
   2  Index         3.0187        2.9616        .89842E-02   -.40743    
   3  Normalizat    .89456        .29055        .33195E-03   -.96651    
   4  Prefactor     1.0563        .16388        .18109E-03   -.90874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24271e-10
Minuit parameter uncertainties:
  1  3.98908
  2  3.21896
  3  0.291061
  4  0.163958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265317': 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) = 4175.55726959
delta logL = 0.103494510129

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  8.344e-01  3.989e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  3.019e+00  3.219e+00  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.056e+00  1.640e-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:  8.946e-01  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 34.316 8.623

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/265317/cmap_HighResolution_411955201_412214401_4FGL_J0217.2+0837_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-08-15 15:30:41.081029', job_id='265317', GAL2='1.06', fit_tolerance='1e-08', EG2='0.89', EG='0.92', time_epoch_completed='1629066641.08', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.03e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='666' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:30:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 265317: <4FGL_J0217.2+0837_daily_bin666> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin666> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 15:15:39 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:16:42 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:16:42 2021
Terminated at Sun Aug 15 15:30:42 2021
Results reported at Sun Aug 15 15:30:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin666 34.3163 8.6234 411955201 412214401 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 :                                   699.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            903 sec.

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

