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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin530
RA = 34.4621, Dec = 1.7346
tmin = 376704001, tmax = 376963201
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='287100', job_status='RUN', time_executed='2021-08-15 16:35:19.104270', time_epoch_executed='1629070519.1' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287100

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287100/ft1_4FGL_J0217.8+0144_daily_bin530.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287100/ft2_4FGL_J0217.8+0144_daily_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287100/ft1_4FGL_J0217.8+0144_daily_bin530.fits outfile=/scratch/kocevski/287100/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin530.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=376704001.0 tmax=376963201.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.72
user 3.18
sys 3.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287100/ft1_filtered_4FGL_J0217.8+0144_daily_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/287100/ft2_4FGL_J0217.8+0144_daily_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/287100/ltcube_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.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/287100/ft2_4FGL_J0217.8+0144_daily_bin530.fits
.....................!
real 17.75
user 13.87
sys 3.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287100/ft1_filtered_4FGL_J0217.8+0144_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/287100/ft2_4FGL_J0217.8+0144_daily_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/287100/ltcube_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.fits outfile=/scratch/kocevski/287100/expmap_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.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/287100/ltcube_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.fits
.....................!
real 195.43
user 185.58
sys 9.26

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/287100/ft1_filtered_4FGL_J0217.8+0144_daily_bin530.fits scfile=/scratch/kocevski/287100/ft2_4FGL_J0217.8+0144_daily_bin530.fits outfile=/scratch/kocevski/287100/cmap_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.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 3.67
user 0.37
sys 3.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287100/ft1_filtered_4FGL_J0217.8+0144_daily_bin530.fits scfile=/scratch/kocevski/287100/ft2_4FGL_J0217.8+0144_daily_bin530.fits outfile=/scratch/kocevski/287100/cmap_HighResolution_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.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 3.60
user 0.39
sys 3.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18411E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1252       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0100       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5337       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23940E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.349       1.0000         .10000E-03   10000.    
    15 'norm      '    15.712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0593       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45992E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.8102       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1099       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94243       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=   5714.321     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2119 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7616        398.44       -.41297E-04   -.63569E-06
   2  Prefactor     .10000E-03    3.3598       -.17262E-06** at limit **
   3  norm          .10000E-03    5.3243        .91856E-07** at limit **
   4  Prefactor     3.1242        5.5047       -.17830E-06   -.75515E-03
   5  norm          2.0093        4.2260       -.13595E-06   -.65143E-04
   6  Prefactor     4.5334        2.6931       -.43219E-07   -.21813E-03
   7  norm          .10000E-03    .32648        .53328E-07** at limit **
   8  Prefactor     .10000E-03    64.212        .14469E-05** at limit **
   9  Prefactor     6.4083        8.4596       -.70889E-06   -.36883E-04
  10  Prefactor     .10000E-03    28.253       -.19529E-05** at limit **
  11  Prefactor     .10000E-03    10.228        .59948E-07** at limit **
  12  Prefactor     .10001E-03    23.884        .27277E-05** at limit **
  13  Prefactor     4.1049        11.817       -.87691E-06   -.11760E-03
  14  Prefactor     19.364        22.933       -.58127E-05   -.24942E-03
  15  norm          15.717        15.407        .10979E-05   -.50855E-04
  16  Prefactor     2.0543        7.7268        .76620E-06   -.44408E-03
  17  Prefactor     .10000E-03    17.829        .30061E-06** at limit **
  18  Prefactor     .10011E-03    3.4499        .98264E-06** at limit **
  19  norm          .10000E-03    6.1311        .13635E-06** at limit **
  20  norm          5.8112        5.8305        .18523E-06   -.10217E-03
  21  Normalizat    1.1100        .19210        .18134E-05   -.30247E-03
  22  Prefactor     .94248        .14142       -.17951E-06   -.30084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.12421
  norm       = 2.00926
  Prefactor  = 4.53344
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.40831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 4.10491
  Prefactor  = 19.3637
  norm       = 15.7173
  Prefactor  = 2.05433
  Prefactor  = 0.0001
  Prefactor  = 0.000100114
  norm       = 0.0001
  norm       = 5.81123
  Normalizat = 1.10995
  Prefactor  = 0.942477
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.321     FROM HESSE     STATUS=OK           350 CALLS     2469 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7616        391.88        .18413E-03   -1.5272    
   2  Prefactor     .10000E-03    11.602        .26842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3274        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1242        7.2870        .11467E-02   -1.5354    
   5  norm          2.0093        4.1939        .21411E-03   -1.5424    
   6  Prefactor     4.5334        2.6839        .91195E-04   -1.5282    
   7  norm          .10000E-03    .33432        .84224E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    65.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4083        8.4739        .15852E-03   -1.5202    
  10  Prefactor     .10000E-03    28.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    210.33        .67550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1049        11.729        .19893E-03   -1.5303    
  14  Prefactor     19.364        22.960        .91054E-04   -1.4828    
  15  norm          15.717        15.361        .10104E-03   -1.4915    
  16  Prefactor     2.0543        15.335        .14399E-02   -1.5421    
  17  Prefactor     .10000E-03    17.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10011E-03    35.663        .26602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.8112        5.8528        .16662E-03   -1.5226    
  21  Normalizat    1.1100        .21980        .27356E-03   -.89433    
  22  Prefactor     .94248        .16267        .21095E-03   -.94672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26672e-09
