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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin1393
RA = 34.3163, Dec = 8.6234
tmin = 600393601, tmax = 600652801
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='269570', job_status='RUN', time_executed='2021-08-15 15:32:57.360056', time_epoch_executed='1629066777.36' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='1393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269570/ft1_4FGL_J0217.2+0837_daily_bin1393.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269570/ft2_4FGL_J0217.2+0837_daily_bin1393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269570/ft1_4FGL_J0217.2+0837_daily_bin1393.fits outfile=/scratch/kocevski/269570/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin1393.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=600393601.0 tmax=600652801.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 5.81
user 3.44
sys 2.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269570/ft1_filtered_4FGL_J0217.2+0837_daily_bin1393.fits" evtable="EVENTS" scfile=/scratch/kocevski/269570/ft2_4FGL_J0217.2+0837_daily_bin1393.fits sctable="SC_DATA" outfile=/scratch/kocevski/269570/ltcube_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.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/269570/ft2_4FGL_J0217.2+0837_daily_bin1393.fits
.....................!
real 15.61
user 12.84
sys 2.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269570/ft1_filtered_4FGL_J0217.2+0837_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/269570/ft2_4FGL_J0217.2+0837_daily_bin1393.fits sctable="SC_DATA" expcube=/scratch/kocevski/269570/ltcube_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.fits outfile=/scratch/kocevski/269570/expmap_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.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/269570/ltcube_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.fits
.....................!
real 195.58
user 185.77
sys 8.87

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/269570/ft1_filtered_4FGL_J0217.2+0837_daily_bin1393.fits scfile=/scratch/kocevski/269570/ft2_4FGL_J0217.2+0837_daily_bin1393.fits outfile=/scratch/kocevski/269570/cmap_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.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 2.69
user 0.39
sys 2.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269570/ft1_filtered_4FGL_J0217.2+0837_daily_bin1393.fits scfile=/scratch/kocevski/269570/ft2_4FGL_J0217.2+0837_daily_bin1393.fits outfile=/scratch/kocevski/269570/cmap_HighResolution_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.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 2.68
user 0.39
sys 2.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4503       1.0000         .10000E-03   10000.    
     5 'norm      '    16.136       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10834E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5473       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .36444       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24012E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.230       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'    1.4821       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71022       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=   6362.271     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3280 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3344       -.23573E-06** at limit **
   2  norm          .10000E-03    19.958        .48336E-05** at limit **
   3  Prefactor     6.8060        5.4563       -.11673E-06   -.20097E-04
   4  Prefactor     3.4503        2.2371        .15940E-07    .77841E-05
   5  norm          16.137        6.3916       -.10389E-09   -.21021E-05
   6  Prefactor     .10000E-03    .63910        .38455E-07** at limit **
   7  norm          .10000E-03    .68953       -.32696E-07** at limit **
   8  Prefactor     17.264        24.810       -.19043E-05   -.20406E-04
   9  Prefactor     .10000E-03    33.938       -.21025E-05** at limit **
  10  Prefactor     .10000E-03    2.7264       -.53368E-07** at limit **
  11  Prefactor     .10000E-03    21.462       -.47411E-05** at limit **
  12  Prefactor     .10000E-03    8.1079       -.22931E-06** at limit **
  13  Prefactor     .10000E-03    34.321        .32264E-05** at limit **
  14  Prefactor     2.5463        2.4226        .85020E-07   -.42248E-03
  15  Prefactor     .10000E-03    6.5844        .97453E-07** at limit **
  16  norm          .36387        .44223        .14200E-06    .94992E-03
  17  Prefactor     .10000E-03    12.557       -.34003E-06** at limit **
  18  Prefactor     .10000E-03    7.7856        .69152E-06** at limit **
  19  norm          .10000E-03    4.1727       -.99194E-07** at limit **
  20  Prefactor     .10000E-03    14.028       -.95678E-06** at limit **
  21  Prefactor     .10000E-03    12.559       -.14142E-06** at limit **
  22  Prefactor     17.224        19.921        .16355E-05    .38186E-04
  23  Prefactor     .10000E-03    1.9077       -.16969E-07** at limit **
  24  norm          .10000E-03    7.4890       -.82081E-06** at limit **
  25  norm          .10000E-03    1.5621       -.66265E-07** at limit **
  26  Normalizat    1.4822        .18794        .14778E-06    .23930E-04
  27  Prefactor     .71016        .10276       -.41720E-10    .66905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.80596
  Prefactor  = 3.45033
  norm       = 16.1366
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54631
  Prefactor  = 0.0001
  norm       = 0.363873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2245
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.48223
  Prefactor  = 0.710162
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.271     FROM HESSE     STATUS=OK           484 CALLS     3764 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3614        .14220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8060        5.4574        .15380E-03   -1.5186    
   4  Prefactor     3.4503        2.2373        .92679E-04   -1.5336    
   5  norm          16.137        6.3904        .99705E-04   -1.4904    
   6  Prefactor     .10000E-03    .64116        .62251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7904        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.264        24.991        .96369E-04   -1.4877    
   9  Prefactor     .10000E-03    34.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7469        .12860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5463        10.099        .12792E-02   -1.5389    
  15  Prefactor     .10000E-03    6.6601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .36387        .40028        .53762E-03   -1.5587    
  17  Prefactor     .10000E-03    12.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.1898        .15912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    97.293        .54417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.224        19.852        .96487E-04   -1.4878    
  23  Prefactor     .10000E-03    1.9123        .10759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.5526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.5910        .97332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4822        .20730        .26181E-03   -.78279    
  27  Prefactor     .71016        .11532        .20156E-03   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61913e-10
