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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin765
RA = 34.3163, Dec = 8.6234
tmin = 437616001, tmax = 437875201
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='266664', job_status='RUN', time_executed='2021-08-15 15:22:14.828185', time_epoch_executed='1629066134.83' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266664/ft1_4FGL_J0217.2+0837_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266664/ft2_4FGL_J0217.2+0837_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266664/ft1_4FGL_J0217.2+0837_daily_bin765.fits outfile=/scratch/kocevski/266664/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin765.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=437616001.0 tmax=437875201.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.30
user 5.29
sys 4.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266664/ft1_filtered_4FGL_J0217.2+0837_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/266664/ft2_4FGL_J0217.2+0837_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/266664/ltcube_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.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/266664/ft2_4FGL_J0217.2+0837_daily_bin765.fits
.....................!
real 19.27
user 13.57
sys 5.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266664/ft1_filtered_4FGL_J0217.2+0837_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/266664/ft2_4FGL_J0217.2+0837_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/266664/ltcube_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.fits outfile=/scratch/kocevski/266664/expmap_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.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/266664/ltcube_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.fits
.....................!
real 199.29
user 186.45
sys 11.94

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/266664/ft1_filtered_4FGL_J0217.2+0837_daily_bin765.fits scfile=/scratch/kocevski/266664/ft2_4FGL_J0217.2+0837_daily_bin765.fits outfile=/scratch/kocevski/266664/cmap_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.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.63
user 0.39
sys 5.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266664/ft1_filtered_4FGL_J0217.2+0837_daily_bin765.fits scfile=/scratch/kocevski/266664/ft2_4FGL_J0217.2+0837_daily_bin765.fits outfile=/scratch/kocevski/266664/cmap_HighResolution_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.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.68
user 0.37
sys 5.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9151       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2570       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5481       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    118.97       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43239E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .56880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0215       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.230       1.0000         .10000E-03   10000.    
    16 'norm      '    .42013       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.4507       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13551E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.904       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9391       1.0000         .10000E-03   10000.    
    24 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .61368       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0087       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=   6008.303     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3337 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9152        4.0225       -.97352E-08   -.12806E-03
   2  norm          .10000E-03    4.8644        .38556E-07** at limit **
   3  Prefactor     3.2572        5.4773        .47902E-06    .10067E-03
   4  Prefactor     .10000E-03    1.0229       -.72576E-07** at limit **
   5  norm          .10000E-03    2.9426        .67817E-07** at limit **
   6  Prefactor     3.5485        2.6240       -.14073E-06   -.68294E-04
   7  norm          .10000E-03    .20681        .86926E-08** at limit **
   8  Prefactor     8.6380        23.336        .44615E-05    .13205E-03
   9  Prefactor     118.93        55.240       -.41500E-06   -.21428E-03
  10  Prefactor     .10001E-03    7.9006       -.30576E-05** at limit **
  11  Prefactor     .10000E-03    33.037        .49194E-06** at limit **
  12  Prefactor     .61685        9.4853        .17130E-05    .10781E-03
  13  Prefactor     28.480        20.971       -.94380E-06   -.14532E-03
  14  Prefactor     1.0494        9.7792        .63876E-06   -.17766E-04
  15  Prefactor     14.229        10.886       -.20361E-06   -.11302E-03
  16  norm          .41972        .38407       -.10611E-06   -.74250E-03
  17  Prefactor     .10000E-03    19.109        .90401E-07** at limit **
  18  Prefactor     .10000E-03    14.913        .10460E-06** at limit **
  19  norm          9.4498        11.714       -.49593E-06   -.14363E-03
  20  Prefactor     .10000E-03    39.894       -.15312E-05** at limit **
  21  Prefactor     .10000E-03    19.029        .14036E-06** at limit **
  22  Prefactor     28.903        23.991       -.11922E-06   -.28808E-04
  23  Prefactor     2.9394        4.1494        .27851E-06    .26505E-04
  24  norm          .10000E-03    11.354        .33229E-06** at limit **
  25  norm          .10000E-03    2.4651        .17754E-06** at limit **
  26  Normalizat    .61354        .18449       -.17946E-05   -.14967E-03
  27  Prefactor     1.0088        .11219       -.33334E-07   -.29073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9152
  norm       = 0.0001
  Prefactor  = 3.25725
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.54848
  norm       = 0.0001
  Prefactor  = 8.638
  Prefactor  = 118.935
  Prefactor  = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 0.616851
  Prefactor  = 28.4797
  Prefactor  = 1.04938
  Prefactor  = 14.2288
  norm       = 0.419718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.44976
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.9035
  Prefactor  = 2.93935
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.61354
  Prefactor  = 1.00882
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.303     FROM HESSE     STATUS=OK           490 CALLS     3827 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9152        4.0269        .12442E-03   -1.5221    
   2  norm          .10000E-03    4.8661        .16697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2572        5.4780        .22441E-03   -1.5347    
   4  Prefactor     .10000E-03    1.0380        .76489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9746        .12978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5485        2.6149        .10087E-03   -1.5331    
   7  norm          .10000E-03    .20685        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6380        23.912        .68196E-03   -1.5120    
   9  Prefactor     118.93        55.398        .18447E-03   -1.3522    
  10  Prefactor     .10001E-03    11.372        .31899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61685        30.299        .40758E-02   -1.5551    
  13  Prefactor     28.480        20.968        .75079E-04   -1.4640    
  14  Prefactor     1.0494        24.177        .42969E-02   -1.5503    
  15  Prefactor     14.229        10.740        .10618E-03   -1.4953    
  16  norm          .41972        .38530        .43231E-04   -1.5578    
  17  Prefactor     .10000E-03    19.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.4498        11.679        .13036E-03   -1.5093    
  20  Prefactor     .10000E-03    40.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.903        23.993        .74520E-04   -1.4632    
  23  Prefactor     2.9394        4.1454        .18224E-03   -1.5365    
  24  norm          .10000E-03    11.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.5151        .11886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .61354        .20356        .35274E-03   -1.0741    
  27  Prefactor     1.0088        .12619        .16931E-03   -.92436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00126e-08
