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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin875
RA = 157.077, Dec = 31.1389
tmin = 466128001, tmax = 466387201
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='901299', job_status='RUN', time_executed='2021-09-01 23:06:54.874129', time_epoch_executed='1630562814.87' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901299/ft1_4FGL_J1028.3+3108_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901299/ft2_4FGL_J1028.3+3108_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901299/ft1_4FGL_J1028.3+3108_daily_bin875.fits outfile=/scratch/kocevski/901299/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin875.fits ra=157.077 dec=31.1389 rad=12.0 tmin=466128001.0 tmax=466387201.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 6.11
user 3.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901299/ft1_filtered_4FGL_J1028.3+3108_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/901299/ft2_4FGL_J1028.3+3108_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/901299/ltcube_466128001_466387201_4FGL_J1028.3+3108_daily_bin875.fits outfile=/scratch/kocevski/901299/expmap_466128001_466387201_4FGL_J1028.3+3108_daily_bin875.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/901299/ltcube_466128001_466387201_4FGL_J1028.3+3108_daily_bin875.fits
.....................!
real 193.62
user 188.08
sys 4.21

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/901299/ft1_filtered_4FGL_J1028.3+3108_daily_bin875.fits scfile=/scratch/kocevski/901299/ft2_4FGL_J1028.3+3108_daily_bin875.fits outfile=/scratch/kocevski/901299/cmap_466128001_466387201_4FGL_J1028.3+3108_daily_bin875.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901299/ft1_filtered_4FGL_J1028.3+3108_daily_bin875.fits scfile=/scratch/kocevski/901299/ft2_4FGL_J1028.3+3108_daily_bin875.fits outfile=/scratch/kocevski/901299/cmap_HighResolution_466128001_466387201_4FGL_J1028.3+3108_daily_bin875.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/901299/ft1_filtered_4FGL_J1028.3+3108_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/901299/ft2_4FGL_J1028.3+3108_daily_bin875.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901299/Model_4FGL_J1028.3+3108_daily_bin875.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/901299/ft1_filtered_4FGL_J1028.3+3108_daily_bin875.fits.....................!
real 49.03
user 47.71
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1222       1.0000         .10000E-03   10000.    
     5 'norm      '    17.110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1774       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8569       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7977       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3317       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2864       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7761       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22215E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.528       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.131       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8330       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30159E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .98476       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0437       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74687       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=   5470.749     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     2871 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.599       -.15476E-04** at limit **
   2  Prefactor     1.1759        3.3011        .75744E-06   -.13530E-02
   3  Prefactor     .10000E-03    8.7998       -.73492E-07** at limit **
   4  Prefactor     4.1221        2.8242       -.19243E-06    .82792E-04
   5  norm          17.110        8.3922       -.14077E-05    .65236E-05
   6  Prefactor     2.1768        3.4175       -.21013E-07   -.15206E-04
   7  Prefactor     .10000E-03    7.0853        .91771E-07** at limit **
   8  Prefactor     .10000E-03    1.6426        .92097E-07** at limit **
   9  norm          .10000E-03    5.8183        .17512E-06** at limit **
  10  Prefactor     .10000E-03    30.086        .24576E-05** at limit **
  11  Prefactor     41.715        35.986       -.16663E-04    .27288E-04
  12  Prefactor     2.8581        4.4028       -.16211E-05   -.37684E-04
  13  Prefactor     2.8051        4.6242        .33443E-05   -.78618E-04
  14  Prefactor     1.3322        3.6650       -.62340E-06   -.13580E-02
  15  Prefactor     34.865        31.998        .41733E-05    .79703E-05
  16  Prefactor     2.2865        2.2085       -.61936E-08   -.16833E-04
  17  Prefactor     3.7758        10.767       -.83297E-06   -.14918E-04
  18  Prefactor     .10003E-03    18.026       -.11540E-05** at limit **
  19  Prefactor     13.528        11.296       -.24208E-06   -.16068E-05
  20  Prefactor     16.122        13.014        .82465E-06   -.22527E-03
  21  norm          1.8331        .39425        .62165E-08    .22621E-02
  22  Prefactor     .10423E-03    1.6066        .49799E-06** at limit **
  23  Prefactor     .10000E-03    3.8213        .75606E-07** at limit **
  24  Prefactor     .94924        14.947       -.19783E-05    .25069E-03
  25  norm          .10000E-03    4.3696       -.68391E-07** at limit **
  26  Normalizat    1.0441        .16855        .16596E-05   -.16199E-04
  27  Prefactor     .74637        .18426       -.23465E-06    .10746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.17589
  Prefactor  = 0.0001
  Prefactor  = 4.1221
  norm       = 17.1101
  Prefactor  = 2.17677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7152
  Prefactor  = 2.85809
  Prefactor  = 2.80508
  Prefactor  = 1.3322
  Prefactor  = 34.8649
  Prefactor  = 2.28646
  Prefactor  = 3.77579
  Prefactor  = 0.000100029
  Prefactor  = 13.5283
  Prefactor  = 16.1224
  norm       = 1.83305
  Prefactor  = 0.000104233
  Prefactor  = 0.0001
  Prefactor  = 0.949236
  norm       = 0.0001
  Normalizat = 1.04407
  Prefactor  = 0.746373
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.749     FROM HESSE     STATUS=OK           500 CALLS     3371 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1759        4.5589        .14892E-02   -1.5491    
   3  Prefactor     .10000E-03    8.9047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1221        2.8197        .96734E-04   -1.5302    
   5  norm          17.110        8.3952        .96827E-04   -1.4880    
   6  Prefactor     2.1768        3.4057        .16126E-03   -1.5413    
   7  Prefactor     .10000E-03    7.0880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6492        .92439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8635        .17416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.715        35.968        .62041E-04   -1.4415    
  12  Prefactor     2.8581        4.3960        .18080E-03   -1.5370    
  13  Prefactor     2.8051        4.6088        .17794E-03   -1.5373    
  14  Prefactor     1.3322        5.1867        .15678E-02   -1.5477    
  15  Prefactor     34.865        31.946        .67875E-04   -1.4526    
  16  Prefactor     2.2865        2.1931        .10158E-03   -1.5406    
  17  Prefactor     3.7758        10.660        .20775E-03   -1.5319    
  18  Prefactor     .10003E-03    127.59        .60364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.528        11.211        .10890E-03   -1.4972    
  20  Prefactor     16.122        12.361        .99721E-04   -1.4905    
  21  norm          1.8331        .39952        .19513E-04   -1.5437    
  22  Prefactor     .10423E-03    58.467        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.8237        .14118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .94924        72.537        .51484E-02   -1.5513    
  25  norm          .10000E-03    4.3770        .15099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0441        .19453        .21759E-03   -.91568    
  27  Prefactor     .74637        .21152        .29272E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63426e-08
