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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin716
RA = 157.077, Dec = 31.1389
tmin = 424915201, tmax = 425174401
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='899979', job_status='RUN', time_executed='2021-09-01 23:03:30.054951', time_epoch_executed='1630562610.05' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899979/ft1_4FGL_J1028.3+3108_daily_bin716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899979/ft2_4FGL_J1028.3+3108_daily_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899979/ft1_4FGL_J1028.3+3108_daily_bin716.fits outfile=/scratch/kocevski/899979/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin716.fits ra=157.077 dec=31.1389 rad=12.0 tmin=424915201.0 tmax=425174401.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 3.47
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899979/ft1_filtered_4FGL_J1028.3+3108_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/899979/ft2_4FGL_J1028.3+3108_daily_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/899979/ltcube_424915201_425174401_4FGL_J1028.3+3108_daily_bin716.fits outfile=/scratch/kocevski/899979/expmap_424915201_425174401_4FGL_J1028.3+3108_daily_bin716.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/899979/ltcube_424915201_425174401_4FGL_J1028.3+3108_daily_bin716.fits
.....................!
real 193.15
user 188.20
sys 4.50

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/899979/ft1_filtered_4FGL_J1028.3+3108_daily_bin716.fits scfile=/scratch/kocevski/899979/ft2_4FGL_J1028.3+3108_daily_bin716.fits outfile=/scratch/kocevski/899979/cmap_424915201_425174401_4FGL_J1028.3+3108_daily_bin716.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.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899979/ft1_filtered_4FGL_J1028.3+3108_daily_bin716.fits scfile=/scratch/kocevski/899979/ft2_4FGL_J1028.3+3108_daily_bin716.fits outfile=/scratch/kocevski/899979/cmap_HighResolution_424915201_425174401_4FGL_J1028.3+3108_daily_bin716.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.60
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.520       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5836       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0535       1.0000         .10000E-03   10000.    
     9 'norm      '    18.285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4975       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11718E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7057       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5429       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .98653       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.255       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .56198       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3748       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=   5606.668     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     2828 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.513        31.564       -.77990E-05    .36603E-05
   2  Prefactor     4.5820        6.0205        .71631E-07   -.27197E-03
   3  Prefactor     13.230        8.8055       -.20248E-06   -.57248E-05
   4  Prefactor     .10000E-03    1.1608        .20914E-07** at limit **
   5  norm          4.1009        8.2137       -.80122E-06   -.23871E-03
   6  Prefactor     .10000E-03    1.2472       -.47334E-07** at limit **
   7  Prefactor     8.7416        23.222       -.25261E-05   -.15765E-04
   8  Prefactor     2.0537        2.4034       -.11285E-06   -.23814E-03
   9  norm          18.285        10.416       -.66080E-07   -.11014E-06
  10  Prefactor     5.4958        52.443       -.67406E-05   -.11296E-04
  11  Prefactor     .10000E-03    12.728        .31566E-06** at limit **
  12  Prefactor     .10000E-03    1.0380       -.62169E-08** at limit **
  13  Prefactor     .10000E-03    2.2713       -.58287E-07** at limit **
  14  Prefactor     2.7046        5.5021       -.91302E-06   -.53770E-03
  15  Prefactor     .10000E-03    9.6802       -.19765E-06** at limit **
  16  Prefactor     .10000E-03    1.0763       -.48924E-07** at limit **
  17  Prefactor     9.5418        8.5556       -.20750E-06   -.40857E-04
  18  Prefactor     .10000E-03    4.5055       -.14373E-06** at limit **
  19  Prefactor     .10000E-03    4.5266       -.65163E-07** at limit **
  20  Prefactor     .10000E-03    3.5861        .29093E-07** at limit **
  21  norm          .98654        .27914       -.88967E-08    .21019E-03
  22  Prefactor     .10000E-03    1.2887       -.72059E-07** at limit **
  23  Prefactor     .10000E-03    4.5276       -.43470E-07** at limit **
  24  Prefactor     .10000E-03    4.6426        .20711E-06** at limit **
  25  norm          15.253        13.401       -.16689E-05   -.22411E-04
  26  Normalizat    .56198        .16229        .19725E-05    .21767E-04
  27  Prefactor     1.3748        .19414        .54885E-06    .63330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.5134
  Prefactor  = 4.58201
  Prefactor  = 13.2302
  Prefactor  = 0.0001
  norm       = 4.10093
  Prefactor  = 0.0001
  Prefactor  = 8.74157
  Prefactor  = 2.05374
  norm       = 18.2847
  Prefactor  = 5.49578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.54183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.986541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2527
  Normalizat = 0.561985
  Prefactor  = 1.37478
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.668     FROM HESSE     STATUS=OK           492 CALLS     3320 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.513        31.130        .55874E-04   -1.4271    
   2  Prefactor     4.5820        6.0024        .18801E-03   -1.5280    
   3  Prefactor     13.230        8.8027        .11012E-03   -1.4980    
   4  Prefactor     .10000E-03    1.1843        .78686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1009        8.2508        .19908E-03   -1.5303    
   6  Prefactor     .10000E-03    1.8869        .16103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.7416        23.234        .13557E-03   -1.5117    
   8  Prefactor     2.0537        2.3730        .12070E-03   -1.5421    
   9  norm          18.285        10.400        .93665E-04   -1.4852    
  10  Prefactor     5.4958        52.674        .17136E-03   -1.5239    
  11  Prefactor     .10000E-03    12.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0410        .74485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1829        .21865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7046        5.5422        .23876E-03   -1.5379    
  15  Prefactor     .10000E-03    9.6884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7432        .14893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.5418        8.5115        .12973E-03   -1.5090    
  18  Prefactor     .10000E-03    4.5059        .15523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5361        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5934        .13847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .98654        .27947        .20364E-04   -1.5509    
  22  Prefactor     .10000E-03    1.3178        .82941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.5344        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6475        .15755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.253        13.422        .10255E-03   -1.4927    
  26  Normalizat    .56198        .18820        .27736E-03   -1.0962    
  27  Prefactor     1.3748        .22811        .22911E-03   -.81110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76394e-10
