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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin913
RA = 34.4621, Dec = 1.7346
tmin = 475977601, tmax = 476236801
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='289791', job_status='RUN', time_executed='2021-08-15 16:40:58.876375', time_epoch_executed='1629070858.88' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289791/ft1_4FGL_J0217.8+0144_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289791/ft2_4FGL_J0217.8+0144_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289791/ft1_4FGL_J0217.8+0144_daily_bin913.fits outfile=/scratch/kocevski/289791/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin913.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=475977601.0 tmax=476236801.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.02
user 3.38
sys 1.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289791/ft1_filtered_4FGL_J0217.8+0144_daily_bin913.fits" evtable="EVENTS" scfile=/scratch/kocevski/289791/ft2_4FGL_J0217.8+0144_daily_bin913.fits sctable="SC_DATA" outfile=/scratch/kocevski/289791/ltcube_475977601_476236801_4FGL_J0217.8+0144_daily_bin913.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/289791/ft2_4FGL_J0217.8+0144_daily_bin913.fits
.....................!
real 15.71
user 13.49
sys 2.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289791/ft1_filtered_4FGL_J0217.8+0144_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/289791/ft2_4FGL_J0217.8+0144_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/289791/ltcube_475977601_476236801_4FGL_J0217.8+0144_daily_bin913.fits outfile=/scratch/kocevski/289791/expmap_475977601_476236801_4FGL_J0217.8+0144_daily_bin913.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/289791/ltcube_475977601_476236801_4FGL_J0217.8+0144_daily_bin913.fits
.....................!
real 198.37
user 188.19
sys 7.70

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/289791/ft1_filtered_4FGL_J0217.8+0144_daily_bin913.fits scfile=/scratch/kocevski/289791/ft2_4FGL_J0217.8+0144_daily_bin913.fits outfile=/scratch/kocevski/289791/cmap_475977601_476236801_4FGL_J0217.8+0144_daily_bin913.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.94
user 0.38
sys 1.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289791/ft1_filtered_4FGL_J0217.8+0144_daily_bin913.fits scfile=/scratch/kocevski/289791/ft2_4FGL_J0217.8+0144_daily_bin913.fits outfile=/scratch/kocevski/289791/cmap_HighResolution_475977601_476236801_4FGL_J0217.8+0144_daily_bin913.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 2.09
user 0.40
sys 1.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7854       1.0000         .10000E-03   10000.    
     3 'norm      '    12.206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.6909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1888       1.0000         .10000E-03   10000.    
     7 'norm      '    .91177       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.305       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.735       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4075       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'    1.2788       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75619       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=   5121.164     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2345 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.392       -.17476E-05** at limit **
   2  Prefactor     2.7856        3.2053       -.28385E-07   -.47249E-05
   3  norm          12.207        12.513       -.56319E-07   -.33855E-05
   4  Prefactor     .10000E-03    3.5889        .12760E-07** at limit **
   5  norm          6.6897        6.4163       -.14526E-06   -.15068E-03
   6  Prefactor     1.1897        3.0534        .18727E-05    .26679E-03
   7  norm          .91182        .69567       -.10129E-07   -.25349E-04
   8  Prefactor     .10000E-03    46.511        .32957E-06** at limit **
   9  Prefactor     2.2272        13.963        .41922E-05   -.58972E-03
  10  Prefactor     25.351        48.690       -.43416E-04   -.97409E-04
  11  Prefactor     11.455        18.891       -.55789E-07   -.10301E-03
  12  Prefactor     .10000E-03    8.2803        .41858E-07** at limit **
  13  Prefactor     .10000E-03    2.2676        .18670E-07** at limit **
  14  Prefactor     .10000E-03    10.418        .26022E-07** at limit **
  15  norm          10.305        9.3530        .25126E-06   -.92624E-05
  16  Prefactor     .10000E-03    44.341        .31225E-05** at limit **
  17  Prefactor     53.732        48.644       -.26771E-05   -.17144E-04
  18  Prefactor     1.4071        2.9756        .12436E-06   -.26115E-02
  19  norm          .10000E-03    5.5583       -.69161E-07** at limit **
  20  norm          .10000E-03    2.5744       -.38808E-07** at limit **
  21  Normalizat    1.2787        .19993       -.34459E-06   -.83231E-04
  22  Prefactor     .75618        .13787        .10872E-05   -.16402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.7856
  norm       = 12.2065
  Prefactor  = 0.0001
  norm       = 6.68966
  Prefactor  = 1.18967
  norm       = 0.911816
  Prefactor  = 0.0001
  Prefactor  = 2.22719
  Prefactor  = 25.3514
  Prefactor  = 11.4551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3051
  Prefactor  = 0.0001
  Prefactor  = 53.7322
  Prefactor  = 1.40708
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.27875
  Prefactor  = 0.756182
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.164     FROM HESSE     STATUS=OK           338 CALLS     2683 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7856        3.2041        .13372E-03   -1.5374    
   3  norm          12.207        12.519        .11466E-03   -1.5009    
   4  Prefactor     .10000E-03    3.6153        .13237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6897        6.3646        .15513E-03   -1.5191    
   6  Prefactor     1.1897        3.0055        .17979E-03   -1.5490    
   7  norm          .91182        .71165        .50318E-04   -1.5517    
   8  Prefactor     .10000E-03    47.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2272        15.768        .13781E-02   -1.5409    
  10  Prefactor     25.351        48.726        .79510E-04   -1.4701    
  11  Prefactor     11.455        19.114        .59181E-03   -1.5031    
  12  Prefactor     .10000E-03    8.2938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2696        .10524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.305        9.3576        .12482E-03   -1.5066    
  16  Prefactor     .10000E-03    45.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.732        48.652        .54717E-04   -1.4241    
  18  Prefactor     1.4071        7.8689        .18267E-02   -1.5471    
  19  norm          .10000E-03    5.5800        .16477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5856        .11212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2787        .22870        .24925E-03   -.84203    
  22  Prefactor     .75618        .15852        .22041E-03   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3549e-08
