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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1087
RA = 157.077, Dec = 31.1389
tmin = 521078401, tmax = 521337601
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='902663', job_status='RUN', time_executed='2021-09-01 23:14:57.477039', time_epoch_executed='1630563297.48' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902663/ft1_4FGL_J1028.3+3108_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902663/ft2_4FGL_J1028.3+3108_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902663/ft1_4FGL_J1028.3+3108_daily_bin1087.fits outfile=/scratch/kocevski/902663/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1087.fits ra=157.077 dec=31.1389 rad=12.0 tmin=521078401.0 tmax=521337601.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.80
user 4.55
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902663/ft1_filtered_4FGL_J1028.3+3108_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/902663/ft2_4FGL_J1028.3+3108_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/902663/ltcube_521078401_521337601_4FGL_J1028.3+3108_daily_bin1087.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/902663/ft2_4FGL_J1028.3+3108_daily_bin1087.fits
.....................!
real 15.26
user 14.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902663/ft1_filtered_4FGL_J1028.3+3108_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/902663/ft2_4FGL_J1028.3+3108_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/902663/ltcube_521078401_521337601_4FGL_J1028.3+3108_daily_bin1087.fits outfile=/scratch/kocevski/902663/expmap_521078401_521337601_4FGL_J1028.3+3108_daily_bin1087.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/902663/ltcube_521078401_521337601_4FGL_J1028.3+3108_daily_bin1087.fits
.....................!
real 192.73
user 187.44
sys 4.85

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/902663/ft1_filtered_4FGL_J1028.3+3108_daily_bin1087.fits scfile=/scratch/kocevski/902663/ft2_4FGL_J1028.3+3108_daily_bin1087.fits outfile=/scratch/kocevski/902663/cmap_521078401_521337601_4FGL_J1028.3+3108_daily_bin1087.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902663/ft1_filtered_4FGL_J1028.3+3108_daily_bin1087.fits scfile=/scratch/kocevski/902663/ft2_4FGL_J1028.3+3108_daily_bin1087.fits outfile=/scratch/kocevski/902663/cmap_HighResolution_521078401_521337601_4FGL_J1028.3+3108_daily_bin1087.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0857       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9268       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5340       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.764       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4645       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    84.891       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12393E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13980E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11139E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3722       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7867       1.0000         .10000E-03   10000.    
    21 'norm      '    .77270       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42869       1.0000         .10000E-03   10000.    
    23 'Prefactor '    68.595       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21410E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.3988       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .63615       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1556       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=   5685.238     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3277 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.564        15.320        .38651E-07   -.42475E-04
   2  Prefactor     8.0849        7.3937        .30656E-06   -.28407E-04
   3  Prefactor     .10000E-03    5.9541        .39498E-06** at limit **
   4  Prefactor     2.9250        1.8409        .20908E-07   -.33849E-04
   5  norm          4.9897        8.1651        .46658E-06   -.26729E-04
   6  Prefactor     1.5343        4.0653        .29628E-06   -.28515E-04
   7  Prefactor     10.807        19.942       -.10423E-05   -.22806E-04
   8  Prefactor     2.4634        5.4724        .96324E-07   -.80884E-04
   9  norm          6.0926        9.0868        .48601E-05   -.80333E-04
  10  Prefactor     84.767        54.659       -.58596E-06   -.25980E-03
  11  Prefactor     .10000E-03    16.429        .10615E-07** at limit **
  12  Prefactor     2.8062        3.0150       -.39236E-06   -.10205E-03
  13  Prefactor     3.0789        2.9661       -.37521E-06   -.20621E-04
  14  Prefactor     .10000E-03    3.6385        .21069E-06** at limit **
  15  Prefactor     .10000E-03    14.043        .12400E-06** at limit **
  16  Prefactor     .10000E-03    1.6651        .55376E-06** at limit **
  17  Prefactor     8.3724        8.3282       -.10018E-06   -.18869E-03
  18  Prefactor     .10000E-03    7.4503       -.12042E-07** at limit **
  19  Prefactor     .10000E-03    3.3274        .57993E-07** at limit **
  20  Prefactor     5.7882        8.3443        .29334E-05   -.13938E-03
  21  norm          .77299        .26528        .91499E-08   -.15202E-03
  22  Prefactor     .42920        1.3812        .26294E-06   -.37337E-03
  23  Prefactor     68.509        19.137        .12216E-06    .47161E-04
  24  Prefactor     .10000E-03    13.779        .47877E-06** at limit **
  25  norm          9.4102        13.594        .38948E-06    .12362E-04
  26  Normalizat    .63592        .16748       -.14321E-05   -.19882E-03
  27  Prefactor     1.1558        .18813       -.70320E-06   -.17089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5637
  Prefactor  = 8.08489
  Prefactor  = 0.0001
  Prefactor  = 2.92503
  norm       = 4.98967
  Prefactor  = 1.5343
  Prefactor  = 10.8068
  Prefactor  = 2.46341
  norm       = 6.09263
  Prefactor  = 84.7671
  Prefactor  = 0.0001
  Prefactor  = 2.80623
  Prefactor  = 3.07889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.37242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.78821
  norm       = 0.772989
  Prefactor  = 0.429204
  Prefactor  = 68.5093
  Prefactor  = 0.0001
  norm       = 9.41017
  Normalizat = 0.635923
  Prefactor  = 1.1558
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.238     FROM HESSE     STATUS=OK           494 CALLS     3771 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.564        15.318        .52504E-03   -1.4945    
   2  Prefactor     8.0849        7.3807        .14100E-03   -1.5139    
   3  Prefactor     .10000E-03    6.0094        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9250        1.8376        .78164E-04   -1.5366    
   5  norm          4.9897        8.1491        .18018E-03   -1.5261    
   6  Prefactor     1.5343        3.7333        .17478E-03   -1.5460    
   7  Prefactor     10.807        19.922        .12212E-03   -1.5050    
   8  Prefactor     2.4634        5.0572        .18294E-03   -1.5394    
   9  norm          6.0926        9.1049        .81381E-03   -1.5214    
  10  Prefactor     84.767        54.642        .21800E-03   -1.3864    
  11  Prefactor     .10000E-03    16.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8062        3.0050        .12848E-03   -1.5373    
  13  Prefactor     3.0789        2.9652        .61555E-03   -1.5357    
  14  Prefactor     .10000E-03    3.6732        .14031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9768        .18199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3724        8.2150        .13855E-03   -1.5129    
  18  Prefactor     .10000E-03    7.4589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3302        .13429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7882        8.1709        .83480E-03   -1.5227    
  21  norm          .77299        .26585        .21631E-04   -1.5532    
  22  Prefactor     .42920        1.3007        .14804E-02   -1.5577    
  23  Prefactor     68.509        19.127        .48464E-04   -1.4051    
  24  Prefactor     .10000E-03    14.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.4102        13.574        .13072E-03   -1.5094    
  26  Normalizat    .63592        .19237        .26079E-03   -1.0648    
  27  Prefactor     1.1558        .21990        .24121E-03   -.87702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8238e-09
