aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 79 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7579
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0217.2+0837_daily_bin1740
RA = 34.3163, Dec = 8.6234
tmin = 690336001, tmax = 690595201
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='822882', job_status='RUN', time_executed='2022-11-20 00:11:18.332632', time_epoch_executed='1668931878.33' WHERE source_name='4FGL J0217.2+0837' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822882

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822882/ft1_4FGL_J0217.2+0837_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822882/ft1_4FGL_J0217.2+0837_daily_bin1740.fits outfile=/scratch/kocevski/822882/ft1_filteredMKT_4FGL_J0217.2+0837_daily_bin1740.fits ra=34.3163 dec=8.6234 rad=12.0 tmin=690336001.0 tmax=690595201.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 2.98
user 2.75
sys 0.21

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

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

Number of photons that the gtmktime cut: 198

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822882/ft1_filtered_4FGL_J0217.2+0837_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822882/ltcube_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.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/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits
.....................!
real 16.29
user 15.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822882/ft1_filtered_4FGL_J0217.2+0837_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822882/ltcube_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.fits outfile=/scratch/kocevski/822882/expmap_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.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/822882/ltcube_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.fits
.....................!
real 193.10
user 186.57
sys 5.80

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/822882/ft1_filtered_4FGL_J0217.2+0837_daily_bin1740.fits scfile=/scratch/kocevski/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits outfile=/scratch/kocevski/822882/cmap_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.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 0.73
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822882/ft1_filtered_4FGL_J0217.2+0837_daily_bin1740.fits scfile=/scratch/kocevski/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits outfile=/scratch/kocevski/822882/cmap_HighResolution_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.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 0.64
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822882/ft1_filtered_4FGL_J0217.2+0837_daily_bin1740.fits', '/scratch/kocevski/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits', expMap='/scratch/kocevski/822882/expmap_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.fits', expCube='/scratch/kocevski/822882/ltcube_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822882/Model_4FGL_J0217.2+0837_daily_bin1740.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  0.000e+00  1.000e+06 ( 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/822882/ft1_filtered_4FGL_J0217.2+0837_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822882/ft2_4FGL_J0217.2+0837_daily_bin1740.fits
Exposure map: /scratch/kocevski/822882/expmap_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822882/ltcube_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822882/Model_4FGL_J0217.2+0837_daily_bin1740.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) = 2472.73782889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0537       1.0000          .0000       .10000E+07
     2 'norm      '    .74582E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.8184       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11734E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .85700E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.2099       1.0000          .0000       .10000E+07
     7 'norm      '    .78168E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .25150       1.0000          .0000       .10000E+07
     9 'Prefactor '    126.99       1.0000          .0000       .10000E+07
    10 'Prefactor '    182.26       1.0000          .0000       .10000E+07
    11 'Prefactor '    .53560E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .70678E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .94171       1.0000          .0000       .10000E+07
    14 'norm      '    .52653       1.0000          .0000       .10000E+07
    15 'Prefactor '    .35440       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20366E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .53243E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .67424E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.3829       1.0000          .0000       .10000E+07
    20 'Prefactor '    .19044       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.1973       1.0000          .0000       .10000E+07
    22 'norm      '    33.572       1.0000          .0000       .10000E+07
    23 'norm      '    1.7771       1.0000          .0000       .10000E+07
    24 'Normalizat'    .82764       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2472.659     FROM MIGRAD    STATUS=CONVERGED    286 CALLS     2282 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9585        6.7542        .18191E-07    .11371E-02
   2  norm          .38895E-05    19.413        .25320E-06** at limit **
   3  Prefactor     7.7779        13.440        .77084E-08    .13374E-03
   4  Prefactor      .0000        4.7047        .63360E-08** at limit **
   5  norm           .0000        3.4824        .23559E-07** at limit **
   6  Prefactor     8.2549        5.5656       -.95059E-08   -.13582E-02
   7  norm          .55511E-10    22.440       -.59668E-07** at limit **
   8  Prefactor     .40375E-04    98.398       -.38164E-06** at limit **
   9  Prefactor     154.38        180.22        .34695E-06    .20385E-02
  10  Prefactor     175.91        41.608        .51699E-07    .40547E-02
  11  Prefactor     .85149E-06    20.628        .18123E-06** at limit **
  12  Prefactor     .99271E-06    22.503        .17156E-07** at limit **
  13  Prefactor     .15969E-04    1391.3       -.14219E-04** at limit **
  14  norm          .53361        3.3319       -.49655E-07   -.36234E-02
  15  Prefactor     .41633E-07    220.90        .91731E-07** at limit **
  16  Prefactor     .33307E-09    12.803        .87264E-08** at limit **
  17  norm          .67199E-05    17.254       -.28051E-06** at limit **
  18  Prefactor     .11102E-09    91.393        .67560E-07** at limit **
  19  Prefactor     .62229E-04    166.10       -.75259E-06** at limit **
  20  Prefactor     .61555E-05    10.602        .28625E-06** at limit **
  21  Prefactor     3.3350        21.674        .49777E-07   -.48712E-03
  22  norm          33.734        36.477       -.38151E-06    .20490E-01
  23  norm          1.7322        44.774        .23194E-06    .37493E-03
  24  Normalizat    .82787        .34146       -.10716E-05    .51449E-04
  25  Prefactor     .96829        .24823        .69041E-06    .10867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.95851
  norm       = 3.8895e-06
  Prefactor  = 7.77785
  Prefactor  = 0
  norm       = 0
  Prefactor  = 8.25492
  norm       = 5.55112e-11
  Prefactor  = 4.03753e-05
  Prefactor  = 154.379
  Prefactor  = 175.912
  Prefactor  = 8.51486e-07
  Prefactor  = 9.92706e-07
  Prefactor  = 1.59688e-05
  norm       = 0.533605
  Prefactor  = 4.16334e-08
  Prefactor  = 3.33067e-10
  norm       = 6.7199e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 6.22294e-05
  Prefactor  = 6.15547e-06
  Prefactor  = 3.33498
  norm       = 33.734
  norm       = 1.73218
  Normalizat = 0.827868
  Prefactor  = 0.968287
 **********
 **   18 **HESSE 
 **********

 FCN=   2472.659     FROM HESSE     STATUS=OK           479 CALLS     2761 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9585        6.8058        .50056E-03   -1.5668    
   2  norm          .38895E-05    26.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7779        13.433        .35837E-03   -1.5652    
   4  Prefactor      .0000        4.6695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        3.4938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2549        5.6195        .34966E-03   -1.5651    
   7  norm          .55511E-10    .90009        .32343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .40375E-04    146.56        .10923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     154.38        192.20        .88746E-04   -1.5459    
  10  Prefactor     175.91        180.63        .74079E-04   -1.5443    
  11  Prefactor     .85149E-06    21.696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .99271E-06    23.757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15969E-04    1412.3        .42918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .53361        3.4108        .76085E-03   -1.5693    
  15  Prefactor     .41633E-07    221.48        .94972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33307E-09    12.853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .67199E-05    25.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    91.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .62229E-04    2648.6        .48084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .61555E-05    210.24        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3350        21.725        .56640E-03   -1.5671    
  22  norm          33.734        37.328        .17261E-03   -1.5592    
  23  norm          1.7322        44.217        .78494E-03   -1.5682    
  24  Normalizat    .82787        .29860        .70886E-01   -.99043    
  25  Prefactor     .96829        .21386        .45879E-01   -.93794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65014e-07
