/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0217.8+0144_daily_bin297
RA = 34.4621, Dec = 1.7346
tmin = 316310401, tmax = 316569601
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='285685', job_status='RUN', time_executed='2021-08-15 16:32:02.615150', time_epoch_executed='1629070322.62' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285685

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285685/ft1_4FGL_J0217.8+0144_daily_bin297.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285685/ft2_4FGL_J0217.8+0144_daily_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285685/ft1_4FGL_J0217.8+0144_daily_bin297.fits outfile=/scratch/kocevski/285685/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin297.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=316310401.0 tmax=316569601.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 8.92
user 2.75
sys 5.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285685/ft2_4FGL_J0217.8+0144_daily_bin297.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/285685/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin297.fits evtable="EVENTS" outfile="/scratch/kocevski/285685/ft1_filtered_4FGL_J0217.8+0144_daily_bin297.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 5.65
user 0.27
sys 4.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285685/ft1_filtered_4FGL_J0217.8+0144_daily_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/285685/ft2_4FGL_J0217.8+0144_daily_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/285685/ltcube_316310401_316569601_4FGL_J0217.8+0144_daily_bin297.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/285685/ft2_4FGL_J0217.8+0144_daily_bin297.fits
.....................!
real 25.57
user 19.16
sys 5.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285685/ft1_filtered_4FGL_J0217.8+0144_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/285685/ft2_4FGL_J0217.8+0144_daily_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/285685/ltcube_316310401_316569601_4FGL_J0217.8+0144_daily_bin297.fits outfile=/scratch/kocevski/285685/expmap_316310401_316569601_4FGL_J0217.8+0144_daily_bin297.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/285685/ltcube_316310401_316569601_4FGL_J0217.8+0144_daily_bin297.fits
.....................!
real 175.06
user 161.90
sys 12.38

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/285685/ft1_filtered_4FGL_J0217.8+0144_daily_bin297.fits scfile=/scratch/kocevski/285685/ft2_4FGL_J0217.8+0144_daily_bin297.fits outfile=/scratch/kocevski/285685/cmap_316310401_316569601_4FGL_J0217.8+0144_daily_bin297.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 4.92
user 0.31
sys 4.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285685/ft1_filtered_4FGL_J0217.8+0144_daily_bin297.fits scfile=/scratch/kocevski/285685/ft2_4FGL_J0217.8+0144_daily_bin297.fits outfile=/scratch/kocevski/285685/cmap_HighResolution_316310401_316569601_4FGL_J0217.8+0144_daily_bin297.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 5.06
user 0.32
sys 4.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0314       1.0000         .10000E-03   10000.    
     3 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9534       1.0000         .10000E-03   10000.    
     5 'norm      '    19.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8481       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33101E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0096       1.0000         .10000E-03   10000.    
    15 'norm      '    20.165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39640E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .46534       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0553       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=   5549.761     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2395 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.900        .17903E-04** at limit **
   2  Prefactor     3.0315        2.8695        .95957E-07    .18048E-03
   3  norm          .10000E-03    27.244       -.14487E-05** at limit **
   4  Prefactor     3.9539        4.1111       -.16773E-06    .99494E-04
   5  norm          19.208        6.5399        .81572E-06    .41350E-03
   6  Prefactor     1.8484        1.5459       -.26522E-07    .98394E-03
   7  norm          3.3441        1.1669        .46799E-07    .65673E-03
   8  Prefactor     .10001E-03    55.319       -.87292E-04** at limit **
   9  Prefactor     .22389E-03    6.2377       -.97006E-06** at limit **
  10  Prefactor     42.692        52.102        .11819E-04    .16952E-03
  11  Prefactor     .10000E-03    3.4469        .53154E-08** at limit **
  12  Prefactor     51.714        23.409       -.17673E-05    .83717E-03
  13  Prefactor     .10000E-03    10.366        .28462E-06** at limit **
  14  Prefactor     3.0003        24.604        .49630E-05    .41920E-04
  15  norm          20.166        12.230       -.98103E-06    .12360E-03
  16  Prefactor     26.903        14.945        .84842E-06   -.27905E-03
  17  Prefactor     .10000E-03    62.244        .79266E-04** at limit **
  18  Prefactor     .10000E-03    3.6317        .69632E-07** at limit **
  19  norm          .10000E-03    4.5038        .79235E-08** at limit **
  20  norm          .10000E-03    1.9334        .16702E-07** at limit **
  21  Normalizat    .46540        .18098       -.12771E-05    .20086E-03
  22  Prefactor     1.0552        .13278       -.20450E-06    .58889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.03146
  norm       = 0.0001
  Prefactor  = 3.95389
  norm       = 19.2076
  Prefactor  = 1.84839
  norm       = 3.34414
  Prefactor  = 0.000100009
  Prefactor  = 0.000223893
  Prefactor  = 42.6916
  Prefactor  = 0.0001
  Prefactor  = 51.7142
  Prefactor  = 0.0001
  Prefactor  = 3.00026
  norm       = 20.1657
  Prefactor  = 26.9031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.465398
  Prefactor  = 1.0552
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.761     FROM HESSE     STATUS=OK           350 CALLS     2745 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0315        2.8776        .11917E-03   -1.5360    
   3  norm          .10000E-03    27.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9539        4.1103        .14934E-03   -1.5310    
   5  norm          19.208        6.5334        .91392E-04   -1.4831    
   6  Prefactor     1.8484        1.5467        .81638E-04   -1.5436    
   7  norm          3.3441        1.1649        .44709E-04   -1.5342    
   8  Prefactor     .10001E-03    55.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22389E-03    8.0142        .55429E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.692        52.189        .61351E-04   -1.4400    
  11  Prefactor     .10000E-03    3.4522        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.714        23.248        .55770E-04   -1.4268    
  13  Prefactor     .10000E-03    10.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0003        24.057        .23396E-03   -1.5362    
  15  norm          20.166        12.245        .89193E-04   -1.4810    
  16  Prefactor     26.903        14.953        .77233E-04   -1.4670    
  17  Prefactor     .10000E-03    62.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.070        .26994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.5138        .15439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9422        .10115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .46540        .19424        .35094E-03   -1.1405    
  22  Prefactor     1.0552        .14391        .18187E-03   -.90911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41542e-09
