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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin571
RA = 34.4621, Dec = 1.7346
tmin = 387331201, tmax = 387590401
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='287141', job_status='RUN', time_executed='2021-08-15 16:35:25.079149', time_epoch_executed='1629070525.08' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287141

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287141/ft1_4FGL_J0217.8+0144_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287141/ft2_4FGL_J0217.8+0144_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287141/ft1_4FGL_J0217.8+0144_daily_bin571.fits outfile=/scratch/kocevski/287141/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin571.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=387331201.0 tmax=387590401.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 5.03
user 4.17
sys 0.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287141/ft2_4FGL_J0217.8+0144_daily_bin571.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/287141/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin571.fits evtable="EVENTS" outfile="/scratch/kocevski/287141/ft1_filtered_4FGL_J0217.8+0144_daily_bin571.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.13
user 0.35
sys 0.75

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287141/ft1_filtered_4FGL_J0217.8+0144_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/287141/ft2_4FGL_J0217.8+0144_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/287141/ltcube_387331201_387590401_4FGL_J0217.8+0144_daily_bin571.fits outfile=/scratch/kocevski/287141/expmap_387331201_387590401_4FGL_J0217.8+0144_daily_bin571.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/287141/ltcube_387331201_387590401_4FGL_J0217.8+0144_daily_bin571.fits
.....................!
real 193.32
user 186.43
sys 6.05

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/287141/ft1_filtered_4FGL_J0217.8+0144_daily_bin571.fits scfile=/scratch/kocevski/287141/ft2_4FGL_J0217.8+0144_daily_bin571.fits outfile=/scratch/kocevski/287141/cmap_387331201_387590401_4FGL_J0217.8+0144_daily_bin571.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.12
user 0.38
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287141/ft1_filtered_4FGL_J0217.8+0144_daily_bin571.fits scfile=/scratch/kocevski/287141/ft2_4FGL_J0217.8+0144_daily_bin571.fits outfile=/scratch/kocevski/287141/cmap_HighResolution_387331201_387590401_4FGL_J0217.8+0144_daily_bin571.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.13
user 0.39
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2399       1.0000         .10000E-03   10000.    
     5 'norm      '    16.613       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6168       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2090       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.492       1.0000         .10000E-03   10000.    
    15 'norm      '    32.565       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75801E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96712       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98467       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=   6782.522     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     1998 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    48.017        .90712E-02** at limit **
   2  Prefactor     .10000E-03    1.5337        .90712E-02** at limit **
   3  norm          21.648        18.508        .21529E-02   -.76892E-03
   4  Prefactor     9.2326        10.656        .32962E-02    .99119E-03
   5  norm          16.612        6.5686        .24566E-02    .40794E-04
   6  Prefactor     4.6158        2.9021        .46830E-02    .15288E-03
   7  norm          1.2088        .74199        .10293E-01   -.17724E-03
   8  Prefactor     .10001E-03    9.6330        .90712E-02** at limit **
   9  Prefactor     .10000E-03    3.9077        .90712E-02** at limit **
  10  Prefactor     .10012E-03    55.632        .90712E-02** at limit **
  11  Prefactor     .10000E-03    3.9851        .90712E-02** at limit **
  12  Prefactor     .10001E-03    9.3404        .90712E-02** at limit **
  13  Prefactor     .10000E-03    10.312        .90712E-02** at limit **
  14  Prefactor     19.476        15.772        .22680E-02   -.18686E-03
  15  norm          32.569        16.342        .17554E-02   -.11886E-03
  16  Prefactor     .10003E-03    5.4008        .92843E-01** at limit **
  17  Prefactor     .10000E-03    14.352        .90712E-02** at limit **
  18  Prefactor     .10000E-03    2.4046        .90712E-02** at limit **
  19  norm          .10000E-03    3.8504        .90712E-02** at limit **
  20  norm          .10000E-03    9.3083        .90712E-02** at limit **
  21  Normalizat    .96735        .16608        .45754E-01   -.95354E-04
  22  Prefactor     .98462        .12732        .46075E-01    .62607E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100303
  Prefactor  = 0.0001
  norm       = 21.6481
  Prefactor  = 9.23257
  norm       = 16.6124
  Prefactor  = 4.61583
  norm       = 1.20883
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100124
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 19.4756
  norm       = 32.5687
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Normalizat = 0.967352
  Prefactor  = 0.984622
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.522     FROM HESSE     STATUS=OK           338 CALLS     2336 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    48.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5379        .99588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.648        18.498        .86116E-04   -1.4777    
   4  Prefactor     9.2326        10.642        .13185E-03   -1.5100    
   5  norm          16.612        6.5649        .98264E-04   -1.4893    
   6  Prefactor     4.6158        2.8986        .10564E-03   -1.5278    
   7  norm          1.2088        .74335        .53232E-04   -1.5488    
   8  Prefactor     .10001E-03    9.6418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9177        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10012E-03    55.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9983        .16054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    9.3682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.476        15.771        .90718E-04   -1.4825    
  15  norm          32.569        16.384        .70217E-04   -1.4566    
  16  Prefactor     .10003E-03    40.439        .36515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4182        .12469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8560        .15782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.5949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96735        .18117        .27771E-03   -.94132    
  22  Prefactor     .98462        .14156        .21033E-03   -.93244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35353e-08
