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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin599
RA = 34.3163, Dec = 8.6234
tmin = 394588801, tmax = 394848001
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='265221', job_status='RUN', time_executed='2021-08-15 15:18:54.529196', time_epoch_executed='1629065934.53' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265221/ft1_4FGL_J0217.2+0837_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265221/ft2_4FGL_J0217.2+0837_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265221/ft1_4FGL_J0217.2+0837_daily_bin599.fits outfile=/scratch/kocevski/265221/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin599.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=394588801.0 tmax=394848001.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.84
user 3.52
sys 1.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265221/ft2_4FGL_J0217.2+0837_daily_bin599.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/265221/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/265221/ft1_filtered_4FGL_J0217.2+0837_daily_bin599.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.50
user 0.30
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265221/ft1_filtered_4FGL_J0217.2+0837_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/265221/ft2_4FGL_J0217.2+0837_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/265221/ltcube_394588801_394848001_4FGL_J0217.2+0837_daily_bin599.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/265221/ft2_4FGL_J0217.2+0837_daily_bin599.fits
.....................!
real 11.09
user 9.68
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265221/ft1_filtered_4FGL_J0217.2+0837_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/265221/ft2_4FGL_J0217.2+0837_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/265221/ltcube_394588801_394848001_4FGL_J0217.2+0837_daily_bin599.fits outfile=/scratch/kocevski/265221/expmap_394588801_394848001_4FGL_J0217.2+0837_daily_bin599.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/265221/ltcube_394588801_394848001_4FGL_J0217.2+0837_daily_bin599.fits
.....................!
real 156.78
user 151.18
sys 5.07

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/265221/ft1_filtered_4FGL_J0217.2+0837_daily_bin599.fits scfile=/scratch/kocevski/265221/ft2_4FGL_J0217.2+0837_daily_bin599.fits outfile=/scratch/kocevski/265221/cmap_394588801_394848001_4FGL_J0217.2+0837_daily_bin599.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 1.40
user 0.31
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265221/ft1_filtered_4FGL_J0217.2+0837_daily_bin599.fits scfile=/scratch/kocevski/265221/ft2_4FGL_J0217.2+0837_daily_bin599.fits outfile=/scratch/kocevski/265221/cmap_HighResolution_394588801_394848001_4FGL_J0217.2+0837_daily_bin599.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 1.42
user 0.33
sys 1.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8089       1.0000         .10000E-03   10000.    
     2 'norm      '    27.073       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14288E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1277       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4807       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5832       1.0000         .10000E-03   10000.    
     7 'norm      '    .61878       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45491E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8844       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0599       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.594       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.618       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11219E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84310       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1928       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=   7645.514     FROM MIGRAD    STATUS=CONVERGED   1140 CALLS     3804 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8083        4.2860        .21604E-03   -.80515E-05
   2  norm          27.068        17.356        .38497E-03    .63658E-04
   3  Prefactor     .10000E-03    25.056        .37022E-02** at limit **
   4  Prefactor     1.1271        2.2837        .18073E-03   -.68312E-04
   5  norm          4.4803        3.8457        .15308E-03    .71652E-04
   6  Prefactor     9.5842        3.3832        .90371E-04    .52081E-04
   7  norm          .61852        .64442        .72243E-03   -.22182E-03
   8  Prefactor     .10000E-03    37.240        .18142E-02** at limit **
   9  Prefactor     .10000E-03    170.17        .79138E-02** at limit **
  10  Prefactor     3.2746        6.1321        .11189E-02   -.45714E-03
  11  Prefactor     .10000E-03    41.184        .18142E-02** at limit **
  12  Prefactor     .10000E-03    2.3647        .13111E-02** at limit **
  13  Prefactor     .10000E-03    10.627        .18142E-02** at limit **
  14  Prefactor     1.8960        12.436        .15160E-02   -.35399E-03
  15  Prefactor     4.0601        5.6400        .10005E-02   -.27871E-03
  16  norm          .10000E-03    .98823E-01    .52980E-04** at limit **
  17  Prefactor     24.596        28.505        .80774E-04   -.19704E-05
  18  Prefactor     .10000E-03    19.625        .18142E-02** at limit **
  19  norm          15.613        15.048        .10135E-03    .39710E-04
  20  Prefactor     .10000E-03    4.5724        .18142E-02** at limit **
  21  Prefactor     .10000E-03    38.139        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.9811        .18142E-02** at limit **
  23  Prefactor     .10000E-03    3.5013        .15876E-02** at limit **
  24  norm          .10000E-03    6.7029        .18142E-02** at limit **
  25  norm          .10000E-03    6.2730        .27469E-02** at limit **
  26  Normalizat    .84315        .20488        .35344E-03    .25996E-03
  27  Prefactor     1.1929        .12270        .18220E-03    .56245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80828
  norm       = 27.0676
  Prefactor  = 0.000100001
  Prefactor  = 1.12709
  norm       = 4.48029
  Prefactor  = 9.58423
  norm       = 0.618525
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.27461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.89597
  Prefactor  = 4.06006
  norm       = 0.0001
  Prefactor  = 24.5959
  Prefactor  = 0.0001
  norm       = 15.6128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Normalizat = 0.843154
  Prefactor  = 1.19288
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.514     FROM HESSE     STATUS=OK           462 CALLS     4266 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8083        4.2857        .86415E-05   -1.5373    
   2  norm          27.068        17.355        .76994E-04   -1.4667    
   3  Prefactor     .10000E-03    25.542        .74045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1271        2.2833        .72294E-05   -1.5496    
   5  norm          4.4803        3.8454        .30616E-04   -1.5285    
   6  Prefactor     9.5842        3.3828        .36148E-05   -1.5089    
   7  norm          .61852        .64413        .28897E-04   -1.5551    
   8  Prefactor     .10000E-03    37.249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    175.38        .31655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2746        6.1299        .44754E-04   -1.5346    
  11  Prefactor     .10000E-03    41.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3648        .26222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8960        12.368        .60641E-04   -1.5433    
  15  Prefactor     4.0601        5.6391        .40022E-04   -1.5305    
  16  norm          .10000E-03    .98823E-01    .10596E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.596        28.500        .32310E-05   -1.4716    
  18  Prefactor     .10000E-03    19.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.613        15.017        .40539E-05   -1.4917    
  20  Prefactor     .10000E-03    4.5726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5026        .31752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.7040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.3138        .54937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .84315        .20486        .14138E-04   -.98487    
  27  Prefactor     1.1929        .12271        .36441E-04   -.86551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86438e-09
