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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin618
RA = 34.3163, Dec = 8.6234
tmin = 399513601, tmax = 399772801
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='265248', job_status='RUN', time_executed='2021-08-15 15:20:46.627426', time_epoch_executed='1629066046.63' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265248/ft1_4FGL_J0217.2+0837_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265248/ft2_4FGL_J0217.2+0837_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265248/ft1_4FGL_J0217.2+0837_daily_bin618.fits outfile=/scratch/kocevski/265248/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin618.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=399513601.0 tmax=399772801.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 10.68
user 4.94
sys 5.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265248/ft2_4FGL_J0217.2+0837_daily_bin618.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/265248/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin618.fits evtable="EVENTS" outfile="/scratch/kocevski/265248/ft1_filtered_4FGL_J0217.2+0837_daily_bin618.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 6.00
user 0.35
sys 5.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265248/ft1_filtered_4FGL_J0217.2+0837_daily_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/265248/ft2_4FGL_J0217.2+0837_daily_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/265248/ltcube_399513601_399772801_4FGL_J0217.2+0837_daily_bin618.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/265248/ft2_4FGL_J0217.2+0837_daily_bin618.fits
.....................!
real 19.76
user 12.70
sys 6.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265248/ft1_filtered_4FGL_J0217.2+0837_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/265248/ft2_4FGL_J0217.2+0837_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/265248/ltcube_399513601_399772801_4FGL_J0217.2+0837_daily_bin618.fits outfile=/scratch/kocevski/265248/expmap_399513601_399772801_4FGL_J0217.2+0837_daily_bin618.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/265248/ltcube_399513601_399772801_4FGL_J0217.2+0837_daily_bin618.fits
.....................!
real 198.54
user 185.59
sys 11.88

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/265248/ft1_filtered_4FGL_J0217.2+0837_daily_bin618.fits scfile=/scratch/kocevski/265248/ft2_4FGL_J0217.2+0837_daily_bin618.fits outfile=/scratch/kocevski/265248/cmap_399513601_399772801_4FGL_J0217.2+0837_daily_bin618.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 5.96
user 0.37
sys 5.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265248/ft1_filtered_4FGL_J0217.2+0837_daily_bin618.fits scfile=/scratch/kocevski/265248/ft2_4FGL_J0217.2+0837_daily_bin618.fits outfile=/scratch/kocevski/265248/cmap_HighResolution_399513601_399772801_4FGL_J0217.2+0837_daily_bin618.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 5.98
user 0.42
sys 5.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8222       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11207E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.6957       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1426       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11725E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8951       1.0000         .10000E-03   10000.    
    16 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.802       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.5242       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1749       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82441       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=   3278.455     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3280 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8255        13.648        .23913E-05   -.23554E-03
   2  norm          .10001E-03    64.886        .22224E-05** at limit **
   3  Prefactor     .10000E-03    12.873        .66286E-06** at limit **
   4  Prefactor     .10000E-03    4.0485        .87008E-06** at limit **
   5  norm          6.6960        7.7232        .14833E-06   -.99769E-04
   6  Prefactor     1.1407        3.1439        .28475E-06   -.51816E-04
   7  norm          .10000E-03    .45053       -.39142E-08** at limit **
   8  Prefactor     .10000E-03    97.598       -.14261E-05** at limit **
   9  Prefactor     .10000E-03    58.141        .83521E-06** at limit **
  10  Prefactor     .10000E-03    5.7659       -.37680E-07** at limit **
  11  Prefactor     .10000E-03    33.823       -.13628E-05** at limit **
  12  Prefactor     .10000E-03    7.7062       -.22688E-06** at limit **
  13  Prefactor     .10000E-03    96.269       -.10069E-05** at limit **
  14  Prefactor     .10000E-03    9.4468       -.23948E-06** at limit **
  15  Prefactor     7.9008        12.006        .29803E-05   -.34893E-04
  16  norm          .10000E-03    .38727       -.35633E-06** at limit **
  17  Prefactor     .10000E-03    23.468        .52858E-06** at limit **
  18  Prefactor     .10000E-03    21.305        .54816E-06** at limit **
  19  norm          19.631        16.616       -.75198E-07    .16502E-04
  20  Prefactor     .10000E-03    15.636       -.54837E-06** at limit **
  21  Prefactor     .10000E-03    17.130       -.48292E-06** at limit **
  22  Prefactor     23.806        32.285        .26652E-07    .50014E-04
  23  Prefactor     .10000E-03    3.1870        .16645E-07** at limit **
  24  norm          .10000E-03    5.7087       -.36508E-08** at limit **
  25  norm          8.5249        6.3695        .55094E-07   -.49727E-05
  26  Normalizat    1.1747        .26483       -.90021E-06   -.43674E-04
  27  Prefactor     .82443        .14817       -.15771E-06   -.44548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82552
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 6.69596
  Prefactor  = 1.14065
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.90081
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 19.6307
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 23.8057
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.52485
  Normalizat = 1.17467
  Prefactor  = 0.82443
 **********
 **   18 **HESSE 
 **********

 FCN=   3278.455     FROM HESSE     STATUS=OK           480 CALLS     3760 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8255        13.530        .67474E-03   -1.5114    
   2  norm          .10001E-03    67.304        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4144        .21571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6960        7.6782        .15507E-03   -1.5190    
   6  Prefactor     1.1407        3.0638        .15920E-03   -1.5494    
   7  norm          .10000E-03    .45641        .37512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    99.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7896        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7777        .15531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    98.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4909        .17196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9008        12.257        .71351E-03   -1.5146    
  16  norm          .10000E-03    .71854        .67314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.631        16.632        .90396E-04   -1.4822    
  20  Prefactor     .10000E-03    15.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.806        32.303        .82105E-04   -1.4732    
  23  Prefactor     .10000E-03    3.1914        .99831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.7108        .13362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.5249        6.3891        .11957E-03   -1.5124    
  26  Normalizat    1.1747        .29933        .28747E-03   -.87389    
  27  Prefactor     .82443        .16824        .18673E-03   -.98834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72873e-10
