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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin767
RA = 34.4621, Dec = 1.7346
tmin = 438134401, tmax = 438393601
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='288493', job_status='RUN', time_executed='2021-08-15 16:39:36.995781', time_epoch_executed='1629070777.0' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288493

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288493/ft1_4FGL_J0217.8+0144_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288493/ft2_4FGL_J0217.8+0144_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288493/ft1_4FGL_J0217.8+0144_daily_bin767.fits outfile=/scratch/kocevski/288493/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin767.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=438134401.0 tmax=438393601.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 7.03
user 5.96
sys 1.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288493/ft1_filtered_4FGL_J0217.8+0144_daily_bin767.fits" evtable="EVENTS" scfile=/scratch/kocevski/288493/ft2_4FGL_J0217.8+0144_daily_bin767.fits sctable="SC_DATA" outfile=/scratch/kocevski/288493/ltcube_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.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/288493/ft2_4FGL_J0217.8+0144_daily_bin767.fits
.....................!
real 15.73
user 14.53
sys 1.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288493/ft1_filtered_4FGL_J0217.8+0144_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/288493/ft2_4FGL_J0217.8+0144_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/288493/ltcube_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.fits outfile=/scratch/kocevski/288493/expmap_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.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/288493/ltcube_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.fits
.....................!
real 192.40
user 185.95
sys 5.74

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/288493/ft1_filtered_4FGL_J0217.8+0144_daily_bin767.fits scfile=/scratch/kocevski/288493/ft2_4FGL_J0217.8+0144_daily_bin767.fits outfile=/scratch/kocevski/288493/cmap_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.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.26
user 0.37
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288493/ft1_filtered_4FGL_J0217.8+0144_daily_bin767.fits scfile=/scratch/kocevski/288493/ft2_4FGL_J0217.8+0144_daily_bin767.fits outfile=/scratch/kocevski/288493/cmap_HighResolution_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.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.25
user 0.38
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    188.08       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17717E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1254       1.0000         .10000E-03   10000.    
     5 'norm      '    17.447       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38628       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.360       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.342       1.0000         .10000E-03   10000.    
    15 'norm      '    5.8874       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0078       1.0000         .10000E-03   10000.    
    19 'norm      '    2.3945       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6659       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .54498       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2108       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=   5648.574     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2024 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     188.28        115.69       -.17141E-04   -.10753E-04
   2  Prefactor     .10000E-03    4.9396       -.71889E-06** at limit **
   3  norm          7.8214        13.710       -.19567E-06   -.13436E-05
   4  Prefactor     3.1289        6.2562        .32904E-05    .31762E-04
   5  norm          17.449        6.7009       -.76916E-07   -.12746E-04
   6  Prefactor     .10000E-03    .63871       -.57600E-07** at limit **
   7  norm          .38717        .51822       -.97177E-07   -.75503E-03
   8  Prefactor     .10000E-03    9.4145       -.15141E-06** at limit **
   9  Prefactor     2.6336        10.300        .62926E-06   -.22713E-04
  10  Prefactor     .10000E-03    29.481       -.22619E-06** at limit **
  11  Prefactor     .10000E-03    5.3120       -.34132E-06** at limit **
  12  Prefactor     10.363        14.903       -.17036E-07    .45568E-07
  13  Prefactor     .10000E-03    10.850       -.25191E-06** at limit **
  14  Prefactor     39.346        21.219       -.92515E-06    .13764E-04
  15  norm          5.9003        12.850        .20361E-06   -.18628E-04
  16  Prefactor     .10000E-03    3.6595       -.24066E-06** at limit **
  17  Prefactor     .10000E-03    13.186        .10361E-06** at limit **
  18  Prefactor     2.0128        5.6495        .72772E-05    .47644E-04
  19  norm          2.3979        11.392        .59734E-05    .16750E-04
  20  norm          3.6677        6.3813        .22215E-05    .65461E-05
  21  Normalizat    .54487        .18026        .55940E-05    .14247E-03
  22  Prefactor     1.2105        .14743       -.30748E-05    .50736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 188.278
  Prefactor  = 0.000100001
  norm       = 7.82135
  Prefactor  = 3.12894
  norm       = 17.4495
  Prefactor  = 0.0001
  norm       = 0.387169
  Prefactor  = 0.0001
  Prefactor  = 2.63363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3628
  Prefactor  = 0.0001
  Prefactor  = 39.3462
  norm       = 5.90032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01276
  norm       = 2.39789
  norm       = 3.66766
  Normalizat = 0.544871
  Prefactor  = 1.21054
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.574     FROM HESSE     STATUS=OK           350 CALLS     2374 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     188.28        115.65        .14722E-03   -1.2955    
   2  Prefactor     .10000E-03    13.837        .31827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8214        13.711        .14341E-03   -1.5149    
   4  Prefactor     3.1289        6.2515        .11467E-02   -1.5354    
   5  norm          17.449        6.7016        .95886E-04   -1.4872    
   6  Prefactor     .10000E-03    .64152        .58643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38717        .48021        .60502E-03   -1.5584    
   8  Prefactor     .10000E-03    9.4332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6336        10.301        .25169E-03   -1.5383    
  10  Prefactor     .10000E-03    29.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3277        .16916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.363        14.886        .12449E-03   -1.5064    
  13  Prefactor     .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.346        21.180        .63903E-04   -1.4453    
  15  norm          5.9003        12.887        .16551E-03   -1.5222    
  16  Prefactor     .10000E-03    3.6686        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0128        5.6421        .14197E-02   -1.5424    
  19  norm          2.3979        11.250        .13232E-02   -1.5398    
  20  norm          3.6677        6.3488        .10548E-02   -1.5325    
  21  Normalizat    .54487        .19333        .33973E-03   -1.1038    
  22  Prefactor     1.2105        .16083        .18475E-03   -.86008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87007e-10
