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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin654
RA = 34.3163, Dec = 8.6234
tmin = 408844801, tmax = 409104001
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='265300', job_status='RUN', time_executed='2021-08-15 15:17:57.528910', time_epoch_executed='1629065877.53' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265300/ft1_4FGL_J0217.2+0837_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265300/ft2_4FGL_J0217.2+0837_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265300/ft1_4FGL_J0217.2+0837_daily_bin654.fits outfile=/scratch/kocevski/265300/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin654.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=408844801.0 tmax=409104001.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.07
user 4.13
sys 5.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265300/ft1_filtered_4FGL_J0217.2+0837_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/265300/ft2_4FGL_J0217.2+0837_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/265300/ltcube_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.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/265300/ft2_4FGL_J0217.2+0837_daily_bin654.fits
.....................!
real 19.04
user 12.53
sys 6.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265300/ft1_filtered_4FGL_J0217.2+0837_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/265300/ft2_4FGL_J0217.2+0837_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/265300/ltcube_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.fits outfile=/scratch/kocevski/265300/expmap_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.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/265300/ltcube_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.fits
.....................!
real 197.16
user 185.46
sys 10.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/265300/ft1_filtered_4FGL_J0217.2+0837_daily_bin654.fits scfile=/scratch/kocevski/265300/ft2_4FGL_J0217.2+0837_daily_bin654.fits outfile=/scratch/kocevski/265300/cmap_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.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.75
user 0.37
sys 5.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265300/ft1_filtered_4FGL_J0217.2+0837_daily_bin654.fits scfile=/scratch/kocevski/265300/ft2_4FGL_J0217.2+0837_daily_bin654.fits outfile=/scratch/kocevski/265300/cmap_HighResolution_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.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.82
user 0.38
sys 5.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3954       1.0000         .10000E-03   10000.    
     2 'norm      '    21.731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11521E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .94662       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11070E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.129       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.7586       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4023       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4317       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65993       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=   2797.390     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3261 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3918        7.9338       -.13114E-05    .20635E-03
   2  norm          21.749        33.551        .18839E-05    .24631E-04
   3  Prefactor     .10000E-03    22.397        .15041E-05** at limit **
   4  Prefactor     .10000E-03    5.9851       -.26005E-06** at limit **
   5  norm          .10000E-03    2.6715       -.22571E-07** at limit **
   6  Prefactor     .10000E-03    2.4335       -.19128E-06** at limit **
   7  norm          .10000E-03    .25522       -.57176E-07** at limit **
   8  Prefactor     .10000E-03    49.214       -.23159E-06** at limit **
   9  Prefactor     .10000E-03    42.672        .12961E-05** at limit **
  10  Prefactor     .10000E-03    6.2547       -.13642E-06** at limit **
  11  Prefactor     .10000E-03    33.082       -.62845E-06** at limit **
  12  Prefactor     .10000E-03    31.024       -.16346E-05** at limit **
  13  Prefactor     .10000E-03    17.209        .13056E-06** at limit **
  14  Prefactor     .10000E-03    8.5453       -.22572E-06** at limit **
  15  Prefactor     .10000E-03    11.654       -.22295E-06** at limit **
  16  norm          .10000E-03    .46484       -.14694E-06** at limit **
  17  Prefactor     .10000E-03    51.658       -.11476E-05** at limit **
  18  Prefactor     .93625        216.86        .32560E-04   -.14757E-05
  19  norm          .10000E-03    19.208       -.13356E-05** at limit **
  20  Prefactor     .10000E-03    28.144       -.70465E-07** at limit **
  21  Prefactor     .10000E-03    627.04       -.86406E-06** at limit **
  22  Prefactor     34.125        50.095        .16206E-06    .13523E-04
  23  Prefactor     .10000E-03    2.1296       -.31987E-07** at limit **
  24  norm          2.7558        12.649       -.15757E-05    .10516E-03
  25  norm          6.4034        5.0725        .38579E-07    .17225E-03
  26  Normalizat    1.4319        .29174       -.27852E-06    .24274E-03
  27  Prefactor     .65997        .15385        .12068E-05    .40061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.3918
  norm       = 21.7489
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.936245
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 34.1246
  Prefactor  = 0.0001
  norm       = 2.75577
  norm       = 6.40336
  Normalizat = 1.43192
  Prefactor  = 0.659974
 **********
 **   18 **HESSE 
 **********

 FCN=   2797.390     FROM HESSE     STATUS=OK           474 CALLS     3735 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3918        7.9654        .25913E-03   -1.5399    
   2  norm          21.749        33.543        .85924E-04   -1.4775    
   3  Prefactor     .10000E-03    22.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0483        .12645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6730        .84430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5154        .16127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .25741        .26107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    49.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2635        .12921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5705        .15105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.691        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .56921        .70324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .93625        222.23        .45992E-02   -1.5514    
  19  norm          .10000E-03    19.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    641.26        .18157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.125        50.084        .68594E-04   -1.4539    
  23  Prefactor     .10000E-03    2.1322        .75378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.7558        12.681        .24507E-03   -1.5376    
  25  norm          6.4034        5.0720        .10030E-03   -1.5202    
  26  Normalizat    1.4319        .32388        .26018E-03   -.79710    
  27  Prefactor     .65997        .17479        .20330E-03   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44744e-09