Minuit parameter uncertainties:
  1  1.99641e-05
  2  3.20429
  3  12.5214
  4  3.70663e-06
  5  6.36525
  6  3.00592
  7  0.711661
  8  0.000243568
  9  11.8562
  10  48.803
  11  19.1244
  12  1.72497e-05
  13  4.95041e-06
  14  5.62421e-06
  15  9.3589
  16  3.59563e-05
  17  48.6882
  18  6.65606
  19  1.67615e-06
  20  9.41418e-07
  21  0.228884
  22  0.158611
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  9.118e-01  7.117e-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:  7.562e-01  1.586e-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:  1.279e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.41
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.26e-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) = 5120.75025902
delta logL = 0.413506173936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5120.7328619
delta logL = 0.430903294008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47299       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3867       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74918       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=   5120.733     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47289        .44274        .10158E-01   -.28669E-03
   2  alpha         1.3865        .47101        .34800       -.32051E-04
   3  Normalizat    1.3052        .19214        .55894E-01    .36835E-05
   4  Prefactor     .74911        .13488        .43052E-01    .10948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.472894
  alpha      = 1.38648
  Normalizat = 1.3052
  Prefactor  = 0.749114
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.733     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47289        .77575        .41457E-03   -1.5570    
   2  alpha         1.3865        .84421        .13665E-01   -.46163    
   3  Normalizat    1.3052        .21855        .24715E-03   -.83411    
   4  Prefactor     .74911        .15317        .22143E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19845e-10
Minuit parameter uncertainties:
  1  0.775765
  2  0.865626
  3  0.218702
  4  0.153252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289791': 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) = 5120.73286164
delta logL = 0.430903546409

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  4.729e-01  7.758e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.386e+00  8.656e-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:  7.491e-01  1.533e-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:  1.305e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 34.462 1.735
Photon Index (Free Index): 1.39 +/- 0.87
Photon Flux (Free Index): 1.26e-08 +/- 2.09e-08
Energy Flux (Free Index): 3.06e-05 +/- 4.42e-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/289791/cmap_HighResolution_475977601_476236801_4FGL_J0217.8+0144_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='3.06e-05', photon_flux_error='2.97e-08', dlogl='4.31e-01', energy_flux='1.62e-05', photon_flux2='1.26e-08', job_status='DONE', time_completed='2021-08-15 16:50:24.512990', photon_index_error2='0.87', photon_index2='1.39', ts='8.41', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='4.42e-05', EG='1.28', time_epoch_completed='1629071424.51', return_code='0', job_id='289791', GAL2='0.75', EG2='1.31', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.09e-08', ts2='9.26', photon_index='2.16' WHERE bin_id='913' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:50:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 289791: <4FGL_J0217.8+0144_daily_bin913> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin913> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 16:40:18 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:40:22 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:40:22 2021
Terminated at Sun Aug 15 16:50:25 2021
Results reported at Sun Aug 15 16:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin913 34.4621 1.7346 475977601 476236801 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 :                                   584.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            607 sec.

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

