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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin908
RA = 34.4621, Dec = 1.7346
tmin = 474681601, tmax = 474940801
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='288719', job_status='RUN', time_executed='2021-08-15 16:40:17.738720', time_epoch_executed='1629070817.74' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288719

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288719/ft1_4FGL_J0217.8+0144_daily_bin908.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288719/ft1_4FGL_J0217.8+0144_daily_bin908.fits outfile=/scratch/kocevski/288719/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin908.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=474681601.0 tmax=474940801.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.37
user 3.43
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.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/288719/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin908.fits evtable="EVENTS" outfile="/scratch/kocevski/288719/ft1_filtered_4FGL_J0217.8+0144_daily_bin908.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.26
user 0.34
sys 0.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288719/ft1_filtered_4FGL_J0217.8+0144_daily_bin908.fits" evtable="EVENTS" scfile=/scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits sctable="SC_DATA" outfile=/scratch/kocevski/288719/ltcube_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.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/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits
.....................!
real 14.38
user 13.17
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288719/ft1_filtered_4FGL_J0217.8+0144_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits sctable="SC_DATA" expcube=/scratch/kocevski/288719/ltcube_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.fits outfile=/scratch/kocevski/288719/expmap_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.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/288719/ltcube_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.fits
.....................!
real 194.63
user 187.96
sys 6.21

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/288719/ft1_filtered_4FGL_J0217.8+0144_daily_bin908.fits scfile=/scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits outfile=/scratch/kocevski/288719/cmap_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.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.25
user 0.39
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288719/ft1_filtered_4FGL_J0217.8+0144_daily_bin908.fits scfile=/scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits outfile=/scratch/kocevski/288719/cmap_HighResolution_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.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.26
user 0.40
sys 0.84

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/288719/ft1_filtered_4FGL_J0217.8+0144_daily_bin908.fits', '/scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits', expMap='/scratch/kocevski/288719/expmap_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.fits', expCube='/scratch/kocevski/288719/ltcube_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/288719/Model_4FGL_J0217.8+0144_daily_bin908.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/288719/ft1_filtered_4FGL_J0217.8+0144_daily_bin908.fits
Spacecraft file(s): /scratch/kocevski/288719/ft2_4FGL_J0217.8+0144_daily_bin908.fits
Exposure map: /scratch/kocevski/288719/expmap_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.fits
Exposure cube: /scratch/kocevski/288719/ltcube_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/288719/Model_4FGL_J0217.8+0144_daily_bin908.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) = 6922.30386022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.534       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9033       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2250       1.0000         .10000E-03   10000.    
     5 'norm      '    15.908       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3772       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0204       1.0000         .10000E-03   10000.    
    15 'norm      '    17.283       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.708       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.9394       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .56718       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2295       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.

 FCN=   6922.224     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2730 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.535        52.324       -.10343E-06    .10090E-06
   2  Prefactor     2.9034        3.4352        .11024E-07   -.23006E-04
   3  norm          1.1183        67.960        .29962E-05   -.16999E-04
   4  Prefactor     4.2247        8.5775        .63166E-06   -.72311E-04
   5  norm          15.909        7.5892       -.36545E-07   -.34777E-04
   6  Prefactor     .10000E-03    1.2482        .12809E-06** at limit **
   7  norm          1.1674        .70904        .24952E-07   -.36227E-04
   8  Prefactor     2.4248        70.975       -.63333E-05   -.54449E-05
   9  Prefactor     9.3342        7.6815       -.25803E-07   -.13981E-04
  10  Prefactor     23.672        84.093        .28075E-05   -.82722E-05
  11  Prefactor     4.4682        9.1766        .19825E-06   -.13442E-05
  12  Prefactor     31.069        31.655        .22164E-05   -.12066E-04
  13  Prefactor     3.1742        17.891       -.12843E-05   -.15548E-04
  14  Prefactor     3.0165        22.205       -.21103E-06   -.99207E-05
  15  norm          17.279        18.821        .39773E-06    .62283E-05
  16  Prefactor     .10000E-03    2.7391        .14750E-07** at limit **
  17  Prefactor     39.709        34.884       -.50234E-07    .13034E-05
  18  Prefactor     .10000E-03    2.2650        .10592E-07** at limit **
  19  norm          .10000E-03    3.2154        .53045E-07** at limit **
  20  norm          7.9373        6.7014        .48991E-07    .12250E-04
  21  Normalizat    .56704        .16889        .27930E-06   -.22786E-04
  22  Prefactor     1.2296        .13734        .15762E-06   -.31240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5347
  Prefactor  = 2.90335
  norm       = 1.11826
  Prefactor  = 4.22473
  norm       = 15.9092
  Prefactor  = 0.0001
  norm       = 1.16736
  Prefactor  = 2.42479
  Prefactor  = 9.33422
  Prefactor  = 23.672
  Prefactor  = 4.46823
  Prefactor  = 31.0694
  Prefactor  = 3.17418
  Prefactor  = 3.01653
  norm       = 17.279
  Prefactor  = 0.0001
  Prefactor  = 39.7095
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.9373
  Normalizat = 0.567036
  Prefactor  = 1.22963
 **********
 **   18 **HESSE 
 **********

 FCN=   6922.224     FROM HESSE     STATUS=OK           354 CALLS     3084 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.535        52.337        .82569E-04   -1.4737    
   2  Prefactor     2.9034        3.4283        .16188E-03   -1.5367    
   3  norm          1.1183        66.634        .43462E-03   -1.5496    
   4  Prefactor     4.2247        8.4534        .19604E-03   -1.5297    
   5  norm          15.909        7.5806        .10042E-03   -1.4910    
   6  Prefactor     .10000E-03    1.2582        .90479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1674        .69827        .52293E-04   -1.5492    
   8  Prefactor     2.4248        71.342        .26571E-03   -1.5397    
   9  Prefactor     9.3342        7.6803        .13116E-03   -1.5097    
  10  Prefactor     23.672        83.671        .82261E-04   -1.4735    
  11  Prefactor     4.4682        9.1520        .19054E-03   -1.5285    
  12  Prefactor     31.069        31.660        .71867E-04   -1.4593    
  13  Prefactor     3.1742        17.227        .22735E-03   -1.5352    
  14  Prefactor     3.0165        21.769        .23351E-03   -1.5361    
  15  norm          17.279        18.623        .96341E-04   -1.4876    
  16  Prefactor     .10000E-03    2.7425        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.709        34.885        .63609E-04   -1.4447    
  18  Prefactor     .10000E-03    2.2943        .12225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2186        .14568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.9373        6.7236        .14230E-03   -1.5144    
  21  Normalizat    .56704        .18241        .34107E-03   -1.0940    
  22  Prefactor     1.2296        .15147        .19047E-03   -.85424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75567e-11
