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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin842
RA = 34.4621, Dec = 1.7346
tmin = 457574401, tmax = 457833601
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='288615', job_status='RUN', time_executed='2021-08-15 16:38:47.732538', time_epoch_executed='1629070727.73' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='842'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288615/ft1_4FGL_J0217.8+0144_daily_bin842.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288615/ft2_4FGL_J0217.8+0144_daily_bin842.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288615/ft1_4FGL_J0217.8+0144_daily_bin842.fits outfile=/scratch/kocevski/288615/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin842.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=457574401.0 tmax=457833601.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.86
user 4.05
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288615/ft2_4FGL_J0217.8+0144_daily_bin842.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/288615/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin842.fits evtable="EVENTS" outfile="/scratch/kocevski/288615/ft1_filtered_4FGL_J0217.8+0144_daily_bin842.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.01
user 0.29
sys 0.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288615/ft1_filtered_4FGL_J0217.8+0144_daily_bin842.fits" evtable="EVENTS" scfile=/scratch/kocevski/288615/ft2_4FGL_J0217.8+0144_daily_bin842.fits sctable="SC_DATA" outfile=/scratch/kocevski/288615/ltcube_457574401_457833601_4FGL_J0217.8+0144_daily_bin842.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/288615/ft2_4FGL_J0217.8+0144_daily_bin842.fits
.....................!
real 11.97
user 11.02
sys 0.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288615/ft1_filtered_4FGL_J0217.8+0144_daily_bin842.fits evtable="EVENTS" scfile=/scratch/kocevski/288615/ft2_4FGL_J0217.8+0144_daily_bin842.fits sctable="SC_DATA" expcube=/scratch/kocevski/288615/ltcube_457574401_457833601_4FGL_J0217.8+0144_daily_bin842.fits outfile=/scratch/kocevski/288615/expmap_457574401_457833601_4FGL_J0217.8+0144_daily_bin842.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/288615/ltcube_457574401_457833601_4FGL_J0217.8+0144_daily_bin842.fits
.....................!
real 157.59
user 152.48
sys 4.63

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/288615/ft1_filtered_4FGL_J0217.8+0144_daily_bin842.fits scfile=/scratch/kocevski/288615/ft2_4FGL_J0217.8+0144_daily_bin842.fits outfile=/scratch/kocevski/288615/cmap_457574401_457833601_4FGL_J0217.8+0144_daily_bin842.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.06
user 0.36
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288615/ft1_filtered_4FGL_J0217.8+0144_daily_bin842.fits scfile=/scratch/kocevski/288615/ft2_4FGL_J0217.8+0144_daily_bin842.fits outfile=/scratch/kocevski/288615/cmap_HighResolution_457574401_457833601_4FGL_J0217.8+0144_daily_bin842.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.06
user 0.37
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0839       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2814       1.0000         .10000E-03   10000.    
     5 'norm      '    7.5056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5434       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.5201       1.0000         .10000E-03   10000.    
    20 'norm      '    9.3241       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3028       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78482       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=   5852.485     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2357 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.711        79.352       -.17436E-06   -.35158E-04
   2  Prefactor     8.0828        6.5396        .51614E-07   -.30513E-04
   3  norm          .10000E-03    4.2561       -.60951E-08** at limit **
   4  Prefactor     1.2818        4.3976        .15795E-05    .28732E-04
   5  norm          7.5126        4.9629       -.24921E-06   -.63402E-03
   6  Prefactor     .10028E-03    1.6312        .14059E-05** at limit **
   7  norm          1.5431        .97505       -.18017E-07   -.28846E-03
   8  Prefactor     6.4154        38.194       -.40838E-05   -.21908E-03
   9  Prefactor     .10000E-03    3.0014        .37134E-06** at limit **
  10  Prefactor     34.477        85.782       -.49904E-05   -.12995E-03
  11  Prefactor     .10000E-03    4.2154        .33030E-07** at limit **
  12  Prefactor     .10000E-03    13.353       -.44198E-06** at limit **
  13  Prefactor     10.048        11.721        .54292E-06   -.14887E-03
  14  Prefactor     .10000E-03    19.677       -.46883E-06** at limit **
  15  norm          .10000E-03    7.9265        .15559E-06** at limit **
  16  Prefactor     .10000E-03    6.8581        .92010E-07** at limit **
  17  Prefactor     .10000E-03    54.784        .92100E-07** at limit **
  18  Prefactor     .10000E-03    1.3898       -.10567E-07** at limit **
  19  norm          4.5191        6.8587        .24478E-06   -.73242E-05
  20  norm          9.3200        7.7732        .33203E-06   -.47264E-04
  21  Normalizat    1.3027        .19753        .21305E-05   -.61587E-03
  22  Prefactor     .78503        .14491       -.32203E-05   -.48561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.7109
  Prefactor  = 8.0828
  norm       = 0.0001
  Prefactor  = 1.28179
  norm       = 7.51258
  Prefactor  = 0.000100283
  norm       = 1.54306
  Prefactor  = 6.41544
  Prefactor  = 0.0001
  Prefactor  = 34.4772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0484
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.51915
  norm       = 9.31998
  Normalizat = 1.30275
  Prefactor  = 0.785034
 **********
 **   18 **HESSE 
 **********

 FCN=   5852.485     FROM HESSE     STATUS=OK           340 CALLS     2697 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.711        79.274        .26386E-03   -1.4187    
   2  Prefactor     8.0828        6.5567        .14101E-03   -1.5139    
   3  norm          .10000E-03    4.2574        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2818        4.3565        .28546E-03   -1.5482    
   5  norm          7.5126        4.9690        .13273E-03   -1.5160    
   6  Prefactor     .10028E-03    19.108        .15834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5431        .96405        .57210E-04   -1.5460    
   8  Prefactor     6.4154        37.212        .15922E-03   -1.5201    
   9  Prefactor     .10000E-03    3.0126        .12953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.477        86.025        .68380E-04   -1.4533    
  11  Prefactor     .10000E-03    4.2220        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.048        11.712        .12635E-03   -1.5074    
  14  Prefactor     .10000E-03    19.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    54.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3920        .88072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5191        6.8483        .18936E-03   -1.5283    
  20  norm          9.3200        7.7767        .13125E-03   -1.5097    
  21  Normalizat    1.3027        .21428        .25434E-03   -.83484    
  22  Prefactor     .78503        .15389        .22446E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.495e-08
