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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1755
RA = 157.077, Dec = 31.1389
tmin = 694224001, tmax = 694483201
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='820512', job_status='RUN', time_executed='2023-01-04 00:50:53.546789', time_epoch_executed='1672822253.55' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820512

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820512/ft1_4FGL_J1028.3+3108_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/820512/ft1_4FGL_J1028.3+3108_daily_bin1755.fits outfile=/scratch/kocevski/820512/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1755.fits ra=157.077 dec=31.1389 rad=12.0 tmin=694224001.0 tmax=694483201.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.02
user 2.78
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.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/820512/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.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.15

Number of photons that the gtmktime cut: 153

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/820512/ltcube_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.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/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits
.....................!
real 19.03
user 17.68
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/820512/ltcube_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.fits outfile=/scratch/kocevski/820512/expmap_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.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/820512/ltcube_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.fits
.....................!
real 194.20
user 188.67
sys 4.81

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

Setting source of interest to:
4FGL J1028.3+3108 @ 157.077 31.1389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits scfile=/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits outfile=/scratch/kocevski/820512/cmap_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.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=157.077 yref=31.1389 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits scfile=/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits outfile=/scratch/kocevski/820512/cmap_HighResolution_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.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=157.077 yref=31.1389 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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/820512/Model_4FGL_J1028.3+3108_daily_bin1755.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/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits......................!
real 26.05
user 24.59
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits', '/scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits', expMap='/scratch/kocevski/820512/expmap_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.fits', expCube='/scratch/kocevski/820512/ltcube_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/820512/Model_4FGL_J1028.3+3108_daily_bin1755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1028.3+3108'

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.572e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/820512/ft1_filtered_4FGL_J1028.3+3108_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/820512/ft2_4FGL_J1028.3+3108_daily_bin1755.fits
Exposure map: /scratch/kocevski/820512/expmap_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.fits
Exposure cube: /scratch/kocevski/820512/ltcube_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/820512/Model_4FGL_J1028.3+3108_daily_bin1755.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) = 1739.09040859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0516       1.0000          .0000       .10000E+07
     2 'Prefactor '    44.719       1.0000          .0000       .10000E+07
     3 'Prefactor '    .19018E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11329E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .53778E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11472E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12202E-01   1.0000          .0000       .10000E+07
     8 'norm      '    1.2648       1.0000          .0000       .10000E+07
     9 'Prefactor '    172.31       1.0000          .0000       .10000E+07
    10 'Prefactor '    147.36       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.2606       1.0000          .0000       .10000E+07
    12 'Prefactor '    12.022       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.1409       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17720E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    140.45       1.0000          .0000       .10000E+07
    16 'Prefactor '    38.951       1.0000          .0000       .10000E+07
    17 'Prefactor '    .60996E-06   1.0000          .0000       .10000E+07
    18 'norm      '    3.3014       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.6895       1.0000          .0000       .10000E+07
    20 'Prefactor '    18.847       1.0000          .0000       .10000E+07
    21 'Prefactor '    .37062E-04   1.0000          .0000       .10000E+07
    22 'norm      '    3.3001       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2607       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .22510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1738.442     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     2066 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24109E-02    13.503        .49584E-06** at limit **
   2  Prefactor     44.851        43.587       -.52070E-06   -.19023E-02
   3  Prefactor     .29976E-08    18.591        .72523E-06** at limit **
   4  Prefactor     .94369E-09    22.478       -.46350E-06** at limit **
   5  norm          .61062E-09    13.931        .49528E-07** at limit **
   6  Prefactor      .0000        5.5163        .16457E-06** at limit **
   7  Prefactor     .47740E-08    16.715        .10816E-05** at limit **
   8  norm          .24425E-08    74.005        .69531E-05** at limit **
   9  Prefactor     187.24        61.770       -.48053E-06    .38148E-01
  10  Prefactor     177.34        131.96       -.10269E-05   -.15265E-01
  11  Prefactor     7.6510        11.772       -.14651E-07    .88659E-02
  12  Prefactor     12.050        14.387       -.23032E-07    .66104E-02
  13  Prefactor     4.3308        6.5521        .18671E-06   -.42281E-03
  14  Prefactor      .0000        6.7902        .22695E-06** at limit **
  15  Prefactor     152.24        89.282        .68899E-08   -.20916E-02
  16  Prefactor     39.382        2.5883       -.56409E-07    .21729E-02
  17  Prefactor      .0000        8.2607       -.14773E-06** at limit **
  18  norm          3.3020        .73875       -.17929E-08   -.33557E-03
  19  Prefactor     2.7230        3.0701       -.66930E-07    .77513E-03
  20  Prefactor     18.694        5.8989        .17523E-06    .16156E-01
  21  Prefactor      .0000        27.498        .26568E-06** at limit **
  22  norm          3.3851        12.791        .76271E-06    .27578E-02
  23  Normalizat    1.2403        .43925        .43892E-05   -.12587E-04
  24  Prefactor     .21800        .42260       -.19031E-04   -.32146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00241086
  Prefactor  = 44.8508
  Prefactor  = 2.9976e-09
  Prefactor  = 9.4369e-10
  norm       = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 4.77396e-09
  norm       = 2.44249e-09
  Prefactor  = 187.243
  Prefactor  = 177.344
  Prefactor  = 7.65097
  Prefactor  = 12.0498
  Prefactor  = 4.33082
  Prefactor  = 0
  Prefactor  = 152.238
  Prefactor  = 39.3825
  Prefactor  = 0
  norm       = 3.30196
  Prefactor  = 2.72297
  Prefactor  = 18.6936
  Prefactor  = 0
  norm       = 3.38509
  Normalizat = 1.24033
  Prefactor  = 0.218003
 **********
 **   18 **HESSE 
 **********

 FCN=   1738.442     FROM HESSE     STATUS=OK           447 CALLS     2513 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24109E-02    10594.        .12052E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.851        43.752        .14955E-03   -1.5574    
   3  Prefactor     .29976E-08    19.028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94369E-09    22.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61062E-09    13.963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.4868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .47740E-08    17.365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .24425E-08    74.130        .99035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     187.24        141.39        .76188E-04   -1.5434    
  10  Prefactor     177.34        146.69        .82385E-04   -1.5442    
  11  Prefactor     7.6510        16.794        .34857E-03   -1.5653    
  12  Prefactor     12.050        15.936        .28866E-03   -1.5639    
  13  Prefactor     4.3308        6.7480        .49510E-03   -1.5666    
  14  Prefactor      .0000        6.7862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     152.24        90.051        .84386E-04   -1.5461    
  16  Prefactor     39.382        24.627        .16024E-03   -1.5582    
  17  Prefactor      .0000        8.3060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3020        .73854        .36749E-03   -1.5672    
  19  Prefactor     2.7230        3.0660        .62100E-03   -1.5675    
  20  Prefactor     18.694        18.038        .23043E-03   -1.5621    
  21  Prefactor      .0000        27.274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.3851        22.657        .55706E-03   -1.5671    
  23  Normalizat    1.2403        .46922        .56707E-01   -.85366    
  24  Prefactor     .21800        .50314        .13114       -1.2744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23555e-07
