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


Performing analysis on: 4FGL_J0217.8+0144_daily_bin1099
RA = 34.4621, Dec = 1.7346
tmin = 524188801, tmax = 524448001
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='291251', job_status='RUN', time_executed='2021-08-15 16:46:15.488008', time_epoch_executed='1629071175.49' WHERE source_name='4FGL J0217.8+0144' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291251/ft1_4FGL_J0217.8+0144_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291251/ft2_4FGL_J0217.8+0144_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291251/ft1_4FGL_J0217.8+0144_daily_bin1099.fits outfile=/scratch/kocevski/291251/ft1_filteredMKT_4FGL_J0217.8+0144_daily_bin1099.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=524188801.0 tmax=524448001.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 3.99
user 3.23
sys 0.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291251/ft1_filtered_4FGL_J0217.8+0144_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/291251/ft2_4FGL_J0217.8+0144_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/291251/ltcube_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.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/291251/ft2_4FGL_J0217.8+0144_daily_bin1099.fits
.....................!
real 15.39
user 14.38
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291251/ft1_filtered_4FGL_J0217.8+0144_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/291251/ft2_4FGL_J0217.8+0144_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/291251/ltcube_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.fits outfile=/scratch/kocevski/291251/expmap_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.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/291251/ltcube_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.fits
.....................!
real 194.01
user 188.21
sys 5.10

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/291251/ft1_filtered_4FGL_J0217.8+0144_daily_bin1099.fits scfile=/scratch/kocevski/291251/ft2_4FGL_J0217.8+0144_daily_bin1099.fits outfile=/scratch/kocevski/291251/cmap_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.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.09
user 0.41
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291251/ft1_filtered_4FGL_J0217.8+0144_daily_bin1099.fits scfile=/scratch/kocevski/291251/ft2_4FGL_J0217.8+0144_daily_bin1099.fits outfile=/scratch/kocevski/291251/cmap_HighResolution_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.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.09
user 0.40
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2770       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7532       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4671       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1643       1.0000         .10000E-03   10000.    
     7 'norm      '    .13285       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    27.909       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.926       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .65434       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7061       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75221       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1537       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=   8264.328     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2363 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.166        .59271E-05** at limit **
   2  Prefactor     4.2770        4.4861        .15100E-05   -.36918E-07
   3  norm          .10000E-03    3.8092       -.18092E-06** at limit **
   4  Prefactor     3.7531        3.5035        .73110E-07    .40245E-05
   5  norm          4.4663        4.4705        .11291E-06    .15954E-04
   6  Prefactor     9.1641        3.6364        .80735E-07    .14772E-03
   7  norm          .13286        .35117        .46065E-06    .47260E-06
   8  Prefactor     48.191        27.772        .14177E-06    .38442E-04
   9  Prefactor     4.6462        5.7350        .12192E-06    .18499E-04
  10  Prefactor     .10000E-03    62.146       -.52801E-05** at limit **
  11  Prefactor     .10000E-03    4.1736       -.22912E-06** at limit **
  12  Prefactor     .10000E-03    11.155       -.91246E-06** at limit **
  13  Prefactor     9.5903        9.2318        .19796E-06    .54550E-04
  14  Prefactor     .10000E-03    10.940        .85104E-06** at limit **
  15  norm          27.908        14.117       -.21498E-07    .23413E-04
  16  Prefactor     .10000E-03    3.9737        .35630E-06** at limit **
  17  Prefactor     38.923        35.314        .43821E-06   -.67077E-05
  18  Prefactor     .65440        5.2572        .13205E-05   -.83584E-05
  19  norm          .10000E-03    2.7536        .88783E-08** at limit **
  20  norm          4.7057        4.3820        .61901E-06    .72178E-06
  21  Normalizat    .75211        .15531       -.57507E-06   -.18244E-04
  22  Prefactor     1.1538        .12610       -.34094E-06    .10907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.277
  norm       = 0.0001
  Prefactor  = 3.7531
  norm       = 4.46635
  Prefactor  = 9.16407
  norm       = 0.132863
  Prefactor  = 48.1912
  Prefactor  = 4.64624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.59025
  Prefactor  = 0.0001
  norm       = 27.9077
  Prefactor  = 0.0001
  Prefactor  = 38.9235
  Prefactor  = 0.654403
  norm       = 0.0001
  norm       = 4.70571
  Normalizat = 0.752112
  Prefactor  = 1.15383
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.328     FROM HESSE     STATUS=OK           348 CALLS     2711 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2770        4.4919        .94693E-03   -1.5294    
   3  norm          .10000E-03    3.8117        .17329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7531        3.5062        .15995E-03   -1.5320    
   5  norm          4.4663        4.4701        .18177E-03   -1.5285    
   6  Prefactor     9.1641        3.6302        .97251E-04   -1.5102    
   7  norm          .13286        .35088        .19333E-03   -1.5635    
   8  Prefactor     48.191        27.763        .57763E-04   -1.4318    
   9  Prefactor     4.6462        5.7337        .18670E-03   -1.5277    
  10  Prefactor     .10000E-03    62.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2111        .18133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5903        9.2334        .12940E-03   -1.5089    
  14  Prefactor     .10000E-03    11.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.908        14.133        .75834E-04   -1.4651    
  16  Prefactor     .10000E-03    4.0040        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.923        35.315        .64243E-04   -1.4459    
  18  Prefactor     .65440        5.3675        .39655E-03   -1.5546    
  19  norm          .10000E-03    2.7588        .14732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7057        4.3825        .88620E-03   -1.5274    
  21  Normalizat    .75211        .17395        .31164E-03   -1.0187    
  22  Prefactor     1.1538        .14177        .20017E-03   -.87764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16792e-11
