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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin970
RA = 34.3163, Dec = 8.6234
tmin = 490752001, tmax = 491011201
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='268147', job_status='RUN', time_executed='2021-08-15 15:28:59.397096', time_epoch_executed='1629066539.4' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268147/ft1_4FGL_J0217.2+0837_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268147/ft1_4FGL_J0217.2+0837_daily_bin970.fits outfile=/scratch/kocevski/268147/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin970.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=490752001.0 tmax=491011201.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 6.22
user 5.46
sys 0.60

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.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/268147/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin970.fits evtable="EVENTS" outfile="/scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.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.99
user 0.33
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/268147/ltcube_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.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/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits
.....................!
real 16.75
user 15.87
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/268147/ltcube_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.fits outfile=/scratch/kocevski/268147/expmap_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.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/268147/ltcube_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.fits
.....................!
real 192.43
user 186.01
sys 5.39

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J0217.2+0837 @ 34.3163 8.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits scfile=/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits outfile=/scratch/kocevski/268147/cmap_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.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.3163 yref=8.6234 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.87
user 0.39
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits scfile=/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits outfile=/scratch/kocevski/268147/cmap_HighResolution_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.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.3163 yref=8.6234 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.90
user 0.38
sys 0.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268147/Model_4FGL_J0217.2+0837_daily_bin970.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/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits.....................!
real 62.92
user 60.93
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits', '/scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits', expMap='/scratch/kocevski/268147/expmap_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.fits', expCube='/scratch/kocevski/268147/ltcube_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268147/Model_4FGL_J0217.2+0837_daily_bin970.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.2+0837'

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.926e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/268147/ft1_filtered_4FGL_J0217.2+0837_daily_bin970.fits
Spacecraft file(s): /scratch/kocevski/268147/ft2_4FGL_J0217.2+0837_daily_bin970.fits
Exposure map: /scratch/kocevski/268147/expmap_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.fits
Exposure cube: /scratch/kocevski/268147/ltcube_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268147/Model_4FGL_J0217.2+0837_daily_bin970.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) = 4806.89084593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9807       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.049       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4882       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2311       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .29229       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8631       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.929       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2236       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.469       1.0000         .10000E-03   10000.    
    25 'norm      '    11.107       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81261       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4806.882     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2810 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5946        .11161E-07** at limit **
   2  norm          .10000E-03    9.1229        .51649E-06** at limit **
   3  Prefactor     5.9798        6.7823        .34037E-07   -.12138E-03
   4  Prefactor     .10000E-03    3.4937        .38040E-06** at limit **
   5  norm          15.048        7.6461        .36215E-07   -.41458E-03
   6  Prefactor     8.4872        4.2855        .19689E-06    .19905E-05
   7  norm          .10000E-03    .62128        .34998E-07** at limit **
   8  Prefactor     34.464        6.5176       -.26375E-06    .35067E-02
   9  Prefactor     .10003E-03    25.215        .27590E-06** at limit **
  10  Prefactor     .10000E-03    3.1424       -.95733E-07** at limit **
  11  Prefactor     .10002E-03    26.631        .15361E-06** at limit **
  12  Prefactor     17.249        11.289        .58114E-06    .57015E-03
  13  Prefactor     8.3966        14.384       -.11115E-05    .35954E-02
  14  Prefactor     20.082        16.017       -.40163E-06   -.19439E-02
  15  Prefactor     .10000E-03    5.3070       -.42542E-06** at limit **
  16  norm          2.2308        .81259       -.62064E-07   -.95136E-04
  17  Prefactor     .10009E-03    25.763        .15506E-06** at limit **
  18  Prefactor     .10000E-03    16.861        .15799E-05** at limit **
  19  norm          .16360E-03    6587.4        .15759E-04** at limit **
  20  Prefactor     9.8574        2.9556        .28707E-06   -.92735E-03
  21  Prefactor     36.040        44.892       -.12238E-05   -.25309E-02
  22  Prefactor     7.2192        1.6337       -.63314E-07    .39697E-03
  23  Prefactor     .10000E-03    9.4188       -.48221E-06** at limit **
  24  norm          16.469        12.825        .71256E-06    .36077E-02
  25  norm          11.107        6.3678        .10981E-05   -.89625E-05
  26  Normalizat    .81238        .25352        .92708E-06    .11467E-04
  27  Prefactor     1.0506        .15850       -.38200E-06    .16873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.97976
  Prefactor  = 0.0001
  norm       = 15.0475
  Prefactor  = 8.48721
  norm       = 0.0001
  Prefactor  = 34.4635
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 17.249
  Prefactor  = 8.39658
  Prefactor  = 20.0816
  Prefactor  = 0.0001
  norm       = 2.23077
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  norm       = 0.000163602
  Prefactor  = 9.85737
  Prefactor  = 36.0402
  Prefactor  = 7.21924
  Prefactor  = 0.0001
  norm       = 16.4694
  norm       = 11.1066
  Normalizat = 0.812385
  Prefactor  = 1.05063
 **********
 **   18 **HESSE 
 **********

 FCN=   4806.882     FROM HESSE     STATUS=OK           554 CALLS     3364 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.1304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9798        6.7866        .41048E-02   -1.5219    
   4  Prefactor     .10000E-03    3.3750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.048        7.6475        .25811E-02   -1.4932    
   6  Prefactor     8.4872        4.4306        .34398E-02   -1.5125    
   7  norm          .10000E-03    .46746        .23405E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.464        35.664        .17066E-02   -1.4533    
   9  Prefactor     .10003E-03    73.544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    70.716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.249        11.433        .24113E-02   -1.4877    
  13  Prefactor     8.3966        28.974        .34571E-02   -1.5128    
  14  Prefactor     20.082        18.096        .22369E-02   -1.4811    
  15  Prefactor     .10000E-03    5.3227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2308        .84061        .68807E-02   -1.5409    
  17  Prefactor     .10009E-03    74.801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .16360E-03    16.191        .10391       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.8574        19.527        .31898E-02   -1.5080    
  21  Prefactor     36.040        51.183        .16715E-02   -1.4507    
  22  Prefactor     7.2192        26.398        .37311E-02   -1.5171    
  23  Prefactor     .10000E-03    9.2102        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.469        13.279        .24673E-02   -1.4896    
  25  norm          11.107        6.3610        .30053E-02   -1.5041    
  26  Normalizat    .81238        .23344        .80808E-01   -.99611    
  27  Prefactor     1.0506        .14436        .39886E-01   -.91060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30922e-07
