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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin998
RA = 34.4621, Dec = 1.7346
tmin = 498009601, tmax = 498268801
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='289915', job_status='RUN', time_executed='2021-08-15 16:41:26.840883', time_epoch_executed='1629070886.84' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289915/ft1_4FGL_J0217.8+0144_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289915/ft2_4FGL_J0217.8+0144_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289915/ft1_4FGL_J0217.8+0144_daily_bin998.fits outfile=/scratch/kocevski/289915/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin998.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.73
user 7.78
sys 0.90

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289915/ft2_4FGL_J0217.8+0144_daily_bin998.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/289915/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/289915/ft1_filtered_4FGL_J0217.8+0144_daily_bin998.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.20
user 0.35
sys 0.78

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289915/ft1_filtered_4FGL_J0217.8+0144_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/289915/ft2_4FGL_J0217.8+0144_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/289915/ltcube_498009601_498268801_4FGL_J0217.8+0144_daily_bin998.fits outfile=/scratch/kocevski/289915/expmap_498009601_498268801_4FGL_J0217.8+0144_daily_bin998.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/289915/ltcube_498009601_498268801_4FGL_J0217.8+0144_daily_bin998.fits
.....................!
real 193.26
user 186.47
sys 6.33

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/289915/ft1_filtered_4FGL_J0217.8+0144_daily_bin998.fits scfile=/scratch/kocevski/289915/ft2_4FGL_J0217.8+0144_daily_bin998.fits outfile=/scratch/kocevski/289915/cmap_498009601_498268801_4FGL_J0217.8+0144_daily_bin998.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.17
user 0.39
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289915/ft1_filtered_4FGL_J0217.8+0144_daily_bin998.fits scfile=/scratch/kocevski/289915/ft2_4FGL_J0217.8+0144_daily_bin998.fits outfile=/scratch/kocevski/289915/cmap_HighResolution_498009601_498268801_4FGL_J0217.8+0144_daily_bin998.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.18
user 0.39
sys 0.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4010       1.0000         .10000E-03   10000.    
     3 'norm      '    9.5575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41182E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5149       1.0000         .10000E-03   10000.    
     7 'norm      '    .26820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3550       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.5190       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2727       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8841       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2761       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87916       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0971       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=   11435.86     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2105 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.168       -.18896E-06** at limit **
   2  Prefactor     3.4014        2.8978        .89278E-06   -.18465E-02
   3  norm          9.5530        8.8380        .26972E-06    .10995E-03
   4  Prefactor     .44947E-01    2.9436        .22201E-06   -.22198E-03
   5  norm          14.502        4.5185        .12046E-06    .29154E-03
   6  Prefactor     1.5149        2.0232        .24248E-06   -.59381E-03
   7  norm          .26839        .45371        .17488E-06   -.73692E-03
   8  Prefactor     14.641        16.565       -.52387E-06   -.13944E-03
   9  Prefactor     18.514        9.7497        .38206E-06    .21801E-03
  10  Prefactor     .10000E-03    21.897       -.12527E-06** at limit **
  11  Prefactor     4.3568        10.327        .78655E-06    .51138E-05
  12  Prefactor     .10000E-03    6.7541       -.14502E-07** at limit **
  13  Prefactor     8.1080        6.4573        .31303E-06    .15182E-03
  14  Prefactor     .10000E-03    5.0173       -.68666E-07** at limit **
  15  norm          7.5199        6.7627        .71893E-06    .40060E-03
  16  Prefactor     2.2736        7.6226        .13940E-05   -.20610E-04
  17  Prefactor     31.217        24.690        .25817E-05    .47094E-03
  18  Prefactor     5.8850        3.4999        .10299E-06   -.72845E-04
  19  norm          5.2768        5.1660       -.47067E-06   -.45215E-03
  20  norm          .10000E-03    2.0345        .36422E-07** at limit **
  21  Normalizat    .87913        .13796       -.79926E-06   -.75612E-04
  22  Prefactor     1.0970        .10140       -.30727E-06   -.12022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.40139
  norm       = 9.55303
  Prefactor  = 0.0449472
  norm       = 14.5017
  Prefactor  = 1.51492
  norm       = 0.268389
  Prefactor  = 14.6406
  Prefactor  = 18.5143
  Prefactor  = 0.0001
  Prefactor  = 4.3568
  Prefactor  = 0.0001
  Prefactor  = 8.108
  Prefactor  = 0.0001
  norm       = 7.51987
  Prefactor  = 2.27365
  Prefactor  = 31.2167
  Prefactor  = 5.88496
  norm       = 5.27677
  norm       = 0.0001
  Normalizat = 0.879128
  Prefactor  = 1.09697
 **********
 **   18 **HESSE 
 **********

 FCN=   11435.86     FROM HESSE     STATUS=OK           360 CALLS     2465 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4014        3.2891        .92107E-03   -1.5339    
   3  norm          9.5530        8.8534        .12963E-03   -1.5090    
   4  Prefactor     .44947E-01    3.0225        .55846E-01   -1.5666    
   5  norm          14.502        4.5209        .10517E-03   -1.4946    
   6  Prefactor     1.5149        2.0149        .16241E-03   -1.5462    
   7  norm          .26839        .42121        .90343E-03   -1.5604    
   8  Prefactor     14.641        16.515        .10469E-03   -1.4943    
   9  Prefactor     18.514        9.7719        .93087E-04   -1.4847    
  10  Prefactor     .10000E-03    21.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3568        10.329        .19301E-03   -1.5290    
  12  Prefactor     .10000E-03    6.7792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1080        6.4527        .14081E-03   -1.5138    
  14  Prefactor     .10000E-03    5.0674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.5199        6.8188        .14626E-03   -1.5159    
  16  Prefactor     2.2736        7.6185        .27241E-03   -1.5406    
  17  Prefactor     31.217        25.946        .71718E-04   -1.4590    
  18  Prefactor     5.8850        3.5025        .14835E-03   -1.5223    
  19  norm          5.2768        5.2279        .17498E-03   -1.5249    
  20  norm          .10000E-03    2.0560        .14891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87913        .15327        .29891E-03   -.97197    
  22  Prefactor     1.0970        .11392        .20226E-03   -.89564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2589e-08
