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


Performing analysis on: 4FGL_J0259.0+0552_daily_bin1719
RA = 44.7519, Dec = 5.878
tmin = 684892801, tmax = 685152001
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='644282', job_status='RUN', time_executed='2022-09-18 00:08:40.191104', time_epoch_executed='1663484920.19' WHERE source_name='4FGL J0259.0+0552' and cadence='daily' and bin_id='1719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/644282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/644282/ft1_4FGL_J0259.0+0552_daily_bin1719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/644282/ft2_4FGL_J0259.0+0552_daily_bin1719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/644282/ft1_4FGL_J0259.0+0552_daily_bin1719.fits outfile=/scratch/kocevski/644282/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1719.fits ra=44.7519 dec=5.878 rad=12.0 tmin=684892801.0 tmax=685152001.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.11
user 2.91
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/644282/ft2_4FGL_J0259.0+0552_daily_bin1719.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/644282/ft1_filteredMKT_4FGL_J0259.0+0552_daily_bin1719.fits evtable="EVENTS" outfile="/scratch/kocevski/644282/ft1_filtered_4FGL_J0259.0+0552_daily_bin1719.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 722

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/644282/ft1_filtered_4FGL_J0259.0+0552_daily_bin1719.fits" evtable="EVENTS" scfile=/scratch/kocevski/644282/ft2_4FGL_J0259.0+0552_daily_bin1719.fits sctable="SC_DATA" outfile=/scratch/kocevski/644282/ltcube_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.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/644282/ft2_4FGL_J0259.0+0552_daily_bin1719.fits
.....................!
real 12.80
user 12.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/644282/ft1_filtered_4FGL_J0259.0+0552_daily_bin1719.fits evtable="EVENTS" scfile=/scratch/kocevski/644282/ft2_4FGL_J0259.0+0552_daily_bin1719.fits sctable="SC_DATA" expcube=/scratch/kocevski/644282/ltcube_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.fits outfile=/scratch/kocevski/644282/expmap_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.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/644282/ltcube_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.fits
.....................!
real 191.54
user 185.63
sys 5.52

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/644282/ft1_filtered_4FGL_J0259.0+0552_daily_bin1719.fits scfile=/scratch/kocevski/644282/ft2_4FGL_J0259.0+0552_daily_bin1719.fits outfile=/scratch/kocevski/644282/cmap_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/644282/ft1_filtered_4FGL_J0259.0+0552_daily_bin1719.fits scfile=/scratch/kocevski/644282/ft2_4FGL_J0259.0+0552_daily_bin1719.fits outfile=/scratch/kocevski/644282/cmap_HighResolution_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88000       1.0000          .0000       .10000E+07
     2 'norm      '    3.3539       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11338E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    33.556       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.1962       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.5225       1.0000          .0000       .10000E+07
     7 'Prefactor '    23.430       1.0000          .0000       .10000E+07
     8 'norm      '    1.3712       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.8128       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.613       1.0000          .0000       .10000E+07
    11 'norm      '    .94207E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .93738E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14582       1.0000          .0000       .10000E+07
    14 'Prefactor '    30.485       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.1396       1.0000          .0000       .10000E+07
    16 'norm      '    17.676       1.0000          .0000       .10000E+07
    17 'norm      '    3.0755       1.0000          .0000       .10000E+07
    18 'Prefactor '    .22133E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .64335       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.5005       1.0000          .0000       .10000E+07
    21 'Prefactor '    .24491E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .28460E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .86239       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95321       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=   8082.757     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1960 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87644        4.0993        .19080E-05    .15087E-02
   2  norm          3.3542        1.6717       -.43315E-07   -.33283E-02
   3  Prefactor     .19117E-05    10.570        .49914E-06** at limit **
   4  Prefactor     33.562        1.0956        .16351E-07   -.36854E-01
   5  Prefactor     6.1641        2.4955       -.84924E-07    .10515E-01
   6  Prefactor     5.5078        1.2336        .15248E-07    .10579E-02
   7  Prefactor     23.460        1.4201       -.51899E-07    .18674E-01
   8  norm          1.3717        .76463        .10679E-06    .86362E-03
   9  Prefactor     4.6400        2.7783        .30625E-07    .91722E-01
  10  Prefactor     12.608        1.1023        .31204E-07    .30912E-02
  11  norm          .35971E-07    7.9665       -.89347E-06** at limit **
  12  Prefactor     .10780E-06    23.085        .20040E-05** at limit **
  13  Prefactor     .68912E-06    38.082       -.11140E-05** at limit **
  14  Prefactor     30.488        1.0045       -.31328E-08    .51438E-03
  15  Prefactor     5.3122        6.9324        .81667E-06    .51189E-02
  16  norm          17.727        1.6722        .78499E-07   -.61762E-01
  17  norm          3.0676        3.4861       -.25105E-06    .18329E-02
  18  Prefactor     .30086E-05    10.370       -.50057E-06** at limit **
  19  norm          .65842        .84968        .38268E-07   -.17094E-01
  20  Prefactor     7.5092        3.1959       -.17503E-06   -.11232E-01
  21  Prefactor     .55511E-10    2.5963        .25262E-06** at limit **
  22  Prefactor      .0000        5.4177       -.44642E-06** at limit **
  23  Normalizat    .86211        .23413        .80976E-05   -.34237E-04
  24  Prefactor     .95317        .89677E-01   -.98877E-05   -.27043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.876438
  norm       = 3.35423
  Prefactor  = 1.91169e-06
  Prefactor  = 33.5624
  Prefactor  = 6.16408
  Prefactor  = 5.50777
  Prefactor  = 23.4599
  norm       = 1.37165
  Prefactor  = 4.64004
  Prefactor  = 12.6078
  norm       = 3.59712e-08
  Prefactor  = 1.07803e-07
  Prefactor  = 6.89115e-07
  Prefactor  = 30.4875
  Prefactor  = 5.31217
  norm       = 17.7274
  norm       = 3.06758
  Prefactor  = 3.00865e-06
  norm       = 0.658423
  Prefactor  = 7.50924
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Normalizat = 0.862108
  Prefactor  = 0.953167
 **********
 **   18 **HESSE 
 **********

 FCN=   8082.757     FROM HESSE     STATUS=OK           457 CALLS     2417 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87644        4.3877        .47153E-03   -1.5689    
   2  norm          3.3542        1.6742        .55236E-03   -1.5671    
   3  Prefactor     .19117E-05    18.768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.562        67.476        .17265E-03   -1.5592    
   5  Prefactor     6.1641        12.525        .40306E-03   -1.5658    
   6  Prefactor     5.5078        21.988        .42730E-03   -1.5661    
   7  Prefactor     23.460        17.940        .20664E-03   -1.5611    
   8  norm          1.3717        .87922        .93063E-03   -1.5685    
   9  Prefactor     4.6400        123.14        .45834E-03   -1.5665    
  10  Prefactor     12.608        21.714        .28179E-03   -1.5637    
  11  norm          .35971E-07    8.0425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10780E-06    24.977        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .68912E-06    44.501        .12833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.488        19.733        .18114E-03   -1.5598    
  15  Prefactor     5.3122        7.0912        .44322E-03   -1.5662    
  16  norm          17.727        13.928        .23795E-03   -1.5624    
  17  norm          3.0676        3.5473        .57812E-03   -1.5673    
  18  Prefactor     .30086E-05    19.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .65842        20.162        .65431E-03   -1.5692    
  20  Prefactor     7.5092        10.323        .36595E-03   -1.5653    
  21  Prefactor     .55511E-10    2.5837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        5.4374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86211        .22589        .94441E-01   -.97805    
  24  Prefactor     .95317        .83750E-01    .35006E-01   -.94307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56109e-06