Minuit parameter uncertainties:
  1  2.84613e-08
  2  2.04925e-06
  3  6.78742
  4  3.55174e-06
  5  7.64799
  6  4.43078
  7  7.21552e-08
  8  35.6859
  9  0.00287691
  10  7.82792e-07
  11  0.00223434
  12  11.4349
  13  29.0224
  14  18.1005
  15  4.67942e-06
  16  0.840614
  17  0.00518513
  18  3.9275e-05
  19  0.0641976
  20  19.5393
  21  51.2458
  22  26.4402
  23  4.55431e-06
  24  13.2817
  25  6.36138
  26  0.233729
  27  0.144418
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  8.487e+00  4.431e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.051e+00  1.444e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  8.124e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.00
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 6.92e-08
Energy Flux (Fixed Index): 5.28e-05 +/- 2.76e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4806.87521781
delta logL = 0.00693161439995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4806.87085855
delta logL = 0.0112908735755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0336       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3294       1.0000          .0000       10.000    
     3 'Normalizat'    .80794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   4806.871     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0339        5.2432        .93185E-04   -.12788E-02
   2  Index         2.3292        .41651        .44879E-02   -.29149E-03
   3  Normalizat    .80802        .25291        .35857E-03    .61256E-04
   4  Prefactor     1.0520        .15228        .19160E-03    .16518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03389
  Index      = 2.32922
  Normalizat = 0.808024
  Prefactor  = 1.05204
 **********
 **   18 **HESSE 
 **********

 FCN=   4806.871     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0339        5.0823        .37274E-05   -1.5141    
   2  Index         2.3292        .40360        .17951E-03   -.56351    
   3  Normalizat    .80802        .25294        .14343E-04   -.99772    
   4  Prefactor     1.0520        .15231        .38320E-04   -.91014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96567e-10
Minuit parameter uncertainties:
  1  5.08257
  2  0.404211
  3  0.253305
  4  0.15237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268147': 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) = 4806.87085835
delta logL = 0.0112910784019

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  8.034e+00  5.083e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.329e+00  4.042e-01  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.052e+00  1.524e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  8.080e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 34.316 8.623
Photon Index (Free Index): 2.33 +/- 0.40
Photon Flux (Free Index): 1.38e-07 +/- 7.61e-08
Energy Flux (Free Index): 4.99e-05 +/- 3.05e-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/268147/cmap_HighResolution_490752001_491011201_4FGL_J0217.2+0837_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='4.99e-05', photon_flux_error='6.92e-08', dlogl='1.13e-02', energy_flux='5.28e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-08-15 15:39:23.816809', photon_index_error2='0.40', photon_index2='2.33', ts='8.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.05e-05', EG='0.81', time_epoch_completed='1629067163.82', return_code='0', job_id='268147', GAL2='1.05', EG2='0.81', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='7.61e-08', ts2='8.06', photon_index='2.27' WHERE bin_id='970' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:39:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 268147: <4FGL_J0217.2+0837_daily_bin970> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin970> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 15:25:36 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:25:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 15:25:54 2021
Terminated at Sun Aug 15 15:39:24 2021
Results reported at Sun Aug 15 15:39:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin970 34.3163 8.6234 490752001 491011201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.2+0837 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            828 sec.

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

