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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1777
RA = 157.077, Dec = 31.1389
tmin = 699926401, tmax = 700185601
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='912123', job_status='RUN', time_executed='2023-03-11 00:31:29.614782', time_epoch_executed='1678523489.61' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912123/ft1_4FGL_J1028.3+3108_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912123/ft2_4FGL_J1028.3+3108_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912123/ft1_4FGL_J1028.3+3108_daily_bin1777.fits outfile=/scratch/kocevski/912123/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1777.fits ra=157.077 dec=31.1389 rad=12.0 tmin=699926401.0 tmax=700185601.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.63
user 3.45
sys 0.16

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

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

Number of photons that the gtmktime cut: 562

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/912123/ft2_4FGL_J1028.3+3108_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/912123/ltcube_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.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/912123/ft2_4FGL_J1028.3+3108_daily_bin1777.fits
.....................!
real 12.77
user 12.38
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/912123/ft2_4FGL_J1028.3+3108_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/912123/ltcube_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.fits outfile=/scratch/kocevski/912123/expmap_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.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/912123/ltcube_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.fits
.....................!
real 190.50
user 185.34
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/912123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1777.fits scfile=/scratch/kocevski/912123/ft2_4FGL_J1028.3+3108_daily_bin1777.fits outfile=/scratch/kocevski/912123/cmap_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912123/ft1_filtered_4FGL_J1028.3+3108_daily_bin1777.fits scfile=/scratch/kocevski/912123/ft2_4FGL_J1028.3+3108_daily_bin1777.fits outfile=/scratch/kocevski/912123/cmap_HighResolution_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20997E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15366E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.0458       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.1966       1.0000          .0000       .10000E+07
     5 'norm      '    12.768       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31555E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.7369       1.0000          .0000       .10000E+07
     8 'norm      '    8.6347       1.0000          .0000       .10000E+07
     9 'Prefactor '    .82910E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .78659E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .50943E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.0295       1.0000          .0000       .10000E+07
    13 'Prefactor '    .83267E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    .18713E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .15594E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.9353       1.0000          .0000       .10000E+07
    17 'Prefactor '    .38387E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .50541       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.4102       1.0000          .0000       .10000E+07
    20 'Prefactor '    10.256       1.0000          .0000       .10000E+07
    21 'Prefactor '    .32396E-02   1.0000          .0000       .10000E+07
    22 'norm      '    21.575       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2660       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86811       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=   6119.719     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1960 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48295E-08    12.626       -.15755E-06** at limit **
   2  Prefactor     .72164E-09    9.2294       -.18483E-06** at limit **
   3  Prefactor     6.0482        3.4924        .29935E-08    .46999E-01
   4  Prefactor     1.1957        1.5967       -.15065E-07   -.41097E-03
   5  norm          12.765        1.1294        .73707E-09   -.38023E-02
   6  Prefactor      .0000        1.4217        .30773E-07** at limit **
   7  Prefactor     5.7415        3.6509        .42461E-07    .81266E-03
   8  norm          8.6398        4.1425        .93494E-08   -.13188E-01
   9  Prefactor     .14166E-06    6.4474       -.10749E-06** at limit **
  10  Prefactor     .90705E-07    11.952       -.10965E-06** at limit **
  11  Prefactor      .0000        1.1912       -.49073E-07** at limit **
  12  Prefactor     4.0385        5.8278       -.34960E-07    .13818E-01
  13  Prefactor      .0000        .91228       -.14735E-07** at limit **
  14  Prefactor      .0000        4.2998       -.47861E-08** at limit **
  15  Prefactor      .0000        22.737        .13483E-07** at limit **
  16  Prefactor     5.9110        6.9820       -.51734E-08    .48488E-03
  17  Prefactor     .55511E-10    3.2979        .14487E-06** at limit **
  18  norm          .50533        .23486        .12450E-07    .72098E-02
  19  Prefactor     3.4141        2.7659       -.30489E-08    .50069E-03
  20  Prefactor     10.275        1.0728       -.26357E-09   -.19058E-02
  21  Prefactor     .94369E-09    7.5410       -.21958E-06** at limit **
  22  norm          21.571        1.1421       -.84746E-09   -.68411E-03
  23  Normalizat    1.2661        .19575       -.18319E-05    .21744E-04
  24  Prefactor     .86812        .22330        .30084E-05    .43195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.82947e-09
  Prefactor  = 7.21645e-10
  Prefactor  = 6.04824
  Prefactor  = 1.19566
  norm       = 12.7651
  Prefactor  = 0
  Prefactor  = 5.74145
  norm       = 8.63983
  Prefactor  = 1.41664e-07
  Prefactor  = 9.07052e-08
  Prefactor  = 0
  Prefactor  = 4.03853
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.91101
  Prefactor  = 5.55112e-11
  norm       = 0.505328
  Prefactor  = 3.41407
  Prefactor  = 10.2747
  Prefactor  = 9.4369e-10
  norm       = 21.5708
  Normalizat = 1.26607
  Prefactor  = 0.868119
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.719     FROM HESSE     STATUS=OK           451 CALLS     2411 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48295E-08    13.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .72164E-09    9.4646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0482        6.7204        .40811E-03   -1.5659    
   4  Prefactor     1.1957        1.6316        .10387E-02   -1.5686    
   5  norm          12.765        9.3047        .28008E-03   -1.5637    
   6  Prefactor      .0000        1.4194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7415        3.6453        .41911E-03   -1.5660    
   8  norm          8.6398        8.0521        .34089E-03   -1.5649    
   9  Prefactor     .14166E-06    16.289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90705E-07    17.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.1929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0385        8.1514        .50211E-03   -1.5668    
  13  Prefactor      .0000        .91067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        4.3028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        21.821        .17346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9110        7.0010        .41194E-03   -1.5659    
  17  Prefactor     .55511E-10    3.3144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .50533        .23984        .56771E-03   -1.5694    
  19  Prefactor     3.4141        2.7718        .54757E-03   -1.5671    
  20  Prefactor     10.275        18.214        .31263E-03   -1.5644    
  21  Prefactor     .94369E-09    7.6772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          21.571        16.519        .21535E-03   -1.5615    
  23  Normalizat    1.2661        .17201        .50298E-01   -.84585    
  24  Prefactor     .86812        .19136        .68530E-01   -.97264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71475e-08