Minuit parameter uncertainties:
  1  4.0271
  2  3.32638e-06
  3  5.47882
  4  2.23659e-07
  5  6.85866e-06
  6  2.61501
  7  1.71678e-07
  8  23.9384
  9  55.4218
  10  0.000811834
  11  0.000286588
  12  8.65025
  13  20.9738
  14  10.078
  15  10.7416
  16  0.385303
  17  2.05294e-05
  18  2.17333e-05
  19  11.6815
  20  0.000325446
  21  3.20151e-05
  22  24.0014
  23  4.14585
  24  6.09056e-05
  25  9.37461e-06
  26  0.203806
  27  0.126229
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  3.548e+00  2.615e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.009e+00  1.262e-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:  6.135e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/266664/likelihoodResults_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.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) = 6008.17616572
delta logL = 0.126830874963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6008.16872181
delta logL = 0.134274781196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6147       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6033       1.0000          .0000       10.000    
     3 'Normalizat'    .59681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0148       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=   6008.169     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6142        33.464        .63063E-02    .78178E-03
   2  Index         2.6040        3.1466        .16563        .15121E-03
   3  Normalizat    .59662        .71754E-01    .80671E-01    .19574E-03
   4  Prefactor     1.0149        .38375E-01    .42702E-01   -.38132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61422
  Index      = 2.60403
  Normalizat = 0.596625
  Prefactor  = 1.01488
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.169     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6142        3.0905        .81879E-04   -1.5385    
   2  Index         2.6040        .76000        .56402E-02   -.49974    
   3  Normalizat    .59662        .20400        .35729E-03   -1.0813    
   4  Prefactor     1.0149        .12249        .16884E-03   -.92235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49911e-10
Minuit parameter uncertainties:
  1  3.09067
  2  0.763854
  3  0.20426
  4  0.12252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266664': 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) = 6008.16872057
delta logL = 0.134276025152

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  2.614e+00  3.091e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.604e+00  7.639e-01  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.015e+00  1.225e-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:  5.966e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.68
Ra Dec: 34.316 8.623
Photon Index (Free Index): 2.60 +/- 0.76
Photon Flux (Free Index): 7.06e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.43e-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/266664/cmap_HighResolution_437616001_437875201_4FGL_J0217.2+0837_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.84e-05', photon_flux_error='4.08e-08', dlogl='1.34e-01', energy_flux='2.21e-05', photon_flux2='7.06e-08', job_status='DONE', time_completed='2021-08-15 15:36:05.660701', photon_index_error2='0.76', photon_index2='2.60', ts='3.40', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.43e-05', EG='0.61', time_epoch_completed='1629066965.66', return_code='0', job_id='266664', GAL2='1.01', EG2='0.60', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='5.39e-08', ts2='3.68', photon_index='2.27' WHERE bin_id='765' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:36:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 266664: <4FGL_J0217.2+0837_daily_bin765> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 15:20:19 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:20:27 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:20:27 2021
Terminated at Sun Aug 15 15:36:07 2021
Results reported at Sun Aug 15 15:36:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin765 34.3163 8.6234 437616001 437875201 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 :                                   906.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            948 sec.

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

