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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin576
RA = 157.077, Dec = 31.1389
tmin = 388627201, tmax = 388886401
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='899764', job_status='RUN', time_executed='2021-09-01 23:01:23.186490', time_epoch_executed='1630562483.19' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899764

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899764/ft1_4FGL_J1028.3+3108_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899764/ft2_4FGL_J1028.3+3108_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899764/ft1_4FGL_J1028.3+3108_daily_bin576.fits outfile=/scratch/kocevski/899764/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin576.fits ra=157.077 dec=31.1389 rad=12.0 tmin=388627201.0 tmax=388886401.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 4.02
user 3.79
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899764/ft2_4FGL_J1028.3+3108_daily_bin576.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/899764/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin576.fits evtable="EVENTS" outfile="/scratch/kocevski/899764/ft1_filtered_4FGL_J1028.3+3108_daily_bin576.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899764/ft1_filtered_4FGL_J1028.3+3108_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/899764/ft2_4FGL_J1028.3+3108_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/899764/ltcube_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.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/899764/ft2_4FGL_J1028.3+3108_daily_bin576.fits
.....................!
real 13.27
user 12.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899764/ft1_filtered_4FGL_J1028.3+3108_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/899764/ft2_4FGL_J1028.3+3108_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/899764/ltcube_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.fits outfile=/scratch/kocevski/899764/expmap_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.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/899764/ltcube_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.fits
.....................!
real 190.74
user 185.59
sys 4.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/899764/ft1_filtered_4FGL_J1028.3+3108_daily_bin576.fits scfile=/scratch/kocevski/899764/ft2_4FGL_J1028.3+3108_daily_bin576.fits outfile=/scratch/kocevski/899764/cmap_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899764/ft1_filtered_4FGL_J1028.3+3108_daily_bin576.fits scfile=/scratch/kocevski/899764/ft2_4FGL_J1028.3+3108_daily_bin576.fits outfile=/scratch/kocevski/899764/cmap_HighResolution_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.816       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.373       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7244       1.0000         .10000E-03   10000.    
     5 'norm      '    15.052       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39398E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93784E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22333E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1672       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4447       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6762       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3061       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3091       1.0000         .10000E-03   10000.    
    25 'norm      '    .97330       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82007       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=   5347.865     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     2920 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.841        24.014        .22916E-05    .16527E-03
   2  Prefactor     15.375        8.6987       -.26128E-06    .85610E-04
   3  Prefactor     5.5646        9.7435       -.96797E-07    .27497E-03
   4  Prefactor     2.7246        2.6009       -.19412E-06    .42486E-03
   5  norm          15.055        10.132       -.15929E-06    .12858E-03
   6  Prefactor     .10000E-03    1.9544        .74351E-06** at limit **
   7  Prefactor     24.265        27.589       -.16985E-07   -.37508E-05
   8  Prefactor     .10000E-03    2.8232       -.41714E-06** at limit **
   9  norm          2.1729        13.055       -.18910E-05    .41266E-03
  10  Prefactor     .10009E-03    505.03       -.95190E-04** at limit **
  11  Prefactor     .10000E-03    40.721       -.96453E-07** at limit **
  12  Prefactor     1.9389        3.9422       -.13218E-06    .65364E-03
  13  Prefactor     8.8203        5.9052        .27478E-06    .21624E-03
  14  Prefactor     .10000E-03    6.5941       -.17383E-05** at limit **
  15  Prefactor     .10000E-03    13.217       -.57415E-07** at limit **
  16  Prefactor     1.1686        2.5243       -.91613E-06    .49133E-03
  17  Prefactor     8.4490        9.7464        .27458E-06    .13510E-03
  18  Prefactor     .10000E-03    7.7142       -.15340E-06** at limit **
  19  Prefactor     18.366        13.507        .94104E-07    .99904E-04
  20  Prefactor     .10000E-03    7.5720       -.56219E-06** at limit **
  21  norm          3.6761        .55752       -.16278E-07    .38519E-02
  22  Prefactor     5.3066        2.8580       -.48757E-07    .34522E-03
  23  Prefactor     .10000E-03    28.207       -.36900E-06** at limit **
  24  Prefactor     7.3184        19.410        .41942E-06    .15719E-03
  25  norm          1.0136        13.899        .28784E-05    .18801E-03
  26  Normalizat    1.0212        .19016        .16297E-05    .72414E-03
  27  Prefactor     .82002        .20371        .24011E-05    .65548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8408
  Prefactor  = 15.3754
  Prefactor  = 5.56463
  Prefactor  = 2.72457
  norm       = 15.0554
  Prefactor  = 0.000100005
  Prefactor  = 24.2645
  Prefactor  = 0.0001
  norm       = 2.17289
  Prefactor  = 0.000100086
  Prefactor  = 0.000100001
  Prefactor  = 1.93895
  Prefactor  = 8.82034
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.16856
  Prefactor  = 8.44897
  Prefactor  = 0.0001
  Prefactor  = 18.3659
  Prefactor  = 0.0001
  norm       = 3.67609
  Prefactor  = 5.30656
  Prefactor  = 0.000100005
  Prefactor  = 7.31845
  norm       = 1.01359
  Normalizat = 1.02123
  Prefactor  = 0.820018
 **********
 **   18 **HESSE 
 **********

 FCN=   5347.865     FROM HESSE     STATUS=OK           506 CALLS     3426 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.841        24.057        .11654E-03   -1.5020    
   2  Prefactor     15.375        8.7016        .10215E-03   -1.4924    
   3  Prefactor     5.5646        9.7085        .17046E-03   -1.5236    
   4  Prefactor     2.7246        2.5915        .10919E-03   -1.5378    
   5  norm          15.055        10.132        .10324E-03   -1.4932    
   6  Prefactor     .10000E-03    54.794        .18753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.265        27.549        .81304E-04   -1.4722    
   8  Prefactor     .10000E-03    2.8901        .23967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1729        12.708        .27895E-03   -1.5413    
  10  Prefactor     .10009E-03    46.634        .14549       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9389        3.8813        .19013E-03   -1.5429    
  13  Prefactor     8.8203        5.9008        .13496E-03   -1.5114    
  14  Prefactor     .10000E-03    23.958        .34427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1686        2.4119        .15436E-03   -1.5492    
  17  Prefactor     8.4490        9.6856        .13795E-03   -1.5127    
  18  Prefactor     .10000E-03    7.7193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.366        13.488        .93446E-04   -1.4851    
  20  Prefactor     .10000E-03    7.6618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6761        .55983        .19713E-04   -1.5324    
  22  Prefactor     5.3066        2.8576        .87494E-04   -1.5247    
  23  Prefactor     .10000E-03    28.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.3184        19.445        .14836E-03   -1.5167    
  25  norm          1.0136        50.555        .49185E-02   -1.5507    
  26  Normalizat    1.0212        .21914        .23670E-03   -.92323    
  27  Prefactor     .82002        .23641        .30487E-03   -.98995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05732e-09