Minuit parameter uncertainties:
  1  15.3221
  2  7.38149
  3  1.0036e-05
  4  1.83762
  5  8.15093
  6  3.73385
  7  19.934
  8  5.05804
  9  9.10701
  10  54.674
  11  2.51349e-05
  12  3.00516
  13  2.96531
  14  3.00375e-06
  15  9.74799e-07
  16  3.13138e-05
  17  8.21613
  18  1.48477e-06
  19  8.61169e-07
  20  8.1725
  21  0.265849
  22  1.30081
  23  19.1292
  24  7.47856e-06
  25  13.578
  26  0.192575
  27  0.220076
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  8.477e+01  5.467e+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:  1.156e+00  2.201e-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:  6.359e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.28
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.23e-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) = 5685.23678495
delta logL = 0.00114457485324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5685.23564276
delta logL = 0.00228677084942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.225       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1998       1.0000          .0000       10.000    
     3 'Normalizat'    .63750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1549       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=   5685.236     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      267 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.251        80.919        .21388E-03    .24398E-04
   2  Index         2.1996        .54241        .55553E-02    .46959E-03
   3  Normalizat    .63760        .17922        .26047E-03   -.73676E-04
   4  Prefactor     1.1548        .21643        .24131E-03   -.19458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.2508
  Index      = 2.19963
  Normalizat = 0.637603
  Prefactor  = 1.15477
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.236     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.251        77.112        .85551E-05   -1.3826    
   2  Index         2.1996        .51656        .11111E-02   -.59447    
   3  Normalizat    .63760        .17918        .10419E-04   -1.0641    
   4  Prefactor     1.1548        .21653        .96523E-05   -.87735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05013e-11
Minuit parameter uncertainties:
  1  77.1992
  2  0.517909
  3  0.17934
  4  0.216696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902663': 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) = 5685.23564254
delta logL = 0.00228699275976

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  8.825e+01  7.720e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.200e+00  5.179e-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:  1.155e+00  2.167e-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:  6.376e-01  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 157.077 31.139
Photon Index (Free Index): 2.20 +/- 0.52
Photon Flux (Free Index): 4.39e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.58e-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/902663/cmap_HighResolution_521078401_521337601_4FGL_J1028.3+3108_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='1.97e-05', photon_flux_error='2.92e-08', dlogl='2.29e-03', energy_flux='1.91e-05', photon_flux2='4.39e-08', job_status='DONE', time_completed='2021-09-01 23:26:22.087470', photon_index_error2='0.52', photon_index2='2.20', ts='5.28', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.64', time_epoch_completed='1630563982.09', return_code='0', job_id='902663', GAL2='1.15', EG2='0.64', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.56e-08', ts2='5.25', photon_index='2.23' WHERE bin_id='1087' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 902663: <4FGL_J1028.3+3108_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1087 157.077 31.1389 521078401 521337601 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 :                                   663.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            958 sec.

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

