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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin613
RA = 34.3163, Dec = 8.6234
tmin = 398217601, tmax = 398476801
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='265241', job_status='RUN', time_executed='2021-08-15 15:16:29.298861', time_epoch_executed='1629065789.3' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='613'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265241

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265241/ft1_4FGL_J0217.2+0837_daily_bin613.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265241/ft2_4FGL_J0217.2+0837_daily_bin613.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265241/ft1_4FGL_J0217.2+0837_daily_bin613.fits outfile=/scratch/kocevski/265241/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin613.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=398217601.0 tmax=398476801.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.59
user 6.28
sys 0.96

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265241/ft2_4FGL_J0217.2+0837_daily_bin613.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/265241/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin613.fits evtable="EVENTS" outfile="/scratch/kocevski/265241/ft1_filtered_4FGL_J0217.2+0837_daily_bin613.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.17
user 0.34
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265241/ft1_filtered_4FGL_J0217.2+0837_daily_bin613.fits" evtable="EVENTS" scfile=/scratch/kocevski/265241/ft2_4FGL_J0217.2+0837_daily_bin613.fits sctable="SC_DATA" outfile=/scratch/kocevski/265241/ltcube_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.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/265241/ft2_4FGL_J0217.2+0837_daily_bin613.fits
.....................!
real 12.88
user 11.64
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265241/ft1_filtered_4FGL_J0217.2+0837_daily_bin613.fits evtable="EVENTS" scfile=/scratch/kocevski/265241/ft2_4FGL_J0217.2+0837_daily_bin613.fits sctable="SC_DATA" expcube=/scratch/kocevski/265241/ltcube_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.fits outfile=/scratch/kocevski/265241/expmap_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.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/265241/ltcube_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.fits
.....................!
real 192.03
user 186.24
sys 4.64

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/265241/ft1_filtered_4FGL_J0217.2+0837_daily_bin613.fits scfile=/scratch/kocevski/265241/ft2_4FGL_J0217.2+0837_daily_bin613.fits outfile=/scratch/kocevski/265241/cmap_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.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.24
user 0.39
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265241/ft1_filtered_4FGL_J0217.2+0837_daily_bin613.fits scfile=/scratch/kocevski/265241/ft2_4FGL_J0217.2+0837_daily_bin613.fits outfile=/scratch/kocevski/265241/cmap_HighResolution_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.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.16
user 0.39
sys 0.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54669       1.0000         .10000E-03   10000.    
     2 'norm      '    19.402       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.239       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0559       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13852E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5398       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.996       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0886       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.884       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3428       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3190       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.8441       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95448       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=   4929.286     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     2849 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55435        4.6187       -.14810E-06   -.24034E-04
   2  norm          19.401        17.248       -.17293E-07   -.30966E-05
   3  Prefactor     1.2912        7.3887        .10959E-05   -.15307E-04
   4  Prefactor     .10000E-03    1.7227       -.99017E-07** at limit **
   5  norm          10.240        8.2538       -.17051E-07   -.13648E-04
   6  Prefactor     4.0551        4.9256       -.14608E-07   -.12646E-04
   7  norm          1.7608        1.3333        .13243E-07   -.42421E-04
   8  Prefactor     .10000E-03    19.123        .59645E-07** at limit **
   9  Prefactor     .10000E-03    110.95       -.12850E-05** at limit **
  10  Prefactor     .10000E-03    10.087        .45830E-09** at limit **
  11  Prefactor     7.5535        135.27        .17804E-06   -.49860E-05
  12  Prefactor     .10000E-03    5.4775        .37261E-06** at limit **
  13  Prefactor     5.7886        14.215        .56819E-07   -.51000E-05
  14  Prefactor     18.996        16.567        .84452E-08   -.16818E-04
  15  Prefactor     6.0928        10.123        .21782E-05    .68836E-04
  16  norm          .10000E-03    .40431       -.34557E-06** at limit **
  17  Prefactor     .10000E-03    18.809        .12539E-05** at limit **
  18  Prefactor     .10000E-03    29.382       -.16467E-06** at limit **
  19  norm          19.889        14.249        .82242E-07   -.40144E-04
  20  Prefactor     .10000E-03    6.1717        .66617E-07** at limit **
  21  Prefactor     9.2777        34.634        .13977E-06    .15065E-04
  22  Prefactor     .10000E-03    8.9140        .62828E-07** at limit **
  23  Prefactor     7.3184        7.4257        .18203E-07   -.76804E-05
  24  norm          .10000E-03    4.3479       -.20105E-07** at limit **
  25  norm          6.8445        5.5458        .25206E-07   -.20271E-04
  26  Normalizat    1.1260        .24214        .46801E-07    .13709E-04
  27  Prefactor     .95440        .13447       -.35013E-07    .92373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.554348
  norm       = 19.4014
  Prefactor  = 1.29121
  Prefactor  = 0.0001
  norm       = 10.2401
  Prefactor  = 4.05511
  norm       = 1.76083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.55352
  Prefactor  = 0.0001
  Prefactor  = 5.78858
  Prefactor  = 18.9963
  Prefactor  = 6.09278
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.8887
  Prefactor  = 0.0001
  Prefactor  = 9.27774
  Prefactor  = 0.0001
  Prefactor  = 7.31843
  norm       = 0.0001
  norm       = 6.8445
  Normalizat = 1.12597
  Prefactor  = 0.954403
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.286     FROM HESSE     STATUS=OK           494 CALLS     3343 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55435        21.540        .28431E-02   -1.5559    
   2  norm          19.401        17.251        .90929E-04   -1.4827    
   3  Prefactor     1.2912        7.4913        .18441E-02   -1.5481    
   4  Prefactor     .10000E-03    1.7433        .89899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.240        8.2218        .12522E-03   -1.5068    
   6  Prefactor     4.0551        4.9023        .14935E-03   -1.5305    
   7  norm          1.7608        1.3335        .66453E-04   -1.5443    
   8  Prefactor     .10000E-03    19.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    112.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5535        134.68        .14605E-03   -1.5158    
  12  Prefactor     .10000E-03    5.4606        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7886        14.198        .16694E-03   -1.5227    
  14  Prefactor     18.996        16.556        .91895E-04   -1.4836    
  15  Prefactor     6.0928        10.430        .16271E-03   -1.5214    
  16  norm          .10000E-03    1.0607        .81627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.889        14.235        .89822E-04   -1.4816    
  20  Prefactor     .10000E-03    6.1751        .17032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2777        34.647        .13111E-03   -1.5099    
  22  Prefactor     .10000E-03    8.9145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3184        7.4249        .14826E-03   -1.5167    
  24  norm          .10000E-03    4.3498        .14297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.8445        5.5535        .14249E-03   -1.5185    
  26  Normalizat    1.1260        .27339        .31433E-03   -.88922    
  27  Prefactor     .95440        .15255        .19394E-03   -.94265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53085e-08