Minuit parameter uncertainties:
  1  4.28612
  2  17.358
  3  0.000254841
  4  2.28351
  5  3.84565
  6  3.38292
  7  0.644133
  8  0.000177059
  9  0.00152129
  10  6.13105
  11  0.000127821
  12  2.55045e-06
  13  2.02132e-05
  14  9.68767
  15  5.63981
  16  3.76376e-07
  17  28.5162
  18  2.02071e-05
  19  15.0203
  20  4.37531e-06
  21  0.000116553
  22  1.55446e-06
  23  7.68621e-06
  24  1.53743e-06
  25  0.000261954
  26  0.205044
  27  0.122737
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  9.584e+00  3.383e+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.193e+00  1.227e-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.432e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.40
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 5.28e-08
Energy Flux (Fixed Index): 5.96e-05 +/- 2.10e-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) = 7644.20857677
delta logL = 1.3050155119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7644.20214715
delta logL = 1.3114451293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4364       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6856       1.0000          .0000       10.000    
     3 'Normalizat'    .91752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1771       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=   7644.202     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4339        3.9858        .32615E-02   -.36264E-04
   2  Index         1.6856        .28221        .15692       -.68138E-04
   3  Normalizat    .91752        .18335        .77041E-01    .24236E-04
   4  Prefactor     1.1770        .10913        .35195E-01    .29734E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.4339
  Index      = 1.68557
  Normalizat = 0.917522
  Prefactor  = 1.17701
 **********
 **   18 **HESSE 
 **********

 FCN=   7644.202     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4339        4.6630        .10943E-03   -1.5094    
   2  Index         1.6856        .36233        .62454E-02   -.72467    
   3  Normalizat    .91752        .20131        .34098E-03   -.95847    
   4  Prefactor     1.1770        .11999        .18353E-03   -.87042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04703e-10
Minuit parameter uncertainties:
  1  4.66319
  2  0.362896
  3  0.201476
  4  0.120015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265221': 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) = 7644.20214492
delta logL = 1.31144736524

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  9.434e+00  4.663e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.686e+00  3.629e-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.177e+00  1.200e-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.175e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.97
Ra Dec: 34.316 8.623
Photon Index (Free Index): 1.69 +/- 0.36
Photon Flux (Free Index): 6.94e-08 +/- 5.08e-08
Energy Flux (Free Index): 1.19e-04 +/- 8.40e-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/265221/cmap_HighResolution_394588801_394848001_4FGL_J0217.2+0837_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='1.19e-04', photon_flux_error='5.28e-08', dlogl='1.31e+00', energy_flux='5.96e-05', photon_flux2='6.94e-08', job_status='DONE', time_completed='2021-08-15 15:30:21.467867', photon_index_error2='0.36', photon_index2='1.69', ts='33.40', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='8.40e-05', EG='0.84', time_epoch_completed='1629066621.47', return_code='0', job_id='265221', GAL2='1.18', EG2='0.92', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='5.08e-08', ts2='35.97', photon_index='2.27' WHERE bin_id='599' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:30:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 265221: <4FGL_J0217.2+0837_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin599 34.3163 8.6234 394588801 394848001 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            891 sec.

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

