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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin785
RA = 34.4621, Dec = 1.7346
tmin = 442800001, tmax = 443059201
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='288522', job_status='RUN', time_executed='2021-08-15 16:38:09.375674', time_epoch_executed='1629070689.38' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288522

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288522/ft1_4FGL_J0217.8+0144_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288522/ft1_4FGL_J0217.8+0144_daily_bin785.fits outfile=/scratch/kocevski/288522/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin785.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=442800001.0 tmax=443059201.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.16
user 3.24
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.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/288522/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin785.fits evtable="EVENTS" outfile="/scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.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.15
user 0.33
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/288522/ltcube_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.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/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits
.....................!
real 14.25
user 13.15
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/288522/ltcube_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.fits outfile=/scratch/kocevski/288522/expmap_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.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/288522/ltcube_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.fits
.....................!
real 192.52
user 186.55
sys 5.39

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0217.8+0144 @ 34.4621 1.7346

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits scfile=/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits outfile=/scratch/kocevski/288522/cmap_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.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.4621 yref=1.7346 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.19
user 0.39
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits scfile=/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits outfile=/scratch/kocevski/288522/cmap_HighResolution_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.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.4621 yref=1.7346 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.27
user 0.41
sys 0.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/288522/Model_4FGL_J0217.8+0144_daily_bin785.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/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits.....................!
real 73.67
user 71.23
sys 2.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits', '/scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits', expMap='/scratch/kocevski/288522/expmap_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.fits', expCube='/scratch/kocevski/288522/ltcube_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/288522/Model_4FGL_J0217.8+0144_daily_bin785.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.8+0144'

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/288522/ft1_filtered_4FGL_J0217.8+0144_daily_bin785.fits
Spacecraft file(s): /scratch/kocevski/288522/ft2_4FGL_J0217.8+0144_daily_bin785.fits
Exposure map: /scratch/kocevski/288522/expmap_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.fits
Exposure cube: /scratch/kocevski/288522/ltcube_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/288522/Model_4FGL_J0217.8+0144_daily_bin785.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) = 6474.31407691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4153       1.0000         .10000E-03   10000.    
     3 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4860       1.0000         .10000E-03   10000.    
     5 'norm      '    29.358       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .98455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6115       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36876E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5227       1.0000         .10000E-03   10000.    
    19 'norm      '    .19489       1.0000         .10000E-03   10000.    
    20 'norm      '    4.3465       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80043       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91976       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   6474.291     FROM MIGRAD    STATUS=FAILED       887 CALLS     2795 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.401        66.077        .21364E-03    .79617E-04
   2  Prefactor     4.4132        5.3679        .19165E-03   -.12540E-03
   3  norm          .10000E-03    7.2334        .18142E-02** at limit **
   4  Prefactor     5.4851        6.7027        .17155E-03   -.43872E-04
   5  norm          29.368        7.7986        .73944E-04   -.32742E-03
   6  Prefactor     .10000E-03    3.1391        .20088E-02** at limit **
   7  norm          .98441        .64757        .50306E-04    .48814E-04
   8  Prefactor     37.194        29.298        .65793E-04   -.19478E-03
   9  Prefactor     .10000E-03    4.1193        .15918E-02** at limit **
  10  Prefactor     .10000E-03    43.415        .18142E-02** at limit **
  11  Prefactor     21.645        14.976        .86099E-04   -.21127E-05
  12  Prefactor     .18103        20.780        .92747E-01    .10828E-04
  13  Prefactor     8.6515        10.175        .13642E-03   -.15792E-03
  14  Prefactor     9.6275        19.354        .12926E-03   -.96043E-04
  15  norm          .10000E-03    2.7615        .13056E-02** at limit **
  16  Prefactor     .10000E-03    3.1163        .13862E-02** at limit **
  17  Prefactor     .10002E-03    39.648        .14977    ** at limit **
  18  Prefactor     8.5189        6.3211        .13731E-03   -.10929E-04
  19  norm          .25929        107.16        .42561E-02    .87757E-03
  20  norm          4.3408        7.8803        .19321E-03   -.94794E-04
  21  Normalizat    .80053        .19472        .29084E-03   -.23050E-03
  22  Prefactor     .91976        .14818        .20441E-03   -.43349E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6474.291     FROM SIMPLEX   STATUS=UNCHANGED   1041 CALLS     3836 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.401        66.077        .11843E-05   -1.3825    
   2  Prefactor     4.4132        5.3679        .62019E-06   -1.5288    
   3  norm          .10000E-03    7.2334        .43857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4851        6.7027        .34307E-06   -1.5240    
   5  norm          29.368        7.7986        .32587E-06   -1.4624    
   6  Prefactor     .10000E-03    3.1391        .98374E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .98441        .64757        .33897E-06   -1.5510    
   8  Prefactor     37.194        29.298        .31577E-06   -1.4487    
   9  Prefactor     .10000E-03    4.1193        .24246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.415        .62456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.645        14.976        .32252E-06   -1.4777    
  12  Prefactor     .18103        20.780        .38142E-06   -1.5623    
  13  Prefactor     8.6515        10.175        .32848E-06   -1.5120    
  14  Prefactor     9.6275        19.354        .32903E-06   -1.5087    
  15  norm          .10000E-03    2.7615        .18770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.1163        .27561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    39.648        .43969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5189        6.3211        .33804E-06   -1.5124    
  19  norm          .25929        107.16        .76955E-06   -1.5606    
  20  norm          4.3408        7.8803        .34081E-06   -1.5291    
  21  Normalizat    .80053        .19472        .22392E-06   -1.0005    
  22  Prefactor     .91976        .14818        .21222E-06   -.95454    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6474.291     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     4183 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.401        66.076        .42729E-04   -.18039E-04
   2  Prefactor     4.4132        5.3675        .76662E-05    .26990E-04
   3  norm          .10000E-03    7.2343        .36285E-03** at limit **
   4  Prefactor     5.4851        6.7018        .68618E-05    .89467E-05
   5  norm          29.368        7.7976        .14789E-04    .70263E-04
   6  Prefactor     .10000E-03    3.1471        .40176E-03** at limit **
   7  norm          .98441        .64756        .20122E-05   -.51978E-04
   8  Prefactor     37.194        29.279        .13159E-04   -.13478E-04
   9  Prefactor     .10000E-03    4.1198        .31836E-03** at limit **
  10  Prefactor     .10000E-03    43.418        .36285E-03** at limit **
  11  Prefactor     21.645        14.976        .34440E-05   -.26408E-05
  12  Prefactor     .18108        19.846        .95754E-01    .19899E-04
  13  Prefactor     8.6515        10.173        .54568E-05   -.20000E-04
  14  Prefactor     9.6275        19.351        .51704E-05   -.20669E-04
  15  norm          .10000E-03    2.7615        .26112E-03** at limit **
  16  Prefactor     .10000E-03    3.1164        .27725E-03** at limit **
  17  Prefactor     .10002E-03    39.618        .14985    ** at limit **
  18  Prefactor     8.5189        6.3155        .54925E-05   -.26908E-04
  19  norm          .25942        106.24        .85122E-03    .10765E-04
  20  norm          4.3408        7.7884        .77283E-05   -.15593E-04
  21  Normalizat    .80053        .19449        .11634E-04   -.46906E-05
  22  Prefactor     .91976        .14769        .40882E-04    .38931E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.4008
  Prefactor  = 4.41321
  norm       = 0.0001
  Prefactor  = 5.48508
  norm       = 29.3683
  Prefactor  = 0.0001
  norm       = 0.984411
  Prefactor  = 37.1937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6453
  Prefactor  = 0.181079
  Prefactor  = 8.65152
  Prefactor  = 9.62748
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 8.51886
  norm       = 0.259416
  norm       = 4.3408
  Normalizat = 0.800526
  Prefactor  = 0.919756
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.291     FROM HESSE     STATUS=OK           340 CALLS     4523 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.401        66.073        .85458E-05   -1.3825    
   2  Prefactor     4.4132        5.3684        .15332E-05   -1.5288    
   3  norm          .10000E-03    7.2343        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4851        6.7028        .13724E-05   -1.5240    
   5  norm          29.368        7.7975        .29578E-05   -1.4624    
   6  Prefactor     .10000E-03    3.1474        .80351E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .98441        .64749        .40244E-06   -1.5510    
   8  Prefactor     37.194        29.277        .26317E-05   -1.4487    
   9  Prefactor     .10000E-03    4.1198        .63672E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.418        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.645        14.971        .68879E-06   -1.4777    
  12  Prefactor     .18108        20.095        .94939E-01   -1.5623    
  13  Prefactor     8.6515        10.170        .10914E-05   -1.5120    
  14  Prefactor     9.6275        19.397        .10341E-05   -1.5087    
  15  norm          .10000E-03    2.7615        .52223E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.1164        .55449E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    39.624        .14983       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5189        6.3137        .10985E-05   -1.5124    
  19  norm          .25942        105.27        .34049E-04   -1.5606    
  20  norm          4.3408        7.7646        .15457E-05   -1.5291    
  21  Normalizat    .80053        .19433        .23268E-05   -1.0005    
  22  Prefactor     .91976        .14754        .81765E-05   -.95454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11627e-11