Minuit parameter uncertainties:
  1  0.00764706
  2  3.55159e-06
  3  18.5026
  4  10.6444
  5  6.56517
  6  2.89868
  7  0.743352
  8  0.000481728
  9  2.03029e-05
  10  0.00525547
  11  1.46409e-06
  12  0.000509537
  13  0.000246346
  14  15.7745
  15  16.3866
  16  0.00231017
  17  6.31643e-06
  18  1.66473e-05
  19  9.95181e-06
  20  0.000359964
  21  0.181288
  22  0.141612
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.209e+00  7.434e-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.846e-01  1.416e-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.674e-01  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.54
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.32e-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) = 6782.52135328
delta logL = 0.000262153996118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6782.52132165
delta logL = 0.000293779116873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1430       1.0000          .0000       5.0000    
     3 'Normalizat'    .96873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98402       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.

 FCN=   6782.521     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      253 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2044        .76174        .53408E-04   -.24799E-03
   2  alpha         2.1428        .67931        .15957E-01    .15981E-05
   3  Normalizat    .96849        .18539        .27757E-03   -.13762E-04
   4  Prefactor     .98420        .13778        .21037E-03   -.25021E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20444
  alpha      = 2.14277
  Normalizat = 0.968494
  Prefactor  = 0.984203
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.521     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2044        .76819        .21363E-05   -1.5488    
   2  alpha         2.1428        .68428        .63826E-03   -.14338    
   3  Normalizat    .96849        .18557        .11103E-04   -.94094    
   4  Prefactor     .98420        .13786        .84149E-05   -.93258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21506e-12
Minuit parameter uncertainties:
  1  0.768193
  2  0.693321
  3  0.185689
  4  0.137907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287141': 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) = 6782.5213205
delta logL = 0.000294927168397

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.204e+00  7.682e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.143e+00  6.933e-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.842e-01  1.379e-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.685e-01  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.52
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.14 +/- 0.69
Photon Flux (Free Index): 4.95e-08 +/- 5.08e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.42e-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/287141/cmap_HighResolution_387331201_387590401_4FGL_J0217.8+0144_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='2.16e-05', photon_flux_error='3.10e-08', dlogl='2.95e-04', energy_flux='2.15e-05', photon_flux2='4.95e-08', job_status='DONE', time_completed='2021-08-15 16:45:31.743136', photon_index_error2='0.69', photon_index2='2.14', ts='8.54', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.97', time_epoch_completed='1629071131.74', return_code='0', job_id='287141', GAL2='0.98', EG2='0.97', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.08e-08', ts2='8.52', photon_index='2.16' WHERE bin_id='571' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 287141: <4FGL_J0217.8+0144_daily_bin571> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin571> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:30:57 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:33:04 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:33:04 2021
Terminated at Sun Aug 15 16:45:32 2021
Results reported at Sun Aug 15 16:45:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin571 34.4621 1.7346 387331201 387590401 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 :                                   605.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            875 sec.

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

