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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin934
RA = 34.3163, Dec = 8.6234
tmin = 481420801, tmax = 481680001
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='268089', job_status='RUN', time_executed='2021-08-15 15:28:46.033741', time_epoch_executed='1629066526.03' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268089

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268089/ft1_4FGL_J0217.2+0837_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268089/ft1_4FGL_J0217.2+0837_daily_bin934.fits outfile=/scratch/kocevski/268089/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin934.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=481420801.0 tmax=481680001.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 5.72
user 3.50
sys 2.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.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/268089/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin934.fits evtable="EVENTS" outfile="/scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.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 2.48
user 0.33
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/268089/ltcube_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.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/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits
.....................!
real 16.15
user 13.44
sys 2.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/268089/ltcube_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.fits outfile=/scratch/kocevski/268089/expmap_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.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/268089/ltcube_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.fits
.....................!
real 194.79
user 185.75
sys 7.67

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J0217.2+0837 @ 34.3163 8.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits scfile=/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits outfile=/scratch/kocevski/268089/cmap_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.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.3163 yref=8.6234 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 2.39
user 0.37
sys 2.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits scfile=/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits outfile=/scratch/kocevski/268089/cmap_HighResolution_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.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.3163 yref=8.6234 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 2.45
user 0.40
sys 2.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268089/Model_4FGL_J0217.2+0837_daily_bin934.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/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits.....................!
real 82.89
user 78.72
sys 3.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits', '/scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits', expMap='/scratch/kocevski/268089/expmap_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.fits', expCube='/scratch/kocevski/268089/ltcube_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268089/Model_4FGL_J0217.2+0837_daily_bin934.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0217.2+0837'

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.926e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/268089/ft1_filtered_4FGL_J0217.2+0837_daily_bin934.fits
Spacecraft file(s): /scratch/kocevski/268089/ft2_4FGL_J0217.2+0837_daily_bin934.fits
Exposure map: /scratch/kocevski/268089/expmap_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.fits
Exposure cube: /scratch/kocevski/268089/ltcube_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268089/Model_4FGL_J0217.2+0837_daily_bin934.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) = 6451.26466241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2867       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1764       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61030       1.0000         .10000E-03   10000.    
     5 'norm      '    13.571       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3086       1.0000         .10000E-03   10000.    
     7 'norm      '    .87776       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.578       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0200       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .61473       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.297       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0456       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6450.995     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3328 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2870        5.4012        .15985E-06   -.16547E-03
   2  norm          4.8687        9.9975        .27901E-05   -.49480E-03
   3  Prefactor     3.1765        3.2241       -.17959E-06   -.12259E-03
   4  Prefactor     .61072        2.3111        .97089E-06   -.40235E-03
   5  norm          13.571        5.6182       -.15332E-08   -.32071E-04
   6  Prefactor     4.3095        2.7105        .18755E-06    .42550E-04
   7  norm          .87795        1.1158        .15733E-06   -.25247E-03
   8  Prefactor     27.926        29.090       -.28944E-05   -.39445E-03
   9  Prefactor     56.580        35.235        .31856E-06    .52830E-04
  10  Prefactor     8.6735        8.0147        .43208E-07   -.44493E-04
  11  Prefactor     .10001E-03    39.390       -.43885E-05** at limit **
  12  Prefactor     22.194        10.247       -.13459E-07   -.33277E-04
  13  Prefactor     5.0201        10.776        .30307E-05   -.44545E-03
  14  Prefactor     .10000E-03    4.3566        .32868E-06** at limit **
  15  Prefactor     .10000E-03    4.4307       -.30875E-06** at limit **
  16  norm          .61478        .42008        .11367E-07   -.34116E-04
  17  Prefactor     .10000E-03    11.917        .17408E-06** at limit **
  18  Prefactor     .10001E-03    29.012        .61846E-05** at limit **
  19  norm          .10000E-03    3.1048        .29033E-07** at limit **
  20  Prefactor     .10000E-03    6.3831       -.12616E-07** at limit **
  21  Prefactor     17.299        25.094        .58920E-06    .53742E-04
  22  Prefactor     .10000E-03    22.606       -.21647E-05** at limit **
  23  Prefactor     .10000E-03    3.4138       -.14036E-07** at limit **
  24  norm          .10000E-03    2.3564        .14663E-08** at limit **
  25  norm          .10000E-03    1.2502        .15206E-07** at limit **
  26  Normalizat    1.0455        .19285       -.12486E-06   -.14271E-03
  27  Prefactor     .80950        .10531       -.40328E-06   -.97467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28705
  norm       = 4.86874
  Prefactor  = 3.17653
  Prefactor  = 0.610721
  norm       = 13.5711
  Prefactor  = 4.30947
  norm       = 0.877946
  Prefactor  = 27.9255
  Prefactor  = 56.5797
  Prefactor  = 8.67349
  Prefactor  = 0.000100008
  Prefactor  = 22.1937
  Prefactor  = 5.02011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.614785
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2988
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.04555
  Prefactor  = 0.809498
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.995     FROM HESSE     STATUS=OK           488 CALLS     3816 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2870        5.4112        .69633E-03   -1.5132    
   2  norm          4.8687        10.424        .91151E-03   -1.5267    
   3  Prefactor     3.1765        3.2307        .14150E-03   -1.5351    
   4  Prefactor     .61072        2.3575        .22411E-03   -1.5552    
   5  norm          13.571        5.6145        .10873E-03   -1.4971    
   6  Prefactor     4.3095        2.7137        .96965E-04   -1.5293    
   7  norm          .87795        1.0900        .88284E-04   -1.5521    
   8  Prefactor     27.926        29.922        .75798E-04   -1.4651    
   9  Prefactor     56.580        35.236        .53332E-04   -1.4202    
  10  Prefactor     8.6735        8.0036        .13611E-03   -1.5119    
  11  Prefactor     .10001E-03    40.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.194        10.225        .85025E-04   -1.4765    
  13  Prefactor     5.0201        11.050        .89738E-03   -1.5260    
  14  Prefactor     .10000E-03    4.3891        .16390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4575        .16510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .61478        .40840        .41314E-04   -1.5551    
  17  Prefactor     .10000E-03    11.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    31.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1105        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.299        25.094        .96301E-04   -1.4876    
  22  Prefactor     .10000E-03    23.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4628        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.3568        .12041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.2607        .87689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0455        .21460        .29543E-03   -.91520    
  27  Prefactor     .80950        .11830        .19096E-03   -.99379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28402e-09
