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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin902
RA = 34.4621, Dec = 1.7346
tmin = 473126401, tmax = 473385601
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='288710', job_status='RUN', time_executed='2021-08-15 16:39:58.480668', time_epoch_executed='1629070798.48' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='902'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288710

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288710/ft1_4FGL_J0217.8+0144_daily_bin902.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288710/ft2_4FGL_J0217.8+0144_daily_bin902.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288710/ft1_4FGL_J0217.8+0144_daily_bin902.fits outfile=/scratch/kocevski/288710/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin902.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=473126401.0 tmax=473385601.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.19
user 3.25
sys 3.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288710/ft1_filtered_4FGL_J0217.8+0144_daily_bin902.fits" evtable="EVENTS" scfile=/scratch/kocevski/288710/ft2_4FGL_J0217.8+0144_daily_bin902.fits sctable="SC_DATA" outfile=/scratch/kocevski/288710/ltcube_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.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/288710/ft2_4FGL_J0217.8+0144_daily_bin902.fits
.....................!
real 18.87
user 13.84
sys 4.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288710/ft1_filtered_4FGL_J0217.8+0144_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/288710/ft2_4FGL_J0217.8+0144_daily_bin902.fits sctable="SC_DATA" expcube=/scratch/kocevski/288710/ltcube_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.fits outfile=/scratch/kocevski/288710/expmap_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.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/288710/ltcube_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.fits
.....................!
real 198.38
user 186.03
sys 10.29

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/288710/ft1_filtered_4FGL_J0217.8+0144_daily_bin902.fits scfile=/scratch/kocevski/288710/ft2_4FGL_J0217.8+0144_daily_bin902.fits outfile=/scratch/kocevski/288710/cmap_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.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 4.55
user 0.40
sys 4.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288710/ft1_filtered_4FGL_J0217.8+0144_daily_bin902.fits scfile=/scratch/kocevski/288710/ft2_4FGL_J0217.8+0144_daily_bin902.fits outfile=/scratch/kocevski/288710/cmap_HighResolution_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.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 4.56
user 0.38
sys 4.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0926       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.9240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13218E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .36625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14374E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    80.121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8715       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .47209E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59401E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.101       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.304       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16193E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.6204       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1731       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76376       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0768       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5646.730     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     3348 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.567        .18142E-02** at limit **
   2  Prefactor     1.0935        5.7693        .33970E-03   -.14628E-03
   3  norm          .10000E-03    5.9428        .17881E-02** at limit **
   4  Prefactor     .10000E-03    1.7665        .97488E-03** at limit **
   5  norm          8.9227        5.3216        .12872E-03   -.10466E-03
   6  Prefactor     .10000E-03    5.2659        .17668E-02** at limit **
   7  norm          .36632        .65499        .21424E-03   -.27440E-03
   8  Prefactor     .10001E-03    103.89        .18142E-02** at limit **
   9  Prefactor     .10000E-03    19.205        .36285E-03** at limit **
  10  Prefactor     80.033        96.955        .22434E-03    .25763E-03
  11  Prefactor     6.8726        13.605        .76527E-03   -.32415E-04
  12  Prefactor     .10000E-03    167.69        .64146E-02** at limit **
  13  Prefactor     .10029E-03    54.730        .37500E-02** at limit **
  14  Prefactor     .10000E-03    9.5608        .18142E-02** at limit **
  15  norm          17.094        12.862        .96852E-04    .35163E-03
  16  Prefactor     20.305        14.853        .44444E-03    .46785E-04
  17  Prefactor     .10000E-03    16.631        .18142E-02** at limit **
  18  Prefactor     .10000E-03    9.6534        .29297E-02** at limit **
  19  norm          6.6246        13.209        .15596E-03    .76977E-04
  20  norm          5.1737        8.0928        .17675E-03    .12903E-03
  21  Normalizat    .76383        .21254        .30448E-03    .32588E-03
  22  Prefactor     1.0767        .15944        .19257E-03    .90658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.09346
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.92273
  Prefactor  = 0.000100001
  norm       = 0.366321
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 80.0334
  Prefactor  = 6.87257
  Prefactor  = 0.000100003
  Prefactor  = 0.00010029
  Prefactor  = 0.0001
  norm       = 17.0944
  Prefactor  = 20.3052
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.62463
  norm       = 5.17366
  Normalizat = 0.763829
  Prefactor  = 1.07668
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.730     FROM HESSE     STATUS=OK           324 CALLS     3672 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0935        5.7648        .13588E-04   -1.5499    
   3  norm          .10000E-03    5.9431        .35762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7666        .19498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.9227        5.3212        .51487E-05   -1.5110    
   6  Prefactor     .10000E-03    5.2859        .35336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .36632        .65486        .85696E-05   -1.5587    
   8  Prefactor     .10001E-03    103.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.206        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     80.033        96.873        .44869E-04   -1.3916    
  11  Prefactor     6.8726        13.598        .30611E-04   -1.5184    
  12  Prefactor     .10000E-03    172.50        .25658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10029E-03    55.337        .75001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.094        12.856        .19370E-04   -1.4881    
  16  Prefactor     20.305        14.850        .17778E-04   -1.4806    
  17  Prefactor     .10000E-03    16.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7104        .58593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.6246        13.207        .62384E-05   -1.5193    
  20  norm          5.1737        8.0914        .70700E-05   -1.5253    
  21  Normalizat    .76383        .21258        .12179E-04   -1.0142    
  22  Prefactor     1.0767        .15947        .38514E-04   -.90215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84953e-09