Minuit parameter uncertainties:
  1  2.92014e-05
  2  4.56022
  3  1.60956e-05
  4  2.81983
  5  8.39582
  6  3.40597
  7  4.47651e-06
  8  5.5031e-06
  9  5.30608e-05
  10  1.40272e-05
  11  35.987
  12  4.39645
  13  4.60935
  14  5.18848
  15  31.9616
  16  2.19321
  17  10.6653
  18  0.00384225
  19  11.2125
  20  12.3627
  21  0.399517
  22  0.0314947
  23  1.35066e-06
  24  16.6158
  25  2.42044e-06
  26  0.194658
  27  0.211748
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.403e-05  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.464e-01  2.117e-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.044e+00  1.947e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901299/likelihoodResults_466128001_466387201_4FGL_J1028.3+3108_daily_bin875.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) = 5470.74881915
delta logL = -0.000158107390234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5470.74866125
delta logL = -2.03553099709e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3073       1.0000          .0000       10.000    
     3 'Normalizat'    1.0441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74637       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=   5470.749     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.927        .18142E-02** at limit **
   2  Index         2.2896        6.1441        .50000        .50515E-05
   3  Normalizat    1.0441        .18025        .21759E-03    .15520E-03
   4  Prefactor     .74637        .20896        .29272E-03    .30954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.28956
  Normalizat = 1.04408
  Prefactor  = 0.74637
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.749     FROM HESSE     STATUS=OK            29 CALLS      299 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2896        6.1448        .50000       -.57292    
   3  Normalizat    1.0441        .18039        .43518E-04   -.91568    
   4  Prefactor     .74637        .20912        .11709E-04   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05518e-10
Minuit parameter uncertainties:
  1  0.000294007
  2  4.20812
  3  0.180499
  4  0.209345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901299': 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) = 5470.7486611
delta logL = -6.13126758253e-08

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.940e-04  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.290e+00  4.208e+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:  7.464e-01  2.093e-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.044e+00  1.805e-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/901299/cmap_HighResolution_466128001_466387201_4FGL_J1028.3+3108_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-09-01 23:18:47.788851', job_id='901299', GAL2='0.75', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630563527.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-6.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='875' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:18:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 901299: <4FGL_J1028.3+3108_daily_bin875> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin875> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:05:34 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:06:38 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:06:38 2021
Terminated at Wed Sep  1 23:18:48 2021
Results reported at Wed Sep  1 23:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin875 157.077 31.1389 466128001 466387201 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 :                                   706.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            794 sec.

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

