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


Performing analysis on: 4FGL_J0217.8+0144_weekly_bin717
RA = 34.4621, Dec = 1.7346
tmin = 672624001, tmax = 673228801
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='367580', job_status='RUN', time_executed='2022-05-03 01:05:23.949562', time_epoch_executed='1651565123.95' WHERE source_name='4FGL J0217.8+0144' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367580

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367580/ft1_4FGL_J0217.8+0144_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367580/ft2_4FGL_J0217.8+0144_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367580/ft1_4FGL_J0217.8+0144_weekly_bin717.fits outfile=/scratch/kocevski/367580/ft1_filteredMKT_4FGL_J0217.8+0144_weekly_bin717.fits ra=34.4621 dec=1.7346 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.34
user 6.05
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367580/ft2_4FGL_J0217.8+0144_weekly_bin717.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/367580/ft1_filteredMKT_4FGL_J0217.8+0144_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367580/ft1_filtered_4FGL_J0217.8+0144_weekly_bin717.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.56
user 0.38
sys 0.18

Number of photons that the gtmktime cut: 233

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367580/ft1_filtered_4FGL_J0217.8+0144_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367580/ft2_4FGL_J0217.8+0144_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367580/ltcube_672624001_673228801_4FGL_J0217.8+0144_weekly_bin717.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/367580/ft2_4FGL_J0217.8+0144_weekly_bin717.fits
.....................!
real 36.15
user 35.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367580/ft1_filtered_4FGL_J0217.8+0144_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367580/ft2_4FGL_J0217.8+0144_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367580/ltcube_672624001_673228801_4FGL_J0217.8+0144_weekly_bin717.fits outfile=/scratch/kocevski/367580/expmap_672624001_673228801_4FGL_J0217.8+0144_weekly_bin717.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/367580/ltcube_672624001_673228801_4FGL_J0217.8+0144_weekly_bin717.fits
.....................!
real 192.88
user 187.05
sys 5.42

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/367580/ft1_filtered_4FGL_J0217.8+0144_weekly_bin717.fits scfile=/scratch/kocevski/367580/ft2_4FGL_J0217.8+0144_weekly_bin717.fits outfile=/scratch/kocevski/367580/cmap_672624001_673228801_4FGL_J0217.8+0144_weekly_bin717.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 0.63
user 0.44
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367580/ft1_filtered_4FGL_J0217.8+0144_weekly_bin717.fits scfile=/scratch/kocevski/367580/ft2_4FGL_J0217.8+0144_weekly_bin717.fits outfile=/scratch/kocevski/367580/cmap_HighResolution_672624001_673228801_4FGL_J0217.8+0144_weekly_bin717.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 0.64
user 0.44
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5385       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.208       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.106       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    182.31       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1175       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75864       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=   2962.687     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2355 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.300       -.37928E-05** at limit **
   2  Prefactor     .10000E-03    2.1251        .13914E-07** at limit **
   3  norm          1.5354        125.61        .50913E-04   -.60691E-04
   4  Prefactor     16.207        20.882       -.13531E-05   -.85551E-04
   5  norm          .10000E-03    11.924       -.57632E-07** at limit **
   6  Prefactor     16.106        16.162       -.60128E-06   -.22123E-04
   7  norm          2.7821        1.8710        .79655E-07   -.51369E-04
   8  Prefactor     182.37        203.51        .37752E-05    .55150E-04
   9  Prefactor     .10000E-03    41.720       -.16474E-05** at limit **
  10  Prefactor     .10058E-03    494.21       -.44551E-04** at limit **
  11  Prefactor     .10000E-03    21.026        .98832E-07** at limit **
  12  Prefactor     .10001E-03    343.67       -.31962E-05** at limit **
  13  Prefactor     .10000E-03    44.967        .25531E-05** at limit **
  14  Prefactor     .10000E-03    67.202       -.11430E-05** at limit **
  15  norm          .10012E-03    204.50        .20825E-04** at limit **
  16  Prefactor     .10000E-03    8.7696        .58689E-07** at limit **
  17  Prefactor     .10000E-03    30.052        .41141E-06** at limit **
  18  Prefactor     .10000E-03    7.4833        .68280E-08** at limit **
  19  norm          .10000E-03    40.600       -.30381E-05** at limit **
  20  norm          .10000E-03    46.355        .41163E-05** at limit **
  21  Normalizat    1.1177        .25044        .96992E-06   -.13587E-03
  22  Prefactor     .75849        .21180       -.30451E-05   -.56206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.5354
  Prefactor  = 16.2075
  norm       = 0.0001
  Prefactor  = 16.1058
  norm       = 2.78209
  Prefactor  = 182.369
  Prefactor  = 0.000100001
  Prefactor  = 0.000100576
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.000100125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.000100005
  Normalizat = 1.11774
  Prefactor  = 0.75849
 **********
 **   18 **HESSE 
 **********

 FCN=   2962.687     FROM HESSE     STATUS=OK           330 CALLS     2685 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1270        .77491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5354        131.14        .17191E-02   -1.5460    
   4  Prefactor     16.207        20.900        .99486E-04   -1.4903    
   5  norm          .10000E-03    11.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.106        16.178        .99798E-04   -1.4905    
   7  norm          2.7821        1.8683        .58256E-04   -1.5374    
   8  Prefactor     182.37        203.99        .14949E-03   -1.2999    
   9  Prefactor     .10000E-03    41.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10058E-03    524.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    344.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10012E-03    211.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7881        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4871        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    40.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    46.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1177        .29289        .25079E-03   -.89184    
  22  Prefactor     .75849        .24752        .24329E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33717e-09
