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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1041
RA = 157.077, Dec = 31.1389
tmin = 509155201, tmax = 509414401
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='902596', job_status='RUN', time_executed='2021-09-01 23:13:43.052494', time_epoch_executed='1630563223.05' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902596/ft1_4FGL_J1028.3+3108_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902596/ft2_4FGL_J1028.3+3108_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902596/ft1_4FGL_J1028.3+3108_daily_bin1041.fits outfile=/scratch/kocevski/902596/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1041.fits ra=157.077 dec=31.1389 rad=12.0 tmin=509155201.0 tmax=509414401.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.93
user 2.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902596/ft2_4FGL_J1028.3+3108_daily_bin1041.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/902596/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1041.fits evtable="EVENTS" outfile="/scratch/kocevski/902596/ft1_filtered_4FGL_J1028.3+3108_daily_bin1041.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902596/ft1_filtered_4FGL_J1028.3+3108_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/902596/ft2_4FGL_J1028.3+3108_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/902596/ltcube_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.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/902596/ft2_4FGL_J1028.3+3108_daily_bin1041.fits
.....................!
real 13.88
user 13.55
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902596/ft1_filtered_4FGL_J1028.3+3108_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/902596/ft2_4FGL_J1028.3+3108_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/902596/ltcube_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.fits outfile=/scratch/kocevski/902596/expmap_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.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/902596/ltcube_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.fits
.....................!
real 153.36
user 149.35
sys 3.68

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/902596/ft1_filtered_4FGL_J1028.3+3108_daily_bin1041.fits scfile=/scratch/kocevski/902596/ft2_4FGL_J1028.3+3108_daily_bin1041.fits outfile=/scratch/kocevski/902596/cmap_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.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.48
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902596/ft1_filtered_4FGL_J1028.3+3108_daily_bin1041.fits scfile=/scratch/kocevski/902596/ft2_4FGL_J1028.3+3108_daily_bin1041.fits outfile=/scratch/kocevski/902596/cmap_HighResolution_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5180       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7148       1.0000         .10000E-03   10000.    
     9 'norm      '    .10651E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59309E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.558       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16941E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31642       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3505       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.6763       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79058       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.

 FCN=   6330.878     FROM MIGRAD    STATUS=CONVERGED   1170 CALLS     4329 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.551        37.352        .59413E-04   -.38270E-04
   2  Prefactor     8.6050        8.3308        .68330E-03   -.46320E-04
   3  Prefactor     1.5151        15.636        .17344E-02    .36881E-03
   4  Prefactor     .10000E-03    2.5830        .24392E-02** at limit **
   5  norm          11.037        11.527        .60291E-03   -.18460E-04
   6  Prefactor     .10000E-03    2.8543        .13000E-02** at limit **
   7  Prefactor     .10000E-03    22.083        .18142E-02** at limit **
   8  Prefactor     9.7101        6.2145        .12857E-03   -.71978E-04
   9  norm          .10000E-03    6.5085        .18142E-02** at limit **
  10  Prefactor     .10000E-03    162.23        .21070E-02** at limit **
  11  Prefactor     .10000E-03    25.244        .18142E-02** at limit **
  12  Prefactor     .10000E-03    3.7375        .14861E-02** at limit **
  13  Prefactor     .10000E-03    4.6708        .16617E-02** at limit **
  14  Prefactor     21.567        9.4901        .86266E-04   -.34396E-04
  15  Prefactor     .10000E-03    26.947        .18142E-02** at limit **
  16  Prefactor     .10000E-03    2.6077        .18209E-02** at limit **
  17  Prefactor     .10000E-03    10.765        .18142E-02** at limit **
  18  Prefactor     .10000E-03    26.783        .11051    ** at limit **
  19  Prefactor     .10000E-03    5.6917        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.1919        .15895E-02** at limit **
  21  norm          2.6618        .47684        .21665E-04   -.14231E-02
  22  Prefactor     .31535        1.9211        .21511E-03    .17811E-04
  23  Prefactor     9.3486        16.641        .13106E-03   -.75120E-04
  24  Prefactor     .10000E-03    24.247        .18142E-02** at limit **
  25  norm          3.6770        11.954        .10533E-02    .11481E-03
  26  Normalizat    1.3474        .23069        .23775E-03   -.16684E-03
  27  Prefactor     .79059        .24311        .33043E-03    .24084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.551
  Prefactor  = 8.60502
  Prefactor  = 1.5151
  Prefactor  = 0.0001
  norm       = 11.0367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.71011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66185
  Prefactor  = 0.315349
  Prefactor  = 9.34863
  Prefactor  = 0.0001
  norm       = 3.67698
  Normalizat = 1.34742
  Prefactor  = 0.790587
 **********
 **   18 **HESSE 
 **********

 FCN=   6330.878     FROM HESSE     STATUS=OK           478 CALLS     4807 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.551        37.347        .23765E-05   -1.4357    
   2  Prefactor     8.6050        8.3277        .27332E-04   -1.5121    
   3  Prefactor     1.5151        15.605        .34687E-03   -1.5462    
   4  Prefactor     .10000E-03    2.5916        .48784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.037        11.523        .24117E-04   -1.5043    
   6  Prefactor     .10000E-03    2.8549        .26001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7101        6.2138        .51427E-05   -1.5085    
   9  norm          .10000E-03    6.5102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    162.30        .42140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7395        .29722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6739        .33233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.567        9.4888        .34507E-05   -1.4779    
  15  Prefactor     .10000E-03    26.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6155        .36417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.472        .11448       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1921        .31790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6618        .47681        .86661E-06   -1.5382    
  22  Prefactor     .31535        1.9206        .86042E-05   -1.5596    
  23  Prefactor     9.3486        16.636        .52424E-05   -1.5096    
  24  Prefactor     .10000E-03    24.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.6770        11.948        .21065E-03   -1.5324    
  26  Normalizat    1.3474        .23081        .47551E-04   -.82162    
  27  Prefactor     .79059        .24332        .13217E-04   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97578e-10
