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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin632
RA = 34.3163, Dec = 8.6234
tmin = 403142401, tmax = 403401601
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='265268', job_status='RUN', time_executed='2021-08-15 15:19:11.658318', time_epoch_executed='1629065951.66' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265268/ft1_4FGL_J0217.2+0837_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265268/ft2_4FGL_J0217.2+0837_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265268/ft1_4FGL_J0217.2+0837_daily_bin632.fits outfile=/scratch/kocevski/265268/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin632.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=403142401.0 tmax=403401601.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.39
user 3.32
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265268/ft1_filtered_4FGL_J0217.2+0837_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/265268/ft2_4FGL_J0217.2+0837_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/265268/ltcube_403142401_403401601_4FGL_J0217.2+0837_daily_bin632.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/265268/ft2_4FGL_J0217.2+0837_daily_bin632.fits
.....................!
real 13.26
user 11.92
sys 1.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265268/ft1_filtered_4FGL_J0217.2+0837_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/265268/ft2_4FGL_J0217.2+0837_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/265268/ltcube_403142401_403401601_4FGL_J0217.2+0837_daily_bin632.fits outfile=/scratch/kocevski/265268/expmap_403142401_403401601_4FGL_J0217.2+0837_daily_bin632.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/265268/ltcube_403142401_403401601_4FGL_J0217.2+0837_daily_bin632.fits
.....................!
real 191.27
user 185.35
sys 4.91

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/265268/ft1_filtered_4FGL_J0217.2+0837_daily_bin632.fits scfile=/scratch/kocevski/265268/ft2_4FGL_J0217.2+0837_daily_bin632.fits outfile=/scratch/kocevski/265268/cmap_403142401_403401601_4FGL_J0217.2+0837_daily_bin632.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.30
user 0.39
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265268/ft1_filtered_4FGL_J0217.2+0837_daily_bin632.fits scfile=/scratch/kocevski/265268/ft2_4FGL_J0217.2+0837_daily_bin632.fits outfile=/scratch/kocevski/265268/cmap_HighResolution_403142401_403401601_4FGL_J0217.2+0837_daily_bin632.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.26
user 0.38
sys 0.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9021       1.0000         .10000E-03   10000.    
     2 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9478       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3177       1.0000         .10000E-03   10000.    
     7 'norm      '    .37802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.890       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.646       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.340       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.813       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.871       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   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      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .65786       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98557       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=   5858.128     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3304 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9019        4.1413        .77285E-06   -.25837E-03
   2  norm          .10000E-03    15.704        .37863E-05** at limit **
   3  Prefactor     4.0077        3.7410        .27368E-06    .65482E-04
   4  Prefactor     6.9477        2.9988       -.20903E-06   -.20006E-02
   5  norm          .10000E-03    3.5971        .20410E-07** at limit **
   6  Prefactor     4.3164        2.7094       -.26267E-06   -.70180E-04
   7  norm          .37799        .36164        .95769E-08    .34552E-03
   8  Prefactor     23.298        24.345        .41633E-05   -.16385E-03
   9  Prefactor     53.890        35.291       -.18808E-06    .48005E-04
  10  Prefactor     1.1162        5.9372       -.27793E-05   -.93691E-03
  11  Prefactor     .10000E-03    175.77       -.36499E-05** at limit **
  12  Prefactor     .10000E-03    6.2659        .12578E-06** at limit **
  13  Prefactor     .10000E-03    7.4478        .65221E-08** at limit **
  14  Prefactor     10.640        14.750        .41279E-05   -.15843E-03
  15  Prefactor     .10000E-03    16.831       -.46168E-05** at limit **
  16  norm          1.1778        .58029       -.46547E-07    .86429E-03
  17  Prefactor     31.336        67.962       -.13206E-05    .89843E-04
  18  Prefactor     .10000E-03    19.586        .90201E-06** at limit **
  19  norm          10.177        14.843       -.29680E-05    .67121E-04
  20  Prefactor     29.810        20.186        .25495E-05   -.76440E-04
  21  Prefactor     30.867        56.438       -.21652E-05    .10647E-03
  22  Prefactor     .10000E-03    9.7514       -.21927E-06** at limit **
  23  Prefactor     .10000E-03    2.5068        .27926E-07** at limit **
  24  norm          .10000E-03    3.9744       -.11325E-07** at limit **
  25  norm          .10000E-03    2.8303        .15116E-08** at limit **
  26  Normalizat    .65799        .19056       -.14154E-05    .46078E-04
  27  Prefactor     .98550        .11197        .46523E-06    .38241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90186
  norm       = 0.0001
  Prefactor  = 4.00773
  Prefactor  = 6.94773
  norm       = 0.0001
  Prefactor  = 4.31638
  norm       = 0.377989
  Prefactor  = 23.2979
  Prefactor  = 53.8897
  Prefactor  = 1.11622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6405
  Prefactor  = 0.000100001
  norm       = 1.17784
  Prefactor  = 31.3364
  Prefactor  = 0.0001
  norm       = 10.1775
  Prefactor  = 29.8097
  Prefactor  = 30.8669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.65799
  Prefactor  = 0.985499
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.128     FROM HESSE     STATUS=OK           484 CALLS     3788 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9019        4.1169        .15467E-03   -1.5313    
   2  norm          .10000E-03    15.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0077        3.7482        .13931E-03   -1.5308    
   4  Prefactor     6.9477        3.0471        .42249E-03   -1.5181    
   5  norm          .10000E-03    3.6511        .14165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3164        2.7002        .93128E-04   -1.5292    
   7  norm          .37799        .38484        .43835E-03   -1.5585    
   8  Prefactor     23.298        23.964        .82972E-04   -1.4742    
   9  Prefactor     53.890        35.257        .54638E-04   -1.4238    
  10  Prefactor     1.1162        7.1958        .39426E-03   -1.5497    
  11  Prefactor     .10000E-03    176.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.640        14.451        .12280E-03   -1.5055    
  15  Prefactor     .10000E-03    16.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1778        .57782        .37620E-04   -1.5491    
  17  Prefactor     31.336        67.459        .71573E-04   -1.4588    
  18  Prefactor     .10000E-03    19.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.177        14.706        .12560E-03   -1.5070    
  20  Prefactor     29.810        19.975        .73378E-04   -1.4615    
  21  Prefactor     30.867        56.065        .72113E-04   -1.4596    
  22  Prefactor     .10000E-03    9.7552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5178        .11833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.9798        .14902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.8811        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .65799        .20944        .34643E-03   -1.0558    
  27  Prefactor     .98550        .12513        .17352E-03   -.93214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50007e-09