Minuit parameter uncertainties:
  1  0.00115037
  2  1.41679e-06
  3  28.4431
  4  20.9097
  5  3.46142e-06
  6  16.182
  7  1.86832
  8  204.792
  9  0.000363499
  10  0.0350697
  11  5.40548e-05
  12  0.00384743
  13  0.000568685
  14  0.000391778
  15  0.0103031
  16  1.19794e-05
  17  8.24562e-05
  18  5.32707e-07
  19  0.000667543
  20  0.000946121
  21  0.293314
  22  0.247879
Done.

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

Extracting fit parameters...

4FGL J0217.8+0144
   Spectrum: LogParabola
242         norm:  2.782e+00  1.868e+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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  7.585e-01  2.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.118e+00  2.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 34.462 1.735
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 7.80e-08
Energy Flux (Fixed Index): 4.94e-05 +/- 3.32e-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) = 2962.09614787
delta logL = 0.590773163498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2962.08521108
delta logL = 0.601709950909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6996       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6367       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74330       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.

 FCN=   2962.085     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6996        1.6757        .61985E-02    .34271E-02
   2  alpha         1.6366        .38343        .20571       -.19048E-04
   3  Normalizat    1.1408        .24930        .56189E-01    .55219E-05
   4  Prefactor     .74337        .20482        .42975E-01    .45146E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.69957
  alpha      = 1.63655
  Normalizat = 1.14081
  Prefactor  = 0.743374
 **********
 **   18 **HESSE 
 **********

 FCN=   2962.085     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6996        1.8176        .53361E-04   -1.5379    
   2  alpha         1.6366        .43602        .86858E-02   -.35264    
   3  Normalizat    1.1408        .29031        .24846E-03   -.88452    
   4  Prefactor     .74337        .23865        .24517E-03   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18065e-09
Minuit parameter uncertainties:
  1  1.81761
  2  0.438571
  3  0.290716
  4  0.238982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367580': 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) = 2962.08521097
delta logL = 0.601710057736

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  7.434e-01  2.390e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.141e+00  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 34.462 1.735
Photon Index (Free Index): 1.64 +/- 0.44
Photon Flux (Free Index): 7.66e-08 +/- 5.92e-08
Energy Flux (Free Index): 9.41e-05 +/- 8.50e-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/367580/cmap_HighResolution_672624001_673228801_4FGL_J0217.8+0144_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='9.41e-05', photon_flux_error='7.80e-08', dlogl='6.02e-01', energy_flux='4.94e-05', photon_flux2='7.66e-08', job_status='DONE', time_completed='2022-05-03 01:13:24.605806', photon_index_error2='0.44', photon_index2='1.64', ts='4.61', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='8.50e-05', EG='1.12', time_epoch_completed='1651565604.61', return_code='0', job_id='367580', GAL2='0.74', EG2='1.14', return_code2='0', energy_flux_error='3.32e-05', photon_flux_error2='5.92e-08', ts2='5.86', photon_index='2.16' WHERE bin_id='717' AND source_name='4FGL J0217.8+0144' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:13:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 367580: <4FGL_J0217.8+0144_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0217.8+0144_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:27 2022
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:03:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:03:47 2022
Terminated at Tue May  3 01:13:25 2022
Results reported at Tue May  3 01:13:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0217.8+0144_weekly_bin717 34.4621 1.7346 672624001 673228801 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 :                                   482.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            778 sec.

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

