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


Performing analysis on: 4FGL_J0217.2+0837_daily_bin810
RA = 34.3163, Dec = 8.6234
tmin = 449280001, tmax = 449539201
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='266729', job_status='RUN', time_executed='2021-08-15 15:22:36.424952', time_epoch_executed='1629066156.42' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266729/ft1_4FGL_J0217.2+0837_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266729/ft1_4FGL_J0217.2+0837_daily_bin810.fits outfile=/scratch/kocevski/266729/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin810.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=449280001.0 tmax=449539201.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 11.52
user 5.57
sys 5.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.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/266729/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin810.fits evtable="EVENTS" outfile="/scratch/kocevski/266729/ft1_filtered_4FGL_J0217.2+0837_daily_bin810.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 6.02
user 0.36
sys 5.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266729/ft1_filtered_4FGL_J0217.2+0837_daily_bin810.fits" evtable="EVENTS" scfile=/scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits sctable="SC_DATA" outfile=/scratch/kocevski/266729/ltcube_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.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/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits
.....................!
real 19.64
user 13.09
sys 6.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266729/ft1_filtered_4FGL_J0217.2+0837_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/266729/ltcube_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.fits outfile=/scratch/kocevski/266729/expmap_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.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/266729/ltcube_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.fits
.....................!
real 198.51
user 186.10
sys 11.04

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/266729/ft1_filtered_4FGL_J0217.2+0837_daily_bin810.fits scfile=/scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits outfile=/scratch/kocevski/266729/cmap_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.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 5.94
user 0.37
sys 5.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266729/ft1_filtered_4FGL_J0217.2+0837_daily_bin810.fits scfile=/scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits outfile=/scratch/kocevski/266729/cmap_HighResolution_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.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 5.96
user 0.39
sys 5.53

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266729/ft1_filtered_4FGL_J0217.2+0837_daily_bin810.fits', '/scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits', expMap='/scratch/kocevski/266729/expmap_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.fits', expCube='/scratch/kocevski/266729/ltcube_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266729/Model_4FGL_J0217.2+0837_daily_bin810.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/266729/ft1_filtered_4FGL_J0217.2+0837_daily_bin810.fits
Spacecraft file(s): /scratch/kocevski/266729/ft2_4FGL_J0217.2+0837_daily_bin810.fits
Exposure map: /scratch/kocevski/266729/expmap_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.fits
Exposure cube: /scratch/kocevski/266729/ltcube_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266729/Model_4FGL_J0217.2+0837_daily_bin810.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) = 4041.50573498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23799E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.000       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97183E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4093       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25145E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.266       1.0000         .10000E-03   10000.    
    19 'norm      '    12.737       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.719       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1325       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.0053       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0067       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4041.499     FROM MIGRAD    STATUS=CONVERGED   1153 CALLS     3773 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9959        .10735E-02** at limit **
   2  norm          .10000E-03    10.889        .18142E-02** at limit **
   3  Prefactor     14.219        10.590        .10622E-03   -.56780E-04
   4  Prefactor     .10000E-03    2.6153        .99379E-03** at limit **
   5  norm          14.992        8.2673        .10345E-03   -.10649E-03
   6  Prefactor     .10000E-03    3.0245        .29044E-01** at limit **
   7  norm          .10001E-03    3.3303        .12741E-02** at limit **
   8  Prefactor     36.003        36.415        .66794E-04   -.27829E-04
   9  Prefactor     .10002E-03    58.193        .11611    ** at limit **
  10  Prefactor     .10000E-03    8.2056        .17709E-02** at limit **
  11  Prefactor     .10000E-03    42.418        .18142E-02** at limit **
  12  Prefactor     .10000E-03    12.616        .18142E-02** at limit **
  13  Prefactor     .10000E-03    12.944        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.9143        .16302E-02** at limit **
  15  Prefactor     .10000E-03    3.1574        .11029E-02** at limit **
  16  norm          1.4093        .66168        .33875E-04    .37961E-03
  17  Prefactor     .10000E-03    505.52        .40024E-02** at limit **
  18  Prefactor     16.265        28.352        .99308E-04   -.11734E-04
  19  norm          12.740        16.880        .11224E-03    .15685E-03
  20  Prefactor     10.719        14.137        .61187E-03   -.15227E-04
  21  Prefactor     .10000E-03    22.435        .18142E-02** at limit **
  22  Prefactor     .10000E-03    13.116        .18142E-02** at limit **
  23  Prefactor     9.1334        7.4321        .13262E-03   -.45004E-05
  24  norm          .10000E-03    3.8906        .12246E-02** at limit **
  25  norm          7.0060        4.8622        .11269E-03    .10391E-04
  26  Normalizat    1.0903        .30060        .32168E-03    .74625E-04
  27  Prefactor     1.0066        .17127        .19275E-03   -.59932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2193
  Prefactor  = 0.0001
  norm       = 14.992
  Prefactor  = 0.000100001
  norm       = 0.000100009
  Prefactor  = 36.003
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40925
  Prefactor  = 0.0001
  Prefactor  = 16.2655
  norm       = 12.7397
  Prefactor  = 10.719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.13338
  norm       = 0.0001
  norm       = 7.00599
  Normalizat = 1.09026
  Prefactor  = 1.00663
 **********
 **   18 **HESSE 
 **********

 FCN=   4041.499     FROM HESSE     STATUS=OK           480 CALLS     4253 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9959        .21470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.219        10.590        .42488E-05   -1.4954    
   4  Prefactor     .10000E-03    2.6159        .19876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.992        8.2666        .41379E-05   -1.4933    
   6  Prefactor     .10000E-03    2.6565        .32024E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    3.3661        .25482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.003        36.427        .26717E-05   -1.4507    
   9  Prefactor     .10002E-03    54.909        .12041       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2082        .35418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9149        .32604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1574        .22057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4093        .66165        .67749E-05   -1.5471    
  17  Prefactor     .10000E-03    509.19        .80048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.265        28.353        .39723E-05   -1.4901    
  19  norm          12.740        16.877        .44895E-05   -1.4994    
  20  Prefactor     10.719        14.136        .24475E-04   -1.5053    
  21  Prefactor     .10000E-03    22.436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.1334        7.4320        .53049E-05   -1.5103    
  24  norm          .10000E-03    3.8906        .24491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.0060        4.8622        .45077E-05   -1.5179    
  26  Normalizat    1.0903        .30076        .12867E-04   -.90065    
  27  Prefactor     1.0066        .17135        .38550E-04   -.92509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73171e-09
