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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1768
RA = 157.077, Dec = 31.1389
tmin = 697593601, tmax = 697852801
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='267844', job_status='RUN', time_executed='2023-02-12 00:45:51.887523', time_epoch_executed='1676191551.89' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267844

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267844/ft1_4FGL_J1028.3+3108_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267844/ft1_4FGL_J1028.3+3108_daily_bin1768.fits outfile=/scratch/kocevski/267844/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1768.fits ra=157.077 dec=31.1389 rad=12.0 tmin=697593601.0 tmax=697852801.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.66
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.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/267844/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/267844/ft1_filtered_4FGL_J1028.3+3108_daily_bin1768.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.54
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 525

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267844/ft1_filtered_4FGL_J1028.3+3108_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/267844/ltcube_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.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/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.fits
.....................!
real 14.59
user 14.14
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267844/ft1_filtered_4FGL_J1028.3+3108_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/267844/ltcube_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.fits outfile=/scratch/kocevski/267844/expmap_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.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/267844/ltcube_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.fits
.....................!
real 193.07
user 187.09
sys 5.49

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/267844/ft1_filtered_4FGL_J1028.3+3108_daily_bin1768.fits scfile=/scratch/kocevski/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.fits outfile=/scratch/kocevski/267844/cmap_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267844/ft1_filtered_4FGL_J1028.3+3108_daily_bin1768.fits scfile=/scratch/kocevski/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.fits outfile=/scratch/kocevski/267844/cmap_HighResolution_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.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/267844/ft1_filtered_4FGL_J1028.3+3108_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/267844/ft2_4FGL_J1028.3+3108_daily_bin1768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267844/Model_4FGL_J1028.3+3108_daily_bin1768.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/267844/ft1_filtered_4FGL_J1028.3+3108_daily_bin1768.fits.....................!
real 51.11
user 49.60
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20079E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    13.584       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.4894       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19884E-06   1.0000          .0000       .10000E+07
     5 'norm      '    44.942       1.0000          .0000       .10000E+07
     6 'Prefactor '    .64351       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11269E-06   1.0000          .0000       .10000E+07
     8 'norm      '    11.779       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40527E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    20.196       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18824E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.6472       1.0000          .0000       .10000E+07
    13 'Prefactor '    .30481       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.373       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.0570       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.1147       1.0000          .0000       .10000E+07
    17 'Prefactor '    .22428E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.4022       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.1813       1.0000          .0000       .10000E+07
    20 'Prefactor '    .35315E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20588E-03   1.0000          .0000       .10000E+07
    22 'norm      '    4.1455       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1356       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64809       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=   5748.253     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1960 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54179E-07    11.378        .15676E-06** at limit **
   2  Prefactor     13.623        7.5167        .18762E-06    .38950E-01
   3  Prefactor     5.5201        2.9863       -.70032E-07   -.53135E-01
   4  Prefactor      .0000        1.0374       -.18368E-06** at limit **
   5  norm          44.948        1.2522        .19031E-07    .36721E-01
   6  Prefactor     .64309        1.3340       -.27924E-06    .49100E-03
   7  Prefactor      .0000        1.1647       -.16705E-06** at limit **
   8  norm          11.809        3.3069       -.53299E-07   -.83530E-01
   9  Prefactor     .70038E-06    3.3404        .40310E-06** at limit **
  10  Prefactor     20.146        5.6285       -.18666E-06    .14519    
  11  Prefactor      .0000        1.4363        .13256E-06** at limit **
  12  Prefactor     4.6444        5.7311        .10779E-06    .53832E-03
  13  Prefactor     .30536        1.8338       -.28527E-06   -.47045E-03
  14  Prefactor     12.360        1.9978       -.32208E-07    .88757E-02
  15  Prefactor     7.0806        1.2065        .29857E-07   -.51358E-02
  16  Prefactor     9.1024        2.0719       -.77449E-07   -.79677E-02
  17  Prefactor     .35194E-07    10.229        .11659E-05** at limit **
  18  norm          1.4023        .32002       -.44906E-07   -.11330E-01
  19  Prefactor     3.1820        3.1080        .46143E-06    .12265E-03
  20  Prefactor     .11158E-07    5.2742       -.78564E-06** at limit **
  21  Prefactor     .13545E-07    4.8252       -.56538E-06** at limit **
  22  norm          4.1274        2.1442       -.92669E-07   -.72408E-02
  23  Normalizat    1.1354        .19672       -.56399E-06    .59909E-04
  24  Prefactor     .64817        .22190        .74301E-05    .50411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.41789e-08
  Prefactor  = 13.6229
  Prefactor  = 5.52009
  Prefactor  = 0
  norm       = 44.948
  Prefactor  = 0.643089
  Prefactor  = 0
  norm       = 11.8091
  Prefactor  = 7.00384e-07
  Prefactor  = 20.1458
  Prefactor  = 0
  Prefactor  = 4.6444
  Prefactor  = 0.30536
  Prefactor  = 12.36
  Prefactor  = 7.08065
  Prefactor  = 9.10239
  Prefactor  = 3.51941e-08
  norm       = 1.40229
  Prefactor  = 3.18198
  Prefactor  = 1.11577e-08
  Prefactor  = 1.35447e-08
  norm       = 4.12744
  Normalizat = 1.13542
  Prefactor  = 0.648167
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.253     FROM HESSE     STATUS=OK           453 CALLS     2413 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54179E-07    11.899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.623        8.1241        .27150E-03   -1.5634    
   3  Prefactor     5.5201        9.4552        .42861E-03   -1.5661    
   4  Prefactor      .0000        1.0390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          44.948        13.092        .14918E-03   -1.5574    
   6  Prefactor     .64309        1.3617        .65418E-03   -1.5692    
   7  Prefactor      .0000        1.1712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.809        9.8451        .29164E-03   -1.5639    
   9  Prefactor     .70038E-06    125.12        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.146        32.188        .22259E-03   -1.5618    
  11  Prefactor      .0000        1.4329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6444        5.8460        .46662E-03   -1.5665    
  13  Prefactor     .30536        1.9087        .10147E-02   -1.5697    
  14  Prefactor     12.360        11.297        .28452E-03   -1.5638    
  15  Prefactor     7.0806        26.171        .37739E-03   -1.5655    
  16  Prefactor     9.1024        10.173        .33173E-03   -1.5648    
  17  Prefactor     .35194E-07    10.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4023        .31917        .44815E-03   -1.5684    
  19  Prefactor     3.1820        3.1315        .56791E-03   -1.5672    
  20  Prefactor     .11158E-07    5.6623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .13545E-07    5.1742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1274        12.446        .49481E-03   -1.5667    
  23  Normalizat    1.1354        .17737        .36705E-01   -.88622    
  24  Prefactor     .64817        .19417        .71888E-01   -1.0559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27287e-06