Minuit parameter uncertainties:
  1  10.1256
  2  43.7525
  3  0.000478089
  4  0.000288481
  5  0.000187859
  6  2.26266e-06
  7  0.000576783
  8  0.000846645
  9  141.395
  10  146.69
  11  16.7941
  12  15.9356
  13  6.74801
  14  2.3647e-05
  15  90.0521
  16  24.6273
  17  2.27802e-05
  18  0.738542
  19  3.06602
  20  18.0381
  21  2.05152e-05
  22  17.5151
  23  0.470832
  24  0.513663
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.872e+02  1.414e+02  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  2.180e-01  5.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.240e+00  4.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.84
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 7.56e-08
Energy Flux (Fixed Index): 4.23e-05 +/- 3.19e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1738.21606198
delta logL = 0.225607359079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1738.06847254
delta logL = 0.373196797472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    300.77       1.0000          .0000       .10000E+07
     2 'Index     '    1.7086       1.0000          .0000       10.000    
     3 'Normalizat'    1.2741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .19641       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1738.068     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      236 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     300.69        240.23       -.10412E-05    .84559E-03
   2  Index         1.7083        .55798       -.15610E-04    .10871E-03
   3  Normalizat    1.2739        .45844        .86895E-05    .39048E-03
   4  Prefactor     .19656        .47474       -.11430E-04    .71442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 300.689
  Index      = 1.70832
  Normalizat = 1.27387
  Prefactor  = 0.196559
 **********
 **   18 **HESSE 
 **********

 FCN=   1738.068     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     300.69        240.23        .11534E-04   -1.5361    
   2  Index         1.7083        .55943        .53126E-02   -.71861    
   3  Normalizat    1.2739        .40647        .24780E-03   -.84350    
   4  Prefactor     .19656        .41124        .60824E-03   -1.2895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15522e-09
Minuit parameter uncertainties:
  1  240.238
  2  0.561508
  3  0.407497
  4  0.417503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820512': 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) = 1738.06847216
delta logL = 0.373197182147

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.007e+02  2.402e+02  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  1.708e+00  5.615e-01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.966e-01  4.175e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.274e+00  4.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.55
Ra Dec: 157.077 31.139
Photon Index (Free Index): 1.71 +/- 0.56
Photon Flux (Free Index): 6.03e-08 +/- 5.91e-08
Energy Flux (Free Index): 9.59e-05 +/- 1.34e-04

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/820512/cmap_HighResolution_694224001_694483201_4FGL_J1028.3+3108_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='9.59e-05', photon_flux_error='7.56e-08', dlogl='3.73e-01', energy_flux='4.23e-05', photon_flux2='6.03e-08', job_status='DONE', time_completed='2023-01-04 00:57:35.056626', photon_index_error2='0.56', photon_index2='1.71', ts='5.84', fit_tolerance='1e-08', GAL='0.22', photon_index_error='0.00', energy_flux_error2='1.34e-04', EG='1.24', time_epoch_completed='1672822655.06', return_code='0', job_id='820512', GAL2='0.20', EG2='1.27', return_code2='0', energy_flux_error='3.19e-05', photon_flux_error2='5.91e-08', ts2='6.55', photon_index='2.23' WHERE bin_id='1755' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 00:57:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 820512: <4FGL_J1028.3+3108_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1755> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan  4 00:50:17 2023
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:50:40 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:50:40 2023
Terminated at Wed Jan  4 00:57:35 2023
Results reported at Wed Jan  4 00:57:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1755 157.077 31.1389 694224001 694483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1028.3+3108 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   402.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   416 sec.
    Turnaround time :                            438 sec.

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

