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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin726
RA = 34.4621, Dec = 1.7346
tmin = 427507201, tmax = 427766401
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='287381', job_status='RUN', time_executed='2021-08-15 16:37:07.781666', time_epoch_executed='1629070627.78' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287381

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287381/ft1_4FGL_J0217.8+0144_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287381/ft2_4FGL_J0217.8+0144_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287381/ft1_4FGL_J0217.8+0144_daily_bin726.fits outfile=/scratch/kocevski/287381/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin726.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=427507201.0 tmax=427766401.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.42
user 5.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287381/ft2_4FGL_J0217.8+0144_daily_bin726.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/287381/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/287381/ft1_filtered_4FGL_J0217.8+0144_daily_bin726.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287381/ft1_filtered_4FGL_J0217.8+0144_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/287381/ft2_4FGL_J0217.8+0144_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/287381/ltcube_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.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/287381/ft2_4FGL_J0217.8+0144_daily_bin726.fits
.....................!
real 12.90
user 12.48
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287381/ft1_filtered_4FGL_J0217.8+0144_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/287381/ft2_4FGL_J0217.8+0144_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/287381/ltcube_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.fits outfile=/scratch/kocevski/287381/expmap_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.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/287381/ltcube_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.fits
.....................!
real 192.04
user 185.73
sys 5.88

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/287381/ft1_filtered_4FGL_J0217.8+0144_daily_bin726.fits scfile=/scratch/kocevski/287381/ft2_4FGL_J0217.8+0144_daily_bin726.fits outfile=/scratch/kocevski/287381/cmap_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287381/ft1_filtered_4FGL_J0217.8+0144_daily_bin726.fits scfile=/scratch/kocevski/287381/ft2_4FGL_J0217.8+0144_daily_bin726.fits outfile=/scratch/kocevski/287381/cmap_HighResolution_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6978       1.0000         .10000E-03   10000.    
     3 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3730       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2777       1.0000         .10000E-03   10000.    
     7 'norm      '    .33586E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11381E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4838       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    95.601       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16209E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.884       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11680E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.1681       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70555       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1863       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=   4903.150     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2431 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.264       -.41891E-05** at limit **
   2  Prefactor     7.6988        6.1636        .25295E-06    .29710E-04
   3  norm          .10000E-03    28.169       -.14553E-05** at limit **
   4  Prefactor     3.3730        7.2222        .19850E-05    .22775E-03
   5  norm          7.6163        5.7778       -.82678E-07   -.13274E-05
   6  Prefactor     1.2765        3.5782        .10329E-06    .22335E-05
   7  norm          .43478E-01    .65648       -.42143E-07    .15400E-03
   8  Prefactor     23.604        38.872        .57386E-06    .20652E-05
   9  Prefactor     .10000E-03    10.552       -.39264E-06** at limit **
  10  Prefactor     .10000E-03    93.471        .54285E-05** at limit **
  11  Prefactor     6.4848        7.8051       -.19973E-07   -.61867E-05
  12  Prefactor     .10000E-03    24.502        .40806E-06** at limit **
  13  Prefactor     6.4163        13.356        .30597E-06    .99141E-05
  14  Prefactor     95.605        30.734       -.16428E-06    .28729E-04
  15  norm          .10000E-03    16.505       -.87711E-06** at limit **
  16  Prefactor     .10000E-03    22.955        .35918E-07** at limit **
  17  Prefactor     62.842        63.827        .32127E-05    .23579E-04
  18  Prefactor     .10001E-03    5.6566       -.15900E-05** at limit **
  19  norm          .10000E-03    22.506        .72270E-06** at limit **
  20  norm          9.1704        7.3316        .75956E-08    .11788E-04
  21  Normalizat    .70543        .23617        .30901E-06    .42774E-04
  22  Prefactor     1.1862        .17298       -.77793E-06    .11731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.69879
  norm       = 0.0001
  Prefactor  = 3.37298
  norm       = 7.6163
  Prefactor  = 1.27651
  norm       = 0.0434785
  Prefactor  = 23.6036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48483
  Prefactor  = 0.0001
  Prefactor  = 6.41631
  Prefactor  = 95.605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.8417
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 9.17035
  Normalizat = 0.705428
  Prefactor  = 1.18624
 **********
 **   18 **HESSE 
 **********

 FCN=   4903.150     FROM HESSE     STATUS=OK           346 CALLS     2777 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6988        6.1683        .14453E-03   -1.5153    
   3  norm          .10000E-03    28.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3730        7.4008        .11016E-02   -1.5341    
   5  norm          7.6163        5.7627        .13955E-03   -1.5156    
   6  Prefactor     1.2765        3.4821        .19421E-03   -1.5482    
   7  norm          .43478E-01    5.4849        .10522E-02   -1.5666    
   8  Prefactor     23.604        38.205        .82437E-04   -1.4736    
   9  Prefactor     .10000E-03    10.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    94.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4848        7.8052        .15761E-03   -1.5199    
  12  Prefactor     .10000E-03    24.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4163        13.373        .15843E-03   -1.5201    
  14  Prefactor     95.605        30.696        .41107E-04   -1.3749    
  15  norm          .10000E-03    16.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.842        64.032        .25301E-03   -1.4121    
  18  Prefactor     .10001E-03    11.217        .28568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    23.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.1704        7.3541        .13236E-03   -1.5102    
  21  Normalizat    .70543        .26054        .34870E-03   -1.0368    
  22  Prefactor     1.1862        .19137        .20068E-03   -.86756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49836e-10
