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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1029
RA = 157.077, Dec = 31.1389
tmin = 506044801, tmax = 506304001
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='901536', job_status='RUN', time_executed='2021-09-01 23:09:17.562116', time_epoch_executed='1630562957.56' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901536/ft1_4FGL_J1028.3+3108_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901536/ft2_4FGL_J1028.3+3108_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901536/ft1_4FGL_J1028.3+3108_daily_bin1029.fits outfile=/scratch/kocevski/901536/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1029.fits ra=157.077 dec=31.1389 rad=12.0 tmin=506044801.0 tmax=506304001.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.34
user 4.08
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901536/ft2_4FGL_J1028.3+3108_daily_bin1029.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/901536/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/901536/ft1_filtered_4FGL_J1028.3+3108_daily_bin1029.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/901536/ft1_filtered_4FGL_J1028.3+3108_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/901536/ft2_4FGL_J1028.3+3108_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/901536/ltcube_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.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/901536/ft2_4FGL_J1028.3+3108_daily_bin1029.fits
.....................!
real 17.63
user 17.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901536/ft1_filtered_4FGL_J1028.3+3108_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/901536/ft2_4FGL_J1028.3+3108_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/901536/ltcube_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.fits outfile=/scratch/kocevski/901536/expmap_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.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/901536/ltcube_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.fits
.....................!
real 194.25
user 187.81
sys 5.53

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/901536/ft1_filtered_4FGL_J1028.3+3108_daily_bin1029.fits scfile=/scratch/kocevski/901536/ft2_4FGL_J1028.3+3108_daily_bin1029.fits outfile=/scratch/kocevski/901536/cmap_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901536/ft1_filtered_4FGL_J1028.3+3108_daily_bin1029.fits scfile=/scratch/kocevski/901536/ft2_4FGL_J1028.3+3108_daily_bin1029.fits outfile=/scratch/kocevski/901536/cmap_HighResolution_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25171E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59731       1.0000         .10000E-03   10000.    
     9 'norm      '    16.329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7709       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9438       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4342       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1454       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9594       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .63712       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=   4614.186     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     2811 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.418        26.621        .48864E-05   -.36341E-04
   2  Prefactor     9.5137        7.3560       -.36485E-07   -.46531E-04
   3  Prefactor     .10000E-03    3.2683       -.77724E-07** at limit **
   4  Prefactor     .10000E-03    .97956       -.88345E-07** at limit **
   5  norm          10.388        6.7242        .60376E-07   -.14689E-04
   6  Prefactor     .10000E-03    2.6809       -.11332E-05** at limit **
   7  Prefactor     1.0800        83.570        .19891E-04   -.19996E-03
   8  Prefactor     .60051        4.8005       -.11905E-05   -.47375E-03
   9  norm          16.325        10.383       -.21545E-06   -.24313E-03
  10  Prefactor     .10000E-03    41.027       -.56727E-06** at limit **
  11  Prefactor     .10000E-03    15.206        .15244E-06** at limit **
  12  Prefactor     3.7706        3.4136       -.33207E-06   -.74938E-04
  13  Prefactor     3.9439        3.8812        .20533E-05    .15578E-02
  14  Prefactor     6.4269        6.1100        .11448E-06    .10257E-04
  15  Prefactor     .10000E-03    10.869       -.29728E-06** at limit **
  16  Prefactor     1.4345        2.2770        .22398E-06    .16125E-03
  17  Prefactor     .10000E-03    7.5962       -.27063E-07** at limit **
  18  Prefactor     .10000E-03    11.232        .44345E-06** at limit **
  19  Prefactor     .10000E-03    3.4915        .13905E-06** at limit **
  20  Prefactor     .10000E-03    4.1260       -.22546E-07** at limit **
  21  norm          1.1452        .35200        .42373E-08   -.67043E-03
  22  Prefactor     .10000E-03    .87226        .94706E-08** at limit **
  23  Prefactor     .10000E-03    3.7172        .34519E-07** at limit **
  24  Prefactor     4.9625        17.964       -.10305E-06    .35016E-04
  25  norm          .10000E-03    4.1145       -.49589E-07** at limit **
  26  Normalizat    1.0097        .16647       -.13030E-05   -.26676E-03
  27  Prefactor     .63711        .18549        .14428E-06   -.16693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.418
  Prefactor  = 9.51367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3882
  Prefactor  = 0.0001
  Prefactor  = 1.07998
  Prefactor  = 0.600506
  norm       = 16.3247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.77061
  Prefactor  = 3.94391
  Prefactor  = 6.42693
  Prefactor  = 0.0001
  Prefactor  = 1.43445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96247
  norm       = 0.0001
  Normalizat = 1.00971
  Prefactor  = 0.637109
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.186     FROM HESSE     STATUS=OK           488 CALLS     3299 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.418        26.348        .12408E-03   -1.5062    
   2  Prefactor     9.5137        7.3546        .12992E-03   -1.5091    
   3  Prefactor     .10000E-03    3.2777        .11992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .99652        .65618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.388        6.7230        .12431E-03   -1.5063    
   6  Prefactor     .10000E-03    7.0752        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0800        126.72        .59723E-02   -1.5500    
   8  Prefactor     .60051        4.0879        .25433E-03   -1.5553    
   9  norm          16.325        10.318        .99116E-04   -1.4900    
  10  Prefactor     .10000E-03    41.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7706        3.4076        .11407E-03   -1.5320    
  13  Prefactor     3.9439        4.5673        .74419E-03   -1.5311    
  14  Prefactor     6.4269        6.0900        .15528E-03   -1.5201    
  15  Prefactor     .10000E-03    10.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4345        2.2501        .12103E-03   -1.5468    
  17  Prefactor     .10000E-03    7.7275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4956        .12395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1384        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1452        .35916        .19471E-04   -1.5494    
  22  Prefactor     .10000E-03    .88190        .61933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7203        .12788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.9625        18.293        .18059E-03   -1.5262    
  25  norm          .10000E-03    4.1249        .13456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0097        .19659        .19752E-03   -.92706    
  27  Prefactor     .63711        .21987        .28293E-03   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22224e-09
