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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1722
RA = 44.7519, Dec = 5.878
tmin = 685670401, tmax = 685929601
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='229382', job_status='RUN', time_executed='2022-09-27 00:06:44.781117', time_epoch_executed='1664262404.78' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229382/ft1_4FGL_J0259.0+0552_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229382/ft1_4FGL_J0259.0+0552_daily_bin1722.fits outfile=/scratch/kocevski/229382/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1722.fits ra=44.7519 dec=5.878 rad=12.0 tmin=685670401.0 tmax=685929601.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.67
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.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/229382/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1722.fits evtable="EVENTS" outfile="/scratch/kocevski/229382/ft1_filtered_4FGL_J0259.0+0552_daily_bin1722.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.35
sys 0.16

Number of photons that the gtmktime cut: 751

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229382/ft1_filtered_4FGL_J0259.0+0552_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229382/ltcube_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.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/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits
.....................!
real 17.75
user 17.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229382/ft1_filtered_4FGL_J0259.0+0552_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229382/ltcube_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.fits outfile=/scratch/kocevski/229382/expmap_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.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/229382/ltcube_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.fits
.....................!
real 191.05
user 185.82
sys 4.82

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/229382/ft1_filtered_4FGL_J0259.0+0552_daily_bin1722.fits scfile=/scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits outfile=/scratch/kocevski/229382/cmap_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229382/ft1_filtered_4FGL_J0259.0+0552_daily_bin1722.fits scfile=/scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits outfile=/scratch/kocevski/229382/cmap_HighResolution_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229382/ft1_filtered_4FGL_J0259.0+0552_daily_bin1722.fits', '/scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits', expMap='/scratch/kocevski/229382/expmap_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.fits', expCube='/scratch/kocevski/229382/ltcube_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229382/Model_4FGL_J0259.0+0552_daily_bin1722.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/229382/ft1_filtered_4FGL_J0259.0+0552_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/229382/ft2_4FGL_J0259.0+0552_daily_bin1722.fits
Exposure map: /scratch/kocevski/229382/expmap_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.fits
Exposure cube: /scratch/kocevski/229382/ltcube_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229382/Model_4FGL_J0259.0+0552_daily_bin1722.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) = 8211.6718914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7526       1.0000          .0000       .10000E+07
     2 'norm      '    1.2299       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.921       1.0000          .0000       .10000E+07
     4 'Prefactor '    49.233       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5743       1.0000          .0000       .10000E+07
     6 'Prefactor '    .33410E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20321E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.3819       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17791       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.0115       1.0000          .0000       .10000E+07
    11 'norm      '    8.1291       1.0000          .0000       .10000E+07
    12 'Prefactor '    154.55       1.0000          .0000       .10000E+07
    13 'Prefactor '    35.869       1.0000          .0000       .10000E+07
    14 'Prefactor '    28.863       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64049E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .37627       1.0000          .0000       .10000E+07
    17 'norm      '    3.9389       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.8333       1.0000          .0000       .10000E+07
    19 'norm      '    .10779E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    58.964       1.0000          .0000       .10000E+07
    21 'Prefactor '    3.3038       1.0000          .0000       .10000E+07
    22 'Prefactor '    1.5704       1.0000          .0000       .10000E+07
    23 'Normalizat'    .93851       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94009       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=   8211.669     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     2698 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7530        3.2179        .12943E-09   -.11897E-02
   2  norm          1.2289        .87744       -.32066E-07   -.38374E-03
   3  Prefactor     13.945        20.414       -.12442E-05   -.23168E-01
   4  Prefactor     49.013        18.724       -.46513E-06    .17585    
   5  Prefactor     6.5223        8.7258        .12325E-06    .75000E-02
   6  Prefactor     .13579E-05    12.494        .15676E-05** at limit **
   7  Prefactor     .15485E-05    12.851       -.66573E-06** at limit **
   8  norm          1.3811        .75181       -.21504E-07   -.17684E-02
   9  Prefactor     .82157E-08    35.818        .17935E-05** at limit **
  10  Prefactor     8.9866        13.990       -.55809E-07   -.44517E-01
  11  norm          8.0941        4.1827        .26118E-06   -.25043E-01
  12  Prefactor     155.09        21.285       -.24564E-06    .14203    
  13  Prefactor     34.372        51.479        .51827E-06    .51816E-02
  14  Prefactor     28.796        3.5885        .81898E-07    .24068E-01
  15  Prefactor      .0000        1.8392        .97441E-07** at limit **
  16  norm          .39290        39.927       -.24698E-05    .13699E-01
  17  norm          3.9237        4.1039       -.22350E-06   -.15930E-02
  18  Prefactor     3.8534        3.7736       -.23921E-07   -.75159E-03
  19  norm          .55511E-10    4.6822       -.10475E-06** at limit **
  20  Prefactor     58.911        8.1886        .15121E-06    .91394E-01
  21  Prefactor     3.3886        6.6388       -.50829E-06    .69336E-03
  22  Prefactor     1.5889        19.469        .20141E-05    .60632E-02
  23  Normalizat    .93993        .23188       -.51576E-05    .13495E-04
  24  Prefactor     .93959        .97443E-01    .41022E-05    .10099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75296
  norm       = 1.22892
  Prefactor  = 13.9447
  Prefactor  = 49.0128
  Prefactor  = 6.52234
  Prefactor  = 1.35786e-06
  Prefactor  = 1.54848e-06
  norm       = 1.38112
  Prefactor  = 8.21565e-09
  Prefactor  = 8.98664
  norm       = 8.09408
  Prefactor  = 155.093
  Prefactor  = 34.3717
  Prefactor  = 28.7963
  Prefactor  = 0
  norm       = 0.392905
  norm       = 3.92365
  Prefactor  = 3.85338
  norm       = 5.55112e-11
  Prefactor  = 58.9115
  Prefactor  = 3.38864
  Prefactor  = 1.58895
  Normalizat = 0.939929
  Prefactor  = 0.939591  **********
 **   18 **HESSE 
 **********

 FCN=   8211.669     FROM HESSE     STATUS=OK           453 CALLS     3151 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7530        3.3180        .52095E-03   -1.5669    
   2  norm          1.2289        .88234        .10138E-02   -1.5686    
   3  Prefactor     13.945        29.266        .26819E-03   -1.5633    
   4  Prefactor     49.013        91.266        .14253E-03   -1.5568    
   5  Prefactor     6.5223        9.6143        .39115E-03   -1.5657    
   6  Prefactor     .13579E-05    14.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15485E-05    14.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3811        .76253        .92535E-03   -1.5684    
   9  Prefactor     .82157E-08    35.711        .12183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.9866        20.414        .33364E-03   -1.5648    
  11  norm          8.0941        10.650        .35140E-03   -1.5651    
  12  Prefactor     155.09        55.595        .80446E-04   -1.5459    
  13  Prefactor     34.372        55.988        .16699E-03   -1.5591    
  14  Prefactor     28.796        21.057        .18617E-03   -1.5601    
  15  Prefactor      .0000        1.8383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .39290        6.2405        .92289E-02   -1.5695    
  17  norm          3.9237        4.1160        .50804E-03   -1.5668    
  18  Prefactor     3.8534        3.7788        .51523E-03   -1.5669    
  19  norm          .55511E-10    4.6683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     58.911        22.865        .13024E-03   -1.5554    
  21  Prefactor     3.3886        6.6204        .55673E-03   -1.5671    
  22  Prefactor     1.5889        20.113        .84799E-03   -1.5683    
  23  Normalizat    .93993        .22283        .89551E-01   -.95071    
  24  Prefactor     .93959        .87856E-01    .45514E-01   -.94771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34125e-06
