/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 119 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 = 7470
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0217.2+0837_daily_bin440
RA = 34.3163, Dec = 8.6234
tmin = 353376001, tmax = 353635201
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='263846', job_status='RUN', time_executed='2021-08-15 15:13:21.993606', time_epoch_executed='1629065601.99' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263846/ft1_4FGL_J0217.2+0837_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263846/ft2_4FGL_J0217.2+0837_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263846/ft1_4FGL_J0217.2+0837_daily_bin440.fits outfile=/scratch/kocevski/263846/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin440.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=353376001.0 tmax=353635201.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 6.03
user 3.23
sys 1.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263846/ft1_filtered_4FGL_J0217.2+0837_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/263846/ft2_4FGL_J0217.2+0837_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/263846/ltcube_353376001_353635201_4FGL_J0217.2+0837_daily_bin440.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/263846/ft2_4FGL_J0217.2+0837_daily_bin440.fits
.....................!
real 13.75
user 11.86
sys 1.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263846/ft1_filtered_4FGL_J0217.2+0837_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/263846/ft2_4FGL_J0217.2+0837_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/263846/ltcube_353376001_353635201_4FGL_J0217.2+0837_daily_bin440.fits outfile=/scratch/kocevski/263846/expmap_353376001_353635201_4FGL_J0217.2+0837_daily_bin440.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/263846/ltcube_353376001_353635201_4FGL_J0217.2+0837_daily_bin440.fits
.....................!
real 193.07
user 186.31
sys 6.12

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/263846/ft1_filtered_4FGL_J0217.2+0837_daily_bin440.fits scfile=/scratch/kocevski/263846/ft2_4FGL_J0217.2+0837_daily_bin440.fits outfile=/scratch/kocevski/263846/cmap_353376001_353635201_4FGL_J0217.2+0837_daily_bin440.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.82
user 0.39
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263846/ft1_filtered_4FGL_J0217.2+0837_daily_bin440.fits scfile=/scratch/kocevski/263846/ft2_4FGL_J0217.2+0837_daily_bin440.fits outfile=/scratch/kocevski/263846/cmap_HighResolution_353376001_353635201_4FGL_J0217.2+0837_daily_bin440.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.85
user 0.38
sys 1.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.089       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1447       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47664       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5412       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2081       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0581       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.847       1.0000         .10000E-03   10000.    
    16 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.435       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10358E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15594E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91053       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=   6266.491     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3358 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8021       -.85233E-08** at limit **
   2  norm          14.094        14.031       -.10281E-06   -.39502E-05
   3  Prefactor     4.1442        8.7034        .19962E-05   -.14052E-04
   4  Prefactor     .47622        1.6730        .22498E-06    .86854E-05
   5  norm          .10000E-03    4.1086        .20896E-06** at limit **
   6  Prefactor     3.5408        2.4354        .15547E-07   -.20769E-04
   7  norm          3.2080        1.2488        .40644E-07   -.91407E-05
   8  Prefactor     21.621        25.400       -.11525E-06   -.22026E-05
   9  Prefactor     .10000E-03    20.006        .37406E-06** at limit **
  10  Prefactor     .10000E-03    3.7320        .89303E-07** at limit **
  11  Prefactor     .10000E-03    30.083        .89604E-08** at limit **
  12  Prefactor     7.0591        7.9680       -.17322E-07   -.30088E-04
  13  Prefactor     .10000E-03    11.985        .38669E-06** at limit **
  14  Prefactor     17.136        13.352       -.93088E-07   -.17331E-05
  15  Prefactor     11.841        11.776       -.49008E-06   -.15601E-04
  16  norm          .10000E-03    .16226        .33986E-07** at limit **
  17  Prefactor     18.379        55.895        .82527E-05   -.49587E-05
  18  Prefactor     .10000E-03    14.795       -.57942E-06** at limit **
  19  norm          .10000E-03    6.6500       -.18576E-06** at limit **
  20  Prefactor     .10000E-03    8.1705       -.14604E-06** at limit **
  21  Prefactor     .10000E-03    56.683       -.23609E-05** at limit **
  22  Prefactor     .10000E-03    6.9283        .44576E-07** at limit **
  23  Prefactor     .10000E-03    6.1034       -.89956E-07** at limit **
  24  norm          .10000E-03    2.8929       -.52861E-08** at limit **
  25  norm          .10000E-03    1.5299       -.92259E-08** at limit **
  26  Normalizat    1.0033        .20186       -.11628E-05    .54714E-05
  27  Prefactor     .91047        .11096        .15593E-06   -.20284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.0944
  Prefactor  = 4.14421
  Prefactor  = 0.476225
  norm       = 0.0001
  Prefactor  = 3.54082
  norm       = 3.20796
  Prefactor  = 21.6214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.05914
  Prefactor  = 0.0001
  Prefactor  = 17.1363
  Prefactor  = 11.8409
  norm       = 0.0001
  Prefactor  = 18.379
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.00326
  Prefactor  = 0.910465
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.491     FROM HESSE     STATUS=OK           486 CALLS     3844 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8080        .10377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.094        14.032        .10671E-03   -1.4957    
   3  Prefactor     4.1442        8.6954        .98994E-03   -1.5301    
   4  Prefactor     .47622        1.6303        .18342E-03   -1.5570    
   5  norm          .10000E-03    4.1960        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5408        2.4291        .97733E-04   -1.5332    
   7  norm          3.2080        1.2539        .52267E-04   -1.5350    
   8  Prefactor     21.621        25.397        .86150E-04   -1.4778    
   9  Prefactor     .10000E-03    20.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7576        .14925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0591        7.9616        .75499E-03   -1.5177    
  13  Prefactor     .10000E-03    12.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.136        13.349        .96725E-04   -1.4880    
  15  Prefactor     11.841        11.417        .11639E-03   -1.5020    
  16  norm          .10000E-03    .17262        .60176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.379        55.962        .93282E-04   -1.4850    
  18  Prefactor     .10000E-03    14.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.6734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.8952        .13150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5507        .95604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0033        .22742        .30671E-03   -.92921    
  27  Prefactor     .91047        .12663        .18378E-03   -.95776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08154e-10