Minuit parameter uncertainties:
  1  66.1283
  2  5.36898
  3  1.89795e-06
  4  6.70373
  5  7.79779
  6  2.98842e-05
  7  0.647492
  8  29.2886
  9  7.93674e-07
  10  1.95751e-05
  11  14.9735
  12  3.81537
  13  10.1718
  14  19.4095
  15  1.23084e-06
  16  7.05242e-07
  17  0.00190705
  18  6.3142
  19  10.4681
  20  7.76636
  21  0.1945
  22  0.147608
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  9.844e-01  6.475e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.198e-01  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  8.005e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.65
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.15e-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) = 6474.22029315
delta logL = 0.0708059496164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6474.21671494
delta logL = 0.0743841560043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93431       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9167       1.0000          .0000       5.0000    
     3 'Normalizat'    .81145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6474.217     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93431        1.3962        .11608E-01    .45665E-03
   2  alpha         1.9167        1.0260        .41906       -.33960E-04
   3  Normalizat    .81145        .16217        .65335E-01   -.23081E-05
   4  Prefactor     .91570        .12106        .45205E-01    .26581E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.934306
  alpha      = 1.91671
  Normalizat = 0.811452
  Prefactor  = 0.915703
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.217     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93431        .67117        .50798E-04   -1.5515    
   2  alpha         1.9167        .60411        .15202E-01   -.23548    
   3  Normalizat    .81145        .17946        .28903E-03   -.99645    
   4  Prefactor     .91570        .13401        .20482E-03   -.95595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99819e-11