Minuit parameter uncertainties:
  1  37.3657
  2  8.32884
  3  9.72774
  4  2.3406e-06
  5  11.5252
  6  3.26907e-06
  7  2.04522e-05
  8  6.21425
  9  2.09799e-06
  10  0.000519001
  11  2.31805e-05
  12  5.12617e-07
  13  8.00795e-07
  14  9.48945
  15  1.2945e-05
  16  7.5687e-06
  17  4.14697e-06
  18  0.000137903
  19  1.44548e-07
  20  1.84267e-07
  21  0.47681
  22  1.5563
  23  16.6439
  24  0.000146953
  25  11.956
  26  0.23099
  27  0.243648
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  5.190e-04  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:  7.906e-01  2.436e-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.347e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/902596/likelihoodResults_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.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) = 6330.87786998
delta logL = -2.92312088277e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6330.87786998
delta logL = -2.92301238005e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2344       1.0000          .0000       10.000    
     3 'Normalizat'    1.3474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79059       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=   6330.878     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      210 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.158        .90712E-02** at limit **
   2  Index         2.1813        5.7327        .50000        .21083E-05
   3  Normalizat    1.3474        .33897E-02    .53773E-01   -.60953E-04
   4  Prefactor     .79058        .37368E-02    .74657E-01   -.14015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.18128
  Normalizat = 1.34742
  Prefactor  = 0.790582
 **********
 **   18 **HESSE 
 **********

 FCN=   6330.878     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    649.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1813        5.0102        .50000       -.59891    
   3  Normalizat    1.3474        .89234E-02    .23775E-03   -.82162    
   4  Prefactor     .79058        .98219E-02    .33043E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.97433e-08
Minuit parameter uncertainties:
  1  0.00140266
  2  345.371
  3  0.00892339
  4  0.00982189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902596': 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) = 6330.87784072
delta logL = 3.09773895424e-08

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.403e-03  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.181e+00  3.454e+02  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:  7.906e-01  9.822e-03  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.347e+00  8.923e-03  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/902596/cmap_HighResolution_509155201_509414401_4FGL_J1028.3+3108_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-09-01 23:25:29.217555', job_id='902596', GAL2='0.79', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630563929.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1041' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 902596: <4FGL_J1028.3+3108_daily_bin1041> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1041> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 23:10:20 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:10:22 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:10:22 2021
Terminated at Wed Sep  1 23:25:29 2021
Results reported at Wed Sep  1 23:25:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1041 157.077 31.1389 509155201 509414401 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 :                                   700.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

