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 61 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_J0259.0+0552_weekly_bin717
RA = 44.7519, Dec = 5.878
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='367666', job_status='RUN', time_executed='2022-05-03 01:06:44.293724', time_epoch_executed='1651565204.29' WHERE source_name='4FGL J0259.0+0552' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367666

Creating custom pfile directory:
/scratch/kocevski/367666/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/367666/ft1_4FGL_J0259.0+0552_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/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367666/ft1_4FGL_J0259.0+0552_weekly_bin717.fits outfile=/scratch/kocevski/367666/ft1_filteredMKT_4FGL_J0259.0+0552_weekly_bin717.fits ra=44.7519 dec=5.878 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.33
user 6.02
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_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/367666/ft1_filteredMKT_4FGL_J0259.0+0552_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_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.55
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 164

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367666/ltcube_672624001_673228801_4FGL_J0259.0+0552_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/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits
.....................!
real 33.88
user 33.19
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367666/ltcube_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.fits outfile=/scratch/kocevski/367666/expmap_672624001_673228801_4FGL_J0259.0+0552_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/367666/ltcube_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.fits
.....................!
real 192.13
user 186.20
sys 5.36

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

Setting source of interest to:
4FGL J0259.0+0552 @ 44.7519 5.878

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits scfile=/scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits outfile=/scratch/kocevski/367666/cmap_672624001_673228801_4FGL_J0259.0+0552_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=44.7519 yref=5.878 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.60
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits scfile=/scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits outfile=/scratch/kocevski/367666/cmap_HighResolution_672624001_673228801_4FGL_J0259.0+0552_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=44.7519 yref=5.878 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367666/Model_4FGL_J0259.0+0552_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/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits.....................!
real 37.49
user 36.12
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits', '/scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits', expMap='/scratch/kocevski/367666/expmap_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.fits', expCube='/scratch/kocevski/367666/ltcube_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367666/Model_4FGL_J0259.0+0552_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0259.0+0552'

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.939e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.870e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367666/ft1_filtered_4FGL_J0259.0+0552_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367666/ft2_4FGL_J0259.0+0552_weekly_bin717.fits
Exposure map: /scratch/kocevski/367666/expmap_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367666/ltcube_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367666/Model_4FGL_J0259.0+0552_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) = 2065.3470969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.872       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4410       1.0000         .10000E-03   10000.    
     3 'Prefactor '    217.78       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26898E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64437E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15661E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.360       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23124E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1853       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55333E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22494E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.962       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    147.64       1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.392       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .15658E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2065.188     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     2831 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.875        1.0458       -.13848E-06    .47725E-04
   2  norm          3.4418        2.1516       -.31007E-06   -.10079E-02
   3  Prefactor     217.79        2.0716        .43704E-06   -.32235E-02
   4  Prefactor     .10007E-03    30.320        .29128E-04** at limit **
   5  Prefactor     .11626E-03    5.9375        .78923E-05** at limit **
   6  Prefactor     .10207E-03    59.693       -.56675E-05** at limit **
   7  Prefactor     .14580E-03    19.447        .73706E-05** at limit **
   8  Prefactor     .10010E-03    37.328        .36621E-04** at limit **
   9  Prefactor     .12870E-03    281.41       -.36631E-04** at limit **
  10  norm          22.347        1.9038        .11157E-05   -.13265E-02
  11  Prefactor     .44110E-03    191.05       -.52937E-04** at limit **
  12  Prefactor     2.1555        5.5406       -.80170E-05    .33548E-03
  13  norm          .10114E-03    63.093        .16624E-04** at limit **
  14  Prefactor     .33534E-03    1.6044       -.66012E-05** at limit **
  15  Prefactor     .10016E-03    60.616       -.19777E-04** at limit **
  16  Prefactor     .72086E-02    7.1590       -.16015E-04    .59750E-03
  17  Prefactor     .10000E-03    8.4777        .15424E-07** at limit **
  18  norm          .10012E-03    32.232       -.55954E-04** at limit **
  19  norm          17.958        1.1594       -.19295E-06   -.29186E-04
  20  Prefactor     .10000E-03    7.0373        .15219E-05** at limit **
  21  norm          .10000E-03    17.080       -.22028E-05** at limit **
  22  Prefactor     147.77        21.705        .21130E-05    .16850E-02
  23  Prefactor     39.489        15.819        .23982E-05    .17679E-02
  24  Prefactor     .10000E-03    7.1159        .57192E-06** at limit **
  25  Prefactor     .10001E-03    12.887        .17881E-05** at limit **
  26  Normalizat    .14561E-01    7.2015        .57411E-04   -.65218E-05
  27  Prefactor     1.0483        .17061       -.25530E-05   -.23142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.875
  norm       = 3.44179
  Prefactor  = 217.785
  Prefactor  = 0.000100066
  Prefactor  = 0.000116257
  Prefactor  = 0.000102074
  Prefactor  = 0.000145805
  Prefactor  = 0.000100103
  Prefactor  = 0.000128698
  norm       = 22.3467
  Prefactor  = 0.0004411
  Prefactor  = 2.15554
  norm       = 0.000101136
  Prefactor  = 0.00033534
  Prefactor  = 0.00010016
  Prefactor  = 0.00720862
  Prefactor  = 0.000100004
  norm       = 0.000100125
  norm       = 17.9576
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 147.774
  Prefactor  = 39.4893
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  Normalizat = 0.0145606
  Prefactor  = 1.04828
 **********
 **   18 **HESSE 
 **********

 FCN=   2065.188     FROM HESSE     STATUS=OK           530 CALLS     3361 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.875        17.083        .25133E-02   -1.4911    
   2  norm          3.4418        2.1867        .54510E-02   -1.5337    
   3  Prefactor     217.79        211.39        .68514E-03   -1.2746    
   4  Prefactor     .10007E-03    30.450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11626E-03    385.78        .10718E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10207E-03    116.94        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14580E-03    442.16        .10513E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    37.598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12870E-03    578.56        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.347        33.381        .21177E-02   -1.4762    
  11  Prefactor     .44110E-03    880.58        .90712E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1555        844.76        .69612E-02   -1.5414    
  13  norm          .10114E-03    123.96        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33534E-03    6917.5        .10553E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10016E-03    60.844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .72086E-02    7768.1        .90712E-02   -1.5691    
  17  Prefactor     .10000E-03    8.5612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10012E-03    32.673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.958        25.392        .23626E-02   -1.4860    
  20  Prefactor     .10000E-03    7.0794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    17.103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     147.77        100.79        .82914E-03   -1.3271    
  23  Prefactor     39.489        115.15        .15966E-02   -1.4450    
  24  Prefactor     .10000E-03    7.1600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    12.952        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .14561E-01    .68715        .32188       -1.5281    
  27  Prefactor     1.0483        .19647        .40032E-01   -.91137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0098e-06
