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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1744
RA = 157.077, Dec = 31.1389
tmin = 691372801, tmax = 691632001
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='573123', job_status='RUN', time_executed='2022-12-02 00:37:59.528794', time_epoch_executed='1669970279.53' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573123/ft1_4FGL_J1028.3+3108_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573123/ft1_4FGL_J1028.3+3108_daily_bin1744.fits outfile=/scratch/kocevski/573123/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1744.fits ra=157.077 dec=31.1389 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.56
user 2.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.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/573123/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/573123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1744.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 755

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/573123/ltcube_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.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/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits
.....................!
real 13.16
user 12.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/573123/ltcube_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.fits outfile=/scratch/kocevski/573123/expmap_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.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/573123/ltcube_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.fits
.....................!
real 190.65
user 184.65
sys 5.18

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/573123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1744.fits scfile=/scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits outfile=/scratch/kocevski/573123/cmap_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1744.fits scfile=/scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits outfile=/scratch/kocevski/573123/cmap_HighResolution_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1744.fits', '/scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits', expMap='/scratch/kocevski/573123/expmap_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.fits', expCube='/scratch/kocevski/573123/ltcube_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573123/Model_4FGL_J1028.3+3108_daily_bin1744.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/573123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/573123/ft2_4FGL_J1028.3+3108_daily_bin1744.fits
Exposure map: /scratch/kocevski/573123/expmap_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.fits
Exposure cube: /scratch/kocevski/573123/ltcube_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573123/Model_4FGL_J1028.3+3108_daily_bin1744.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) = 8236.79144163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9424       1.0000          .0000       .10000E+07
     2 'Prefactor '    .51690E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3197       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7257       1.0000          .0000       .10000E+07
     5 'norm      '    5.5372       1.0000          .0000       .10000E+07
     6 'Prefactor '    .20343E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.0259       1.0000          .0000       .10000E+07
     8 'norm      '    .95528E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .84357E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    20.296       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28311E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18233E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .52502E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.1179       1.0000          .0000       .10000E+07
    15 'Prefactor '    .26562E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .50293E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .29672E-03   1.0000          .0000       .10000E+07
    18 'norm      '    3.7303       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63978       1.0000          .0000       .10000E+07
    20 'Prefactor '    .54940E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .41664E-03   1.0000          .0000       .10000E+07
    22 'norm      '    14.474       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2652       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93873       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=   8236.615     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1621 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9113        3.3784        .48939E-06   -.16384E-01
   2  Prefactor      .0000        3.9689        .69447E-06** at limit **
   3  Prefactor     1.3213        7.6274        .73507E-06    .20799E-03
   4  Prefactor     1.7270        2.3337       -.12929E-07    .22416E-02
   5  norm          5.5018        6.9442       -.39088E-06   -.45697E-03
   6  Prefactor     .21094E-07    4.4272       -.53217E-06** at limit **
   7  Prefactor     2.0234        3.6902       -.48168E-06   -.27675E-03
   8  norm          .21649E-07    4.2689       -.23885E-06** at limit **
   9  Prefactor     .55511E-09    120.78       -.24826E-05** at limit **
  10  Prefactor     20.308        1.0080        .12437E-07   -.23440E-02
  11  Prefactor      .0000        1.3533       -.20434E-06** at limit **
  12  Prefactor     .22204E-09    6.1033       -.15150E-05** at limit **
  13  Prefactor      .0000        2.4054       -.54088E-06** at limit **
  14  Prefactor     6.2632        6.7413       -.18548E-06    .15569E-03
  15  Prefactor     .13878E-08    11.871       -.19897E-05** at limit **
  16  Prefactor     .55511E-10    4.4467       -.13522E-05** at limit **
  17  Prefactor      .0000        2.9928        .14545E-06** at limit **
  18  norm          3.7303        .43909        .60743E-07    .31406E-02
  19  Prefactor     .64108        1.5643        .38113E-08    .38818E-03
  20  Prefactor     .19984E-08    13.702        .25084E-06** at limit **
  21  Prefactor     .55511E-09    4.8614        .13311E-05** at limit **
  22  norm          14.516        1.8744        .29529E-07    .35157E-02
  23  Normalizat    1.2648        .18385        .16068E-05    .29541E-04
  24  Prefactor     .93889        .20672       -.65044E-06    .10245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.91133
  Prefactor  = 0
  Prefactor  = 1.32126
  Prefactor  = 1.72703
  norm       = 5.50178
  Prefactor  = 2.10942e-08
  Prefactor  = 2.02344
  norm       = 2.16493e-08
  Prefactor  = 5.55112e-10
  Prefactor  = 20.3084
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 6.26323
  Prefactor  = 1.38778e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 3.73029
  Prefactor  = 0.641079
  Prefactor  = 1.9984e-09
  Prefactor  = 5.55112e-10
  norm       = 14.5159
  Normalizat = 1.26484
  Prefactor  = 0.938889
 **********
 **   18 **HESSE 
 **********

 FCN=   8236.615     FROM HESSE     STATUS=OK           447 CALLS     2068 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9113        19.315        .41169E-03   -1.5659    
   2  Prefactor      .0000        3.9696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3213        7.6706        .95762E-03   -1.5685    
   4  Prefactor     1.7270        2.3599        .79908E-03   -1.5682    
   5  norm          5.5018        6.9593        .42673E-03   -1.5661    
   6  Prefactor     .21094E-07    8.3122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0234        3.7229        .72664E-03   -1.5680    
   8  norm          .21649E-07    8.5821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-09    120.88        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.308        18.999        .22204E-03   -1.5618    
  11  Prefactor      .0000        1.3479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    6.0914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.3499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2632        6.7658        .40566E-03   -1.5658    
  15  Prefactor     .13878E-08    12.092        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    4.4530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.9891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7303        .44030        .45273E-03   -1.5669    
  19  Prefactor     .64108        1.5808        .65737E-03   -1.5692    
  20  Prefactor     .19984E-08    13.878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-09    4.8903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.516        14.417        .26301E-03   -1.5632    
  23  Normalizat    1.2648        .15603        .53400E-01   -.84622    
  24  Prefactor     .93889        .17432        .69806E-01   -.94795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59951e-08