Minuit parameter uncertainties:
  1  5.41155
  2  10.4275
  3  3.23085
  4  2.35788
  5  5.61472
  6  2.71376
  7  1.09005
  8  29.9382
  9  35.2488
  10  8.00462
  11  0.00115872
  12  10.2262
  13  11.0546
  14  3.38552e-05
  15  3.0249e-05
  16  0.4084
  17  2.32123e-05
  18  0.00126896
  19  1.74676e-06
  20  2.73726e-06
  21  25.1089
  22  0.000438029
  23  3.01494e-06
  24  5.04549e-08
  25  3.14232e-07
  26  0.214778
  27  0.118342
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  4.309e+00  2.714e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.095e-01  1.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.046e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.76
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.74e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.69e-05

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) = 6450.58833645
delta logL = 0.40703524598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6450.58777878
delta logL = 0.407592919844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2743       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7632       1.0000          .0000       10.000    
     3 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6450.588     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2743        5.6495        .48719E-02   -.44455E-04
   2  Index         1.7631        .77523        .23437       -.45121E-04
   3  Normalizat    1.0724        .18366        .66139E-01    .31654E-04
   4  Prefactor     .80427        .10390        .43773E-01   -.10979E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27434
  Index      = 1.76314
  Normalizat = 1.07237
  Prefactor  = 0.80427
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.588     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2743        3.2869        .11065E-03   -1.5294    
   2  Index         1.7631        .56747        .81518E-02   -.70413    
   3  Normalizat    1.0724        .20109        .29258E-03   -.90644    
   4  Prefactor     .80427        .11560        .19167E-03   -.99571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24604e-11
Minuit parameter uncertainties:
  1  3.28708
  2  0.569588
  3  0.201237
  4  0.115635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268089': 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) = 6450.58777877
delta logL = 0.40759292198

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  4.274e+00  3.287e+00  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  1.763e+00  5.696e-01  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.043e-01  1.156e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.072e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.60
Ra Dec: 34.316 8.623
Photon Index (Free Index): 1.76 +/- 0.57
Photon Flux (Free Index): 3.40e-08 +/- 3.98e-08
Energy Flux (Free Index): 4.55e-05 +/- 4.82e-05

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/268089/cmap_HighResolution_481420801_481680001_4FGL_J0217.2+0837_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.74e-08', energy_flux2='4.55e-05', photon_flux_error='4.24e-08', dlogl='4.08e-01', energy_flux='2.68e-05', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-08-15 15:41:09.827913', photon_index_error2='0.57', photon_index2='1.76', ts='7.76', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='4.82e-05', EG='1.05', time_epoch_completed='1629067269.83', return_code='0', job_id='268089', GAL2='0.80', EG2='1.07', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='3.98e-08', ts2='8.60', photon_index='2.27' WHERE bin_id='934' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:41:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 268089: <4FGL_J0217.2+0837_daily_bin934> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin934> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 15:25:30 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:25:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 15:25:37 2021
Terminated at Sun Aug 15 15:41:10 2021
Results reported at Sun Aug 15 15:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin934 34.3163 8.6234 481420801 481680001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0217.2+0837 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   765.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            940 sec.

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