Minuit parameter uncertainties:
  1  6.80584
  2  0.0201283
  3  13.4332
  4  2.22187e-05
  5  1.87071e-05
  6  5.61953
  7  1.32485e-05
  8  0.153852
  9  192.207
  10  180.634
  11  0.00859619
  12  0.00971281
  13  0.300422
  14  2.69817
  15  0.00607351
  16  0.000126596
  17  0.0263319
  18  0.000197602
  19  0.812325
  20  0.0719503
  21  17.0237
  22  37.3278
  23  17.5034
  24  0.299192
  25  0.214047
Done.

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

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  8.255e+00  5.620e+00  0.000e+00  1.000e+06 ( 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:  9.683e-01  2.140e-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:  8.279e-01  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.84
Ra Dec: 34.316 8.623
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 8.78e-08
Energy Flux (Fixed Index): 5.13e-05 +/- 3.49e-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) = 2472.34029151
delta logL = 0.318729297398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2472.31238785
delta logL = 0.346632952105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7874       1.0000          .0000       .10000E+07
     2 'Index     '    1.8606       1.0000          .0000       10.000    
     3 'Normalizat'    .84650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96367       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=   2472.312     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7862        6.8161       -.93177E-07    .48701E-03
   2  Index         1.8605        .47269       -.93575E-05    .90187E-05
   3  Normalizat    .84647        .28624        .55059E-06    .92100E-04
   4  Prefactor     .96369        .19685        .63121E-06    .12314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.78617
  Index      = 1.86052
  Normalizat = 0.846473
  Prefactor  = 0.963686
 **********
 **   18 **HESSE 
 **********

 FCN=   2472.312     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7862        6.8132        .10444E-04   -1.5645    
   2  Index         1.8605        .47233        .54766E-02   -.67885    
   3  Normalizat    .84647        .32844        .31070E-03   -.98367    
   4  Prefactor     .96369        .22591        .19912E-03   -.93950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50186e-11