Minuit parameter uncertainties:
  1  0.671174
  2  0.610508
  3  0.179592
  4  0.134055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288522': 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) = 6474.21671494
delta logL = 0.0743841563572

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  9.343e-01  6.712e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.917e+00  6.105e-01  0.000e+00  5.000e+00 ( 1.000e+00)
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.157e-01  1.341e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  8.115e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.77
Ra Dec: 34.462 1.735
Photon Index (Free Index): 1.92 +/- 0.61
Photon Flux (Free Index): 3.16e-08 +/- 3.08e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.74e-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/288522/cmap_HighResolution_442800001_443059201_4FGL_J0217.8+0144_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='2.04e-05', photon_flux_error='2.70e-08', dlogl='7.44e-02', energy_flux='1.75e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2021-08-15 16:50:17.659020', photon_index_error2='0.61', photon_index2='1.92', ts='7.65', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.80', time_epoch_completed='1629071417.66', return_code='0', job_id='288522', GAL2='0.92', EG2='0.81', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.08e-08', ts2='7.77', photon_index='2.16' WHERE bin_id='785' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:50:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 288522: <4FGL_J0217.8+0144_daily_bin785> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin785> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 16:35:34 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:35:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 16:35:50 2021
Terminated at Sun Aug 15 16:50:18 2021
Results reported at Sun Aug 15 16:50:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin785 34.4621 1.7346 442800001 443059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.8+0144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            884 sec.

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

