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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin692
RA = 34.3163, Dec = 8.6234
tmin = 418694401, tmax = 418953601
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='265355', job_status='RUN', time_executed='2021-08-15 15:20:29.492073', time_epoch_executed='1629066029.49' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265355/ft1_4FGL_J0217.2+0837_daily_bin692.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265355/ft2_4FGL_J0217.2+0837_daily_bin692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265355/ft1_4FGL_J0217.2+0837_daily_bin692.fits outfile=/scratch/kocevski/265355/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin692.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=418694401.0 tmax=418953601.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.83
user 4.01
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265355/ft2_4FGL_J0217.2+0837_daily_bin692.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/265355/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin692.fits evtable="EVENTS" outfile="/scratch/kocevski/265355/ft1_filtered_4FGL_J0217.2+0837_daily_bin692.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.01
user 0.29
sys 0.67

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265355/ft1_filtered_4FGL_J0217.2+0837_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/265355/ft2_4FGL_J0217.2+0837_daily_bin692.fits sctable="SC_DATA" expcube=/scratch/kocevski/265355/ltcube_418694401_418953601_4FGL_J0217.2+0837_daily_bin692.fits outfile=/scratch/kocevski/265355/expmap_418694401_418953601_4FGL_J0217.2+0837_daily_bin692.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/265355/ltcube_418694401_418953601_4FGL_J0217.2+0837_daily_bin692.fits
.....................!
real 157.74
user 152.07
sys 5.16

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/265355/ft1_filtered_4FGL_J0217.2+0837_daily_bin692.fits scfile=/scratch/kocevski/265355/ft2_4FGL_J0217.2+0837_daily_bin692.fits outfile=/scratch/kocevski/265355/cmap_418694401_418953601_4FGL_J0217.2+0837_daily_bin692.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.01
user 0.32
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265355/ft1_filtered_4FGL_J0217.2+0837_daily_bin692.fits scfile=/scratch/kocevski/265355/ft2_4FGL_J0217.2+0837_daily_bin692.fits outfile=/scratch/kocevski/265355/cmap_HighResolution_418694401_418953601_4FGL_J0217.2+0837_daily_bin692.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.00
user 0.32
sys 0.67

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8780       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8740       1.0000         .10000E-03   10000.    
     5 'norm      '    12.679       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5032       1.0000         .10000E-03   10000.    
     7 'norm      '    .27055E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.770       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 '    10.740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57181       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.437       1.0000         .10000E-03   10000.    
    19 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.690       1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.339       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-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      '    4.1925       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3783       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87003       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=   6341.485     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3370 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8795        6.5450        .44550E-08    .22564E-04
   2  norm          .10000E-03    10.435        .27255E-06** at limit **
   3  Prefactor     2.0112        6.3122       -.37192E-06    .93090E-07
   4  Prefactor     2.8750        3.9580        .25755E-05    .28105E-03
   5  norm          12.679        7.2756       -.11885E-06    .57509E-04
   6  Prefactor     1.5036        2.8923        .22107E-06    .44354E-04
   7  norm          .28620E-01    .45750        .46398E-07   -.11628E-03
   8  Prefactor     42.441        36.043       -.54531E-06   -.29837E-05
   9  Prefactor     16.809        51.615       -.90475E-05    .22333E-04
  10  Prefactor     .10000E-03    3.1542       -.26209E-07** at limit **
  11  Prefactor     .10000E-03    49.941        .17813E-05** at limit **
  12  Prefactor     10.741        12.595        .50298E-06    .14019E-03
  13  Prefactor     .10000E-03    24.188        .19439E-05** at limit **
  14  Prefactor     .57358        9.7341        .50111E-06   -.94718E-04
  15  Prefactor     .10000E-03    11.222       -.47535E-06** at limit **
  16  norm          .10067E-03    .29937       -.26820E-06** at limit **
  17  Prefactor     .10000E-03    29.702       -.36039E-05** at limit **
  18  Prefactor     24.442        20.113        .69600E-07    .54927E-05
  19  norm          .10000E-03    11.726       -.54629E-06** at limit **
  20  Prefactor     23.692        21.246       -.61284E-06    .91002E-04
  21  Prefactor     54.331        44.483        .12866E-05    .59445E-04
  22  Prefactor     .10000E-03    11.247       -.55621E-06** at limit **
  23  Prefactor     .10000E-03    1.5080       -.34894E-07** at limit **
  24  norm          .10000E-03    2.6505       -.38242E-07** at limit **
  25  norm          4.1920        3.8420        .83748E-07    .17998E-04
  26  Normalizat    1.3779        .23148       -.12904E-05    .75121E-04
  27  Prefactor     .87022        .12140        .66664E-06    .16610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.87948
  norm       = 0.0001
  Prefactor  = 2.01121
  Prefactor  = 2.87501
  norm       = 12.679
  Prefactor  = 1.50355
  norm       = 0.0286199
  Prefactor  = 42.4409
  Prefactor  = 16.8088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7409
  Prefactor  = 0.0001
  Prefactor  = 0.573583
  Prefactor  = 0.0001
  norm       = 0.000100671
  Prefactor  = 0.0001
  Prefactor  = 24.4418
  norm       = 0.0001
  Prefactor  = 23.6924
  Prefactor  = 54.3305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.19195
  Normalizat = 1.37792
  Prefactor  = 0.87022
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.485     FROM HESSE     STATUS=OK           502 CALLS     3872 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8795        6.5568        .15298E-03   -1.5183    
   2  norm          .10000E-03    10.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0112        6.2768        .29192E-03   -1.5424    
   4  Prefactor     2.8750        3.9691        .86714E-03   -1.5369    
   5  norm          12.679        7.2497        .11250E-03   -1.4996    
   6  Prefactor     1.5036        2.8380        .17215E-03   -1.5463    
   7  norm          .28620E-01    4.8269        .10238E-02   -1.5674    
   8  Prefactor     42.441        35.804        .61540E-04   -1.4404    
   9  Prefactor     16.809        51.656        .97802E-04   -1.4888    
  10  Prefactor     .10000E-03    3.1574        .13805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.741        12.552        .12225E-03   -1.5052    
  13  Prefactor     .10000E-03    24.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57358        55.395        .45869E-02   -1.5557    
  15  Prefactor     .10000E-03    11.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10067E-03    .59909        .13797E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.442        20.181        .81033E-04   -1.4719    
  19  norm          .10000E-03    11.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.692        21.357        .82299E-04   -1.4734    
  21  Prefactor     54.331        44.498        .54414E-04   -1.4232    
  22  Prefactor     .10000E-03    11.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5096        .95503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.6511        .12662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1920        3.8483        .14361E-03   -1.5298    
  26  Normalizat    1.3779        .25991        .30790E-03   -.81270    
  27  Prefactor     .87022        .13774        .20732E-03   -.97190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44304e-08
