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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1723
RA = 44.7519, Dec = 5.878
tmin = 685929601, tmax = 686188801
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='430380', job_status='RUN', time_executed='2022-09-30 00:07:24.210698', time_epoch_executed='1664521644.21' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430380

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430380/ft1_4FGL_J0259.0+0552_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430380/ft1_4FGL_J0259.0+0552_daily_bin1723.fits outfile=/scratch/kocevski/430380/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1723.fits ra=44.7519 dec=5.878 rad=12.0 tmin=685929601.0 tmax=686188801.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 3.60
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.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/430380/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1723.fits evtable="EVENTS" outfile="/scratch/kocevski/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.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.53
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 669

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/430380/ltcube_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.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/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits
.....................!
real 12.39
user 11.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/430380/ltcube_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.fits outfile=/scratch/kocevski/430380/expmap_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.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/430380/ltcube_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.fits
.....................!
real 193.43
user 187.71
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/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits scfile=/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits outfile=/scratch/kocevski/430380/cmap_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.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.67
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits scfile=/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits outfile=/scratch/kocevski/430380/cmap_HighResolution_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430380/Model_4FGL_J0259.0+0552_daily_bin1723.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/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits.....................!
real 92.65
user 91.20
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits', '/scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits', expMap='/scratch/kocevski/430380/expmap_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.fits', expCube='/scratch/kocevski/430380/ltcube_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430380/Model_4FGL_J0259.0+0552_daily_bin1723.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  0.000e+00  1.000e+06 ( 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 -5.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/430380/ft1_filtered_4FGL_J0259.0+0552_daily_bin1723.fits
Spacecraft file(s): /scratch/kocevski/430380/ft2_4FGL_J0259.0+0552_daily_bin1723.fits
Exposure map: /scratch/kocevski/430380/expmap_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.fits
Exposure cube: /scratch/kocevski/430380/ltcube_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430380/Model_4FGL_J0259.0+0552_daily_bin1723.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) = 7278.5119422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8685       1.0000          .0000       .10000E+07
     2 'norm      '    1.7533       1.0000          .0000       .10000E+07
     3 'Prefactor '    .20664E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .22272E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18017E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .86042E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .21121E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.4105       1.0000          .0000       .10000E+07
     9 'Prefactor '    31.511       1.0000          .0000       .10000E+07
    10 'Prefactor '    15.915       1.0000          .0000       .10000E+07
    11 'norm      '    .24408E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .68376E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    47.407       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62320E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18274E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .38683E-04   1.0000          .0000       .10000E+07
    17 'norm      '    6.5802       1.0000          .0000       .10000E+07
    18 'Prefactor '    .58607E-04   1.0000          .0000       .10000E+07
    19 'norm      '    1.6148       1.0000          .0000       .10000E+07
    20 'Prefactor '    17.546       1.0000          .0000       .10000E+07
    21 'Prefactor '    .71028E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    10.007       1.0000          .0000       .10000E+07
    23 'Normalizat'    .86858       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90868       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=   7278.430     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1953 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8702        2.5358       -.38270E-06   -.17571E-01
   2  norm          1.7543        1.0266       -.16652E-06    .10512E-02
   3  Prefactor     .16959E-04    128.50        .26206E-04** at limit **
   4  Prefactor     .75551E-07    24.079       -.43726E-05** at limit **
   5  Prefactor     .55511E-10    2.4703       -.34472E-06** at limit **
   6  Prefactor     .72720E-08    13.504       -.31505E-05** at limit **
   7  Prefactor      .0000        3.9950       -.16148E-05** at limit **
   8  norm          1.4105        .61188       -.19684E-06   -.48044E-02
   9  Prefactor     31.724        13.758       -.15110E-05   -.20170    
  10  Prefactor     15.789        3.0097       -.49895E-07   -.33051E-01
  11  norm          .55511E-10    3.1966       -.89960E-06** at limit **
  12  Prefactor     .10925E-06    15.824        .48642E-05** at limit **
  13  Prefactor     48.999        20.621       -.46146E-05    .13420    
  14  Prefactor     .28866E-08    10.721        .31193E-05** at limit **
  15  Prefactor     .39632E-05    56.489        .14758E-04** at limit **
  16  norm          .16653E-09    4.3136        .16253E-05** at limit **
  17  norm          6.5807        3.8431        .35573E-06    .26536E-02
  18  Prefactor     .11102E-09    2.9282        .92129E-07** at limit **
  19  norm          1.6255        8.7657       -.37173E-06   -.73412E-03
  20  Prefactor     17.774        1.6179       -.23341E-06   -.23674E-01
  21  Prefactor     .55511E-10    3.8029       -.13358E-05** at limit **
  22  Prefactor     10.007        10.564       -.61109E-06   -.63486E-02
  23  Normalizat    .86763        .20929        .37936E-04   -.96059E-04
  24  Prefactor     .90876        .90295E-01   -.12133E-04   -.75381E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87023
  norm       = 1.75429
  Prefactor  = 1.6959e-05
  Prefactor  = 7.55507e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 7.27196e-09
  Prefactor  = 0
  norm       = 1.41051
  Prefactor  = 31.7239
  Prefactor  = 15.7892
  norm       = 5.55112e-11
  Prefactor  = 1.09246e-07
  Prefactor  = 48.9992
  Prefactor  = 2.88658e-09
  Prefactor  = 3.96322e-06
  norm       = 1.66533e-10
  norm       = 6.58075
  Prefactor  = 1.11022e-10
  norm       = 1.62545
  Prefactor  = 17.7738
  Prefactor  = 5.55112e-11
  Prefactor  = 10.0071
  Normalizat = 0.867628
  Prefactor  = 0.908759
 **********
 **   18 **HESSE 
 **********

 FCN=   7278.430     FROM HESSE     STATUS=OK           447 CALLS     2400 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8702        2.5453        .51280E-03   -1.5669    
   2  norm          1.7543        1.0283        .79138E-03   -1.5681    
   3  Prefactor     .16959E-04    138.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75551E-07    24.298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    2.4740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72720E-08    13.547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.9962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4105        .61037        .91188E-03   -1.5684    
   9  Prefactor     31.724        30.709        .17817E-03   -1.5595    
  10  Prefactor     15.789        20.992        .25079E-03   -1.5628    
  11  norm          .55511E-10    3.2055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10925E-06    16.091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.999        47.878        .14525E-03   -1.5568    
  14  Prefactor     .28866E-08    10.739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .39632E-05    3.8840        .59171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .16653E-09    4.3192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5807        3.8521        .39097E-03   -1.5657    
  18  Prefactor     .11102E-09    2.9274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6255        8.7899        .83296E-03   -1.5682    
  20  Prefactor     17.774        18.879        .23883E-03   -1.5624    
  21  Prefactor     .55511E-10    3.7894        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.007        10.595        .31651E-03   -1.5645    
  23  Normalizat    .86763        .20448        .82854E-01   -.97607    
  24  Prefactor     .90876        .82081E-01    .45116E-01   -.95836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95145e-06