Minuit parameter uncertainties:
  1  6.81321
  2  0.473495
  3  0.329214
  4  0.226131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822882': 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) = 2472.31238783
delta logL = 0.346632975455

Extracting fit parameters...

4FGL J0217.2+0837
   Spectrum: PowerLaw
251    Prefactor:  9.786e+00  6.813e+00  0.000e+00  1.000e+06 ( 1.000e-12)
252        Index:  1.861e+00  4.735e-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:  9.637e-01  2.261e-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:  8.465e-01  3.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.56
Ra Dec: 34.316 8.623
Photon Index (Free Index): 1.86 +/- 0.47
Photon Flux (Free Index): 8.68e-08 +/- 7.86e-08
Energy Flux (Free Index): 8.70e-05 +/- 9.05e-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/822882/cmap_HighResolution_690336001_690595201_4FGL_J0217.2+0837_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='8.70e-05', photon_flux_error='8.78e-08', dlogl='3.47e-01', energy_flux='5.13e-05', photon_flux2='8.68e-08', job_status='DONE', time_completed='2022-11-20 00:18:29.560909', photon_index_error2='0.47', photon_index2='1.86', ts='6.84', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='9.05e-05', EG='0.83', time_epoch_completed='1668932309.56', return_code='0', job_id='822882', GAL2='0.96', EG2='0.85', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='7.86e-08', ts2='7.56', photon_index='2.27' WHERE bin_id='1740' AND source_name='4FGL J0217.2+0837' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:18:29 PST 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 822852: <4FGL_J0217.2+0837_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:17 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:09:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:09:32 2022
Terminated at Sun Nov 20 00:16:56 2022
Results reported at Sun Nov 20 00:16:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin1740 34.3163 8.6234 690336001 690595201 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 :                                   417.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             279.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   443 sec.
    Turnaround time :                            699 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 822882: <4FGL_J0217.2+0837_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0217.2+0837_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:18 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:09:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:09:48 2022
Terminated at Sun Nov 20 00:18:30 2022
Results reported at Sun Nov 20 00:18:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.2+0837_daily_bin1740 34.3163 8.6234 690336001 690595201 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 :                                   427.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            792 sec.

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