Minuit parameter uncertainties:
  1  3.32751e-05
  2  3.28927
  3  8.85463
  4  0.736378
  5  4.52099
  6  2.01498
  7  0.421218
  8  16.52
  9  9.77273
  10  2.37663e-05
  11  10.3334
  12  3.12941e-06
  13  6.45324
  14  2.05157e-06
  15  6.81952
  16  7.62171
  17  25.9549
  18  3.50266
  19  5.2283
  20  6.15935e-06
  21  0.153342
  22  0.113943
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.684e-01  4.212e-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.097e+00  1.139e-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.791e-01  1.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/289915/likelihoodResults_498009601_498268801_4FGL_J0217.8+0144_daily_bin998.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) = 11435.6261347
delta logL = 0.229192508343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11435.6224275
delta logL = 0.232899727585

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23575       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0367       1.0000          .0000       5.0000    
     3 'Normalizat'    .85796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1056       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=   11435.62     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23498        4.1409        .10140E-01    .37158E-02
   2  alpha         3.0383        3.9203        .42419        .73019E-04
   3  Normalizat    .85794        .28423E-01    .68325E-01    .35048E-04
   4  Prefactor     1.1056        .21197E-01    .37379E-01    .49952E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.23498
  alpha      = 3.03829
  Normalizat = 0.857942
  Prefactor  = 1.10565
 **********
 **   18 **HESSE 
 **********

 FCN=   11435.62     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23498        .68591        .57863E-03   -1.5611    
   2  alpha         3.0383        3.6735        .31102E-01    .21702    
   3  Normalizat    .85794        .15183        .30229E-03   -.97954    
   4  Prefactor     1.1056        .11083        .20156E-03   -.89286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79293e-08
Minuit parameter uncertainties:
  1  0.68593
  2  2.50438
  3  0.151904
  4  0.110855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289915': 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) = 11435.6224249
delta logL = 0.232902296491

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.350e-01  6.859e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  3.038e+00  2.504e+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.106e+00  1.109e-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.579e-01  1.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 34.462 1.735
Photon Index (Free Index): 3.04 +/- 2.50
Photon Flux (Free Index): 2.76e-08 +/- 3.57e-08
Energy Flux (Free Index): 5.56e-06 +/- 6.86e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/289915/cmap_HighResolution_498009601_498268801_4FGL_J0217.8+0144_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', comment='SUCCESS', energy_flux2='5.56e-06', dlogl='2.33e-01', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-08-15 16:56:56.756755', photon_index_error2='2.50', photon_index2='3.04', ts='0.57', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='5.57e-08', energy_flux_error2='6.86e-06', EG='0.88', time_epoch_completed='1629071816.76', return_code='0', job_id='289915', GAL2='1.11', EG2='0.86', return_code2='0', photon_flux_error2='3.57e-08', ts2='1.07', photon_index='2.16' WHERE bin_id='998' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:56:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 289915: <4FGL_J0217.8+0144_daily_bin998> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin998> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 16:40:26 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:41:02 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:41:02 2021
Terminated at Sun Aug 15 16:56:57 2021
Results reported at Sun Aug 15 16:56:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin998 34.4621 1.7346 498009601 498268801 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 :                                   933.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            991 sec.

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

