/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 92 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 = 7608
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1028.3+3108_daily_bin794
RA = 157.077, Dec = 31.1389
tmin = 445132801, tmax = 445392001
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='901175', job_status='RUN', time_executed='2021-09-01 23:07:31.339269', time_epoch_executed='1630562851.34' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='794'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901175

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901175/ft1_4FGL_J1028.3+3108_daily_bin794.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901175/ft2_4FGL_J1028.3+3108_daily_bin794.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901175/ft1_4FGL_J1028.3+3108_daily_bin794.fits outfile=/scratch/kocevski/901175/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin794.fits ra=157.077 dec=31.1389 rad=12.0 tmin=445132801.0 tmax=445392001.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.98
user 2.79
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901175/ft1_filtered_4FGL_J1028.3+3108_daily_bin794.fits" evtable="EVENTS" scfile=/scratch/kocevski/901175/ft2_4FGL_J1028.3+3108_daily_bin794.fits sctable="SC_DATA" outfile=/scratch/kocevski/901175/ltcube_445132801_445392001_4FGL_J1028.3+3108_daily_bin794.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/901175/ft2_4FGL_J1028.3+3108_daily_bin794.fits
.....................!
real 13.30
user 12.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901175/ft1_filtered_4FGL_J1028.3+3108_daily_bin794.fits evtable="EVENTS" scfile=/scratch/kocevski/901175/ft2_4FGL_J1028.3+3108_daily_bin794.fits sctable="SC_DATA" expcube=/scratch/kocevski/901175/ltcube_445132801_445392001_4FGL_J1028.3+3108_daily_bin794.fits outfile=/scratch/kocevski/901175/expmap_445132801_445392001_4FGL_J1028.3+3108_daily_bin794.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/901175/ltcube_445132801_445392001_4FGL_J1028.3+3108_daily_bin794.fits
.....................!
real 157.00
user 153.02
sys 3.65

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/901175/ft1_filtered_4FGL_J1028.3+3108_daily_bin794.fits scfile=/scratch/kocevski/901175/ft2_4FGL_J1028.3+3108_daily_bin794.fits outfile=/scratch/kocevski/901175/cmap_445132801_445392001_4FGL_J1028.3+3108_daily_bin794.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901175/ft1_filtered_4FGL_J1028.3+3108_daily_bin794.fits scfile=/scratch/kocevski/901175/ft2_4FGL_J1028.3+3108_daily_bin794.fits outfile=/scratch/kocevski/901175/cmap_HighResolution_445132801_445392001_4FGL_J1028.3+3108_daily_bin794.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.51
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4037       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1463       1.0000         .10000E-03   10000.    
     5 'norm      '    27.153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29392E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.053       1.0000         .10000E-03   10000.    
     9 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.137       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.258       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8553       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16444E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32269E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.662       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1081       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7106       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8960       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.532       1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0569       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62904       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=   5469.763     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2813 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3923        32.327        .30042E-06   -.30497E-04
   2  Prefactor     .10000E-03    4.0469       -.19197E-06** at limit **
   3  Prefactor     .10000E-03    5.0016       -.83894E-08** at limit **
   4  Prefactor     2.1469        2.5671        .16241E-06   -.33054E-04
   5  norm          27.154        11.473        .77001E-07    .29640E-04
   6  Prefactor     .10000E-03    3.2422        .52641E-06** at limit **
   7  Prefactor     .10000E-03    12.337        .13468E-09** at limit **
   8  Prefactor     12.052        6.9847       -.22300E-06   -.47832E-03
   9  norm          .10000E-03    5.2390       -.36939E-07** at limit **
  10  Prefactor     48.171        45.351        .39298E-06    .86948E-04
  11  Prefactor     51.254        30.789       -.10217E-06   -.48042E-04
  12  Prefactor     1.8746        2.8203        .21083E-06   -.15321E-04
  13  Prefactor     1.6988        2.9692        .20429E-06    .14073E-05
  14  Prefactor     5.8569        5.5917        .62503E-07    .22413E-03
  15  Prefactor     .10000E-03    12.663       -.25494E-07** at limit **
  16  Prefactor     .10002E-03    1.3036       -.47613E-06** at limit **
  17  Prefactor     .10001E-03    7.7923       -.18170E-05** at limit **
  18  Prefactor     57.667        35.026        .22608E-06    .23711E-04
  19  Prefactor     6.1077        8.4215        .23894E-05    .36418E-03
  20  Prefactor     .10000E-03    10.672        .12424E-06** at limit **
  21  norm          1.7108        .40872        .27274E-07   -.29443E-04
  22  Prefactor     2.8967        3.1776        .23042E-06    .13873E-03
  23  Prefactor     .10000E-03    6.2824       -.10749E-06** at limit **
  24  Prefactor     17.526        20.554       -.12520E-06   -.29038E-04
  25  norm          .10000E-03    4.8086       -.51071E-07** at limit **
  26  Normalizat    1.0567        .18495       -.12832E-05    .15298E-03
  27  Prefactor     .62926        .18975        .56397E-06    .47950E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.39232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14693
  norm       = 27.154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0523
  norm       = 0.0001
  Prefactor  = 48.1707
  Prefactor  = 51.2536
  Prefactor  = 1.87461
  Prefactor  = 1.69882
  Prefactor  = 5.85689
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.000100014
  Prefactor  = 57.6673
  Prefactor  = 6.10774
  Prefactor  = 0.0001
  norm       = 1.71077
  Prefactor  = 2.89668
  Prefactor  = 0.0001
  Prefactor  = 17.5257
  norm       = 0.0001
  Normalizat = 1.05668
  Prefactor  = 0.62926
 **********
 **   18 **HESSE 
 **********

 FCN=   5469.763     FROM HESSE     STATUS=OK           494 CALLS     3307 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3923        32.385        .17287E-03   -1.5243    
   2  Prefactor     .10000E-03    4.0906        .14515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0132        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1469        2.5426        .12226E-03   -1.5415    
   5  norm          27.154        11.469        .76880E-04   -1.4665    
   6  Prefactor     .10000E-03    10.173        .22874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.052        6.5468        .11538E-03   -1.5013    
   9  norm          .10000E-03    5.2705        .16528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.171        45.430        .28898E-03   -1.4319    
  11  Prefactor     51.254        30.891        .56016E-04   -1.4275    
  12  Prefactor     1.8746        2.7960        .14743E-03   -1.5434    
  13  Prefactor     1.6988        2.9431        .15805E-03   -1.5447    
  14  Prefactor     5.8569        5.5611        .16380E-03   -1.5224    
  15  Prefactor     .10000E-03    12.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    7.5280        .15466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    22.563        .36857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     57.667        34.998        .52831E-04   -1.4188    
  19  Prefactor     6.1077        8.5494        .81223E-03   -1.5214    
  20  Prefactor     .10000E-03    10.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7108        .41361        .20985E-04   -1.5446    
  22  Prefactor     2.8967        3.1638        .13028E-03   -1.5368    
  23  Prefactor     .10000E-03    6.2952        .18099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.526        20.784        .95655E-04   -1.4870    
  25  norm          .10000E-03    4.8211        .15838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0567        .20748        .22555E-03   -.91155    
  27  Prefactor     .62926        .21592        .31200E-03   -1.0637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15244e-09