Minuit parameter uncertainties:
  1  6.91316
  2  17.2552
  3  6.22116
  4  2.50533e-06
  5  8.22272
  6  4.90278
  7  1.33356
  8  2.50264e-06
  9  0.00012801
  10  2.35309e-05
  11  63.9588
  12  3.9594e-05
  13  14.2061
  14  16.5596
  15  10.4336
  16  3.13967e-06
  17  0.000173354
  18  1.85424e-05
  19  14.2372
  20  9.07532e-06
  21  34.7219
  22  8.2685e-06
  23  7.42586
  24  8.77795e-07
  25  5.55391
  26  0.273731
  27  0.152621
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  4.055e+00  4.903e+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:  9.544e-01  1.526e-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.126e+00  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265241/likelihoodResults_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.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) = 4927.09702203
delta logL = 2.18874325504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4927.07963845
delta logL = 2.20612683817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75064       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8425       1.0000          .0000       10.000    
     3 'Normalizat'    .98153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99966       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=   4927.080     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      255 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74921        5.4258        .64554E-02    .17677E-02
   2  Index         3.8437        2.3660        .76427E-01    .24158E-03
   3  Normalizat    .98135        .87541E-01    .75032E-01    .82659E-05
   4  Prefactor     .99972        .50028E-01    .46263E-01    .47284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.749206
  Index      = 3.8437
  Normalizat = 0.981346
  Prefactor  = 0.999724
 **********
 **   18 **HESSE 
 **********

 FCN=   4927.080     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      286 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74921        8.9088        .28870E-04   -1.5535    
   2  Index         3.8437        3.1740        .31451E-02   -.23337    
   3  Normalizat    .98135        .26334        .33202E-03   -.93658    
   4  Prefactor     .99972        .15182        .18959E-03   -.92739    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68999e-10
Minuit parameter uncertainties:
  1  5.16765
  2  3.45794
  3  0.263688
  4  0.151883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265241': 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): 102
logL (Free Index) = 4927.07963735
delta logL = 2.2061279412

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  7.492e-01  5.168e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  3.844e+00  3.458e+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:  9.997e-01  1.519e-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.813e-01  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 34.316 8.623
Photon Index (Free Index): 3.84 +/- 3.46
Photon Flux (Free Index): 2.06e-07 +/- 1.05e-07
Energy Flux (Free Index): 3.17e-05 +/- 2.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/265241/cmap_HighResolution_398217601_398476801_4FGL_J0217.2+0837_daily_bin613.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', energy_flux2='3.17e-05', dlogl='2.21e+00', photon_flux2='2.06e-07', job_status='DONE', time_completed='2021-08-15 15:27:56.256345', photon_index_error2='3.46', photon_index2='3.84', ts='0.91', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.06e-07', energy_flux_error2='2.72e-05', EG='1.13', time_epoch_completed='1629066476.26', return_code='0', job_id='265241', GAL2='1.00', EG2='0.98', return_code2='102', photon_flux_error2='1.05e-07', ts2='5.73', photon_index='2.27' WHERE bin_id='613' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:27:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 265241: <4FGL_J0217.2+0837_daily_bin613> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin613 34.3163 8.6234 398217601 398476801 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            743 sec.

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