Minuit parameter uncertainties:
  1  52.4395
  2  3.42848
  3  17.2838
  4  8.45577
  5  7.58107
  6  1.25121e-06
  7  0.698271
  8  26.3392
  9  7.68112
  10  84.09
  11  9.15485
  12  31.6774
  13  14.7959
  14  16.2149
  15  18.6288
  16  1.28303e-06
  17  34.9025
  18  1.6763e-06
  19  1.36241e-06
  20  6.72427
  21  0.1826
  22  0.151527
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.167e+00  6.983e-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:  1.230e+00  1.515e-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:  5.670e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 4.88e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.24e-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) = 6922.16037449
delta logL = 0.0631905593846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6922.15688296
delta logL = 0.0666820868237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1100       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3841       1.0000          .0000       5.0000    
     3 'Normalizat'    .55475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2353       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=   6922.157     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1100        11.306        .10944E-01    .13367E-02
   2  alpha         2.3841        3.5461        .41152        .43597E-06
   3  Normalizat    .55485        .69756E-01    .77807E-01    .45554E-04
   4  Prefactor     1.2352        .46632E-01    .33845E-01   -.78510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10998
  alpha      = 2.3841
  Normalizat = 0.554851
  Prefactor  = 1.23522
 **********
 **   18 **HESSE 
 **********

 FCN=   6922.157     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1100        .70520        .49136E-04   -1.5497    
   2  alpha         2.3841        .63328        .14655E-01   -.46376E-01
   3  Normalizat    .55485        .17864        .34458E-03   -1.0994    
   4  Prefactor     1.2352        .14049        .19009E-03   -.85254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18689e-10
Minuit parameter uncertainties:
  1  0.705204
  2  0.640271
  3  0.178826
  4  0.140529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288719': 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) = 6922.15688279
delta logL = 0.0666822604799

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.110e+00  7.052e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.384e+00  6.403e-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:  1.235e+00  1.405e-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:  5.549e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.30
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.38 +/- 0.64
Photon Flux (Free Index): 5.85e-08 +/- 4.21e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/288719/cmap_HighResolution_474681601_474940801_4FGL_J0217.8+0144_daily_bin908.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.88e-08', energy_flux2='1.87e-05', photon_flux_error='2.92e-08', dlogl='6.67e-02', energy_flux='2.07e-05', photon_flux2='5.85e-08', job_status='DONE', time_completed='2021-08-15 16:51:17.540996', photon_index_error2='0.64', photon_index2='2.38', ts='6.16', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.57', time_epoch_completed='1629071477.54', return_code='0', job_id='288719', GAL2='1.24', EG2='0.55', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.21e-08', ts2='6.30', photon_index='2.16' WHERE bin_id='908' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 288719: <4FGL_J0217.8+0144_daily_bin908> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin908> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 16:35:50 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:37:12 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:37:12 2021
Terminated at Sun Aug 15 16:51:19 2021
Results reported at Sun Aug 15 16:51:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin908 34.4621 1.7346 474681601 474940801 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 :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            929 sec.

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

