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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1083
RA = 157.077, Dec = 31.1389
tmin = 520041601, tmax = 520300801
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='902657', job_status='RUN', time_executed='2021-09-01 23:11:49.887024', time_epoch_executed='1630563109.89' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902657

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902657/ft1_4FGL_J1028.3+3108_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902657/ft2_4FGL_J1028.3+3108_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902657/ft1_4FGL_J1028.3+3108_daily_bin1083.fits outfile=/scratch/kocevski/902657/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1083.fits ra=157.077 dec=31.1389 rad=12.0 tmin=520041601.0 tmax=520300801.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.37
user 4.09
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902657/ft1_filtered_4FGL_J1028.3+3108_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/902657/ft2_4FGL_J1028.3+3108_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/902657/ltcube_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.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/902657/ft2_4FGL_J1028.3+3108_daily_bin1083.fits
.....................!
real 18.34
user 17.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902657/ft1_filtered_4FGL_J1028.3+3108_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/902657/ft2_4FGL_J1028.3+3108_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/902657/ltcube_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.fits outfile=/scratch/kocevski/902657/expmap_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.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/902657/ltcube_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.fits
.....................!
real 195.57
user 189.47
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/902657/ft1_filtered_4FGL_J1028.3+3108_daily_bin1083.fits scfile=/scratch/kocevski/902657/ft2_4FGL_J1028.3+3108_daily_bin1083.fits outfile=/scratch/kocevski/902657/cmap_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902657/ft1_filtered_4FGL_J1028.3+3108_daily_bin1083.fits scfile=/scratch/kocevski/902657/ft2_4FGL_J1028.3+3108_daily_bin1083.fits outfile=/scratch/kocevski/902657/cmap_HighResolution_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.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.59
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.334       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2063       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.417       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2516       1.0000         .10000E-03   10000.    
     9 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.050       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.249       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7011       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.007       1.0000         .10000E-03   10000.    
    21 'norm      '    .32433       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5866       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8907       1.0000         .10000E-03   10000.    
    25 'norm      '    .21508E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87916       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97180       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=   5235.171     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3283 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.336        23.454        .89524E-06    .26643E-04
   2  Prefactor     4.0285        3.8024        .28027E-06   -.18038E-02
   3  Prefactor     4.5294        6.4259        .31858E-06   -.10520E-02
   4  Prefactor     2.2066        1.8030       -.19104E-07   -.19493E-04
   5  norm          .10000E-03    4.2806       -.39413E-07** at limit **
   6  Prefactor     .10000E-03    1.3579       -.58624E-08** at limit **
   7  Prefactor     37.414        33.419       -.12363E-05   -.20207E-04
   8  Prefactor     2.2533        3.3242        .46710E-07   -.85104E-04
   9  norm          .10000E-03    3.3818        .34386E-07** at limit **
  10  Prefactor     39.044        47.587       -.51664E-05   -.43952E-04
  11  Prefactor     9.9437        19.829        .76204E-06    .76612E-05
  12  Prefactor     .10000E-03    1.1034        .12298E-07** at limit **
  13  Prefactor     .10000E-03    2.7534       -.37904E-07** at limit **
  14  Prefactor     5.2637        7.7025        .31970E-05    .10424E-03
  15  Prefactor     .10000E-03    24.823        .48118E-08** at limit **
  16  Prefactor     .10000E-03    .97844       -.37339E-07** at limit **
  17  Prefactor     .10000E-03    8.4254        .16904E-06** at limit **
  18  Prefactor     11.250        12.467       -.22235E-06   -.87948E-05
  19  Prefactor     8.7156        11.960       -.21890E-05   -.84960E-04
  20  Prefactor     19.011        13.071       -.54587E-06   -.39890E-04
  21  norm          .32433        .19915        .32815E-07   -.45860E-04
  22  Prefactor     .10000E-03    .93822        .26360E-07** at limit **
  23  Prefactor     8.5878        11.724       -.10946E-05   -.64793E-04
  24  Prefactor     3.8911        13.690       -.10927E-05   -.36806E-04
  25  norm          .10000E-03    6.3854        .18770E-06** at limit **
  26  Normalizat    .87882        .16855        .33920E-06   -.50933E-04
  27  Prefactor     .97216        .19016       -.33010E-06   -.52522E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3358
  Prefactor  = 4.02851
  Prefactor  = 4.5294
  Prefactor  = 2.20658
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4145
  Prefactor  = 2.25333
  norm       = 0.0001
  Prefactor  = 39.0442
  Prefactor  = 9.9437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2502
  Prefactor  = 8.71556
  Prefactor  = 19.0106
  norm       = 0.32433
  Prefactor  = 0.0001
  Prefactor  = 8.5878
  Prefactor  = 3.89108
  norm       = 0.000100004
  Normalizat = 0.878819
  Prefactor  = 0.972163
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.171     FROM HESSE     STATUS=OK           494 CALLS     3777 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.336        23.493        .71580E-04   -1.4588    
   2  Prefactor     4.0285        5.3583        .92400E-03   -1.5307    
   3  Prefactor     4.5294        7.8524        .94594E-03   -1.5282    
   4  Prefactor     2.2066        1.8022        .84557E-04   -1.5411    
   5  norm          .10000E-03    4.3200        .14617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3654        .82124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.414        33.681        .65521E-04   -1.4484    
   8  Prefactor     2.2533        3.3117        .15171E-03   -1.5408    
   9  norm          .10000E-03    3.3916        .12988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.044        47.687        .64141E-04   -1.4457    
  11  Prefactor     9.9437        19.737        .12708E-03   -1.5077    
  12  Prefactor     .10000E-03    1.1084        .74208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7650        .11666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2637        7.7181        .17524E-03   -1.5249    
  15  Prefactor     .10000E-03    24.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .99056        .69799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.250        12.469        .11945E-03   -1.5037    
  19  Prefactor     8.7156        11.973        .13589E-03   -1.5117    
  20  Prefactor     19.011        13.109        .91868E-04   -1.4836    
  21  norm          .32433        .20003        .23203E-04   -1.5594    
  22  Prefactor     .10000E-03    .94383        .68357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5878        11.581        .13680E-03   -1.5122    
  24  Prefactor     3.8911        13.672        .20456E-03   -1.5313    
  25  norm          .10000E-03    54.688        .35057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87882        .19795        .22406E-03   -.97208    
  27  Prefactor     .97216        .22092        .25514E-03   -.93663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00509e-09