Minuit parameter uncertainties:
  1  19.3153
  2  1.28243e-05
  3  6.36708
  4  2.3599
  5  6.95932
  6  0.000836968
  7  3.72286
  8  0.000862615
  9  0.000529081
  10  18.9995
  11  3.55622e-06
  12  7.53648e-05
  13  9.88675e-06
  14  6.7658
  15  0.000256984
  16  3.81477e-05
  17  7.15898e-06
  18  0.440301
  19  1.58081
  20  0.000332187
  21  0.000105275
  22  14.4173
  23  0.156084
  24  0.174425
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  5.551e-10  5.291e-04  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:  9.389e-01  1.744e-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.265e+00  1.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573123/likelihoodResults_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.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) = 8236.61857735
delta logL = -0.00405215987485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8236.03585989
delta logL = 0.578665301751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3048       1.0000          .0000       .10000E+07
     2 'Index     '    4.0834       1.0000          .0000       10.000    
     3 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98496       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.

 FCN=   8236.036     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3109        22.542        .96607E-03    .89348E-02
   2  Index         4.0823        2.4616        .87694E-01    .23206E-03
   3  Normalizat    1.1922        .39488E-01    .54774E-01   -.33917E-04
   4  Prefactor     .98476        .44971E-01    .68354E-01    .38172E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31086
  Index      = 4.08229
  Normalizat = 1.1922
  Prefactor  = 0.98476
 **********
 **   18 **HESSE 
 **********

 FCN=   8236.036     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3109        54.944        .94698E-05   -1.5685    
   2  Index         4.0823        6.8873        .52282E-02   -.18459    
   3  Normalizat    1.1922        .15647        .24220E-03   -.86844    
   4  Prefactor     .98476        .17432        .30236E-03   -.93239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29446e-06
Minuit parameter uncertainties:
  1  16.9735
  2  5.08028
  3  0.156528
  4  0.174423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573123': 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) = 8236.03585677
delta logL = 0.578668422586

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.311e+00  1.697e+01  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  4.082e+00  5.080e+00  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:  9.848e-01  1.744e-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.192e+00  1.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 157.077 31.139
Photon Index (Free Index): 4.08 +/- 5.08
Photon Flux (Free Index): 6.05e-08 +/- 5.89e-08
Energy Flux (Free Index): 8.94e-06 +/- 1.00e-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/573123/cmap_HighResolution_691372801_691632001_4FGL_J1028.3+3108_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', comment='SUCCESS', energy_flux2='8.94e-06', dlogl='5.79e-01', photon_flux2='6.05e-08', job_status='DONE', time_completed='2022-12-02 00:49:05.132037', photon_index_error2='5.08', photon_index2='4.08', ts='-0.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='1.00e-05', EG='1.26', time_epoch_completed='1669970945.13', return_code='0', job_id='573123', GAL2='0.98', EG2='1.19', return_code2='102', photon_flux_error2='5.89e-08', ts2='1.26', photon_index='2.23' WHERE bin_id='1744' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:49:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 573123: <4FGL_J1028.3+3108_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1744> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec  2 00:35:15 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:35:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:35:17 2022
Terminated at Fri Dec  2 00:49:05 2022
Results reported at Fri Dec  2 00:49:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1744 157.077 31.1389 691372801 691632001 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 :                                   666.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

