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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin744
RA = 34.4621, Dec = 1.7346
tmin = 432172801, tmax = 432432001
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='287417', job_status='RUN', time_executed='2021-08-15 16:38:39.914543', time_epoch_executed='1629070719.91' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287417/ft1_4FGL_J0217.8+0144_daily_bin744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287417/ft2_4FGL_J0217.8+0144_daily_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287417/ft1_4FGL_J0217.8+0144_daily_bin744.fits outfile=/scratch/kocevski/287417/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin744.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=432172801.0 tmax=432432001.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 5.78
user 4.80
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287417/ft2_4FGL_J0217.8+0144_daily_bin744.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/287417/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin744.fits evtable="EVENTS" outfile="/scratch/kocevski/287417/ft1_filtered_4FGL_J0217.8+0144_daily_bin744.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.34
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287417/ft1_filtered_4FGL_J0217.8+0144_daily_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/287417/ft2_4FGL_J0217.8+0144_daily_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/287417/ltcube_432172801_432432001_4FGL_J0217.8+0144_daily_bin744.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/287417/ft2_4FGL_J0217.8+0144_daily_bin744.fits
.....................!
real 14.60
user 13.43
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287417/ft1_filtered_4FGL_J0217.8+0144_daily_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/287417/ft2_4FGL_J0217.8+0144_daily_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/287417/ltcube_432172801_432432001_4FGL_J0217.8+0144_daily_bin744.fits outfile=/scratch/kocevski/287417/expmap_432172801_432432001_4FGL_J0217.8+0144_daily_bin744.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/287417/ltcube_432172801_432432001_4FGL_J0217.8+0144_daily_bin744.fits
.....................!
real 194.80
user 188.01
sys 5.98

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/287417/ft1_filtered_4FGL_J0217.8+0144_daily_bin744.fits scfile=/scratch/kocevski/287417/ft2_4FGL_J0217.8+0144_daily_bin744.fits outfile=/scratch/kocevski/287417/cmap_432172801_432432001_4FGL_J0217.8+0144_daily_bin744.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.20
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287417/ft1_filtered_4FGL_J0217.8+0144_daily_bin744.fits scfile=/scratch/kocevski/287417/ft2_4FGL_J0217.8+0144_daily_bin744.fits outfile=/scratch/kocevski/287417/cmap_HighResolution_432172801_432432001_4FGL_J0217.8+0144_daily_bin744.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.21
user 0.37
sys 0.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.7612       1.0000         .10000E-03   10000.    
     3 'norm      '    12.739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    22.541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7491       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.331       1.0000         .10000E-03   10000.    
    15 'norm      '    11.299       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81975E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    103.29       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .78582       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1385       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3798       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57298       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=   4728.213     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2394 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.853        .21767E-05** at limit **
   2  Prefactor     1.7614        2.9481        .96976E-07   -.20000E-04
   3  norm          12.740        13.367        .58898E-07    .42253E-05
   4  Prefactor     .10000E-03    10.453        .58531E-07** at limit **
   5  norm          22.542        7.9950       -.58965E-06   -.53449E-03
   6  Prefactor     .10000E-03    .88318       -.43961E-07** at limit **
   7  norm          1.6718        .97413        .18572E-07   -.21007E-04
   8  Prefactor     .10000E-03    27.076        .10822E-06** at limit **
   9  Prefactor     6.1284        14.962        .50795E-05   -.16675E-03
  10  Prefactor     .10000E-03    31.667       -.22667E-05** at limit **
  11  Prefactor     .10000E-03    4.0775        .28854E-07** at limit **
  12  Prefactor     6.4647        29.794       -.18478E-06   -.21894E-04
  13  Prefactor     9.7533        18.707       -.30447E-06    .37507E-05
  14  Prefactor     13.335        18.518        .74961E-07    .19618E-05
  15  norm          11.292        18.669       -.11366E-06    .20004E-04
  16  Prefactor     .10156        6.3197        .91125E-06   -.25070E-03
  17  Prefactor     103.27        64.542       -.26271E-05   -.26018E-03
  18  Prefactor     .78652        6.3865        .15570E-05   -.20849E-03
  19  norm          .10000E-03    4.6424       -.24491E-07** at limit **
  20  norm          4.1382        4.2338       -.35263E-06   -.27579E-03
  21  Normalizat    1.3796        .20858       -.14222E-06   -.10917E-03
  22  Prefactor     .57312        .14677       -.55490E-06   -.81096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.76138
  norm       = 12.7405
  Prefactor  = 0.0001
  norm       = 22.5421
  Prefactor  = 0.0001
  norm       = 1.67178
  Prefactor  = 0.0001
  Prefactor  = 6.12842
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.46473
  Prefactor  = 9.75331
  Prefactor  = 13.335
  norm       = 11.2916
  Prefactor  = 0.101558
  Prefactor  = 103.265
  Prefactor  = 0.78652
  norm       = 0.0001
  norm       = 4.13819
  Normalizat = 1.3796
  Prefactor  = 0.57312
 **********
 **   18 **HESSE 
 **********

 FCN=   4728.213     FROM HESSE     STATUS=OK           352 CALLS     2746 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7614        2.9192        .14869E-03   -1.5443    
   3  norm          12.740        13.368        .11223E-03   -1.4994    
   4  Prefactor     .10000E-03    10.897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          22.542        8.0675        .84367E-04   -1.4758    
   6  Prefactor     .10000E-03    .88702        .63079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6718        .97361        .49658E-04   -1.5449    
   8  Prefactor     .10000E-03    27.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1284        15.243        .81064E-03   -1.5213    
  10  Prefactor     .10000E-03    32.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0877        .13561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4647        29.277        .15767E-03   -1.5199    
  13  Prefactor     9.7533        18.463        .12834E-03   -1.5083    
  14  Prefactor     13.335        18.500        .10970E-03   -1.4977    
  15  norm          11.292        18.579        .11918E-03   -1.5036    
  16  Prefactor     .10156        10.082        .61088E-01   -1.5644    
  17  Prefactor     103.27        66.933        .19782E-03   -1.3672    
  18  Prefactor     .78652        6.7375        .33648E-03   -1.5531    
  19  norm          .10000E-03    4.6615        .14468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1382        4.2595        .13928E-03   -1.5301    
  21  Normalizat    1.3796        .23604        .24243E-03   -.81220    
  22  Prefactor     .57312        .16515        .24375E-03   -1.0873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34988e-07
