/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 104 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1514
RA = 157.077, Dec = 31.1389
tmin = 631756801, tmax = 632016001
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='904364', job_status='RUN', time_executed='2021-09-01 23:19:25.697463', time_epoch_executed='1630563565.7' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904364

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904364/ft1_4FGL_J1028.3+3108_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904364/ft1_4FGL_J1028.3+3108_daily_bin1514.fits outfile=/scratch/kocevski/904364/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1514.fits ra=157.077 dec=31.1389 rad=12.0 tmin=631756801.0 tmax=632016001.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.47
user 2.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.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/904364/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/904364/ft1_filtered_4FGL_J1028.3+3108_daily_bin1514.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904364/ft1_filtered_4FGL_J1028.3+3108_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/904364/ltcube_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.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/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits
.....................!
real 19.40
user 18.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904364/ft1_filtered_4FGL_J1028.3+3108_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/904364/ltcube_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.fits outfile=/scratch/kocevski/904364/expmap_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.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/904364/ltcube_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.fits
.....................!
real 193.75
user 188.83
sys 4.23

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/904364/ft1_filtered_4FGL_J1028.3+3108_daily_bin1514.fits scfile=/scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits outfile=/scratch/kocevski/904364/cmap_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904364/ft1_filtered_4FGL_J1028.3+3108_daily_bin1514.fits scfile=/scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits outfile=/scratch/kocevski/904364/cmap_HighResolution_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.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.58
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/904364/ft1_filtered_4FGL_J1028.3+3108_daily_bin1514.fits', '/scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits', expMap='/scratch/kocevski/904364/expmap_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.fits', expCube='/scratch/kocevski/904364/ltcube_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/904364/Model_4FGL_J1028.3+3108_daily_bin1514.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  1.000e-04  1.000e+04 ( 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/904364/ft1_filtered_4FGL_J1028.3+3108_daily_bin1514.fits
Spacecraft file(s): /scratch/kocevski/904364/ft2_4FGL_J1028.3+3108_daily_bin1514.fits
Exposure map: /scratch/kocevski/904364/expmap_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.fits
Exposure cube: /scratch/kocevski/904364/ltcube_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/904364/Model_4FGL_J1028.3+3108_daily_bin1514.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) = 3434.96452964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12522E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.063       1.0000         .10000E-03   10000.    
     9 'norm      '    21.358       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.006       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10539E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .97812       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.875       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10852E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92456       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3434.961     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3230 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.477        82.573       -.37403E-06    .38579E-04
   2  Prefactor     .10000E-03    23.052       -.11055E-04** at limit **
   3  Prefactor     .10000E-03    48.634       -.17375E-04** at limit **
   4  Prefactor     .10000E-03    4.5649        .55331E-07** at limit **
   5  norm          .10000E-03    3.9113        .20970E-08** at limit **
   6  Prefactor     .10000E-03    3.7100        .64308E-08** at limit **
   7  Prefactor     .10000E-03    166.98       -.91343E-04** at limit **
   8  Prefactor     10.062        9.1553        .23111E-06    .11811E-03
   9  norm          21.357        19.712        .32733E-06    .13308E-03
  10  Prefactor     .10000E-03    43.232       -.15118E-04** at limit **
  11  Prefactor     .10000E-03    45.792       -.18040E-04** at limit **
  12  Prefactor     .10000E-03    4.5413       -.41616E-07** at limit **
  13  Prefactor     11.136        11.921       -.90195E-07   -.17796E-03
  14  Prefactor     11.008        9.9908        .12945E-06   -.63427E-04
  15  Prefactor     .10000E-03    91.270        .81669E-04** at limit **
  16  Prefactor     .10000E-03    1.5344       -.48089E-08** at limit **
  17  Prefactor     15.374        13.559       -.41328E-08   -.68626E-04
  18  Prefactor     .10000E-03    16.249        .28931E-05** at limit **
  19  Prefactor     .10000E-03    11.138        .18939E-06** at limit **
  20  Prefactor     .10000E-03    33.350        .13500E-04** at limit **
  21  norm          .97816        .40719        .47310E-08   -.69491E-03
  22  Prefactor     .10000E-03    1.1267       -.14497E-07** at limit **
  23  Prefactor     60.865        26.282       -.34987E-06   -.30406E-03
  24  Prefactor     .10000E-03    13.081       -.10961E-05** at limit **
  25  norm          .10000E-03    31.595        .20009E-04** at limit **
  26  Normalizat    1.0153        .25350        .30993E-08   -.20836E-04
  27  Prefactor     .92479        .26122       -.15440E-06   -.43140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.0618
  norm       = 21.3572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1363
  Prefactor  = 11.0077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.978161
  Prefactor  = 0.0001
  Prefactor  = 60.8651
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.01532
  Prefactor  = 0.924788
 **********
 **   18 **HESSE 
 **********

 FCN=   3434.961     FROM HESSE     STATUS=OK           474 CALLS     3704 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.477        82.523        .76426E-04   -1.4659    
   2  Prefactor     .10000E-03    23.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    49.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7356        .24416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.9161        .11320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7189        .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    167.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.062        9.1707        .12632E-03   -1.5073    
   9  norm          21.357        19.699        .86668E-04   -1.4783    
  10  Prefactor     .10000E-03    43.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5794        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.136        11.937        .12004E-03   -1.5040    
  14  Prefactor     11.008        9.9798        .12076E-03   -1.5044    
  15  Prefactor     .10000E-03    91.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5555        .70765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.374        13.612        .10218E-03   -1.4924    
  18  Prefactor     .10000E-03    16.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .97816        .40799        .22776E-04   -1.5510    
  22  Prefactor     .10000E-03    1.1317        .60730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     60.865        26.342        .51426E-04   -1.4146    
  24  Prefactor     .10000E-03    13.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    32.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0153        .29515        .25363E-03   -.92519    
  27  Prefactor     .92479        .30264        .28529E-03   -.95280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84616e-10
