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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1765
RA = 157.077, Dec = 31.1389
tmin = 696816001, tmax = 697075201
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='631321', job_status='RUN', time_executed='2023-02-03 00:46:45.685357', time_epoch_executed='1675414005.69' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631321/ft1_4FGL_J1028.3+3108_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631321/ft2_4FGL_J1028.3+3108_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631321/ft1_4FGL_J1028.3+3108_daily_bin1765.fits outfile=/scratch/kocevski/631321/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1765.fits ra=157.077 dec=31.1389 rad=12.0 tmin=696816001.0 tmax=697075201.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.69
user 3.46
sys 0.22

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

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

Number of photons that the gtmktime cut: 543

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631321/ft1_filtered_4FGL_J1028.3+3108_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/631321/ft2_4FGL_J1028.3+3108_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/631321/ltcube_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.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/631321/ft2_4FGL_J1028.3+3108_daily_bin1765.fits
.....................!
real 16.24
user 15.73
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631321/ft1_filtered_4FGL_J1028.3+3108_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/631321/ft2_4FGL_J1028.3+3108_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/631321/ltcube_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.fits outfile=/scratch/kocevski/631321/expmap_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.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/631321/ltcube_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.fits
.....................!
real 193.92
user 187.70
sys 5.42

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/631321/ft1_filtered_4FGL_J1028.3+3108_daily_bin1765.fits scfile=/scratch/kocevski/631321/ft2_4FGL_J1028.3+3108_daily_bin1765.fits outfile=/scratch/kocevski/631321/cmap_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.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/631321/ft1_filtered_4FGL_J1028.3+3108_daily_bin1765.fits scfile=/scratch/kocevski/631321/ft2_4FGL_J1028.3+3108_daily_bin1765.fits outfile=/scratch/kocevski/631321/cmap_HighResolution_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.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.61
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82330E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.3486       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.688       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.1645       1.0000          .0000       .10000E+07
     5 'norm      '    43.258       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12095E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .48553E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .42998E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .78837E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18060E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0969       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.0511       1.0000          .0000       .10000E+07
    13 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.0254       1.0000          .0000       .10000E+07
    15 'Prefactor '    .23247E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .30193       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.491       1.0000          .0000       .10000E+07
    18 'norm      '    1.8509       1.0000          .0000       .10000E+07
    19 'Prefactor '    .81102E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    51.597       1.0000          .0000       .10000E+07
    21 'Prefactor '    .44346E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .78954       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1157       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84425       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=   6137.461     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2099 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38025E-07    12.063        .64758E-06** at limit **
   2  Prefactor     3.3902        7.4460        .99841E-08    .12129E-02
   3  Prefactor     22.690        1.4749        .82993E-08   -.99008E-02
   4  Prefactor     3.1632        2.1085       -.37824E-07   -.43048E-02
   5  norm          43.275        3.7468        .15954E-07   -.41590E-01
   6  Prefactor     .16653E-09    3.5185        .39883E-08** at limit **
   7  Prefactor     .19540E-07    7.2252        .94823E-07** at limit **
   8  norm          .11213E-07    6.5399       -.26469E-07** at limit **
   9  Prefactor     .33307E-09    20.608       -.57360E-06** at limit **
  10  Prefactor     .90650E-07    4.5466       -.70442E-07** at limit **
  11  Prefactor     1.0968        6.0497       -.86819E-07   -.20429E-03
  12  Prefactor     3.0425        5.8501        .16641E-06    .13927E-03
  13  Prefactor      .0000        .91690        .20734E-07** at limit **
  14  Prefactor     7.1578        9.9354       -.23239E-06    .13053E-02
  15  Prefactor     .21871E-07    9.4898       -.45464E-06** at limit **
  16  Prefactor     .71276E-07    386.52       -.98267E-05** at limit **
  17  Prefactor     19.478        4.9648       -.28301E-07    .30189E-01
  18  norm          1.8508        .41219        .11326E-07   -.38038E-02
  19  Prefactor      .0000        2.3059       -.16529E-07** at limit **
  20  Prefactor     51.673        1.2892       -.17675E-07   -.15126E-01
  21  Prefactor     .33862E-07    2.5208        .63925E-07** at limit **
  22  norm          .81691        .95752       -.24741E-06   -.42033E-02
  23  Normalizat    1.1155        .20861        .10912E-05    .64078E-04
  24  Prefactor     .84460        .22706       -.25768E-05    .46195E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80251e-08
  Prefactor  = 3.39015
  Prefactor  = 22.6897
  Prefactor  = 3.16323
  norm       = 43.2753
  Prefactor  = 1.66533e-10
  Prefactor  = 1.95399e-08
  norm       = 1.12133e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 9.06497e-08
  Prefactor  = 1.09681
  Prefactor  = 3.0425
  Prefactor  = 0
  Prefactor  = 7.1578
  Prefactor  = 2.18714e-08
  Prefactor  = 7.12763e-08
  Prefactor  = 19.4777
  norm       = 1.85077
  Prefactor  = 0
  Prefactor  = 51.673
  Prefactor  = 3.38618e-08
  norm       = 0.816911
  Normalizat = 1.11551
  Prefactor  = 0.844603
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.461     FROM HESSE     STATUS=OK           457 CALLS     2556 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38025E-07    14.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3902        7.6766        .55282E-03   -1.5671    
   3  Prefactor     22.690        12.586        .21000E-03   -1.5613    
   4  Prefactor     3.1632        2.1201        .56948E-03   -1.5672    
   5  norm          43.275        13.117        .15206E-03   -1.5576    
   6  Prefactor     .16653E-09    3.5111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19540E-07    8.3278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .11213E-07    7.0899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33307E-09    20.767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90650E-07    12.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0968        6.0947        .11368E-02   -1.5687    
  12  Prefactor     3.0425        5.8792        .58057E-03   -1.5673    
  13  Prefactor      .0000        .90426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1578        10.552        .37825E-03   -1.5654    
  15  Prefactor     .21871E-07    12.216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71276E-07    6.4501        .10186E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.478        13.021        .22658E-03   -1.5620    
  18  norm          1.8508        .44140        .52037E-03   -1.5681    
  19  Prefactor      .0000        2.2947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.673        28.346        .13923E-03   -1.5564    
  21  Prefactor     .33862E-07    20.705        .11466E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .81691        68.449        .53718E-03   -1.5690    
  23  Normalizat    1.1155        .18284        .55333E-01   -.89255    
  24  Prefactor     .84460        .19324        .69539E-01   -.98105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00754e-08