Minuit parameter uncertainties:
  1  17.0884
  2  2.1868
  3  212.14
  4  0.00284177
  5  0.159425
  6  0.0312075
  7  0.286766
  8  0.0039409
  9  0.260262
  10  33.4092
  11  1.11287
  12  86.602
  13  0.0237786
  14  2.04943
  15  0.00624988
  16  14.164
  17  0.000378704
  18  0.00403807
  19  25.4069
  20  0.000162083
  21  0.000334509
  22  100.905
  23  115.812
  24  0.000244637
  25  0.000543059
  26  0.113313
  27  0.196607
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.001e-04  4.038e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.870e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  1.048e+00  1.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  1.456e-02  1.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.752 5.878
Photon Flux Upper Limit: 2.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367666/likelihoodResults_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2065.18824234
delta logL = -0.000143305727761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2065.1880992
delta logL = -1.6947660697e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11063E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8616       1.0000          .0000       5.0000    
     3 'Normalizat'    .14562E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2065.188     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      198 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    33.091        .90712E-02** at limit **
   2  alpha         1.8732        3.3789        .42991       -.17338E-05
   3  Normalizat    .14553E-01    .41769        .32170        .14528E-04
   4  Prefactor     1.0483        .17737        .40011E-01    .41969E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100054
  alpha      = 1.87317
  Normalizat = 0.0145533
  Prefactor  = 1.04828
 **********
 **   18 **HESSE 
 **********

 FCN=   2065.188     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    32.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8732        3.3745        .50000       -.25344    
   3  Normalizat    .14553E-01    1.8293        .11267E-01   -1.5281    
   4  Prefactor     1.0483        .13875        .15363E-03   -.91137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98864e-09
Minuit parameter uncertainties:
  1  0.00263684
  2  2.42226
  3  0.188667
  4  0.138795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367666': 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) = 2065.18809903
delta logL = 2.84853740595e-09

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.001e-04  2.637e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.873e+00  2.422e+00  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.393e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  2.098e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  1.048e+00  1.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
495        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
496        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
493   Normalization:  1.455e-02  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 44.752 5.878

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/367666/cmap_HighResolution_672624001_673228801_4FGL_J0259.0+0552_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-04', job_status='DONE', photon_flux_upper_limit='2.56e-07', time_completed='2022-05-03 01:14:43.137207', job_id='367666', GAL2='1.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651565683.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.85e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='717' AND source_name='4FGL J0259.0+0552' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:14:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 367666: <4FGL_J0259.0+0552_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0259.0+0552_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:33 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:05:33 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:05:33 2022
Terminated at Tue May  3 01:14:44 2022
Results reported at Tue May  3 01:14:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_weekly_bin717 44.7519 5.878 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0259.0+0552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   480.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            851 sec.

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