Minuit parameter uncertainties:
  1  115.786
  2  0.000202658
  3  13.7162
  4  6.25278
  5  6.70189
  6  1.69233e-06
  7  0.480217
  8  1.36889e-05
  9  10.3076
  10  2.10685e-05
  11  3.07477e-05
  12  14.8914
  13  2.50079e-05
  14  21.1837
  15  12.893
  16  1.84159e-05
  17  1.44202e-05
  18  5.64363
  19  10.3909
  20  6.34997
  21  0.193568
  22  0.160892
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.872e-01  4.802e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.160e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.211e+00  1.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  5.449e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.62e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 6.88e-06 +/- 8.53e-06

TS (Fixed Index): 1.40
Ra Dec: 34.462 1.735
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288493/likelihoodResults_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.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) = 5648.37795321
delta logL = 0.196464963232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5648.37607494
delta logL = 0.198343233721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36363       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6299       1.0000          .0000       5.0000    
     3 'Normalizat'    .55109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2081       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=   5648.376     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      195 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36363        .50338        .10701E-01   -.21492E-02
   2  alpha         1.6299        .63093        .44854       -.55302E-05
   3  Normalizat    .55109        .17107        .76301E-01    .36746E-04
   4  Prefactor     1.2081        .13493        .34443E-01   -.62793E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.363634
  alpha      = 1.62991
  Normalizat = 0.551095
  Prefactor  = 1.20806
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.376     FROM HESSE     STATUS=OK            35 CALLS      230 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36363        .47315        .56213E-03   -1.5587    
   2  alpha         1.6299        .77566        .18386E-01   -.35547    
   3  Normalizat    .55109        .18461        .33788E-03   -1.1010    
   4  Prefactor     1.2081        .14601        .18489E-03   -.86084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29163e-10
Minuit parameter uncertainties:
  1  0.473157
  2  0.790566
  3  0.184816
  4  0.146054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288493': 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) = 5648.37607494
delta logL = 0.198343239573

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.636e-01  4.732e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.630e+00  7.906e-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.208e+00  1.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  5.511e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 34.462 1.735
Photon Index (Free Index): 1.63 +/- 0.79
Photon Flux (Free Index): 1.03e-08 +/- 1.52e-08
Energy Flux (Free Index): 1.29e-05 +/- 2.13e-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/288493/cmap_HighResolution_438134401_438393601_4FGL_J0217.8+0144_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.30e-05', comment='SUCCESS', photon_flux='1.62e-08', energy_flux2='1.29e-05', photon_flux_error='2.01e-08', dlogl='1.98e-01', energy_flux='6.88e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-08-15 16:49:49.135180', photon_index_error2='0.79', photon_index2='1.63', ts='1.40', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='7.75e-08', energy_flux_error2='2.13e-05', EG='0.54', time_epoch_completed='1629071389.14', return_code='0', job_id='288493', GAL2='1.21', EG2='0.55', return_code2='0', energy_flux_error='8.53e-06', photon_flux_error2='1.52e-08', ts2='1.80', photon_index='2.16' WHERE bin_id='767' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:49:49 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin767 34.4621 1.7346 438134401 438393601 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 :                                   619.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            858 sec.

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

