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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin674
RA = 34.4621, Dec = 1.7346
tmin = 414028801, tmax = 414288001
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='287293', job_status='RUN', time_executed='2021-08-15 16:34:58.766781', time_epoch_executed='1629070498.77' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287293/ft1_4FGL_J0217.8+0144_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287293/ft2_4FGL_J0217.8+0144_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287293/ft1_4FGL_J0217.8+0144_daily_bin674.fits outfile=/scratch/kocevski/287293/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin674.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=414028801.0 tmax=414288001.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.09
user 4.91
sys 1.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287293/ft1_filtered_4FGL_J0217.8+0144_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/287293/ft2_4FGL_J0217.8+0144_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/287293/ltcube_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.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/287293/ft2_4FGL_J0217.8+0144_daily_bin674.fits
.....................!
real 14.01
user 12.55
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287293/ft1_filtered_4FGL_J0217.8+0144_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/287293/ft2_4FGL_J0217.8+0144_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/287293/ltcube_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.fits outfile=/scratch/kocevski/287293/expmap_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.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/287293/ltcube_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.fits
.....................!
real 195.16
user 188.36
sys 6.28

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/287293/ft1_filtered_4FGL_J0217.8+0144_daily_bin674.fits scfile=/scratch/kocevski/287293/ft2_4FGL_J0217.8+0144_daily_bin674.fits outfile=/scratch/kocevski/287293/cmap_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=34.4621 yref=1.7346 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.47
user 0.39
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287293/ft1_filtered_4FGL_J0217.8+0144_daily_bin674.fits scfile=/scratch/kocevski/287293/ft2_4FGL_J0217.8+0144_daily_bin674.fits outfile=/scratch/kocevski/287293/cmap_HighResolution_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.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.48
user 0.39
sys 1.05

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1414       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2706       1.0000         .10000E-03   10000.    
     5 'norm      '    12.420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5332       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    103.44       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.424       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.678       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0856       1.0000         .10000E-03   10000.    
    19 'norm      '    .81121       1.0000         .10000E-03   10000.    
    20 'norm      '    10.089       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74965       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92572       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.109     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2343 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.934        87.634        .12711E-05    .69434E-05
   2  Prefactor     2.1413        2.5364        .83033E-06   -.24117E-02
   3  norm          .10000E-03    6.1339       -.26176E-06** at limit **
   4  Prefactor     6.2704        7.2916       -.32527E-06   -.25346E-04
   5  norm          12.420        6.8722       -.77658E-07   -.24966E-04
   6  Prefactor     1.5324        2.7092        .77636E-06    .21972E-03
   7  norm          .10000E-03    .46225        .72683E-07** at limit **
   8  Prefactor     .10000E-03    29.291        .44197E-06** at limit **
   9  Prefactor     1.2419        12.932        .84909E-06   -.74590E-04
  10  Prefactor     103.42        89.271       -.94008E-05   -.48029E-04
  11  Prefactor     7.6160        10.172       -.32872E-06   -.74997E-05
  12  Prefactor     3.3038        45.160       -.21470E-04   -.64581E-04
  13  Prefactor     .10000E-03    3.8271       -.28829E-07** at limit **
  14  Prefactor     19.422        21.349        .77486E-07    .43188E-04
  15  norm          .10000E-03    6.7611       -.13279E-06** at limit **
  16  Prefactor     17.679        13.827       -.38432E-06    .10250E-05
  17  Prefactor     .10000E-03    16.997       -.77506E-06** at limit **
  18  Prefactor     8.0855        5.5840       -.41113E-07    .27182E-04
  19  norm          .81104        11.144        .14598E-06   -.18708E-03
  20  norm          10.088        6.6075       -.32279E-07    .36753E-04
  21  Normalizat    .74958        .18585        .54395E-06    .53229E-04
  22  Prefactor     .92575        .13804        .12039E-05   -.10502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9337
  Prefactor  = 2.14131
  norm       = 0.0001
  Prefactor  = 6.27042
  norm       = 12.4198
  Prefactor  = 1.53235
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.24189
  Prefactor  = 103.422
  Prefactor  = 7.61595
  Prefactor  = 3.30384
  Prefactor  = 0.0001
  Prefactor  = 19.4216
  norm       = 0.0001
  Prefactor  = 17.6792
  Prefactor  = 0.0001
  Prefactor  = 8.0855
  norm       = 0.811042
  norm       = 10.0883
  Normalizat = 0.749583
  Prefactor  = 0.925755
 **********
 **   18 **HESSE 
 **********

 FCN=   4728.109     FROM HESSE     STATUS=OK           350 CALLS     2693 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.934        87.668        .55128E-04   -1.4252    
   2  Prefactor     2.1413        5.3101        .11932E-02   -1.5415    
   3  norm          .10000E-03    6.1376        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2704        7.2999        .16030E-03   -1.5207    
   5  norm          12.420        6.8540        .11367E-03   -1.5003    
   6  Prefactor     1.5324        2.6732        .13993E-03   -1.5460    
   7  norm          .10000E-03    1.0674        .90502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2419        13.081        .40229E-03   -1.5485    
  10  Prefactor     103.42        88.818        .39536E-04   -1.3671    
  11  Prefactor     7.6160        10.186        .14532E-03   -1.5156    
  12  Prefactor     3.3038        45.192        .22233E-03   -1.5344    
  13  Prefactor     .10000E-03    3.8312        .13136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.422        21.258        .90877E-04   -1.4826    
  15  norm          .10000E-03    6.7793        .17460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.679        13.902        .95257E-04   -1.4867    
  17  Prefactor     .10000E-03    17.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0855        5.5838        .13019E-03   -1.5139    
  19  norm          .81104        11.481        .44699E-03   -1.5528    
  20  norm          10.088        6.6088        .12615E-03   -1.5073    
  21  Normalizat    .74958        .20971        .29018E-03   -1.0197    
  22  Prefactor     .92575        .15511        .19425E-03   -.95247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13588e-09