Minuit parameter uncertainties:
  1  3.92204
  2  1.67416
  3  0.0119797
  4  67.4776
  5  12.525
  6  21.9882
  7  17.94
  8  0.87922
  9  47.8077
  10  21.714
  11  0.00107607
  12  0.0032821
  13  0.0110754
  14  19.7327
  15  7.09118
  16  13.928
  17  3.54734
  18  0.0153898
  19  7.28702
  20  10.3228
  21  1.74716e-05
  22  5.01244e-06
  23  0.226139
  24  0.0837612
Done.

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

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.773e+01  1.393e+01  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.532e-01  8.376e-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.621e-01  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 44.752 5.878
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 2.80e-05

TS (Fixed Index): 2.85
Ra Dec: 44.752 5.878
Photon Flux Upper Limit: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/644282/likelihoodResults_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.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) = 8082.31254841
delta logL = 0.44422933985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8082.29754776
delta logL = 0.459229983451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.259       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4007       1.0000          .0000       5.0000    
     3 'Normalizat'    .84652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95302       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8082.298     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      284 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.258        12.981        .11434E-04    .16078E-02
   2  alpha         2.4008        .59645        .99464E-02    .29288E-04
   3  Normalizat    .84648        .22893        .42158E-03   -.14023E-03
   4  Prefactor     .95303        .89184E-01    .15460E-03   -.49249E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.258
  alpha      = 2.40076
  Normalizat = 0.846484
  Prefactor  = 0.953027
 **********
 **   18 **HESSE 
 **********

 FCN=   8082.298     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.258        11.945        .45736E-06   -1.5638    
   2  alpha         2.4008        .54948        .39786E-03   -.39706E-01
   3  Normalizat    .84648        .22880        .16863E-04   -.98367    
   4  Prefactor     .95303        .89181E-01    .30920E-04   -.94312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00106e-10
Minuit parameter uncertainties:
  1  11.945
  2  0.554015
  3  0.229064
  4  0.0891948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/644282': 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) = 8082.29754773
delta logL = 0.459230012221

Extracting fit parameters...

4FGL J0259.0+0552
   Spectrum: LogParabola
285         norm:  1.226e+01  1.195e+01  0.000e+00  1.000e+06 ( 1.000e-13)
286        alpha:  2.401e+00  5.540e-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.530e-01  8.919e-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.465e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 44.752 5.878
Photon Index (Free Index): 2.40 +/- 0.55
Photon Flux (Free Index): 6.10e-08 +/- 4.69e-08
Energy Flux (Free Index): 2.73e-05 +/- 1.94e-05

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/644282/cmap_HighResolution_684892801_685152001_4FGL_J0259.0+0552_daily_bin1719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.78e-05', comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='2.73e-05', photon_flux_error='2.61e-08', dlogl='4.59e-01', energy_flux='3.56e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2022-09-18 00:20:04.935273', photon_index_error2='0.55', photon_index2='2.40', ts='2.85', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.12e-08', energy_flux_error2='1.94e-05', EG='0.86', time_epoch_completed='1663485604.94', return_code='0', job_id='644282', GAL2='0.95', EG2='0.85', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='4.69e-08', ts2='3.76', photon_index='1.87' WHERE bin_id='1719' AND source_name='4FGL J0259.0+0552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 18 00:20:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 644282: <4FGL_J0259.0+0552_daily_bin1719> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0259.0+0552_daily_bin1719 44.7519 5.878 684892801 685152001 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 :                                   686.08 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             333.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            901 sec.

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