Minuit parameter uncertainties:
  1  86.9887
  2  2.11166e-05
  3  1.45556e-06
  4  7.28911
  5  4.19454
  6  2.68393
  7  2.07306e-07
  8  2.28041e-05
  9  8.47546
  10  7.17899e-06
  11  2.02161e-05
  12  0.00335946
  13  11.7352
  14  22.9708
  15  15.3653
  16  11.2292
  17  4.21407e-06
  18  0.00403884
  19  2.00101e-06
  20  5.85343
  21  0.219982
  22  0.162754
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  2.073e-07  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:  9.425e-01  1.628e-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.110e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287100/likelihoodResults_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.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): 102
logL (Free Index) = 5714.32271161
delta logL = -0.00131774442161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5714.06755759
delta logL = 0.253836275794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25397E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5714.068     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      351 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25392E-01    .41637E-01    .16324E-04   -.65885E-03
   2  alpha         5.0000        3.9238        .50000    ** at limit **
   3  Normalizat    1.0493        .22658        .28041E-03    .14190E-05
   4  Prefactor     .96774        .15478        .20851E-03    .11722E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0253919
  alpha      = 5
  Normalizat = 1.04926
  Prefactor  = 0.967739
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.068     FROM HESSE     STATUS=OK            29 CALLS      380 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25392E-01    .41468E-01    .65294E-06   -1.5676    
   2  alpha         5.0000        3.9156        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0493        .22684        .11216E-04   -.91398    
   4  Prefactor     .96774        .15493        .83406E-05   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92614e-12
Minuit parameter uncertainties:
  1  0.0414678
  2  1.33489e-06
  3  0.227047
  4  0.154999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287100': 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) = 5714.06755647
delta logL = 0.253837399212

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.539e-02  4.147e-02  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  5.000e+00  1.335e-06  0.000e+00  5.000e+00 ( 1.000e+00)
244         beta:  6.385e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
245           Eb:  6.330e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.677e-01  1.550e-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.049e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.462 1.735

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/287100/cmap_HighResolution_376704001_376963201_4FGL_J0217.8+0144_daily_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-08-15 16:46:17.812263', job_id='287100', GAL2='0.97', fit_tolerance='1e-08', EG2='1.05', EG='1.11', time_epoch_completed='1629071177.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.54e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='530' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 287100: <4FGL_J0217.8+0144_daily_bin530> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin530 34.4621 1.7346 376704001 376963201 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 :                                   702.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            927 sec.

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