Minuit parameter uncertainties:
  1  0.00146525
  2  7.67663
  3  12.5863
  4  2.12014
  5  13.1173
  6  4.58635e-05
  7  0.000806686
  8  0.000564119
  9  0.000161053
  10  0.00216351
  11  5.17098
  12  5.87922
  13  2.22014e-06
  14  10.5521
  15  0.00103407
  16  0.00135602
  17  13.0215
  18  0.441401
  19  2.48131e-06
  20  28.3458
  21  0.00167458
  22  14.9557
  23  0.18294
  24  0.193393
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.331e-10  1.611e-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:  8.446e-01  1.934e-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.116e+00  1.829e-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: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631321/likelihoodResults_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6137.48392012
delta logL = -0.0230044365753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6137.46091578
delta logL = -9.19790181797e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99476E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1349       1.0000          .0000       10.000    
     3 'Normalizat'    1.1154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84465       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=   6137.461     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      239 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    18.494        .42118E-03** at limit **
   2  Index         2.4860        6.2429        .36390       -.12496E-10
   3  Normalizat    1.1155        .17087        .55333E-01    .14068E-03
   4  Prefactor     .84460        .19054        .69539E-01    .15029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.486
  Normalizat = 1.11551
  Prefactor  = 0.844603
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.461     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    17.381        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4860        6.2409        .36390       -.52683    
   3  Normalizat    1.1155        .20094        .24467E-03   -.89255    
   4  Prefactor     .84460        .22384        .30767E-03   -.98105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19506e-11
Minuit parameter uncertainties:
  1  5.7851e-05
  2  4.3341
  3  0.201073
  4  0.224078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631321': 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) = 6137.46091569
delta logL = -6.36646291241e-12

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  5.551e-11  5.785e-05  0.000e+00  1.000e+06 ( 1.000e-14)
266        Index:  2.486e+00  4.334e+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.446e-01  2.241e-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.116e+00  2.011e-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/631321/cmap_HighResolution_696816001_697075201_4FGL_J1028.3+3108_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2023-02-03 00:57:14.010290', job_id='631321', GAL2='0.84', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1675414634.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-6.37e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1765' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 00:57:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 631321: <4FGL_J1028.3+3108_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:45:19 2023
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:46:08 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:46:08 2023
Terminated at Fri Feb  3 00:57:14 2023
Results reported at Fri Feb  3 00:57:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1765 157.077 31.1389 696816001 697075201 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 :                                   629.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            715 sec.

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