Minuit parameter uncertainties:
  1  82.8687
  2  0.000131349
  3  0.000141731
  4  1.28944e-05
  5  2.05593e-06
  6  2.17656e-06
  7  0.000620519
  8  9.17201
  9  19.7046
  10  3.42518e-06
  11  2.17535e-05
  12  9.00337e-06
  13  11.9394
  14  9.98132
  15  0.000229405
  16  1.09135e-06
  17  13.6143
  18  4.56903e-06
  19  2.56683e-06
  20  0.000238932
  21  0.407993
  22  2.13659e-06
  23  26.3467
  24  3.76649e-07
  25  0.000186726
  26  0.29563
  27  0.303196
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.425e-06  1.000e-04  1.000e+04 ( 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.248e-01  3.032e-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.015e+00  2.956e-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: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904364/likelihoodResults_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.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) = 3434.96157281
delta logL = -0.000110019063413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3434.96146282
delta logL = -2.72461875284e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1720       1.0000          .0000       10.000    
     3 'Normalizat'    1.0153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92480       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=   3434.961     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1005.6        .90712E-02** at limit **
   2  Index         2.1785        8.0033        .50000       -.13978E-05
   3  Normalizat    1.0153        .30481E-01    .44149E-01    .10118E-04
   4  Prefactor     .92479        .33040E-01    .45320E-01    .46703E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17846
  Normalizat = 1.01532
  Prefactor  = 0.924789
 **********
 **   18 **HESSE 
 **********

 FCN=   3434.961     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6596.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1785        7.5305        .50000       -.59960    
   3  Normalizat    1.0153        .61685E-01    .25363E-03   -.92519    
   4  Prefactor     .92479        .66859E-01    .28529E-03   -.95280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.62907e-11
Minuit parameter uncertainties:
  1  0.000270105
  2  38.3457
  3  0.0616891
  4  0.0668648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904364': 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) = 3434.96146281
delta logL = -2.24290488404e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.248e-01  6.686e-02  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.015e+00  6.169e-02  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/904364/cmap_HighResolution_631756801_632016001_4FGL_J1028.3+3108_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.54e-08', time_completed='2021-09-01 23:30:47.271415', job_id='904364', GAL2='0.92', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630564247.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-2.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1514' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:30:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 904364: <4FGL_J1028.3+3108_daily_bin1514> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1514> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 23:15:45 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:17:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 23:17:32 2021
Terminated at Wed Sep  1 23:30:48 2021
Results reported at Wed Sep  1 23:30:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1514 157.077 31.1389 631756801 632016001 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 :                                   569.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            903 sec.

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