Minuit parameter uncertainties:
  1  0.000512324
  2  0.0001631
  3  6.72038
  4  1.63157
  5  9.30467
  6  1.63513e-06
  7  3.64526
  8  8.0521
  9  0.00303811
  10  0.00250058
  11  5.80699e-06
  12  8.1514
  13  2.11092e-06
  14  2.06245e-05
  15  2.98788e-05
  16  7.00097
  17  3.16539e-05
  18  0.239844
  19  2.77177
  20  18.2145
  21  0.0001715
  22  16.5189
  23  0.172086
  24  0.191509
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.417e-07  3.038e-03  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:  8.681e-01  1.915e-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.266e+00  1.721e-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: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912123/likelihoodResults_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.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) = 6119.74819404
delta logL = -0.0292978722428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6119.71889629
delta logL = -1.22324308904e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11673E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .71609       1.0000          .0000       10.000    
     3 'Normalizat'    1.2660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86813       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6119.719     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      209 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        18.949        .42118E-03** at limit **
   2  Index         2.0798        1.6777        .63229E-03     .0000    
   3  Normalizat    1.2661        1.0871        .84215E-05    .67242E-03
   4  Prefactor     .86811        1.2145       -.34761E-04    .13780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.07977
  Normalizat = 1.26608
  Prefactor  = 0.868114
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6119.719     FROM HESSE     STATUS=FAILED         9 CALLS      218 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        18.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47007        1.8709        .63229E-03   -.62370    
   3  Normalizat    1.2661        1.0871        .84215E-05   -.84585    
   4  Prefactor     .86811        1.2145       -.34761E-04   -.97264    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.28438e-10
Minuit parameter uncertainties:
  1  6.54321e-06
  2  1.72957
  3  1.10768
  4  1.25568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912123': 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): 101
logL (Free Index) = 6119.71889616
delta logL = 3.8962753024e-09

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  0.000e+00  6.543e-06  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  2.080e+00  1.730e+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:  8.681e-01  1.256e+00  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.266e+00  1.108e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 157.077 31.139

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/912123/cmap_HighResolution_699926401_700185601_4FGL_J1028.3+3108_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2023-03-11 00:41:25.486347', job_id='912123', GAL2='0.87', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1678524085.49', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.90e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1777' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:41:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 912123: <4FGL_J1028.3+3108_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1777> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Mar 11 00:30:19 2023
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:30:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:30:20 2023
Terminated at Sat Mar 11 00:41:26 2023
Results reported at Sat Mar 11 00:41:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1777 157.077 31.1389 699926401 700185601 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 :                                   598.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            667 sec.

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

