/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 73 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0217.8+0144_daily_bin423
RA = 34.4621, Dec = 1.7346
tmin = 348969601, tmax = 349228801
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='285872', job_status='RUN', time_executed='2021-08-15 16:33:01.148727', time_epoch_executed='1629070381.15' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285872/ft1_4FGL_J0217.8+0144_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285872/ft2_4FGL_J0217.8+0144_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285872/ft1_4FGL_J0217.8+0144_daily_bin423.fits outfile=/scratch/kocevski/285872/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin423.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=348969601.0 tmax=349228801.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 3.72
user 2.89
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285872/ft2_4FGL_J0217.8+0144_daily_bin423.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/285872/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/285872/ft1_filtered_4FGL_J0217.8+0144_daily_bin423.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 0.98
user 0.28
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285872/ft1_filtered_4FGL_J0217.8+0144_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/285872/ft2_4FGL_J0217.8+0144_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/285872/ltcube_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.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/285872/ft2_4FGL_J0217.8+0144_daily_bin423.fits
.....................!
real 11.81
user 10.88
sys 0.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285872/ft1_filtered_4FGL_J0217.8+0144_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/285872/ft2_4FGL_J0217.8+0144_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/285872/ltcube_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.fits outfile=/scratch/kocevski/285872/expmap_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.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/285872/ltcube_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.fits
.....................!
real 155.18
user 150.22
sys 4.63

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/285872/ft1_filtered_4FGL_J0217.8+0144_daily_bin423.fits scfile=/scratch/kocevski/285872/ft2_4FGL_J0217.8+0144_daily_bin423.fits outfile=/scratch/kocevski/285872/cmap_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.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.00
user 0.31
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285872/ft1_filtered_4FGL_J0217.8+0144_daily_bin423.fits scfile=/scratch/kocevski/285872/ft2_4FGL_J0217.8+0144_daily_bin423.fits outfile=/scratch/kocevski/285872/cmap_HighResolution_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.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.03
user 0.31
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.603       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0996       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8052       1.0000         .10000E-03   10000.    
     7 'norm      '    .94535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1946       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6998       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.113       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.654       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91397       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92086       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=   5202.619     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2322 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.945        .72919E-06** at limit **
   2  Prefactor     12.603        6.9412       -.19682E-07    .20334E-06
   3  norm          2.0493        38.457        .44522E-05    .41853E-05
   4  Prefactor     5.0994        5.9085        .36546E-06    .64476E-05
   5  norm          7.6433        5.6729        .19949E-07    .52632E-06
   6  Prefactor     4.8048        3.3520        .29375E-07    .74014E-05
   7  norm          .94525        .75854        .27966E-08   -.18354E-04
   8  Prefactor     8.1848        20.622        .23538E-06    .10551E-05
   9  Prefactor     .10000E-03    7.1568       -.15957E-07** at limit **
  10  Prefactor     .10000E-03    63.869       -.17283E-05** at limit **
  11  Prefactor     .10000E-03    5.1999        .86199E-07** at limit **
  12  Prefactor     .10000E-03    5.7874       -.36121E-08** at limit **
  13  Prefactor     .10000E-03    4.5769        .29928E-07** at limit **
  14  Prefactor     .10000E-03    18.503       -.13678E-06** at limit **
  15  norm          .10000E-03    4.7527       -.48693E-07** at limit **
  16  Prefactor     9.6949        16.388       -.29834E-06   -.36322E-05
  17  Prefactor     22.042        36.251        .45260E-05   -.15376E-05
  18  Prefactor     .10000E-03    5.3368       -.15399E-06** at limit **
  19  norm          .10000E-03    4.6124       -.48331E-07** at limit **
  20  norm          13.655        8.6299        .11327E-06    .29424E-05
  21  Normalizat    .91414        .19506        .15033E-06   -.45713E-05
  22  Prefactor     .92073        .14156       -.39652E-06    .37237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.6027
  norm       = 2.04932
  Prefactor  = 5.09942
  norm       = 7.6433
  Prefactor  = 4.80482
  norm       = 0.945247
  Prefactor  = 8.18475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.69493
  Prefactor  = 22.0421
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.6549
  Normalizat = 0.914143
  Prefactor  = 0.920734
 **********
 **   18 **HESSE 
 **********

 FCN=   5202.619     FROM HESSE     STATUS=OK           344 CALLS     2666 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.603        6.9468        .11283E-03   -1.4998    
   3  norm          2.0493        38.521        .14404E-02   -1.5422    
   4  Prefactor     5.0994        5.8901        .89022E-03   -1.5256    
   5  norm          7.6433        5.6702        .14017E-03   -1.5155    
   6  Prefactor     4.8048        3.3425        .10172E-03   -1.5270    
   7  norm          .94525        .74031        .54106E-04   -1.5514    
   8  Prefactor     8.1848        20.591        .14005E-03   -1.5136    
   9  Prefactor     .10000E-03    7.2352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    63.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2085        .16062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7903        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5935        .15069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7645        .15357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.6949        16.489        .12867E-03   -1.5085    
  17  Prefactor     22.042        36.236        .85179E-04   -1.4769    
  18  Prefactor     .10000E-03    5.4325        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6182        .15127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.655        8.6733        .10840E-03   -1.4969    
  21  Normalizat    .91414        .21947        .28247E-03   -.95965    
  22  Prefactor     .92073        .15982        .20317E-03   -.95420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56241e-12