Minuit parameter uncertainties:
  1  4.11715
  2  0.000159163
  3  3.7484
  4  3.04719
  5  4.21666e-06
  6  2.70032
  7  0.384845
  8  23.9743
  9  35.2711
  10  5.66893
  11  0.000150907
  12  3.63003e-05
  13  2.82236e-05
  14  14.4553
  15  0.000248933
  16  0.577822
  17  67.6234
  18  7.98678e-05
  19  14.7112
  20  19.98
  21  56.1607
  22  9.65786e-07
  23  5.05259e-07
  24  1.30116e-07
  25  1.19321e-06
  26  0.209698
  27  0.125168
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  4.316e+00  2.700e+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.855e-01  1.252e-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.580e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.20
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.75e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.68e-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) = 5858.05073973
delta logL = 0.0769252039354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5858.04788448
delta logL = 0.0797804498088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6691       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5156       1.0000          .0000       10.000    
     3 'Normalizat'    .64022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99053       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=   5858.048     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      268 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6688        41.207        .52717E-02    .15770E-03
   2  Index         2.5155        6.2548        .12175        .11821E-03
   3  Normalizat    .64022        .11844        .79181E-01    .26108E-04
   4  Prefactor     .99056        .49455E-01    .46149E-01   -.74041E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66884
  Index      = 2.51548
  Normalizat = 0.640219
  Prefactor  = 0.990559
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.048     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6688        3.0867        .79594E-04   -1.5325    
   2  Index         2.5155        .66665        .61543E-02   -.52003    
   3  Normalizat    .64022        .20864        .35063E-03   -1.0630    
   4  Prefactor     .99056        .12349        .17308E-03   -.93045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33673e-09
Minuit parameter uncertainties:
  1  3.08685
  2  0.6693
  3  0.208897
  4  0.123528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265268': 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) = 5858.04788435
delta logL = 0.0797805845104

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  3.669e+00  3.087e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.515e+00  6.693e-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.906e-01  1.235e-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.402e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.37
Ra Dec: 34.316 8.623
Photon Index (Free Index): 2.52 +/- 0.67
Photon Flux (Free Index): 8.53e-08 +/- 6.45e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.49e-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/265268/cmap_HighResolution_403142401_403401601_4FGL_J0217.2+0837_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.75e-08', energy_flux2='2.43e-05', photon_flux_error='4.22e-08', dlogl='7.98e-02', energy_flux='2.68e-05', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-08-15 15:30:35.853361', photon_index_error2='0.67', photon_index2='2.52', ts='7.20', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.66', time_epoch_completed='1629066635.85', return_code='0', job_id='265268', GAL2='0.99', EG2='0.64', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='6.45e-08', ts2='7.37', photon_index='2.27' WHERE bin_id='632' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:30:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 265268: <4FGL_J0217.2+0837_daily_bin632> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin632 34.3163 8.6234 403142401 403401601 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            900 sec.

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

