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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin594
RA = 34.4621, Dec = 1.7346
tmin = 393292801, tmax = 393552001
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='287164', job_status='RUN', time_executed='2021-08-15 16:35:50.404594', time_epoch_executed='1629070550.4' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287164/ft1_4FGL_J0217.8+0144_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287164/ft2_4FGL_J0217.8+0144_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287164/ft1_4FGL_J0217.8+0144_daily_bin594.fits outfile=/scratch/kocevski/287164/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin594.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=393292801.0 tmax=393552001.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 4.93
user 4.46
sys 0.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287164/ft2_4FGL_J0217.8+0144_daily_bin594.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/287164/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/287164/ft1_filtered_4FGL_J0217.8+0144_daily_bin594.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.87
user 0.34
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287164/ft1_filtered_4FGL_J0217.8+0144_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/287164/ft2_4FGL_J0217.8+0144_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/287164/ltcube_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.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/287164/ft2_4FGL_J0217.8+0144_daily_bin594.fits
.....................!
real 13.41
user 12.72
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287164/ft1_filtered_4FGL_J0217.8+0144_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/287164/ft2_4FGL_J0217.8+0144_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/287164/ltcube_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.fits outfile=/scratch/kocevski/287164/expmap_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.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/287164/ltcube_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.fits
.....................!
real 192.73
user 186.88
sys 5.22

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/287164/ft1_filtered_4FGL_J0217.8+0144_daily_bin594.fits scfile=/scratch/kocevski/287164/ft2_4FGL_J0217.8+0144_daily_bin594.fits outfile=/scratch/kocevski/287164/cmap_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.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 0.81
user 0.38
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287164/ft1_filtered_4FGL_J0217.8+0144_daily_bin594.fits scfile=/scratch/kocevski/287164/ft2_4FGL_J0217.8+0144_daily_bin594.fits outfile=/scratch/kocevski/287164/cmap_HighResolution_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.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 0.80
user 0.40
sys 0.39

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.377       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.799       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .69120E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    15.064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3214       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.788       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25077E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70091E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .84447E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.982       1.0000         .10000E-03   10000.    
    15 'norm      '    42.122       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5956       1.0000         .10000E-03   10000.    
    19 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.316       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1501       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74343       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=   5114.448     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2431 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.388        97.578       -.20682E-05    .49420E-05
   2  Prefactor     .10000E-03    1.7062       -.41738E-07** at limit **
   3  norm          19.807        15.107       -.40633E-06   -.90986E-04
   4  Prefactor     .10001E-03    7.2135        .23352E-05** at limit **
   5  norm          15.068        6.2810       -.63263E-06   -.42265E-03
   6  Prefactor     3.3189        2.4547        .14022E-06   -.14741E-03
   7  norm          .10000E-03    .65877       -.11095E-07** at limit **
   8  Prefactor     12.769        18.694       -.21893E-05   -.65488E-04
   9  Prefactor     .10000E-03    9.9499        .49943E-05** at limit **
  10  Prefactor     .10001E-03    528.50        .63961E-05** at limit **
  11  Prefactor     2.8215        9.3854       -.17619E-06    .47581E-04
  12  Prefactor     .10000E-03    9.5018        .28776E-06** at limit **
  13  Prefactor     .10048E-03    27.276       -.12153E-04** at limit **
  14  Prefactor     27.977        24.114       -.13336E-05   -.19121E-04
  15  norm          42.107        18.218       -.11474E-05   -.30445E-03
  16  Prefactor     .10000E-03    7.8145       -.12499E-06** at limit **
  17  Prefactor     .10000E-03    23.836       -.27329E-07** at limit **
  18  Prefactor     3.5952        4.8309        .34913E-05    .17257E-02
  19  norm          .10000E-03    10.308       -.27644E-06** at limit **
  20  norm          22.314        8.8850        .27110E-06   -.43618E-04
  21  Normalizat    1.1500        .19326       -.25741E-07   -.33838E-03
  22  Prefactor     .74353        .13621       -.53582E-06   -.29970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.3877
  Prefactor  = 0.0001
  norm       = 19.8068
  Prefactor  = 0.000100013
  norm       = 15.0678
  Prefactor  = 3.31894
  norm       = 0.0001
  Prefactor  = 12.7693
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.82151
  Prefactor  = 0.0001
  Prefactor  = 0.000100481
  Prefactor  = 27.9774
  norm       = 42.1068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59522
  norm       = 0.0001
  norm       = 22.3141
  Normalizat = 1.14998
  Prefactor  = 0.743529
 **********
 **   18 **HESSE 
 **********

 FCN=   5114.448     FROM HESSE     STATUS=OK           342 CALLS     2773 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.388        97.519        .62318E-04   -1.4420    
   2  Prefactor     .10000E-03    1.7103        .91222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.807        15.065        .90013E-04   -1.4818    
   4  Prefactor     .10001E-03    60.488        .35420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.068        6.2554        .10320E-03   -1.4931    
   6  Prefactor     3.3189        2.4463        .91568E-04   -1.5344    
   7  norm          .10000E-03    1.1127        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.769        18.675        .11201E-03   -1.4993    
   9  Prefactor     .10000E-03    44.589        .38242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    537.56        .18698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8215        9.3588        .24215E-03   -1.5372    
  12  Prefactor     .10000E-03    9.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10048E-03    61.246        .38535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.977        24.134        .75735E-04   -1.4650    
  15  norm          42.107        17.668        .61766E-04   -1.4409    
  16  Prefactor     .10000E-03    7.8375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5952        5.5097        .99830E-03   -1.5329    
  19  norm          .10000E-03    10.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.314        8.8793        .84789E-04   -1.4763    
  21  Normalizat    1.1500        .21459        .26104E-03   -.88163    
  22  Prefactor     .74353        .15094        .22323E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09479e-08