Minuit parameter uncertainties:
  1  87.8831
  2  5.31122
  3  5.4022e-06
  4  7.30093
  5  6.85439
  6  2.6734
  7  1.42401e-05
  8  0.000416627
  9  8.06312
  10  88.9323
  11  10.1883
  12  24.4603
  13  2.501e-05
  14  21.2661
  15  1.59656e-05
  16  13.9041
  17  1.72103e-05
  18  5.58417
  19  6.10409
  20  6.60924
  21  0.20993
  22  0.155179
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  1.424e-05  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.258e-01  1.552e-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:  7.496e-01  2.099e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287293/likelihoodResults_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.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) = 4728.11360889
delta logL = -0.00454569760768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4728.10905905
delta logL = 4.1453540689e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1129       1.0000          .0000       5.0000    
     3 'Normalizat'    .74958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92574       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=   4728.109     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      239 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6559        .17504E-01** at limit **
   2  alpha         1.7454        3.5596        .41793        .34365E-06
   3  Normalizat    .74958        .19712E-01    .65587E-01    .95800E-04
   4  Prefactor     .92575        .14627E-01    .45332E-01    .12110E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.74545
  Normalizat = 0.749584
  Prefactor  = 0.925754
 **********
 **   18 **HESSE 
 **********

 FCN=   4728.109     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      274 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    214.77        .96865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7454        3.2895        .50000       -.30660    
   3  Normalizat    .74958        .61543E-01    .29017E-03   -1.0197    
   4  Prefactor     .92575        .45795E-01    .19425E-03   -.95247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.44377e-06
Minuit parameter uncertainties:
  1  0.000953737
  2  451.401
  3  0.0615489
  4  0.0457971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287293': 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): 102
logL (Free Index) = 4728.10904165
delta logL = 2.15463032873e-05

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  9.537e-04  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.745e+00  4.514e+02  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.258e-01  4.580e-02  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:  7.496e-01  6.155e-02  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/287293/cmap_HighResolution_414028801_414288001_4FGL_J0217.8+0144_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-08-15 16:44:44.854917', job_id='287293', GAL2='0.93', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1629071084.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.15e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='674' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:44:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 287293: <4FGL_J0217.8+0144_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin674 34.4621 1.7346 414028801 414288001 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 :                                   596.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            814 sec.

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