Minuit parameter uncertainties:
  1  13.5352
  2  0.00119944
  3  0.000147656
  4  0.000267656
  5  7.67929
  6  3.06423
  7  5.70793e-08
  8  0.00102401
  9  0.000564485
  10  3.75813e-06
  11  0.000792969
  12  3.98947e-05
  13  0.000681901
  14  6.51146e-05
  15  12.2608
  16  9.00667e-06
  17  0.000277894
  18  0.000242926
  19  16.6363
  20  0.000193845
  21  0.000187456
  22  32.3269
  23  2.39784e-06
  24  1.09005e-06
  25  6.38965
  26  0.299769
  27  0.16835
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.141e+00  3.064e+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.244e-01  1.683e-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.175e+00  2.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/265248/likelihoodResults_399513601_399772801_4FGL_J0217.2+0837_daily_bin618.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) = 3278.31198324
delta logL = 0.142982364348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3278.30995343
delta logL = 0.145012173572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4726       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5693       1.0000          .0000       10.000    
     3 'Normalizat'    1.1874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81904       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=   3278.310     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4713        3.3340        .88507E-02    .10203E-03
   2  Index         1.5673        .91584        .29064       -.71111E-05
   3  Normalizat    1.1873        .25797        .64689E-01    .62673E-04
   4  Prefactor     .81915        .14352        .43965E-01   -.28160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.47132
  Index      = 1.56725
  Normalizat = 1.18728
  Prefactor  = 0.819149
 **********
 **   18 **HESSE 
 **********

 FCN=   3278.310     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4713        2.8973        .12716E-03   -1.5465    
   2  Index         1.5673        1.0106        .11752E-01   -.75673    
   3  Normalizat    1.1873        .29086        .28615E-03   -.86997    
   4  Prefactor     .81915        .16231        .18719E-03   -.99026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34531e-11
Minuit parameter uncertainties:
  1  2.89755
  2  1.02404
  3  0.291261
  4  0.162405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265248': 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) = 3278.30995108
delta logL = 0.145014526837

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.471e+00  2.898e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.567e+00  1.024e+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:  8.191e-01  1.624e-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.187e+00  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-08-15 15:31:26.384959', job_id='265248', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.17', time_epoch_completed='1629066686.39', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.45e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='618' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:31:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 265248: <4FGL_J0217.2+0837_daily_bin618> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin618> 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) <bullet0008>, 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:31:28 2021
Results reported at Sun Aug 15 15:31:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin618 34.3163 8.6234 399513601 399772801 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 :                                   720.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            954 sec.

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

