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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin1011
RA = 34.4621, Dec = 1.7346
tmin = 501379201, tmax = 501638401
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='289934', job_status='RUN', time_executed='2021-08-15 16:41:45.989000', time_epoch_executed='1629070905.99' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289934

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289934/ft1_4FGL_J0217.8+0144_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289934/ft2_4FGL_J0217.8+0144_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289934/ft1_4FGL_J0217.8+0144_daily_bin1011.fits outfile=/scratch/kocevski/289934/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin1011.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=501379201.0 tmax=501638401.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 4.49
user 3.35
sys 1.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289934/ft1_filtered_4FGL_J0217.8+0144_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/289934/ft2_4FGL_J0217.8+0144_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/289934/ltcube_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.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/289934/ft2_4FGL_J0217.8+0144_daily_bin1011.fits
.....................!
real 14.37
user 12.85
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289934/ft1_filtered_4FGL_J0217.8+0144_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/289934/ft2_4FGL_J0217.8+0144_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/289934/ltcube_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.fits outfile=/scratch/kocevski/289934/expmap_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.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/289934/ltcube_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.fits
.....................!
real 193.30
user 185.67
sys 6.32

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/289934/ft1_filtered_4FGL_J0217.8+0144_daily_bin1011.fits scfile=/scratch/kocevski/289934/ft2_4FGL_J0217.8+0144_daily_bin1011.fits outfile=/scratch/kocevski/289934/cmap_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.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.40
user 0.39
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289934/ft1_filtered_4FGL_J0217.8+0144_daily_bin1011.fits scfile=/scratch/kocevski/289934/ft2_4FGL_J0217.8+0144_daily_bin1011.fits outfile=/scratch/kocevski/289934/cmap_HighResolution_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.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.40
user 0.39
sys 1.00

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5457       1.0000         .10000E-03   10000.    
     3 'norm      '    20.209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0690       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35094E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.232       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0646       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1840       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91532       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=   6929.175     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2036 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.776       -.10456E-05** at limit **
   2  Prefactor     3.5446        4.4887       -.40977E-07   -.89650E-04
   3  norm          20.212        19.461        .47529E-06    .77806E-04
   4  Prefactor     .10000E-03    3.2025        .50614E-08** at limit **
   5  norm          3.0697        4.6395        .34672E-07   -.28508E-04
   6  Prefactor     .10000E-03    1.1678       -.12525E-07** at limit **
   7  norm          .10000E-03    .38353       -.42053E-08** at limit **
   8  Prefactor     3.7732        6.5619        .42200E-06   -.34106E-03
   9  Prefactor     .10011E-03    8.4155       -.20763E-05** at limit **
  10  Prefactor     .10000E-03    27.298        .50389E-05** at limit **
  11  Prefactor     .10000E-03    4.0203        .29442E-07** at limit **
  12  Prefactor     33.365        19.295       -.14435E-05   -.30046E-03
  13  Prefactor     .10000E-03    5.1795       -.12042E-06** at limit **
  14  Prefactor     11.236        17.440        .11901E-05    .95319E-04
  15  norm          .10000E-03    4.5436        .23702E-06** at limit **
  16  Prefactor     .10000E-03    7.5002        .48091E-06** at limit **
  17  Prefactor     .10000E-03    16.472        .94749E-06** at limit **
  18  Prefactor     .10000E-03    4.2044       -.19562E-06** at limit **
  19  norm          .10000E-03    8.1415       -.48526E-06** at limit **
  20  norm          6.0690        6.6243       -.83346E-07   -.44214E-04
  21  Normalizat    1.1840        .16723       -.16444E-06    .13074E-03
  22  Prefactor     .91540        .12634        .22538E-06    .17192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.54463
  norm       = 20.2119
  Prefactor  = 0.0001
  norm       = 3.06966
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.77318
  Prefactor  = 0.000100107
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 33.3651
  Prefactor  = 0.0001
  Prefactor  = 11.2363
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.06902
  Normalizat = 1.18399
  Prefactor  = 0.915396
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.175     FROM HESSE     STATUS=OK           338 CALLS     2374 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5446        4.4952        .19147E-03   -1.5331    
   3  norm          20.212        19.484        .89096E-04   -1.4809    
   4  Prefactor     .10000E-03    3.2190        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0697        4.6580        .21171E-03   -1.5358    
   6  Prefactor     .10000E-03    1.2144        .17553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .71468        .99558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7732        15.937        .10395E-02   -1.5319    
   9  Prefactor     .10011E-03    27.839        .36816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0310        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.365        19.531        .69366E-04   -1.4552    
  13  Prefactor     .10000E-03    5.2136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.236        17.498        .11954E-03   -1.5037    
  15  norm          .10000E-03    4.5575        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2922        .16666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.2406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0690        6.6530        .16304E-03   -1.5215    
  21  Normalizat    1.1840        .19041        .25819E-03   -.87099    
  22  Prefactor     .91540        .14491        .21420E-03   -.95605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78752e-09
