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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin738
RA = 34.4621, Dec = 1.7346
tmin = 430617601, tmax = 430876801
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='287404', job_status='RUN', time_executed='2021-08-15 16:38:11.715326', time_epoch_executed='1629070691.72' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287404/ft1_4FGL_J0217.8+0144_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287404/ft2_4FGL_J0217.8+0144_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287404/ft1_4FGL_J0217.8+0144_daily_bin738.fits outfile=/scratch/kocevski/287404/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin738.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=430617601.0 tmax=430876801.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 9.83
user 5.04
sys 4.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287404/ft1_filtered_4FGL_J0217.8+0144_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/287404/ft2_4FGL_J0217.8+0144_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/287404/ltcube_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.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/287404/ft2_4FGL_J0217.8+0144_daily_bin738.fits
.....................!
real 19.48
user 14.42
sys 4.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287404/ft1_filtered_4FGL_J0217.8+0144_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/287404/ft2_4FGL_J0217.8+0144_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/287404/ltcube_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.fits outfile=/scratch/kocevski/287404/expmap_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.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/287404/ltcube_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.fits
.....................!
real 199.12
user 186.53
sys 11.21

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/287404/ft1_filtered_4FGL_J0217.8+0144_daily_bin738.fits scfile=/scratch/kocevski/287404/ft2_4FGL_J0217.8+0144_daily_bin738.fits outfile=/scratch/kocevski/287404/cmap_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.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 4.67
user 0.38
sys 4.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287404/ft1_filtered_4FGL_J0217.8+0144_daily_bin738.fits scfile=/scratch/kocevski/287404/ft2_4FGL_J0217.8+0144_daily_bin738.fits outfile=/scratch/kocevski/287404/cmap_HighResolution_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.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 4.62
user 0.41
sys 4.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.3777       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16558E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.433       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26655E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1031       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1340       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2212       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91039       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86845       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=   2804.459     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2388 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.705       -.12424E-06** at limit **
   2  Prefactor     5.3776        5.2220       -.11030E-06   -.24108E-04
   3  norm          3.4511        31.215       -.76242E-06   -.34180E-05
   4  Prefactor     .10000E-03    8.6904        .58691E-06** at limit **
   5  norm          20.014        8.7268        .17492E-07   -.35312E-05
   6  Prefactor     .10000E-03    1.5877        .97114E-06** at limit **
   7  norm          .10000E-03    .73779       -.18952E-06** at limit **
   8  Prefactor     .10000E-03    22.705        .10034E-05** at limit **
   9  Prefactor     .10000E-03    8.8547        .11735E-05** at limit **
  10  Prefactor     23.468        85.679       -.24156E-06    .13919E-05
  11  Prefactor     .10000E-03    5.7472       -.23880E-06** at limit **
  12  Prefactor     .10000E-03    32.722        .10265E-06** at limit **
  13  Prefactor     5.8473        11.790        .41855E-06    .60622E-05
  14  Prefactor     .10000E-03    158.77        .68644E-05** at limit **
  15  norm          2.1093        21.226       -.17086E-05    .15269E-05
  16  Prefactor     6.1307        16.351       -.82721E-06    .96692E-05
  17  Prefactor     .10000E-03    311.85       -.72378E-05** at limit **
  18  Prefactor     .10000E-03    5.7417       -.81895E-06** at limit **
  19  norm          3.2192        7.3510       -.22968E-06   -.27090E-04
  20  norm          .10000E-03    1.7968       -.18157E-06** at limit **
  21  Normalizat    .91034        .24836       -.44797E-07    .85356E-04
  22  Prefactor     .86844        .18180        .15339E-05    .25196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.37764
  norm       = 3.45111
  Prefactor  = 0.0001
  norm       = 20.0137
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.84728
  Prefactor  = 0.0001
  norm       = 2.10932
  Prefactor  = 6.13068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.21921
  norm       = 0.0001
  Normalizat = 0.910344
  Prefactor  = 0.868439
 **********
 **   18 **HESSE 
 **********

 FCN=   2804.459     FROM HESSE     STATUS=OK           344 CALLS     2732 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3776        5.2327        .11593E-03   -1.5244    
   3  norm          3.4511        31.237        .21779E-03   -1.5336    
   4  Prefactor     .10000E-03    8.7328        .15211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.014        8.7262        .89534E-04   -1.4813    
   6  Prefactor     .10000E-03    1.5704        .64306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.7752        .85388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.8474        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.468        85.685        .82747E-04   -1.4739    
  11  Prefactor     .10000E-03    5.7552        .12402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8473        11.814        .16609E-03   -1.5224    
  14  Prefactor     .10000E-03    156.74        .40125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1093        21.318        .14227E-02   -1.5417    
  16  Prefactor     6.1307        16.395        .16210E-03   -1.5213    
  17  Prefactor     .10000E-03    316.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.8371        .12428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2192        7.3488        .21121E-03   -1.5349    
  20  norm          .10000E-03    1.7993        .69355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91034        .27726        .25889E-03   -.96098    
  22  Prefactor     .86844        .20430        .19149E-03   -.97253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33736e-11
Minuit parameter uncertainties:
  1  1.86005e-06
  2  5.23312
  3  20.7797
  4  1.57252e-05
  5  8.72679
  6  3.525e-06
  7  9.2195e-05
  8  1.9519e-05
  9  7.48707e-06
  10  86.1395
  11  2.76532e-06
  12  7.99055e-05
  13  11.8192
  14  0.000352045
  15  13.4172
  16  16.4067
  17  0.000570219
  18  1.37184e-05
  19  7.35084
  20  1.47105e-06
  21  0.277698
  22  0.204482
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  9.220e-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:  8.684e-01  2.045e-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:  9.103e-01  2.777e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287404/likelihoodResults_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.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) = 2804.45969412
delta logL = -0.00059424447636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2804.4590996
delta logL = 2.69729298452e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12148E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0742       1.0000          .0000       5.0000    
     3 'Normalizat'    .91020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86854       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=   2804.459     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      231 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3367        .27305E-01** at limit **
   2  alpha         2.0422        3.1126        .41932       -.82353E-07
   3  Normalizat    .91034        .11705E-01    .45032E-01    .17533E-03
   4  Prefactor     .86844        .85218E-02    .44603E-01    .15660E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04225
  Normalizat = 0.910345
  Prefactor  = 0.868439
 **********
 **   18 **HESSE 
 **********

 FCN=   2804.459     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      262 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1014.1        .86761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0422        3.0111        .16773       -.18414    
   3  Normalizat    .91034        .68217E-01    .25889E-03   -.96098    
   4  Prefactor     .86844        .49689E-01    .19149E-03   -.97253    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.48661e-10
Minuit parameter uncertainties:
  1  8.42197e-05
  2  638.85
  3  0.0682234
  4  0.0496914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287404': 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) = 2804.45909844
delta logL = 1.43633997141e-06

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  8.422e-05  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  2.042e+00  6.389e+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:  8.684e-01  4.969e-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:  9.103e-01  6.822e-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/287404/cmap_HighResolution_430617601_430876801_4FGL_J0217.8+0144_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-15 16:47:17.290127', job_id='287404', GAL2='0.87', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629071237.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='738' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:47:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 287404: <4FGL_J0217.8+0144_daily_bin738> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin738 34.4621 1.7346 430617601 430876801 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 :                                   602.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            957 sec.

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