Minuit parameter uncertainties:
  1  0.000428471
  2  2.91946
  3  13.3716
  4  2.46716e-05
  5  8.06791
  6  2.79396e-07
  7  0.973622
  8  3.6809e-05
  9  15.2528
  10  0.000435687
  11  8.26137e-07
  12  27.5369
  13  18.4739
  14  18.508
  15  18.589
  16  2.02311
  17  66.9822
  18  4.60441
  19  9.91575e-07
  20  4.25985
  21  0.236224
  22  0.16529
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.672e+00  9.736e-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:  5.731e-01  1.653e-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.380e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.62
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 6.98e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.73e-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) = 4727.8520274
delta logL = 0.360701333102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4727.80605197
delta logL = 0.406676770377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3752       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6473       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56185       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=   4727.806     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3751        .85030        .92874E-02   -.36260E-03
   2  alpha         1.6472        .40108        .28336       -.29899E-04
   3  Normalizat    1.4128        .20425        .54293E-01    .71038E-06
   4  Prefactor     .56193        .13814        .40531E-01    .18660E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.37507
  alpha      = 1.64718
  Normalizat = 1.41278
  Prefactor  = 0.561929
 **********
 **   18 **HESSE 
 **********

 FCN=   4727.806     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3751        1.0419        .47994E-04   -1.5473    
   2  alpha         1.6472        .53795        .11379E-01   -.34812    
   3  Normalizat    1.4128        .23027        .24005E-03   -.80260    
   4  Prefactor     .56193        .15514        .24599E-03   -1.0921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56751e-10
Minuit parameter uncertainties:
  1  1.04192
  2  0.542763
  3  0.23044
  4  0.155259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287417': 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) = 4727.80605181
delta logL = 0.406676928932

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.375e+00  1.042e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.647e+00  5.428e-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:  5.619e-01  1.553e-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.413e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.39
Ra Dec: 34.462 1.735
Photon Index (Free Index): 1.65 +/- 0.54
Photon Flux (Free Index): 3.92e-08 +/- 3.64e-08
Energy Flux (Free Index): 4.69e-05 +/- 4.32e-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/287417/cmap_HighResolution_432172801_432432001_4FGL_J0217.8+0144_daily_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.98e-08', energy_flux2='4.69e-05', photon_flux_error='4.07e-08', dlogl='4.07e-01', energy_flux='2.97e-05', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-08-15 16:47:47.250701', photon_index_error2='0.54', photon_index2='1.65', ts='7.62', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='4.32e-05', EG='1.38', time_epoch_completed='1629071267.25', return_code='0', job_id='287417', GAL2='0.56', EG2='1.41', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='3.64e-08', ts2='8.39', photon_index='2.16' WHERE bin_id='744' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 287417: <4FGL_J0217.8+0144_daily_bin744> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin744> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 16:31:22 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:34:53 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:34:53 2021
Terminated at Sun Aug 15 16:47:48 2021
Results reported at Sun Aug 15 16:47:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin744 34.4621 1.7346 432172801 432432001 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 :                                   554.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            986 sec.

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