Minuit parameter uncertainties:
  1  5.94316e-07
  2  14.0355
  3  8.69803
  4  1.63044
  5  2.98242e-06
  6  2.42914
  7  1.25392
  8  25.4101
  9  6.97763e-07
  10  3.80282e-07
  11  4.66338e-07
  12  7.96284
  13  2.82369e-06
  14  13.3518
  15  11.419
  16  3.10597e-07
  17  56.1228
  18  1.53151e-05
  19  2.39348e-05
  20  1.65412e-06
  21  0.000462443
  22  8.27626e-07
  23  5.39346e-06
  24  1.71823e-07
  25  1.08055e-07
  26  0.227641
  27  0.126669
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  3.541e+00  2.429e+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.105e-01  1.267e-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.003e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.26
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.51e-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) = 6266.48150045
delta logL = 0.00913934762866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6266.4785165
delta logL = 0.012123292312

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7449       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1879       1.0000          .0000       10.000    
     3 'Normalizat'    1.0065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90954       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=   6266.479     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7455        63.094        .52161E-02    .12402E-03
   2  Index         2.1881        6.0824        .19538        .58546E-04
   3  Normalizat    1.0064        .10168        .69243E-01    .15248E-04
   4  Prefactor     .90957        .47882E-01    .45127E-01   -.31163E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.74547
  Index      = 2.18807
  Normalizat = 1.00641
  Prefactor  = 0.909569
 **********
 **   18 **HESSE 
 **********

 FCN=   6266.479     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7455        2.8681        .10125E-03   -1.5321    
   2  Index         2.1881        .52486        .67851E-02   -.59727    
   3  Normalizat    1.0064        .21637        .30631E-03   -.92816    
   4  Prefactor     .90957        .12425        .18387E-03   -.95808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80506e-12
Minuit parameter uncertainties:
  1  2.86819
  2  0.526282
  3  0.216559
  4  0.12429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263846': 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) = 6266.47851637
delta logL = 0.0121234273583

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  3.745e+00  2.868e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.188e+00  5.263e-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:  9.096e-01  1.243e-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.006e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 34.316 8.623
Photon Index (Free Index): 2.19 +/- 0.53
Photon Flux (Free Index): 5.18e-08 +/- 4.21e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.09e-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/263846/cmap_HighResolution_353376001_353635201_4FGL_J0217.2+0837_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='2.38e-05', photon_flux_error='3.79e-08', dlogl='1.21e-02', energy_flux='2.20e-05', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-08-15 15:25:17.941047', photon_index_error2='0.53', photon_index2='2.19', ts='4.26', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='1.00', time_epoch_completed='1629066317.94', return_code='0', job_id='263846', GAL2='0.91', EG2='1.01', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.21e-08', ts2='4.28', photon_index='2.27' WHERE bin_id='440' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:25:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 263846: <4FGL_J0217.2+0837_daily_bin440> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin440> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 15:10:36 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:10:49 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:10:49 2021
Terminated at Sun Aug 15 15:25:18 2021
Results reported at Sun Aug 15 15:25:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin440 34.3163 8.6234 353376001 353635201 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 :                                   729.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            882 sec.

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