Minuit parameter uncertainties:
  1  97.8984
  2  3.74092e-06
  3  15.0675
  4  0.00177392
  5  6.25563
  6  2.44637
  7  6.73594e-06
  8  18.6834
  9  0.000190799
  10  0.00351283
  11  9.36362
  12  7.88782e-05
  13  0.0108659
  14  24.1428
  15  17.6699
  16  1.44699e-05
  17  1.40716e-05
  18  5.51044
  19  5.99426e-05
  20  8.87979
  21  0.214758
  22  0.151021
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  6.736e-06  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.435e-01  1.510e-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.150e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287164/likelihoodResults_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.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): 102
logL (Free Index) = 5114.45192424
delta logL = -0.00429443368103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5114.44763113
delta logL = -1.31892375066e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1809       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74369       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=   5113.962     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      283 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37967E-01    .41473E-01    .31164E-02   -.43433E-02
   2  alpha         5.0000        3.1391        .41583    ** at limit **
   3  Normalizat    1.0592        .20027        .61168E-01    .40407E-05
   4  Prefactor     .78054        .13429        .42980E-01    .34129E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0379666
  alpha      = 5
  Normalizat = 1.05917
  Prefactor  = 0.780542
 **********
 **   18 **HESSE 
 **********

 FCN=   5113.962     FROM HESSE     STATUS=OK            31 CALLS      314 TOTAL
                     EDM=   .89E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37967E-01    .42439E-01    .14089E-04   -1.5747    
   2  alpha         5.0000        3.3672        .70169E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0592        .22599        .27055E-03   -.91074    
   4  Prefactor     .78054        .15182        .21852E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85044e-14
Minuit parameter uncertainties:
  1  0.0424387
  2  3.91353e-07
  3  0.226195
  4  0.151898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287164': 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) = 5113.96166594
delta logL = 0.485963874107

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.797e-02  4.244e-02  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  5.000e+00  3.914e-07  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.805e-01  1.519e-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.059e+00  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 34.462 1.735
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.22e-08 +/- 9.14e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.24e-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/287164/cmap_HighResolution_393292801_393552001_4FGL_J0217.8+0144_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='4.86e-01', photon_flux2='8.22e-08', job_status='DONE', time_completed='2021-08-15 16:46:04.054606', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='1.24e-05', EG='1.15', time_epoch_completed='1629071164.05', return_code='0', job_id='287164', GAL2='0.78', EG2='1.06', return_code2='0', photon_flux_error2='9.14e-08', ts2='1.11', photon_index='2.16' WHERE bin_id='594' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 287164: <4FGL_J0217.8+0144_daily_bin594> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin594> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:31:00 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:33:14 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:14 2021
Terminated at Sun Aug 15 16:46:05 2021
Results reported at Sun Aug 15 16:46:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin594 34.4621 1.7346 393292801 393552001 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 :                                   606.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             237.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            905 sec.

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

