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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin813
RA = 34.4621, Dec = 1.7346
tmin = 450057601, tmax = 450316801
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='288567', job_status='RUN', time_executed='2021-08-15 16:36:28.804463', time_epoch_executed='1629070588.8' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='813'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288567

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288567/ft1_4FGL_J0217.8+0144_daily_bin813.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288567/ft2_4FGL_J0217.8+0144_daily_bin813.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288567/ft1_4FGL_J0217.8+0144_daily_bin813.fits outfile=/scratch/kocevski/288567/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin813.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=450057601.0 tmax=450316801.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.06
user 3.49
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288567/ft1_filtered_4FGL_J0217.8+0144_daily_bin813.fits" evtable="EVENTS" scfile=/scratch/kocevski/288567/ft2_4FGL_J0217.8+0144_daily_bin813.fits sctable="SC_DATA" outfile=/scratch/kocevski/288567/ltcube_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.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/288567/ft2_4FGL_J0217.8+0144_daily_bin813.fits
.....................!
real 13.11
user 12.38
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288567/ft1_filtered_4FGL_J0217.8+0144_daily_bin813.fits evtable="EVENTS" scfile=/scratch/kocevski/288567/ft2_4FGL_J0217.8+0144_daily_bin813.fits sctable="SC_DATA" expcube=/scratch/kocevski/288567/ltcube_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.fits outfile=/scratch/kocevski/288567/expmap_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.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/288567/ltcube_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.fits
.....................!
real 193.72
user 186.90
sys 6.40

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/288567/ft1_filtered_4FGL_J0217.8+0144_daily_bin813.fits scfile=/scratch/kocevski/288567/ft2_4FGL_J0217.8+0144_daily_bin813.fits outfile=/scratch/kocevski/288567/cmap_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.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.84
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288567/ft1_filtered_4FGL_J0217.8+0144_daily_bin813.fits scfile=/scratch/kocevski/288567/ft2_4FGL_J0217.8+0144_daily_bin813.fits outfile=/scratch/kocevski/288567/cmap_HighResolution_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.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.85
user 0.38
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    139.43       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82076E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6145       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45779E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.849       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.339       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.129       1.0000         .10000E-03   10000.    
    15 'norm      '    .54264E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .87690       1.0000         .10000E-03   10000.    
    19 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.403       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3001       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87784       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=   5801.669     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     2868 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     139.39        114.67        .17057E-03   -.62439E-04
   2  Prefactor     .10367E-03    7.0405        .50122E-01** at limit **
   3  norm          1.6159        26.100        .16663E-02    .29591E-04
   4  Prefactor     .10000E-03    4.3766        .15501E-02** at limit **
   5  norm          10.526        5.9496        .12349E-03    .10466E-02
   6  Prefactor     .53343E-01    20.576        .16661E-02    .66176E-03
   7  norm          .10000E-03    2.2612        .10361E-02** at limit **
   8  Prefactor     .10000E-03    16.904        .18142E-02** at limit **
   9  Prefactor     .10000E-03    3.2937        .13483E-02** at limit **
  10  Prefactor     12.544        151.26        .11175E-03    .15261E-05
  11  Prefactor     .10000E-03    16.069        .18142E-02** at limit **
  12  Prefactor     .10000E-03    9.2442        .18142E-02** at limit **
  13  Prefactor     21.315        14.192        .86709E-04   -.34483E-04
  14  Prefactor     19.157        20.286        .91575E-04    .13656E-05
  15  norm          .18487        13.999        .73267E-01    .13345E-03
  16  Prefactor     .10000E-03    6.9879        .18142E-02** at limit **
  17  Prefactor     .10000E-03    64.372        .18142E-02** at limit **
  18  Prefactor     .88043        12.527        .28365E-02    .39893E-03
  19  norm          .10000E-03    3.9777        .14829E-02** at limit **
  20  norm          15.401        8.7042        .10205E-03   -.19662E-03
  21  Normalizat    1.3003        .22448        .26852E-03    .39586E-04
  22  Prefactor     .87748        .16801        .22585E-03   -.42535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 139.392
  Prefactor  = 0.000103674
  norm       = 1.61592
  Prefactor  = 0.0001
  norm       = 10.5261
  Prefactor  = 0.0533428
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 12.5443
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.3145
  Prefactor  = 19.1568
  norm       = 0.18487
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.880431
  norm       = 0.0001
  norm       = 15.4012
  Normalizat = 1.30034
  Prefactor  = 0.877485
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.669     FROM HESSE     STATUS=OK           346 CALLS     3214 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     139.39        114.66        .34114E-04   -1.3341    
   2  Prefactor     .10367E-03    6.5760        .52365E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6159        26.078        .66651E-04   -1.5454    
   4  Prefactor     .10000E-03    4.3775        .31002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.526        5.9436        .49396E-05   -1.5059    
   6  Prefactor     .53343E-01    20.600        .66644E-04   -1.5662    
   7  norm          .10000E-03    2.2769        .20723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2939        .26966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.544        149.59        .44698E-05   -1.4999    
  11  Prefactor     .10000E-03    16.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.2447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.315        14.180        .34683E-05   -1.4784    
  14  Prefactor     19.157        20.281        .36630E-05   -1.4832    
  15  norm          .18487        12.975        .77330E-01   -1.5622    
  16  Prefactor     .10000E-03    6.9888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    64.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .88043        12.441        .11346E-03   -1.5520    
  19  norm          .10000E-03    3.9778        .29659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.401        8.7024        .40821E-05   -1.4923    
  21  Normalizat    1.3003        .22447        .10741E-04   -.83556    
  22  Prefactor     .87748        .16752        .90339E-05   -.96932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1672e-09