Minuit parameter uncertainties:
  1  23.4996
  2  5.35897
  3  7.8542
  4  1.80221
  5  5.42026e-06
  6  1.17528e-06
  7  33.6983
  8  3.31194
  9  5.07634e-06
  10  47.7335
  11  19.7504
  12  7.59285e-07
  13  4.35799e-06
  14  7.71955
  15  2.41656e-06
  16  5.61948e-06
  17  4.7921e-05
  18  12.4722
  19  11.9759
  20  13.1106
  21  0.200031
  22  2.08147e-06
  23  11.5844
  24  13.6832
  25  0.000939281
  26  0.198114
  27  0.221123
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.904e+01  4.773e+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:  9.722e-01  2.211e-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:  8.788e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902657/likelihoodResults_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5235.16677189
delta logL = 0.00445864997528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5235.16293667
delta logL = 0.00829386413443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.912       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3455       1.0000          .0000       10.000    
     3 'Normalizat'    .87634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97379       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=   5235.163     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      280 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.868        64.575        .68813E-04    .23791E-04
   2  Index         2.3459        .96407        .64669E-02    .34069E-04
   3  Normalizat    .87604        .18422        .22439E-03    .13578E-03
   4  Prefactor     .97414        .21908        .25491E-03   -.13500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8677
  Index      = 2.34587
  Normalizat = 0.876038
  Prefactor  = 0.974141
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.163     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.868        58.897        .27525E-05   -1.4543    
   2  Index         2.3459        .87932        .25868E-03   -.55958    
   3  Normalizat    .87604        .18410        .89755E-05   -.97307    
   4  Prefactor     .97414        .21905        .10197E-04   -.93597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33002e-10
Minuit parameter uncertainties:
  1  58.9984
  2  0.885754
  3  0.184228
  4  0.21925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902657': 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) = 5235.16293494
delta logL = 0.00829560279271

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.387e+01  5.900e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.346e+00  8.858e-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:  9.741e-01  2.192e-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:  8.760e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.98
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/902657/cmap_HighResolution_520041601_520300801_4FGL_J1028.3+3108_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-01 23:23:54.672616', job_id='902657', GAL2='0.97', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630563834.67', return_code2='0', ts='0.98', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.30e-03', ts2='0.99', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1083' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:23:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 902657: <4FGL_J1028.3+3108_daily_bin1083> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1083> 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) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:10:59 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:10:59 2021
Terminated at Wed Sep  1 23:23:55 2021
Results reported at Wed Sep  1 23:23:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1083 157.077 31.1389 520041601 520300801 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 :                                   718.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            811 sec.

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