Minuit parameter uncertainties:
  1  6.53976e-06
  2  1.82303e-05
  3  10.5917
  4  1.05112e-05
  5  8.26727
  6  0.000104413
  7  0.000338369
  8  36.4493
  9  0.00216971
  10  8.58633e-06
  11  7.98434e-06
  12  1.2893e-05
  13  5.73624e-06
  14  4.30841e-05
  15  2.57697e-07
  16  0.661652
  17  3.00864e-06
  18  28.3765
  19  16.8834
  20  14.1408
  21  5.02881e-05
  22  1.84949e-06
  23  7.43274
  24  9.67137e-08
  25  4.8625
  26  0.301231
  27  0.171444
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  1.044e-04  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:  1.007e+00  1.714e-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.090e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.316 8.623
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266729/likelihoodResults_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.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) = 4041.49919134
delta logL = -9.77291542767e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4041.49909532
delta logL = -1.71410920302e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15760E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1466       1.0000          .0000       10.000    
     3 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0064       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=   4041.499     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      254 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20117        .51780E-01** at limit **
   2  Index         2.1547        7.6504        .50000        .35614E-06
   3  Normalizat    1.0903        .24432E-02    .72693E-01   -.29434E-04
   4  Prefactor     1.0066        .14198E-02    .43910E-01   -.12153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1547
  Normalizat = 1.09025
  Prefactor  = 1.00664
 **********
 **   18 **HESSE 
 **********

 FCN=   4041.499     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      297 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .56939        .30701E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1547        5.1803        .50000       -.60536    
   3  Normalizat    1.0903        .30101E-02    .32168E-03   -.90065    
   4  Prefactor     1.0066        .17515E-02    .19275E-03   -.92509    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00194e-12
Minuit parameter uncertainties:
  1  5.77009e-06
  2  26.2059
  3  0.00301007
  4  0.00175149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266729': 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) = 4041.49909327
delta logL = 3.39891812473e-07

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  1.000e-04  5.770e-06  1.000e-04  1.000e+04 ( 1.000e-12)
252        Index:  2.155e+00  2.621e+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:  1.007e+00  1.751e-03  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.090e+00  3.010e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 34.316 8.623

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/266729/cmap_HighResolution_449280001_449539201_4FGL_J0217.2+0837_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-08-15 15:34:53.948244', job_id='266729', GAL2='1.01', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629066893.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='810' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 15:34:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 266729: <4FGL_J0217.2+0837_daily_bin810> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin810> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 15:20:23 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 15:20:55 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:20:55 2021
Terminated at Sun Aug 15 15:34:58 2021
Results reported at Sun Aug 15 15:34:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin810 34.3163 8.6234 449280001 449539201 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 :                                   814.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            875 sec.

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

