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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin470
RA = 34.3163, Dec = 8.6234
tmin = 361152001, tmax = 361411201
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='263890', job_status='RUN', time_executed='2021-08-15 15:13:28.223989', time_epoch_executed='1629065608.22' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263890/ft1_4FGL_J0217.2+0837_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263890/ft2_4FGL_J0217.2+0837_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263890/ft1_4FGL_J0217.2+0837_daily_bin470.fits outfile=/scratch/kocevski/263890/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin470.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=361152001.0 tmax=361411201.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 3.56
user 3.32
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263890/ft1_filtered_4FGL_J0217.2+0837_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/263890/ft2_4FGL_J0217.2+0837_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/263890/ltcube_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.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/263890/ft2_4FGL_J0217.2+0837_daily_bin470.fits
.....................!
real 12.52
user 12.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263890/ft1_filtered_4FGL_J0217.2+0837_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/263890/ft2_4FGL_J0217.2+0837_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/263890/ltcube_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.fits outfile=/scratch/kocevski/263890/expmap_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.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/263890/ltcube_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.fits
.....................!
real 191.44
user 185.65
sys 5.31

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/263890/ft1_filtered_4FGL_J0217.2+0837_daily_bin470.fits scfile=/scratch/kocevski/263890/ft2_4FGL_J0217.2+0837_daily_bin470.fits outfile=/scratch/kocevski/263890/cmap_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.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 0.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263890/ft1_filtered_4FGL_J0217.2+0837_daily_bin470.fits scfile=/scratch/kocevski/263890/ft2_4FGL_J0217.2+0837_daily_bin470.fits outfile=/scratch/kocevski/263890/cmap_HighResolution_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.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 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9035       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.9744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0503       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0993       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2758       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.861       1.0000         .10000E-03   10000.    
    19 'norm      '    13.822       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6923       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.9021       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1435       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84737       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=   6731.898     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3216 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9042        5.0904        .46343E-07   -.16281E-04
   2  norm          3.5979        9.4953        .70091E-05   -.23028E-03
   3  Prefactor     4.6300        5.7228       -.20436E-07   -.35323E-04
   4  Prefactor     .10000E-03    1.6552        .43478E-07** at limit **
   5  norm          7.9745        5.6353        .41989E-07   -.20711E-04
   6  Prefactor     1.0503        1.2215       -.70460E-08   -.79201E-05
   7  norm          1.0268        .72488        .29210E-07    .40124E-04
   8  Prefactor     .10000E-03    4.4634       -.28971E-07** at limit **
   9  Prefactor     52.746        35.672       -.28554E-06   -.42376E-04
  10  Prefactor     .10000E-03    4.0261        .23174E-07** at limit **
  11  Prefactor     15.276        37.752       -.71118E-07   -.26108E-05
  12  Prefactor     .10000E-03    3.4924       -.26760E-06** at limit **
  13  Prefactor     5.1030        19.117        .36640E-06    .48869E-05
  14  Prefactor     2.4802        7.4842        .39454E-06   -.56494E-04
  15  Prefactor     .10000E-03    6.2334       -.43217E-06** at limit **
  16  norm          1.2756        .57734        .23723E-07    .21940E-03
  17  Prefactor     20.817        32.845       -.61719E-05   -.29365E-03
  18  Prefactor     19.863        17.710       -.12182E-07   -.60896E-05
  19  norm          13.805        15.233        .44308E-06    .36720E-05
  20  Prefactor     6.6875        20.779       -.22085E-07   -.12762E-04
  21  Prefactor     .10000E-03    40.245       -.11444E-05** at limit **
  22  Prefactor     .10000E-03    19.155       -.14010E-06** at limit **
  23  Prefactor     .10000E-03    3.5348       -.94888E-07** at limit **
  24  norm          .10000E-03    4.4451       -.26463E-07** at limit **
  25  norm          8.9018        4.9438        .53778E-06   -.17014E-03
  26  Normalizat    1.1433        .19060       -.88123E-06    .27779E-04
  27  Prefactor     .84748        .11193        .29373E-06   -.38233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90424
  norm       = 3.59793
  Prefactor  = 4.62998
  Prefactor  = 0.0001
  norm       = 7.97447
  Prefactor  = 1.05026
  norm       = 1.0268
  Prefactor  = 0.0001
  Prefactor  = 52.7461
  Prefactor  = 0.0001
  Prefactor  = 15.2757
  Prefactor  = 0.0001
  Prefactor  = 5.10303
  Prefactor  = 2.48021
  Prefactor  = 0.0001
  norm       = 1.27565
  Prefactor  = 20.8174
  Prefactor  = 19.8628
  norm       = 13.8052
  Prefactor  = 6.68753
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.90179
  Normalizat = 1.1433
  Prefactor  = 0.847483
 **********
 **   18 **HESSE 
 **********

 FCN=   6731.898     FROM HESSE     STATUS=OK           490 CALLS     3706 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9042        5.1035        .15270E-03   -1.5182    
   2  norm          3.5979        9.6544        .10651E-02   -1.5329    
   3  Prefactor     4.6300        5.7137        .18705E-03   -1.5278    
   4  Prefactor     .10000E-03    1.6995        .20587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.9745        5.6273        .14199E-03   -1.5143    
   6  Prefactor     1.0503        1.2031        .94833E-04   -1.5503    
   7  norm          1.0268        .72060        .56638E-04   -1.5505    
   8  Prefactor     .10000E-03    4.4639        .16929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.746        35.738        .55222E-04   -1.4254    
  10  Prefactor     .10000E-03    4.1141        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.276        37.747        .10247E-03   -1.4926    
  12  Prefactor     .10000E-03    3.5112        .14969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1030        19.051        .17805E-03   -1.5256    
  14  Prefactor     2.4802        7.4322        .25943E-03   -1.5393    
  15  Prefactor     .10000E-03    6.2708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2756        .57837        .37632E-04   -1.5482    
  17  Prefactor     20.817        34.564        .87683E-04   -1.4795    
  18  Prefactor     19.863        17.724        .89873E-04   -1.4816    
  19  norm          13.805        15.203        .10774E-03   -1.4965    
  20  Prefactor     6.6875        20.835        .15511E-03   -1.5191    
  21  Prefactor     .10000E-03    40.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5597        .15064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.4500        .16894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.9018        4.9555        .65486E-03   -1.5111    
  26  Normalizat    1.1433        .21449        .29518E-03   -.88373    
  27  Prefactor     .84748        .12677        .19659E-03   -.98001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0531e-10