Minuit parameter uncertainties:
  1  0.000214095
  2  4.49567
  3  19.4898
  4  4.9229e-07
  5  4.6586
  6  8.16926e-07
  7  4.10664e-07
  8  15.5161
  9  0.0034472
  10  0.000740615
  11  1.26277e-06
  12  19.535
  13  2.54103e-06
  14  17.5062
  15  1.57183e-05
  16  3.44663e-05
  17  0.000104418
  18  1.28004e-05
  19  3.7021e-05
  20  6.65383
  21  0.190517
  22  0.144973
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.000e-04  4.107e-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.154e-01  1.450e-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.184e+00  1.905e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289934/likelihoodResults_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.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): 0
logL (Free Index) = 6929.1817093
delta logL = -0.00670825607904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6929.1717257
delta logL = 0.00327534178723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90962E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9095       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91711       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6929.172     FROM MIGRAD    STATUS=FAILED       102 CALLS      418 TOTAL
                     EDM=   .61E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90434E-02    24.576        .42841E-03   -.57646E-03
   2  alpha         3.9159        3.0265        .50000        .10155E-02
   3  Normalizat    1.1795        .44155E-01    .25863E-03   -.15930E-03
   4  Prefactor     .91719        .32919E-01    .21402E-03   -.96041E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6929.172     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      515 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90434E-02    24.576        .67952E-04   -.57646E-03
   2  alpha         3.9159        3.0265        .72668E-02    .10155E-02
   3  Normalizat    1.1795        .44155E-01    .10525E-03   -.15930E-03
   4  Prefactor     .91719        .32919E-01    .37058E-04   -.96041E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6929.172     FROM MIGRAD    STATUS=FAILED        72 CALLS      587 TOTAL
                     EDM=   .80E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90437E-02    32.263        .68546E-06   -.10625E-02
   2  alpha         3.9159        4.3401        .50000        .10154E-02
   3  Normalizat    1.1795        .52594E-01    .20690E-05   -.14946E-03
   4  Prefactor     .91719        .39103E-01    .17121E-05   -.87648E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00904373
  alpha      = 3.91587
  Normalizat = 1.1795
  Prefactor  = 0.917187
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.172     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      614 TOTAL
                     EDM=   .80E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90437E-02    32.269        .37406E-06   -1.5689    
   2  alpha         3.9159        4.3387        .50000        .60207    
   3  Normalizat    1.1795        .52641E-01    .41380E-06   -.87239    
   4  Prefactor     .91719        .39119E-01    .34243E-06   -.95543    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000800565
Minuit parameter uncertainties:
  1  1.07502
  2  57.168
  3  0.0526432
  4  0.0391202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289934': 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): 1
logL (Free Index) = 6929.17172531
delta logL = 0.00327573419963

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  9.044e-03  1.075e+00  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  3.916e+00  5.717e+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:  9.172e-01  3.912e-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:  1.180e+00  5.264e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/289934/cmap_HighResolution_501379201_501638401_4FGL_J0217.8+0144_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-08-15 16:53:20.610650', job_id='289934', GAL2='0.92', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629071600.61', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.28e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1011' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:53:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 289934: <4FGL_J0217.8+0144_daily_bin1011> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin1011> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 16:40:27 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:41:15 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:41:15 2021
Terminated at Sun Aug 15 16:53:21 2021
Results reported at Sun Aug 15 16:53:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin1011 34.4621 1.7346 501379201 501638401 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 :                                   701.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            774 sec.

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