Minuit parameter uncertainties:
  1  114.843
  2  0.00983216
  3  12.9893
  4  7.80774e-05
  5  5.94396
  6  2.09527
  7  3.55389e-05
  8  0.00036069
  9  3.73329e-05
  10  86.91
  11  0.000293379
  12  2.80282e-05
  13  14.1824
  14  20.2878
  15  3.09742
  16  8.1051e-05
  17  0.000661256
  18  6.62039
  19  9.68539e-06
  20  8.70311
  21  0.22464
  22  0.167616
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  3.554e-05  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:  8.775e-01  1.676e-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.300e+00  2.246e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/288567/likelihoodResults_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.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) = 5801.32808046
delta logL = 0.3406052029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5801.25325983
delta logL = 0.41542583376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93723E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2705       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90618       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=   5801.253     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      429 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93480E-01    2.1891        .58383E-02    .25773E-02
   2  alpha         4.2726        3.4947        .50000        .36872E-04
   3  Normalizat    1.2273        .49044E-01    .62226E-01   -.26684E-05
   4  Prefactor     .90596        .34743E-01    .45084E-01    .12045E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0934799
  alpha      = 4.27261
  Normalizat = 1.22731
  Prefactor  = 0.905963
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.253     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      464 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93480E-01    6.0707        .26683E-03   -1.5647    
   2  alpha         4.2726        2.7909        .34670E-01    .78814    
   3  Normalizat    1.2273        .17649        .27523E-03   -.85763    
   4  Prefactor     .90596        .12167        .22267E-03   -.95933    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38423e-07
Minuit parameter uncertainties:
  1  1.50599
  2  10.3018
  3  0.176574
  4  0.121708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288567': 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) = 5801.25325768
delta logL = 0.415427978524

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  9.348e-02  1.506e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  4.273e+00  1.030e+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:  9.060e-01  1.217e-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.227e+00  1.766e-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/288567/cmap_HighResolution_450057601_450316801_4FGL_J0217.8+0144_daily_bin813.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-08-15 16:47:41.401330', job_id='288567', GAL2='0.91', fit_tolerance='1e-08', EG2='1.23', EG='1.30', time_epoch_completed='1629071261.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.15e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='813' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 288567: <4FGL_J0217.8+0144_daily_bin813> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin813 34.4621 1.7346 450057601 450316801 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            724 sec.

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