Minuit parameter uncertainties:
  1  1.51548e-06
  2  6.94726
  3  17.7826
  4  5.89075
  5  5.67062
  6  3.34259
  7  0.740319
  8  20.6083
  9  3.04548e-07
  10  1.78861e-06
  11  5.58879e-07
  12  2.84971e-07
  13  4.77771e-08
  14  4.3502e-06
  15  2.36956e-07
  16  16.4966
  17  36.2726
  18  4.02283e-07
  19  3.13276e-07
  20  8.67408
  21  0.219686
  22  0.159899
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  9.452e-01  7.403e-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.207e-01  1.599e-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:  9.141e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.32e-05

TS (Fixed Index): 3.52
Ra Dec: 34.462 1.735
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285872/likelihoodResults_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.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): 0
logL (Free Index) = 5202.40757462
delta logL = 0.210926867831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5202.39329702
delta logL = 0.225204467452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81265       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6834       1.0000          .0000       5.0000    
     3 'Normalizat'    .89039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93086       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=   5202.393     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81401        11.201        .99710E-02    .11480E-03
   2  alpha         2.6838        3.6297        .40829        .23678E-04
   3  Normalizat    .89032        .67385E-01    .64653E-01    .10452E-04
   4  Prefactor     .93091        .45866E-01    .45397E-01    .12244E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.814007
  alpha      = 2.68382
  Normalizat = 0.890325
  Prefactor  = 0.930906
 **********
 **   18 **HESSE 
 **********

 FCN=   5202.393     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81401        .73808        .44947E-04   -1.5528    
   2  alpha         2.6838        .83024        .14990E-01    .73593E-01
   3  Normalizat    .89032        .21211        .28598E-03   -.96801    
   4  Prefactor     .93091        .15139        .20215E-03   -.95069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46029e-09
Minuit parameter uncertainties:
  1  0.738091
  2  0.846404
  3  0.212308
  4  0.151457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285872': 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) = 5202.39329297
delta logL = 0.22520851803

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  8.140e-01  7.381e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.684e+00  8.464e-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.309e-01  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:  8.903e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.68 +/- 0.85
Photon Flux (Free Index): 6.07e-08 +/- 5.14e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.08e-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/285872/cmap_HighResolution_348969601_349228801_4FGL_J0217.8+0144_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.50e-05', photon_flux_error='3.09e-08', dlogl='2.25e-01', energy_flux='1.68e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-08-15 16:41:29.583491', photon_index_error2='0.85', photon_index2='2.68', ts='3.52', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.08e-05', EG='0.91', time_epoch_completed='1629070889.58', return_code='0', job_id='285872', GAL2='0.93', EG2='0.89', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.14e-08', ts2='3.99', photon_index='2.16' WHERE bin_id='423' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:41:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 285872: <4FGL_J0217.8+0144_daily_bin423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin423 34.4621 1.7346 348969601 349228801 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 :                                   488.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            961 sec.

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