Minuit parameter uncertainties:
  1  8.1326e-06
  2  5.0219
  3  1.46093e-05
  4  7.48711e-06
  5  5.3215
  6  0.000107057
  7  0.65487
  8  0.00177108
  9  5.58894e-05
  10  97.0647
  11  13.6044
  12  0.00148678
  13  0.00801692
  14  8.26927e-05
  15  12.8585
  16  14.8531
  17  1.90551e-05
  18  0.000214555
  19  13.2124
  20  8.09312
  21  0.212807
  22  0.159538
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.663e-01  6.549e-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.077e+00  1.595e-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.638e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/288710/likelihoodResults_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.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) = 5646.61720839
delta logL = 0.112436523808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5646.61544824
delta logL = 0.11419667934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36154       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7069       1.0000          .0000       5.0000    
     3 'Normalizat'    .75032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0816       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5646.615     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36155        .62597        .64652E-03    .21866E-02
   2  alpha         2.7070        1.2099        .82662E-02   -.92201E-05
   3  Normalizat    .75031        .20277        .30702E-03   -.96277E-06
   4  Prefactor     1.0816        .14861        .19216E-03   -.59163E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.361547
  alpha      = 2.70698
  Normalizat = 0.750315
  Prefactor  = 1.08163
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.615     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36155        .59154        .25861E-04   -1.5588    
   2  alpha         2.7070        1.1493        .33065E-03    .82889E-01
   3  Normalizat    .75031        .20298        .12281E-04   -1.0194    
   4  Prefactor     1.0816        .14869        .76864E-05   -.90056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77346e-10
Minuit parameter uncertainties:
  1  0.591554
  2  1.19454
  3  0.203185
  4  0.148746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288710': 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) = 5646.61544824
delta logL = 0.114196680393

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  3.615e-01  5.916e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.707e+00  1.195e+00  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.082e+00  1.487e-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.503e-01  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/288710/cmap_HighResolution_473126401_473385601_4FGL_J0217.8+0144_daily_bin902.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', job_status='DONE', photon_flux_upper_limit='8.61e-08', time_completed='2021-08-15 16:52:11.392351', job_id='288710', GAL2='1.08', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1629071531.39', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.14e-01', ts2='0.64', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='902' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:52:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 288710: <4FGL_J0217.8+0144_daily_bin902> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin902 34.4621 1.7346 473126401 473385601 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 :                                   779.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            983 sec.

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