Minuit parameter uncertainties:
  1  79.4197
  2  6.55731
  3  5.71304e-08
  4  4.35755
  5  4.9693
  6  0.00465054
  7  0.964058
  8  30.9306
  9  9.24037e-06
  10  86.3371
  11  1.22178e-06
  12  2.69851e-05
  13  11.7149
  14  5.22892e-06
  15  1.78373e-05
  16  8.85833e-07
  17  2.64485e-05
  18  1.14725e-06
  19  6.84944
  20  7.7775
  21  0.214421
  22  0.153969
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.543e+00  9.641e-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.850e-01  1.540e-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.303e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.01
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.45e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.71e-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) = 5851.82724589
delta logL = 0.657303085309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5851.81509141
delta logL = 0.66945756542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1887       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7615       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2681       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79937       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=   5851.815     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1889        12.000        .98500E-02    .21978E-02
   2  alpha         2.7614        3.8725        .27641        .67964E-04
   3  Normalizat    1.2681        .76040E-01    .58140E-01   -.75345E-04
   4  Prefactor     .79936        .54132E-01    .43709E-01   -.30661E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18887
  alpha      = 2.76143
  Normalizat = 1.26809
  Prefactor  = 0.799357
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.815     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1889        .92059        .44286E-04   -1.5490    
   2  alpha         2.7614        .58293        .11438E-01    .10476    
   3  Normalizat    1.2681        .21078        .25711E-03   -.84524    
   4  Prefactor     .79936        .14656        .22261E-03   -.99752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87182e-10
Minuit parameter uncertainties:
  1  0.9206
  2  0.588409
  3  0.210925
  4  0.146636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288615': 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) = 5851.81509138
delta logL = 0.669457597008

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.189e+00  9.206e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.761e+00  5.884e-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.994e-01  1.466e-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.268e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.76 +/- 0.59
Photon Flux (Free Index): 9.76e-08 +/- 5.70e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.33e-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/288615/cmap_HighResolution_457574401_457833601_4FGL_J0217.8+0144_daily_bin842.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.45e-08', energy_flux2='2.28e-05', photon_flux_error='4.03e-08', dlogl='6.69e-01', energy_flux='2.74e-05', photon_flux2='9.76e-08', job_status='DONE', time_completed='2021-08-15 16:47:00.394811', photon_index_error2='0.59', photon_index2='2.76', ts='4.01', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='1.30', time_epoch_completed='1629071220.39', return_code='0', job_id='288615', GAL2='0.80', EG2='1.27', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='5.70e-08', ts2='5.40', photon_index='2.16' WHERE bin_id='842' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 288615: <4FGL_J0217.8+0144_daily_bin842> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin842> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 16:35:42 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:36:25 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:36:25 2021
Terminated at Sun Aug 15 16:47:00 2021
Results reported at Sun Aug 15 16:47:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin842 34.4621 1.7346 457574401 457833601 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 :                                   495.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            678 sec.

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