Minuit parameter uncertainties:
  1  26.4509
  2  3.43609e-06
  3  2.91068e-06
  4  2.54275
  5  11.4703
  6  1.26315e-05
  7  9.07407e-06
  8  6.54714
  9  8.22243e-06
  10  45.4622
  11  30.9007
  12  2.79616
  13  2.94332
  14  5.5616
  15  4.2437e-06
  16  0.000723529
  17  0.00110885
  18  35.0108
  19  8.55109
  20  4.04226e-07
  21  0.41361
  22  3.16398
  23  6.22001e-06
  24  20.793
  25  3.71877e-06
  26  0.207637
  27  0.216208
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.817e+01  4.546e+01  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:  6.293e-01  2.162e-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.057e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.17
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.58e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.03e-05

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) = 5468.30335137
delta logL = 1.45992234975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5468.24269655
delta logL = 1.5205771716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.146       1.0000         .10000E-03   10000.    
     2 'Index     '    .95644       1.0000          .0000       10.000    
     3 'Normalizat'    1.0755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62373       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=   5468.243     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.146        31.426        .18243E-02   -.11789E-02
   2  Index         .95642        .46472        .25357       -.38808E-04
   3  Normalizat    1.0755        .17020        .39096E-01    .48734E-05
   4  Prefactor     .62373        .18676        .70774E-01    .22895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1457
  Index      = 0.956418
  Normalizat = 1.07553
  Prefactor  = 0.623732
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.243     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.146        44.564        .72973E-04   -1.4609    
   2  Index         .95642        .66967        .10993E-02   -.94197    
   3  Normalizat    1.0755        .19475        .22376E-03   -.90541    
   4  Prefactor     .62373        .21329        .31327E-03   -1.0660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17374e-09
Minuit parameter uncertainties:
  1  44.6128
  2  0.675592
  3  0.194881
  4  0.21357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901175': 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) = 5468.24269654
delta logL = 1.52057717822

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.015e+01  4.461e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  9.564e-01  6.756e-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:  6.237e-01  2.136e-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.076e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.20
Ra Dec: 157.077 31.139
Photon Index (Free Index): 0.96 +/- 0.68
Photon Flux (Free Index): 3.91e-09 +/- 4.57e-09
Energy Flux (Free Index): 6.28e-05 +/- 8.75e-05

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/901175/cmap_HighResolution_445132801_445392001_4FGL_J1028.3+3108_daily_bin794.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.58e-08', energy_flux2='6.28e-05', photon_flux_error='2.43e-08', dlogl='1.52e+00', energy_flux='1.09e-05', photon_flux2='3.91e-09', job_status='DONE', time_completed='2021-09-01 23:15:49.868088', photon_index_error2='0.68', photon_index2='0.96', ts='8.17', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='8.75e-05', EG='1.06', time_epoch_completed='1630563349.87', return_code='0', job_id='901175', GAL2='0.62', EG2='1.08', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.57e-09', ts2='11.20', photon_index='2.23' WHERE bin_id='794' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:15:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 901175: <4FGL_J1028.3+3108_daily_bin794> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin794 157.077 31.1389 445132801 445392001 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 :                                   496.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            627 sec.

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

