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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin524
RA = 34.3163, Dec = 8.6234
tmin = 375148801, tmax = 375408001
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='263973', job_status='RUN', time_executed='2021-08-15 15:14:50.452413', time_epoch_executed='1629065690.45' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263973/ft1_4FGL_J0217.2+0837_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263973/ft2_4FGL_J0217.2+0837_daily_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263973/ft1_4FGL_J0217.2+0837_daily_bin524.fits outfile=/scratch/kocevski/263973/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin524.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=375148801.0 tmax=375408001.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.65
user 4.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263973/ft1_filtered_4FGL_J0217.2+0837_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/263973/ft2_4FGL_J0217.2+0837_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/263973/ltcube_375148801_375408001_4FGL_J0217.2+0837_daily_bin524.fits outfile=/scratch/kocevski/263973/expmap_375148801_375408001_4FGL_J0217.2+0837_daily_bin524.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/263973/ltcube_375148801_375408001_4FGL_J0217.2+0837_daily_bin524.fits
.....................!
real 193.22
user 188.11
sys 4.32

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/263973/ft1_filtered_4FGL_J0217.2+0837_daily_bin524.fits scfile=/scratch/kocevski/263973/ft2_4FGL_J0217.2+0837_daily_bin524.fits outfile=/scratch/kocevski/263973/cmap_375148801_375408001_4FGL_J0217.2+0837_daily_bin524.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.54
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4869       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.4867       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2034       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7588       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20047E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2327       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28833       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.752       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    53.810       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.146       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .15807E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .82377       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1571       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70565       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=   6039.324     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3317 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4863        5.3341       -.76771E-06   -.22507E-03
   2  norm          .10000E-03    4.2135       -.64614E-07** at limit **
   3  Prefactor     8.0472        5.1410        .15834E-06   -.35774E-04
   4  Prefactor     .10000E-03    .85712        .28271E-07** at limit **
   5  norm          7.4867        4.4079       -.14717E-06    .46139E-04
   6  Prefactor     4.2039        2.7543       -.57772E-07   -.80020E-04
   7  norm          1.7585        1.2093       -.91505E-07   -.38641E-03
   8  Prefactor     .10000E-03    19.712       -.68532E-05** at limit **
   9  Prefactor     56.278        39.409       -.27602E-05    .12087E-03
  10  Prefactor     .10009E-03    4.3152       -.39408E-06** at limit **
  11  Prefactor     .10000E-03    20.262        .43200E-05** at limit **
  12  Prefactor     6.2363        7.7062        .12728E-05   -.22104E-03
  13  Prefactor     26.291        23.360       -.82725E-06    .62474E-04
  14  Prefactor     13.017        10.066        .33674E-06   -.46436E-04
  15  Prefactor     .10000E-03    4.7782       -.15156E-07** at limit **
  16  norm          .28827        .35582        .53808E-07    .37988E-03
  17  Prefactor     .10000E-03    21.374        .90360E-05** at limit **
  18  Prefactor     18.739        18.645        .14272E-05   -.68378E-04
  19  norm          4.6232        7.9441        .22357E-05   -.25898E-03
  20  Prefactor     .10000E-03    22.640       -.65257E-05** at limit **
  21  Prefactor     53.794        39.539       -.52726E-05    .15114E-03
  22  Prefactor     23.146        22.625        .47157E-06    .17969E-04
  23  Prefactor     .10000E-03    2.6165       -.87636E-07** at limit **
  24  norm          .10000E-03    6.9227        .32465E-06** at limit **
  25  norm          .82232        3.2265       -.19901E-05   -.11798E-02
  26  Normalizat    1.1572        .19949        .85804E-06    .87472E-04
  27  Prefactor     .70562        .10888        .35577E-06    .15361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48629
  norm       = 0.0001
  Prefactor  = 8.04716
  Prefactor  = 0.0001
  norm       = 7.48667
  Prefactor  = 4.20392
  norm       = 1.75847
  Prefactor  = 0.000100001
  Prefactor  = 56.2775
  Prefactor  = 0.000100088
  Prefactor  = 0.0001
  Prefactor  = 6.23634
  Prefactor  = 26.291
  Prefactor  = 13.0174
  Prefactor  = 0.0001
  norm       = 0.288272
  Prefactor  = 0.000100002
  Prefactor  = 18.7391
  norm       = 4.62315
  Prefactor  = 0.000100002
  Prefactor  = 53.7942
  Prefactor  = 23.1459
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.82232
  Normalizat = 1.15724
  Prefactor  = 0.705622
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.324     FROM HESSE     STATUS=OK           506 CALLS     3823 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4863        5.3735        .21371E-03   -1.5335    
   2  norm          .10000E-03    4.2142        .15580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0472        5.1398        .13667E-03   -1.5141    
   4  Prefactor     .10000E-03    .86675        .70221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.4867        4.4067        .12051E-03   -1.5161    
   6  Prefactor     4.2039        2.7507        .99252E-04   -1.5298    
   7  norm          1.7585        1.2063        .66880E-04   -1.5443    
   8  Prefactor     .10000E-03    19.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.278        39.377        .53470E-04   -1.4206    
  10  Prefactor     .10009E-03    4.5003        .52076E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2363        7.6329        .16080E-03   -1.5208    
  13  Prefactor     26.291        23.328        .78128E-04   -1.4682    
  14  Prefactor     13.017        10.056        .11102E-03   -1.4986    
  15  Prefactor     .10000E-03    4.8055        .16575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .28827        .32118        .49204E-03   -1.5601    
  17  Prefactor     .10000E-03    20.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.739        18.646        .92492E-04   -1.4842    
  19  norm          4.6232        7.8528        .18720E-03   -1.5278    
  20  Prefactor     .10000E-03    22.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     53.794        39.069        .54679E-04   -1.4240    
  22  Prefactor     23.146        22.605        .83258E-04   -1.4745    
  23  Prefactor     .10000E-03    2.6303        .12275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    60.484        .39434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .82232        3.6837        .28223E-03   -1.5527    
  26  Normalizat    1.1572        .22534        .28259E-03   -.87935    
  27  Prefactor     .70562        .12235        .19671E-03   -1.0331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81451e-09
