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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin562
RA = 34.4621, Dec = 1.7346
tmin = 384998401, tmax = 385257601
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='287132', job_status='RUN', time_executed='2021-08-15 16:36:43.391565', time_epoch_executed='1629070603.39' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287132/ft1_4FGL_J0217.8+0144_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287132/ft2_4FGL_J0217.8+0144_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287132/ft1_4FGL_J0217.8+0144_daily_bin562.fits outfile=/scratch/kocevski/287132/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin562.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=384998401.0 tmax=385257601.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.50
user 3.28
sys 1.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287132/ft1_filtered_4FGL_J0217.8+0144_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/287132/ft2_4FGL_J0217.8+0144_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/287132/ltcube_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.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/287132/ft2_4FGL_J0217.8+0144_daily_bin562.fits
.....................!
real 14.32
user 12.68
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287132/ft1_filtered_4FGL_J0217.8+0144_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/287132/ft2_4FGL_J0217.8+0144_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/287132/ltcube_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.fits outfile=/scratch/kocevski/287132/expmap_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.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/287132/ltcube_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.fits
.....................!
real 196.58
user 186.38
sys 7.05

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/287132/ft1_filtered_4FGL_J0217.8+0144_daily_bin562.fits scfile=/scratch/kocevski/287132/ft2_4FGL_J0217.8+0144_daily_bin562.fits outfile=/scratch/kocevski/287132/cmap_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.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.47
user 0.37
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287132/ft1_filtered_4FGL_J0217.8+0144_daily_bin562.fits scfile=/scratch/kocevski/287132/ft2_4FGL_J0217.8+0144_daily_bin562.fits outfile=/scratch/kocevski/287132/cmap_HighResolution_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.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.46
user 0.38
sys 1.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.751       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .87906       1.0000         .10000E-03   10000.    
     3 'norm      '    10.667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3990       1.0000         .10000E-03   10000.    
     5 'norm      '    19.809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3228       1.0000         .10000E-03   10000.    
     7 'norm      '    .94600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.767       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.449       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.1122       1.0000         .10000E-03   10000.    
    20 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83241       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0075       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=   5483.435     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2057 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.565        169.95       -.10435E-04   -.86197E-04
   2  Prefactor     .87966        2.8742        .96777E-06   -.44602E-04
   3  norm          10.667        10.583       -.21636E-06   -.22091E-04
   4  Prefactor     3.3989        5.3584        .56374E-05   -.17245E-03
   5  norm          19.809        7.2299       -.79567E-07   -.13643E-03
   6  Prefactor     6.3223        3.2864        .31379E-07   -.13345E-03
   7  norm          .94586        .89886        .11856E-06   -.23871E-04
   8  Prefactor     .10000E-03    9.8036        .86254E-07** at limit **
   9  Prefactor     11.766        8.8217        .13152E-06   -.34696E-04
  10  Prefactor     .10000E-03    23.661        .85528E-07** at limit **
  11  Prefactor     .10000E-03    7.8538        .25894E-06** at limit **
  12  Prefactor     53.560        23.304        .10374E-07   -.55675E-04
  13  Prefactor     2.4348        8.1400        .12449E-05   -.27924E-04
  14  Prefactor     .10000E-03    4.0519        .99216E-07** at limit **
  15  norm          13.450        13.585        .20745E-06   -.58066E-04
  16  Prefactor     18.165        15.778       -.74497E-07   -.77177E-05
  17  Prefactor     .10000E-03    17.655        .29139E-07** at limit **
  18  Prefactor     .10000E-03    3.2207        .26325E-06** at limit **
  19  norm          9.1119        7.7996        .70381E-07   -.52821E-04
  20  norm          .10001E-03    3.8635        .80905E-06** at limit **
  21  Normalizat    .83238        .19805        .25393E-05   -.24543E-03
  22  Prefactor     1.0075        .14880       -.30011E-05   -.48716E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5647
  Prefactor  = 0.87966
  norm       = 10.6668
  Prefactor  = 3.39887
  norm       = 19.8088
  Prefactor  = 6.32231
  norm       = 0.945859
  Prefactor  = 0.0001
  Prefactor  = 11.7663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.5604
  Prefactor  = 2.43479
  Prefactor  = 0.0001
  norm       = 13.4499
  Prefactor  = 18.1653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.11193
  norm       = 0.000100012
  Normalizat = 0.832376
  Prefactor  = 1.0075
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.435     FROM HESSE     STATUS=OK           350 CALLS     2407 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.565        174.61        .10801E-03   -1.4971    
   2  Prefactor     .87966        2.8196        .21854E-03   -1.5520    
   3  norm          10.667        10.587        .12267E-03   -1.5055    
   4  Prefactor     3.3989        5.3839        .10421E-02   -1.5339    
   5  norm          19.809        7.2296        .44995E-03   -1.4818    
   6  Prefactor     6.3223        3.2837        .90725E-04   -1.5205    
   7  norm          .94586        .85938        .65068E-03   -1.5513    
   8  Prefactor     .10000E-03    9.8152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.766        8.8246        .11678E-03   -1.5022    
  10  Prefactor     .10000E-03    23.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.560        23.281        .54804E-04   -1.4243    
  13  Prefactor     2.4348        8.0851        .26208E-03   -1.5396    
  14  Prefactor     .10000E-03    4.0554        .14557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.450        13.569        .10922E-03   -1.4974    
  16  Prefactor     18.165        15.826        .93965E-04   -1.4855    
  17  Prefactor     .10000E-03    17.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2604        .12977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.1119        7.8011        .13277E-03   -1.5104    
  20  norm          .10001E-03    18.835        .28042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83238        .21955        .30158E-03   -.98879    
  22  Prefactor     1.0075        .16564        .20682E-03   -.92480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06965e-09