Minuit parameter uncertainties:
  1  5.10381
  2  9.6586
  3  5.71436
  4  6.95524e-07
  5  5.6277
  6  1.20311
  7  0.720608
  8  2.06342e-06
  9  35.752
  10  1.64259e-05
  11  37.8057
  12  2.24054e-05
  13  19.0741
  14  7.43493
  15  2.14632e-05
  16  0.578372
  17  34.5972
  18  17.7287
  19  15.2076
  20  20.8572
  21  0.000328229
  22  1.06254e-06
  23  7.53718e-06
  24  4.35748e-06
  25  4.95573
  26  0.214658
  27  0.126818
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.050e+00  1.203e+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:  8.475e-01  1.268e-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:  1.143e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.94
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 6.53e-06 +/- 7.48e-06

TS (Fixed Index): 1.94
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263890/likelihoodResults_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.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) = 6729.8920191
delta logL = 2.00571587307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6729.88527892
delta logL = 2.0124560555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88206       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0645       1.0000          .0000       10.000    
     3 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84682       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=   6729.885     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88154        .87518        .12742E-01   -.43078E-03
   2  Index         1.0644        .37355        .22400       -.51913E-04
   3  Normalizat    1.1491        .18358        .66553E-01    .36854E-04
   4  Prefactor     .84669        .10754        .44323E-01   -.92653E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.881536
  Index      = 1.06438
  Normalizat = 1.1491
  Prefactor  = 0.84669
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.885     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88154        1.3594        .71230E-03   -1.5520    
   2  Index         1.0644        .58352        .92805E-02   -.90613    
   3  Normalizat    1.1491        .20676        .29442E-03   -.88191    
   4  Prefactor     .84669        .12124        .19662E-03   -.98030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09019e-09
Minuit parameter uncertainties:
  1  1.35949
  2  0.587055
  3  0.206905
  4  0.121282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263890': 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) = 6729.88527503
delta logL = 2.01245994619

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  8.815e-01  1.359e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.064e+00  5.871e-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:  8.467e-01  1.213e-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:  1.149e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 34.316 8.623
Photon Index (Free Index): 1.06 +/- 0.59
Photon Flux (Free Index): 5.88e-09 +/- 7.06e-09
Energy Flux (Free Index): 7.21e-05 +/- 9.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/263890/cmap_HighResolution_361152001_361411201_4FGL_J0217.2+0837_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='7.21e-05', photon_flux_error='1.88e-08', dlogl='2.01e+00', energy_flux='6.53e-06', photon_flux2='5.88e-09', job_status='DONE', time_completed='2021-08-15 15:26:53.041112', photon_index_error2='0.59', photon_index2='1.06', ts='1.94', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='7.57e-08', energy_flux_error2='9.69e-05', EG='1.14', time_epoch_completed='1629066413.04', return_code='0', job_id='263890', GAL2='0.85', EG2='1.15', return_code2='0', energy_flux_error='7.48e-06', photon_flux_error2='7.06e-09', ts2='5.96', photon_index='2.27' WHERE bin_id='470' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:26:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 263890: <4FGL_J0217.2+0837_daily_bin470> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin470> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 15:10:40 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:11:13 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:11:13 2021
Terminated at Sun Aug 15 15:26:54 2021
Results reported at Sun Aug 15 15:26:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin470 34.3163 8.6234 361152001 361411201 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 :                                   800.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            974 sec.

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