Minuit parameter uncertainties:
  1  7.91477e-06
  2  2.87771
  3  4.87197e-05
  4  4.11059
  5  6.53365
  6  1.54671
  7  1.16493
  8  0.00140031
  9  0.0630291
  10  52.2445
  11  3.72166e-07
  12  23.2517
  13  4.27054e-05
  14  17.0005
  15  12.2464
  16  14.9552
  17  0.000216648
  18  1.19119e-05
  19  1.46934e-06
  20  1.54296e-06
  21  0.194518
  22  0.143965
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.344e+00  1.165e+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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.055e+00  1.440e-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:  4.654e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.33
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 4.86e-08
Energy Flux (Fixed Index): 5.94e-05 +/- 2.07e-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) = 5546.55029392
delta logL = 3.21035248822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5546.52389539
delta logL = 3.23675101871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4682       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    .34784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   5546.524     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4674        5.4693        .56458E-02    .12753E-03
   2  alpha         3.2530        3.8089        .14525        .42491E-04
   3  Normalizat    .34779        .92610E-01    .90666E-01    .48490E-04
   4  Prefactor     1.1178        .70530E-01    .36947E-01   -.58973E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46736
  alpha      = 3.25296
  Normalizat = 0.347787
  Prefactor  = 1.11782
 **********
 **   18 **HESSE 
 **********

 FCN=   5546.524     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .59E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4674        1.1034        .25046E-04   -1.5466    
   2  alpha         3.2530        .55776        .63540E-03    .30593    
   3  Normalizat    .34779        .19068        .40172E-03   -1.2009    
   4  Prefactor     1.1178        .14379        .17720E-03   -.88899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88575e-14
Minuit parameter uncertainties:
  1  1.1034
  2  0.562978
  3  0.191041
  4  0.143843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285685': 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) = 5546.52389496
delta logL = 3.23675144075

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.467e+00  1.103e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  3.253e+00  5.630e-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.118e+00  1.438e-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:  3.478e-01  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.99
Ra Dec: 34.462 1.735
Photon Index (Free Index): 3.25 +/- 0.56
Photon Flux (Free Index): 2.30e-07 +/- 7.10e-08
Energy Flux (Free Index): 4.26e-05 +/- 1.36e-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/285685/cmap_HighResolution_316310401_316569601_4FGL_J0217.8+0144_daily_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='4.26e-05', photon_flux_error='4.86e-08', dlogl='3.24e+00', energy_flux='5.94e-05', photon_flux2='2.30e-07', job_status='DONE', time_completed='2021-08-15 16:41:35.076552', photon_index_error2='0.56', photon_index2='3.25', ts='15.33', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.47', time_epoch_completed='1629070895.08', return_code='0', job_id='285685', GAL2='1.12', EG2='0.35', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='7.10e-08', ts2='22.99', photon_index='2.16' WHERE bin_id='297' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 285685: <4FGL_J0217.8+0144_daily_bin297> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin297> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 16:25:17 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:29:44 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:29:44 2021
Terminated at Sun Aug 15 16:41:36 2021
Results reported at Sun Aug 15 16:41:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin297 34.4621 1.7346 316310401 316569601 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 :                                   625.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            979 sec.

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