Minuit parameter uncertainties:
  1  97.6888
  2  2.81999
  3  10.5885
  4  5.38468
  5  7.22992
  6  3.28381
  7  0.859396
  8  3.05966e-06
  9  8.82553
  10  1.89806e-05
  11  4.47858e-07
  12  23.2851
  13  8.08868
  14  1.34872e-07
  15  13.5725
  16  15.8295
  17  2.1561e-05
  18  6.03987e-06
  19  7.802
  20  0.000934545
  21  0.219786
  22  0.165725
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  9.459e-01  8.594e-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.008e+00  1.657e-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:  8.324e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.53e-05

TS (Fixed Index): 1.74
Ra Dec: 34.462 1.735
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287132/likelihoodResults_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.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) = 5483.11671165
delta logL = 0.318725768457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.1104216
delta logL = 0.325015814463

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70831        10.637        .10453E-01    .65662E-03
   2  alpha         2.7904        3.8407        .37979        .38142E-04
   3  Normalizat    .80605        .57898E-01    .69134E-01    .63611E-05
   4  Prefactor     1.0197        .43641E-01    .42166E-01    .54746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.708314
  alpha      = 2.79039
  Normalizat = 0.806046
  Prefactor  = 1.01971
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.110     FROM HESSE     STATUS=OK            35 CALLS      276 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70831        .91070        .47909E-03   -1.5540    
   2  alpha         2.7904        .95272        .14564E-01    .11642    
   3  Normalizat    .80605        .21423        .30590E-03   -.99845    
   4  Prefactor     1.0197        .15883        .20568E-03   -.92076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40592e-10
Minuit parameter uncertainties:
  1  0.910716
  2  0.977791
  3  0.214457
  4  0.158902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287132': 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) = 5483.11042153
delta logL = 0.325015892929

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  7.083e-01  9.107e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.790e+00  9.778e-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.020e+00  1.589e-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:  8.060e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 34.462 1.735
Photon Index (Free Index): 2.79 +/- 0.98
Photon Flux (Free Index): 6.03e-08 +/- 4.88e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.21e-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/287132/cmap_HighResolution_384998401_385257601_4FGL_J0217.8+0144_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-05', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.39e-05', photon_flux_error='3.59e-08', dlogl='3.25e-01', energy_flux='1.68e-05', photon_flux2='6.03e-08', job_status='DONE', time_completed='2021-08-15 16:47:00.594874', photon_index_error2='0.98', photon_index2='2.79', ts='1.74', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.21e-05', EG='0.83', time_epoch_completed='1629071220.59', return_code='0', job_id='287132', GAL2='1.02', EG2='0.81', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.88e-08', ts2='2.42', photon_index='2.16' WHERE bin_id='562' 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@bullet0197>
Subject: Job 287132: <4FGL_J0217.8+0144_daily_bin562> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin562> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:30:56 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:32:55 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:32:55 2021
Terminated at Sun Aug 15 16:47:01 2021
Results reported at Sun Aug 15 16:47:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin562 34.4621 1.7346 384998401 385257601 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            965 sec.

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