Minuit parameter uncertainties:
  1  5.37426
  2  2.29187e-07
  3  5.14011
  4  9.42704e-07
  5  4.4069
  6  2.75081
  7  1.20627
  8  0.000304213
  9  39.395
  10  0.00126124
  11  0.000195319
  12  7.6341
  13  23.3366
  14  10.0571
  15  1.82102e-05
  16  0.321184
  17  0.000377979
  18  18.6518
  19  7.8545
  20  0.000404866
  21  39.0872
  22  22.613
  23  1.1101e-06
  24  0.00102615
  25  3.48107
  26  0.225526
  27  0.122398
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  4.204e+00  2.751e+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:  7.056e-01  1.224e-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.157e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.05
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.71e-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) = 6039.31464384
delta logL = 0.00919716318913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6039.31183659
delta logL = 0.0120044110954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4109       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1860       1.0000          .0000       10.000    
     3 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70424       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=   6039.312     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4121        77.866        .47938E-02    .21013E-03
   2  Index         2.1859        5.9774        .14453        .72425E-04
   3  Normalizat    1.1622        .13368        .63776E-01    .94156E-05
   4  Prefactor     .70416        .55261E-01    .42458E-01    .93698E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.41214
  Index      = 2.18589
  Normalizat = 1.1622
  Prefactor  = 0.704162
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.312     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4121        3.1775        .10329E-03   -1.5288    
   2  Index         2.1859        .54377        .74216E-02   -.59780    
   3  Normalizat    1.1622        .21270        .28210E-03   -.87779    
   4  Prefactor     .70416        .11759        .19690E-03   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45954e-09
Minuit parameter uncertainties:
  1  3.17763
  2  0.545348
  3  0.21286
  4  0.117633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263973': 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) = 6039.31183624
delta logL = 0.0120047554683

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  4.412e+00  3.178e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.186e+00  5.453e-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:  7.042e-01  1.176e-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.162e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 34.316 8.623
Photon Index (Free Index): 2.19 +/- 0.55
Photon Flux (Free Index): 6.08e-08 +/- 5.09e-08
Energy Flux (Free Index): 2.80e-05 +/- 2.34e-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/263973/cmap_HighResolution_375148801_375408001_4FGL_J0217.2+0837_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='2.80e-05', photon_flux_error='4.30e-08', dlogl='1.20e-02', energy_flux='2.61e-05', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-08-15 15:26:25.624479', photon_index_error2='0.55', photon_index2='2.19', ts='4.05', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.16', time_epoch_completed='1629066385.62', return_code='0', job_id='263973', GAL2='0.70', EG2='1.16', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='5.09e-08', ts2='4.07', photon_index='2.27' WHERE bin_id='524' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:26:25 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin524 34.3163 8.6234 375148801 375408001 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 :                                   689.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            941 sec.

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