Minuit parameter uncertainties:
  1  4.5722e-05
  2  4.49222
  3  3.5653e-07
  4  3.50635
  5  4.47044
  6  3.63029
  7  0.350881
  8  27.7706
  9  5.7344
  10  1.00963e-05
  11  1.11533e-06
  12  1.70962e-06
  13  9.23476
  14  1.18633e-05
  15  14.1345
  16  3.7198e-06
  17  35.3343
  18  3.7485
  19  1.65747e-08
  20  4.38283
  21  0.174082
  22  0.141819
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.154e+00  1.418e-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.521e-01  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/291251/likelihoodResults_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.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) = 8264.31206117
delta logL = 0.0161187093927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8264.31177216
delta logL = 0.0164077167374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12621       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8339       1.0000          .0000       5.0000    
     3 'Normalizat'    .75420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1529       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=   8264.312     FROM MIGRAD    STATUS=FAILED        99 CALLS      262 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12609        .32904        .85017E-03    .12695E-01
   2  alpha         1.8333        1.5026        .44674E-01   -.19129E-03
   3  Normalizat    .75441        .17041        .31120E-03   -.12253E-03
   4  Prefactor     1.1527        .13358        .20025E-03   -.74235E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8264.312     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      332 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12609        .32904        .35556E-04   -1.5637    
   2  alpha         1.8333        1.5026        .44367E-02   -.26994    
   3  Normalizat    .75441        .17041        .38621E-03   -1.0178    
   4  Prefactor     1.1527        .13358        .22252E-03   -.87798    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8264.312     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      362 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12609        .33185        .17003E-03    .52245E-03
   2  alpha         1.8333        1.5188        .89348E-02   -.50896E-06
   3  Normalizat    .75441        .17047        .12448E-04   -.21919E-06
   4  Prefactor     1.1527        .13365        .40050E-04   -.45418E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.126093
  alpha      = 1.83332
  Normalizat = 0.754407
  Prefactor  = 1.15274
 **********
 **   18 **HESSE 
 **********

 FCN=   8264.312     FROM HESSE     STATUS=OK            27 CALLS      389 TOTAL
                     EDM=   .45E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12609        .33293        .34007E-04   -1.5637    
   2  alpha         1.8333        1.5231        .35739E-03   -.26994    
   3  Normalizat    .75441        .17047        .12448E-04   -1.0178    
   4  Prefactor     1.1527        .13365        .40050E-04   -.87798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52248e-14
Minuit parameter uncertainties:
  1  0.332933
  2  1.64881
  3  0.170589
  4  0.133688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291251': 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) = 8264.31177127
delta logL = 0.0164086088607

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  1.261e-01  3.329e-01  1.000e-04  1.000e+04 ( 1.000e-11)
243        alpha:  1.833e+00  1.649e+00  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:  1.153e+00  1.337e-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.544e-01  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 34.462 1.735

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/291251/cmap_HighResolution_524188801_524448001_4FGL_J0217.8+0144_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-08-15 16:59:14.822976', job_id='291251', GAL2='1.15', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1629071954.82', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.64e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1099' AND source_name='4FGL J0217.8+0144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 16:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 291251: <4FGL_J0217.8+0144_daily_bin1099> in cluster <slac> Done

Job <4FGL_J0217.8+0144_daily_bin1099> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 16:45:22 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 16:45:50 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:45:50 2021
Terminated at Sun Aug 15 16:59:15 2021
Results reported at Sun Aug 15 16:59:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_daily_bin1099 34.4621 1.7346 524188801 524448001 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 :                                   783.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            833 sec.

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