Minuit parameter uncertainties:
  1  2.28329e-07
  2  6.47735e-05
  3  5.45782
  4  2.23734
  5  6.39068
  6  1.03387e-06
  7  1.12378e-05
  8  25.0059
  9  8.63165e-06
  10  8.08008e-08
  11  2.95521e-06
  12  1.91376e-06
  13  7.34431e-05
  14  10.1057
  15  1.47082e-05
  16  0.400284
  17  2.2401e-06
  18  2.25537e-06
  19  1.465e-07
  20  3.37184e-05
  21  3.02767e-06
  22  19.8595
  23  2.57497e-08
  24  7.91591e-07
  25  5.97634e-08
  26  0.207419
  27  0.115361
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  1.034e-06  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:  7.102e-01  1.154e-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.482e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/269570/likelihoodResults_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.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): 102
logL (Free Index) = 6362.2712072
delta logL = -0.000340751325894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6362.27086567
delta logL = 7.77866262069e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2468       1.0000          .0000       10.000    
     3 'Normalizat'    1.4822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71019       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6362.271     FROM MIGRAD    STATUS=FAILED       104 CALLS      252 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5991        .66433E-03** at limit **
   2  Index         1.8018        5.3248        .50000       -.10373E-04
   3  Normalizat    1.4822        .20138        .26181E-03   -.45812E-04
   4  Prefactor     .71016        .11248        .20156E-03   -.48512E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6362.271     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      429 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5991        .14628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8018        5.3248        .24959E-05   -.69403    
   3  Normalizat    1.4822        .20138        .55526E-06   -.78279    
   4  Prefactor     .71016        .11248        .18858E-06   -1.0313    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6362.271     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      460 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .74939        .13287E-03** at limit **
   2  Index         1.8009        7.7041        .50000       -.30861E-06
   3  Normalizat    1.4822        .20148        .10472E-04   -.25620E-04
   4  Prefactor     .71016        .11253        .40311E-04   -.29364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80094
  Normalizat = 1.48223
  Prefactor  = 0.710161
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.271     FROM HESSE     STATUS=OK            29 CALLS      489 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .72935        .26573E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8009        8.2022        .50000       -.69425    
   3  Normalizat    1.4822        .20156        .20945E-05   -.78279    
   4  Prefactor     .71016        .11257        .80623E-05   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6647e-10
Minuit parameter uncertainties:
  1  1.42297e-05
  2  67.0906
  3  0.201673
  4  0.112607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269570': 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) = 6362.27085709
delta logL = 9.35038951866e-06

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  1.423e-05  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.801e+00  6.709e+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:  7.102e-01  1.126e-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.482e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/269570/cmap_HighResolution_600393601_600652801_4FGL_J0217.2+0837_daily_bin1393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-08-15 15:46:58.388268', job_id='269570', GAL2='0.71', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1629067618.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='9.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1393' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:46:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 269570: <4FGL_J0217.2+0837_daily_bin1393> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin1393> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 15:30:39 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:32:05 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:32:05 2021
Terminated at Sun Aug 15 15:46:59 2021
Results reported at Sun Aug 15 15:46:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin1393 34.3163 8.6234 600393601 600652801 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 :                                   856.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            980 sec.

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