Minuit parameter uncertainties:
  1  6.55747
  2  1.16097e-05
  3  6.27889
  4  3.96951
  5  7.25019
  6  2.83825
  7  0.74212
  8  35.8225
  9  51.7934
  10  1.38924e-06
  11  4.09917e-05
  12  12.5556
  13  1.85768e-05
  14  11.2834
  15  3.67203e-05
  16  0.00126825
  17  2.51878e-05
  18  20.187
  19  4.98894e-05
  20  21.364
  21  44.5249
  22  6.94466e-06
  23  1.26036e-06
  24  1.18836e-06
  25  3.84857
  26  0.260159
  27  0.137796
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.504e+00  2.838e+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.702e-01  1.378e-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.378e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265355/likelihoodResults_418694401_418953601_4FGL_J0217.2+0837_daily_bin692.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) = 6341.450301
delta logL = 0.0351358087355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6341.44758529
delta logL = 0.0378515216744

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3300       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5611       1.0000          .0000       10.000    
     3 'Normalizat'    1.3702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87188       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=   6341.448     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3300        54.168        .95211E-02    .49539E-03
   2  Index         2.5614        6.2788        .23326        .52364E-04
   3  Normalizat    1.3701        .53281E-01    .69747E-01   -.20373E-04
   4  Prefactor     .87196        .28613E-01    .44646E-01   -.69537E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33005
  Index      = 2.56144
  Normalizat = 1.37007
  Prefactor  = 0.87196
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.448     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3300        2.7240        .14512E-03   -1.5477    
   2  Index         2.5614        1.1546        .10065E-01   -.50947    
   3  Normalizat    1.3701        .23921        .30857E-03   -.81498    
   4  Prefactor     .87196        .13089        .20711E-03   -.97128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30408e-10
Minuit parameter uncertainties:
  1  2.7243
  2  1.16846
  3  0.239403
  4  0.130941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265355': 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) = 6341.44758503
delta logL = 0.0378517801746

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.330e+00  2.724e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.561e+00  1.168e+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.720e-01  1.309e-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.370e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/265355/cmap_HighResolution_418694401_418953601_4FGL_J0217.2+0837_daily_bin692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.98e-03', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-08-15 15:31:49.158962', job_id='265355', GAL2='0.87', fit_tolerance='1e-08', EG2='1.37', EG='1.38', time_epoch_completed='1629066709.16', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.79e-02', ts2='0.45', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='692' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:31:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 265355: <4FGL_J0217.2+0837_daily_bin692> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin692 34.3163 8.6234 418694401 418953601 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 :                                   681.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            969 sec.

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