Minuit parameter uncertainties:
  1  0.00160554
  2  8.12407
  3  9.45527
  4  4.96913e-06
  5  13.0924
  6  1.3617
  7  3.56247e-06
  8  9.84507
  9  0.0187225
  10  32.1882
  11  2.84554e-07
  12  5.84596
  13  1.52689
  14  11.297
  15  26.1713
  16  10.1731
  17  0.00124061
  18  0.319169
  19  3.13151
  20  0.000502159
  21  0.000529582
  22  12.4456
  23  0.177466
  24  0.194367
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  7.004e-07  1.872e-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:  6.482e-01  1.944e-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.135e+00  1.775e-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: 6.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267844/likelihoodResults_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.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) = 5748.25682111
delta logL = -0.00385841363914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5747.99765292
delta logL = 0.255309775348

Fit tolerance = 1e-08

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

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

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

 FCN=   5747.998     FROM MIGRAD    STATUS=FAILED        88 CALLS      274 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4173        160.96        .13124E-04    .19618E-01
   2  Index         3.7548        6.7161        .62443E-02    .44665E-03
   3  Normalizat    1.0998        .16306        .21925E-03    .64231E-03
   4  Prefactor     .66993        .18496        .31340E-03    .32061E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5747.998     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      367 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4173        160.96        .19305E-04    .19618E-01
   2  Index         3.7548        6.7161        .11808E-02    .44665E-03
   3  Normalizat    1.0998        .16306        .11273E-03    .64231E-03
   4  Prefactor     .66993        .18496        .71079E-04    .32061E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5747.998     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      396 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4176        8.8974        .52497E-06    .22973E-01
   2  Index         3.7547        1.8619        .24977E-03    .34114E-03
   3  Normalizat    1.0998        .19853        .43851E-04    .64779E-03
   4  Prefactor     .66993        .22242        .12536E-04    .32503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41763
  Index      = 3.75472
  Normalizat = 1.0998
  Prefactor  = 0.669932
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.998     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4176        8.2189        .37394E-06   -1.5684    
   2  Index         3.7547        1.7927        .99909E-05   -.25171    
   3  Normalizat    1.0998        .19848        .87701E-05   -.89758    
   4  Prefactor     .66993        .22232        .25072E-05   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73395e-09
Minuit parameter uncertainties:
  1  6.82684
  2  1.83644
  3  0.198619
  4  0.222617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267844': 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) = 5747.99765286
delta logL = 0.255309832412

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.418e+00  6.827e+00  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  3.755e+00  1.836e+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:  6.699e-01  2.226e-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.100e+00  1.986e-01  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/267844/cmap_HighResolution_697593601_697852801_4FGL_J1028.3+3108_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2023-02-12 00:55:57.663456', job_id='267844', GAL2='0.67', fit_tolerance='1e-08', EG2='1.10', EG='1.14', time_epoch_completed='1676192157.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.55e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1768' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 00:55:57 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 267844: <4FGL_J1028.3+3108_daily_bin1768> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1768> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Feb 12 00:40:17 2023
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 00:42:38 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 00:42:38 2023
Terminated at Sun Feb 12 00:55:58 2023
Results reported at Sun Feb 12 00:55:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1768 157.077 31.1389 697593601 697852801 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 :                                   608.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            941 sec.

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