Minuit parameter uncertainties:
  1  26.3779
  2  7.35529
  3  1.62257e-06
  4  5.32229e-06
  5  6.72351
  6  1.98169e-05
  7  23.4468
  8  3.1336
  9  10.3193
  10  5.59476e-05
  11  4.00064e-06
  12  3.40777
  13  4.56769
  14  6.09059
  15  1.46484e-05
  16  2.25024
  17  8.72821e-06
  18  2.92203e-06
  19  2.32674e-09
  20  3.97589e-06
  21  0.359164
  22  1.46823e-06
  23  6.68233e-06
  24  18.3137
  25  5.40842e-06
  26  0.196729
  27  0.220172
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  5.595e-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:  6.371e-01  2.202e-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.010e+00  1.967e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901536/likelihoodResults_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.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) = 4614.18624091
delta logL = -0.000115922960504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4614.18612504
delta logL = -5.35055733053e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1703       1.0000          .0000       10.000    
     3 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63711       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=   4614.186     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2111.3        .90712E-02** at limit **
   2  Index         2.1816        5.9325        .50000       -.25010E-05
   3  Normalizat    1.0097        .32478E-01    .46289E-01    .44014E-04
   4  Prefactor     .63711        .37877E-01    .63947E-01    .45853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18157
  Normalizat = 1.00971
  Prefactor  = 0.637109
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.186     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6867.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1816        8.9010        .50000       -.59884    
   3  Normalizat    1.0097        .48747E-01    .19752E-03   -.92706    
   4  Prefactor     .63711        .56782E-01    .28293E-03   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32006e-11
Minuit parameter uncertainties:
  1  0.00183241
  2  43.2725
  3  0.0487495
  4  0.0567869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901536': 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) = 4614.18612502
delta logL = -3.4076947486e-08

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.832e-03  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.182e+00  4.327e+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.371e-01  5.679e-02  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.010e+00  4.875e-02  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/901536/cmap_HighResolution_506044801_506304001_4FGL_J1028.3+3108_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2021-09-01 23:19:59.709902', job_id='901536', GAL2='0.64', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630563599.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-3.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1029' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:19:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 901536: <4FGL_J1028.3+3108_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1029 157.077 31.1389 506044801 506304001 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 :                                   638.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            844 sec.

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