Minuit parameter uncertainties:
  1  7.9689
  2  33.5721
  3  0.000502983
  4  4.4097e-05
  5  9.55269e-06
  6  2.49639e-05
  7  1.80217e-06
  8  0.000202244
  9  0.000132258
  10  1.15292e-05
  11  7.72614e-05
  12  0.000178124
  13  2.04325e-05
  14  2.34926e-05
  15  2.2775e-05
  16  3.61975e-07
  17  0.0001681
  18  28.9565
  19  0.00013545
  20  1.0835e-05
  21  0.00328277
  22  50.1458
  23  2.48369e-06
  24  11.8268
  25  5.07234
  26  0.324351
  27  0.174936
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  2.496e-05  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:  6.600e-01  1.749e-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.432e+00  3.244e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265300/likelihoodResults_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.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) = 2797.39143972
delta logL = -0.00188364708492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2797.38955615
delta logL = -7.69778125687e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2747       1.0000          .0000       10.000    
     3 'Normalizat'    1.4319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66000       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.

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

 FCN=   2797.390     FROM MIGRAD    STATUS=FAILED        91 CALLS      246 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    2.5822        .16139E-02** at limit **
   2  Index         2.4125        6.2055        .50000       -.10105E-04
   3  Normalizat    1.4319        .30133        .26018E-03    .29600E-04
   4  Prefactor     .65997        .16765        .20330E-03    .27010E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2797.390     FROM SIMPLEX   STATUS=PROGRESS     107 CALLS      353 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    2.5822        .24730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4124        6.2055        .40766E-02   -.54394    
   3  Normalizat    1.4319        .30133        .20575E-03   -.79710    
   4  Prefactor     .65996        .16765        .23121E-04   -1.0512    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2797.390     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      385 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5964        .32279E-03** at limit **
   2  Index         2.4124        6.2055        .50000       -.10031E-04
   3  Normalizat    1.4319        .30150        .52035E-04    .44635E-04
   4  Prefactor     .65997        .16774        .81320E-05    .46694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41241
  Normalizat = 1.43192
  Prefactor  = 0.659972
 **********
 **   18 **HESSE 
 **********

 FCN=   2797.390     FROM HESSE     STATUS=OK            29 CALLS      414 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5786        .64557E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4124        6.2053        .50000       -.54395    
   3  Normalizat    1.4319        .30148        .10407E-04   -.79710    
   4  Prefactor     .65997        .16772        .16264E-05   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09221e-10
Minuit parameter uncertainties:
  1  8.78573e-06
  2  4.27903
  3  0.30186
  4  0.167848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265300': 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) = 2797.38955558
delta logL = 5.01508566231e-07

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  8.786e-06  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.412e+00  4.279e+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:  6.600e-01  1.678e-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.432e+00  3.019e-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/265300/cmap_HighResolution_408844801_409104001_4FGL_J0217.2+0837_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-15 15:27:58.974486', job_id='265300', GAL2='0.66', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1629066478.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='654' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:27:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 265300: <4FGL_J0217.2+0837_daily_bin654> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin654 34.3163 8.6234 408844801 409104001 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 :                                   664.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            742 sec.

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