Minuit parameter uncertainties:
  1  3.31798
  2  0.882339
  3  29.2662
  4  91.2689
  5  9.61436
  6  0.00881753
  7  0.00960893
  8  0.762534
  9  0.00108448
  10  20.414
  11  10.65
  12  55.5952
  13  55.9892
  14  21.0572
  15  8.73956e-08
  16  3.13173
  17  4.11604
  18  3.77885
  19  2.90761e-05
  20  22.8655
  21  6.62037
  22  11.3065
  23  0.223047
  24  0.0878688DDone.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  3.929e-01  3.132e+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

GAL_V02
   Spectrum: PowerLaw
494    Prefactor:  9.396e-01  8.787e-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:  9.399e-01  2.230e-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: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229382/likelihoodResults_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8211.66750558
delta logL = 0.00168323881007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8211.66724807
delta logL = 0.00194075241598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51285       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0785       1.0000          .0000       5.0000    
     3 'Normalizat'    .94000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93935       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8211.667     FROM MIGRAD    STATUS=FAILED        91 CALLS      386 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51285        121.56        .15485E-03   -.65947E-02
   2  alpha         2.0785        2.5741        .75314E-01    .17520E-03
   3  Normalizat    .94004        .21552        .39656E-03    .11467E-06
   4  Prefactor     .93934        .93619E-01    .16822E-03   -.13516E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8211.667     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      470 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51285        121.56        .44846E-04   -1.5694    
   2  alpha         2.0785        2.5741        .30573E-02   -.16941    
   3  Normalizat    .94004        .21552        .11393E-03   -.95067    
   4  Prefactor     .93934        .93619E-01    .31529E-04   -.94780    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8211.667     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      499 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51310        24.056        .61942E-05   -.34615E-02
   2  alpha         2.0784        3.5314        .15063E-01   -.30812E-04
   3  Normalizat    .94004        .21495        .15863E-04    .20068E-05
   4  Prefactor     .93934        .92327E-01    .67290E-05   -.13516E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.513104
  alpha      = 2.0784
  Normalizat = 0.940037
  Prefactor  = 0.939336
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.667     FROM HESSE     STATUS=OK            23 CALLS      522 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51310        22.590        .12388E-05   -1.5694    
   2  alpha         2.0784        3.5249        .60251E-03   -.16945    
   3  Normalizat    .94004        .21487        .31725E-05   -.95067    
   4  Prefactor     .93934        .92303E-01    .67290E-05   -.94780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93871e-09
Minuit parameter uncertainties:
  1  6.80919
  2  3.08065
  3  0.215067
  4  0.0923179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229382': 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) = 8211.66724805
delta logL = 0.0019407689615

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  5.131e-01  6.809e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        alpha:  2.078e+00  3.081e+00  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.393e-01  9.232e-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:  9.400e-01  2.151e-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/229382/cmap_HighResolution_685670401_685929601_4FGL_J0259.0+0552_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-05', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2022-09-27 00:20:31.425916', job_id='229382', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1664263231.43', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.94e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1722' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:20:31 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 229566: <4FGL_J0259.0+0552_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1722> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:21 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:06:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:06:01 2022
Terminated at Tue Sep 27 00:20:19 2022
Results reported at Tue Sep 27 00:20:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1722 44.7519 5.878 685670401 685929601 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 :                                   819.21 sec.
    Max Memory :                                 1142 MB
    Average Memory :                             314.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            898 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 229382: <4FGL_J0259.0+0552_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0259.0+0552_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:05:07 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:05:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:05:26 2022
Terminated at Tue Sep 27 00:20:32 2022
Results reported at Tue Sep 27 00:20:32 2022

Your job looked like:

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

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