Minuit parameter uncertainties:
  1  31.1398
  2  6.00319
  3  8.80356
  4  2.94664e-06
  5  8.25311
  6  6.76957e-06
  7  23.2579
  8  2.37309
  9  10.4006
  10  34.0674
  11  8.74821e-06
  12  9.97691e-07
  13  5.71394e-05
  14  5.54321
  15  5.29297e-06
  16  6.79752e-06
  17  8.51253
  18  1.09658e-06
  19  1.86869e-06
  20  5.07362e-06
  21  0.279474
  22  5.70826e-06
  23  3.63481e-06
  24  1.37507e-07
  25  13.4248
  26  0.188418
  27  0.228279
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  5.496e+00  3.407e+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.375e+00  2.283e-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:  5.620e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/899979/likelihoodResults_424915201_425174401_4FGL_J1028.3+3108_daily_bin716.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) = 5606.66519551
delta logL = 0.00258358903648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5606.66501168
delta logL = 0.00276742083861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9545       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3698       1.0000          .0000       10.000    
     3 'Normalizat'    .56137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3747       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=   5606.665     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      293 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8973        54.298        .90342E-03   -.15302E-04
   2  Index         2.3798        1.9643        .49744E-02   -.11155E-04
   3  Normalizat    .56146        .18118        .27749E-03   -.22206E-04
   4  Prefactor     1.3749        .22608        .22910E-03   -.56382E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.89726
  Index      = 2.37981
  Normalizat = 0.561457
  Prefactor  = 1.37492
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.665     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8973        49.575        .36137E-04   -1.5265    
   2  Index         2.3798        1.8836        .19898E-03   -.55158    
   3  Normalizat    .56146        .18131        .11099E-04   -1.0965    
   4  Prefactor     1.3749        .22623        .45820E-04   -.81106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81346e-11
Minuit parameter uncertainties:
  1  31.1962
  2  1.95114
  3  0.181504
  4  0.22639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899979': 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) = 5606.66499455
delta logL = 0.00278455354328

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.897e+00  3.120e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.380e+00  1.951e+00  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.375e+00  2.264e-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:  5.615e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/899979/cmap_HighResolution_424915201_425174401_4FGL_J1028.3+3108_daily_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-01 23:15:17.965742', job_id='899979', GAL2='1.37', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1630563317.97', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.78e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='716' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:15:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 899979: <4FGL_J1028.3+3108_daily_bin716> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin716 157.077 31.1389 424915201 425174401 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 :                                   705.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            873 sec.

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