Minuit parameter uncertainties:
  1  24.0771
  2  8.70236
  3  9.71124
  4  2.59157
  5  10.1334
  6  0.00104742
  7  27.5637
  8  2.60744e-05
  9  10.5129
  10  0.00399911
  11  0.000382951
  12  3.88181
  13  5.90118
  14  0.000541222
  15  2.68901e-05
  16  2.41209
  17  9.6874
  18  1.32452e-05
  19  13.4899
  20  3.2061e-05
  21  0.559836
  22  2.85769
  23  0.000751391
  24  19.4616
  25  14.3288
  26  0.219336
  27  0.236705
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.001e-04  3.999e-03  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:  8.200e-01  2.367e-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.021e+00  2.193e-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: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/899764/likelihoodResults_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.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) = 5347.86524578
delta logL = -9.08354013518e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5347.86524578
delta logL = -9.0809271569e-06

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.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82002       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=   5347.780     FROM MIGRAD    STATUS=CONVERGED    153 CALLS      337 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3415        254.31        .90712E-02    .61400E-03
   2  Index         3.2950        6.6473        .12329        .11999E-03
   3  Normalizat    1.0047        .41955E-01    .43177E-01    .15139E-04
   4  Prefactor     .82764        .48570E-01    .68625E-01   -.36187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.34153
  Index      = 3.29499
  Normalizat = 1.00465
  Prefactor  = 0.82764
 **********
 **   18 **HESSE 
 **********

 FCN=   5347.780     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      370 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3415        724.83        .27021E-03   -1.5402    
   2  Index         3.2950        6.4147        .10426E-01   -.34798    
   3  Normalizat    1.0047        .16946        .23851E-03   -.92875    
   4  Prefactor     .82764        .19781        .30361E-03   -.98717    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.26629e-06
Minuit parameter uncertainties:
  1  83.4322
  2  14.197
  3  0.169547
  4  0.197983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899764': 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) = 5347.77999352
delta logL = 0.0852431753729

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  2.342e+00  8.343e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  3.295e+00  1.420e+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:  8.276e-01  1.980e-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.005e+00  1.695e-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/899764/cmap_HighResolution_388627201_388886401_4FGL_J1028.3+3108_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-01 23:13:08.777691', job_id='899764', GAL2='0.83', fit_tolerance='1e-08', EG2='1.00', EG='1.02', time_epoch_completed='1630563188.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.52e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='576' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:13:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 899764: <4FGL_J1028.3+3108_daily_bin576> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin576> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:00:26 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:01:11 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:01:11 2021
Terminated at Wed Sep  1 23:13:09 2021
Results reported at Wed Sep  1 23:13:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin576 157.077 31.1389 388627201 388886401 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 :                                   699.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            763 sec.

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