Minuit parameter uncertainties:
  1  0.000199653
  2  6.16883
  3  1.79234e-05
  4  7.40278
  5  5.76316
  6  3.48265
  7  0.975646
  8  38.2448
  9  1.24332e-06
  10  0.000271229
  11  7.80643
  12  3.19401e-06
  13  13.379
  14  30.7011
  15  5.30723e-06
  16  0.000126428
  17  64.1027
  18  0.000507406
  19  3.40995e-05
  20  7.35487
  21  0.260997
  22  0.191484
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  4.348e-02  9.756e-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.186e+00  1.915e-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:  7.054e-01  2.610e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287381/likelihoodResults_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.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) = 4902.99116454
delta logL = 0.158947732002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4902.94121231
delta logL = 0.208899956599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19586       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6870       1.0000          .0000       5.0000    
     3 'Normalizat'    .63597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2146       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=   4902.941     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19644        4.3662        .99587E-02    .19866E-02
   2  alpha         3.6848        4.1976        .49507        .38245E-04
   3  Normalizat    .63596        .39820E-01    .82645E-01    .10709E-04
   4  Prefactor     1.2146        .29258E-01    .34295E-01   -.13466E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.196437
  alpha      = 3.68475
  Normalizat = 0.635959
  Prefactor  = 1.21458
 **********
 **   18 **HESSE 
 **********

 FCN=   4902.941     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19644        19.883        .43760E-04   -1.5619    
   2  alpha         3.6848        2.8152        .26711E-01    .49372    
   3  Normalizat    .63596        .25337        .36603E-03   -1.0648    
   4  Prefactor     1.2146        .18791        .19861E-03   -.85884    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03654e-06
Minuit parameter uncertainties:
  1  3.95291
  2  14.4267
  3  0.253837
  4  0.188016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287381': 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): 102
logL (Free Index) = 4902.94121203
delta logL = 0.208900237827

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.964e-01  3.953e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  3.685e+00  1.443e+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.215e+00  1.880e-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:  6.360e-01  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 34.462 1.735

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/287381/cmap_HighResolution_427507201_427766401_4FGL_J0217.8+0144_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-08-15 16:47:11.179374', job_id='287381', GAL2='1.21', fit_tolerance='1e-08', EG2='0.64', EG='0.71', time_epoch_completed='1629071231.18', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.09e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='726' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 287381: <4FGL_J0217.8+0144_daily_bin726> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin726> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:31:19 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:34:45 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:34:45 2021
Terminated at Sun Aug 15 16:47:11 2021
Results reported at Sun Aug 15 16:47:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin726 34.4621 1.7346 427507201 427766401 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 :                                   586.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            952 sec.

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