Minuit parameter uncertainties:
  1  2.54528
  2  1.02827
  3  0.0969676
  4  0.00270934
  5  2.09137e-05
  6  0.000628539
  7  2.90308e-06
  8  0.610366
  9  30.7094
  10  20.9919
  11  2.53791e-05
  12  0.00265188
  13  47.8788
  14  0.000350549
  15  0.00784685
  16  4.96895e-05
  17  3.85213
  18  3.78145e-05
  19  7.55978
  20  18.8787
  21  3.05411e-05
  22  10.595
  23  0.204659
  24  0.0820926
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.665e-10  4.969e-05  0.000e+00  1.000e+06 ( 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 -5.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:  9.088e-01  8.209e-02  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:  8.676e-01  2.047e-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: 3.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430380/likelihoodResults_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.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) = 7278.41496947
delta logL = 0.0148958293375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7278.40985487
delta logL = 0.0200104299438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52836E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    3.9794       1.0000          .0000       5.0000    
     3 'Normalizat'    .85892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90957       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=   7278.410     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      286 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52979E-01    1.5213        .15429E-02** at limit **
   2  alpha         3.9786        4.3917        .50000        .56417E-04
   3  Normalizat    .85898        .18876E-01    .83220E-01    .22586E-04
   4  Prefactor     .90955        .81491E-02    .45127E-01   -.70966E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.052979
  alpha      = 3.97862
  Normalizat = 0.858977
  Prefactor  = 0.909553
 **********
 **   18 **HESSE 
 **********

 FCN=   7278.410     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      321 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52979E-01    57.128        .60663E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.9786        2.8688        .44410E-01    .63285    
   3  Normalizat    .85898        .11685        .36847E-03   -.97917    
   4  Prefactor     .90955        .50708E-01    .15411E-03   -.95808    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24292e-07
Minuit parameter uncertainties:
  1  3.47945
  2  22.4713
  3  0.116889
  4  0.0507106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430380': 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) = 7278.40985478
delta logL = 0.0200105205577

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  5.298e-02  3.479e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        alpha:  3.979e+00  2.247e+01  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.393e-01  0.000e+00 -5.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:  9.096e-01  5.071e-02  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:  8.590e-01  1.169e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/430380/cmap_HighResolution_685929601_686188801_4FGL_J0259.0+0552_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', job_status='DONE', photon_flux_upper_limit='3.96e-08', time_completed='2022-09-30 00:18:10.142759', job_id='430380', GAL2='0.91', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1664522290.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.00e-02', ts2='0.04', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1723' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:18:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 430380: <4FGL_J0259.0+0552_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:16 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:05:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:05:41 2022
Terminated at Fri Sep 30 00:18:10 2022
Results reported at Fri Sep 30 00:18:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1723 44.7519 5.878 685929601 686188801 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 :                                   648.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            774 sec.

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

