/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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.3+3108_daily_bin184
RA = 157.077, Dec = 31.1389
tmin = 287020801, tmax = 287280001
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='896898', job_status='RUN', time_executed='2021-09-01 22:51:09.847200', time_epoch_executed='1630561869.85' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896898/ft1_4FGL_J1028.3+3108_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896898/ft2_4FGL_J1028.3+3108_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896898/ft1_4FGL_J1028.3+3108_daily_bin184.fits outfile=/scratch/kocevski/896898/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin184.fits ra=157.077 dec=31.1389 rad=12.0 tmin=287020801.0 tmax=287280001.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.71
user 4.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896898/ft1_filtered_4FGL_J1028.3+3108_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/896898/ft2_4FGL_J1028.3+3108_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/896898/ltcube_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.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/896898/ft2_4FGL_J1028.3+3108_daily_bin184.fits
.....................!
real 15.36
user 14.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896898/ft1_filtered_4FGL_J1028.3+3108_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/896898/ft2_4FGL_J1028.3+3108_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/896898/ltcube_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.fits outfile=/scratch/kocevski/896898/expmap_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.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/896898/ltcube_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.fits
.....................!
real 193.56
user 187.93
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/896898/ft1_filtered_4FGL_J1028.3+3108_daily_bin184.fits scfile=/scratch/kocevski/896898/ft2_4FGL_J1028.3+3108_daily_bin184.fits outfile=/scratch/kocevski/896898/cmap_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.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.64
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896898/ft1_filtered_4FGL_J1028.3+3108_daily_bin184.fits scfile=/scratch/kocevski/896898/ft2_4FGL_J1028.3+3108_daily_bin184.fits outfile=/scratch/kocevski/896898/cmap_HighResolution_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5344       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0304       1.0000         .10000E-03   10000.    
     9 'norm      '    11.889       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12898       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.740       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1741       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1861       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.427       1.0000         .10000E-03   10000.    
    25 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1230       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0547       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=   6079.213     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     2816 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8641        84.702       -.29399E-05   -.35954E-04
   2  Prefactor     5.5357        6.1983        .17335E-06    .16448E-03
   3  Prefactor     9.0096        8.7242       -.38949E-07   -.29874E-05
   4  Prefactor     .10000E-03    1.6602       -.50396E-08** at limit **
   5  norm          16.105        8.0507        .10039E-07    .11988E-04
   6  Prefactor     .10000E-03    1.2990        .12500E-08** at limit **
   7  Prefactor     .10001E-03    26.405       -.38225E-05** at limit **
   8  Prefactor     4.0316        4.0368        .16232E-06    .25100E-03
   9  norm          11.893        9.8833        .63122E-07    .74266E-04
  10  Prefactor     .10000E-03    13.072       -.12911E-05** at limit **
  11  Prefactor     .10001E-03    14.224        .53543E-05** at limit **
  12  Prefactor     2.9710        3.0185       -.15076E-06    .16684E-02
  13  Prefactor     3.8309        4.7649        .92399E-08    .13187E-04
  14  Prefactor     .10000E-03    7.6798        .23120E-06** at limit **
  15  Prefactor     .10000E-03    12.661       -.22196E-05** at limit **
  16  Prefactor     .13465        1.3418       -.97025E-06    .29849E-03
  17  Prefactor     .10000E-03    4.1012        .86061E-07** at limit **
  18  Prefactor     .10001E-03    38.415       -.36121E-05** at limit **
  19  Prefactor     10.737        9.8760        .20468E-06    .83239E-04
  20  Prefactor     .10000E-03    4.7364       -.14927E-06** at limit **
  21  norm          1.1740        .30850       -.36003E-08    .23341E-03
  22  Prefactor     4.1869        3.2756        .55547E-07    .31230E-03
  23  Prefactor     .10000E-03    3.7396       -.85527E-07** at limit **
  24  Prefactor     27.425        16.008       -.14607E-06    .19025E-04
  25  norm          .10005E-03    41.371       -.13976E-04** at limit **
  26  Normalizat    1.1229        .17929       -.34504E-06    .19590E-03
  27  Prefactor     1.0547        .19943        .33161E-06    .13228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86413
  Prefactor  = 5.53569
  Prefactor  = 9.00959
  Prefactor  = 0.0001
  norm       = 16.1053
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 4.03164
  norm       = 11.8929
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 2.97101
  Prefactor  = 3.83087
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.134648
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 10.7371
  Prefactor  = 0.0001
  norm       = 1.17403
  Prefactor  = 4.1869
  Prefactor  = 0.0001
  Prefactor  = 27.4252
  norm       = 0.000100045
  Normalizat = 1.12291
  Prefactor  = 1.05467
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.213     FROM HESSE     STATUS=OK           488 CALLS     3304 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8641        84.659        .20540E-03   -1.5315    
   2  Prefactor     5.5357        6.1884        .17078E-03   -1.5237    
   3  Prefactor     9.0096        8.7355        .13354E-03   -1.5108    
   4  Prefactor     .10000E-03    1.7137        .19584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.105        8.0498        .99802E-04   -1.4905    
   6  Prefactor     .10000E-03    1.3055        .86645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    27.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0316        4.0424        .14812E-03   -1.5306    
   9  norm          11.893        9.8918        .11618E-03   -1.5018    
  10  Prefactor     .10000E-03    13.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    15.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9710        3.1349        .68137E-03   -1.5363    
  13  Prefactor     3.8309        4.7531        .18047E-03   -1.5316    
  14  Prefactor     .10000E-03    7.8659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13465        10.817        .15808E-02   -1.5635    
  17  Prefactor     .10000E-03    4.1104        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    39.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.737        9.8814        .12225E-03   -1.5052    
  20  Prefactor     .10000E-03    4.7468        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1740        .30989        .21203E-04   -1.5491    
  22  Prefactor     4.1869        3.2796        .11848E-03   -1.5299    
  23  Prefactor     .10000E-03    3.7427        .14723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.425        16.029        .76497E-04   -1.4660    
  25  norm          .10005E-03    45.664        .44254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1229        .21431        .23551E-03   -.89020    
  27  Prefactor     1.0547        .23768        .28645E-03   -.90929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06801e-09
Minuit parameter uncertainties:
  1  36.2314
  2  6.18914
  3  8.73672
  4  4.03655e-06
  5  8.05038
  6  1.54633e-06
  7  0.000850324
  8  4.04263
  9  9.89317
  10  0.00020741
  11  0.000926295
  12  3.13505
  13  4.7536
  14  2.94105e-05
  15  0.000347137
  16  2.41328
  17  7.07888e-06
  18  0.000940269
  19  9.8829
  20  1.47589e-05
  21  0.309892
  22  3.27975
  23  3.03873e-06
  24  16.0318
  25  0.00287792
  26  0.214472
  27  0.237919
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.074e-04  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.055e+00  2.379e-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.123e+00  2.145e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/896898/likelihoodResults_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.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) = 6079.21353904
delta logL = -0.000361355223504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6079.21318178
delta logL = -4.09436779591e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16417E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1946       1.0000          .0000       10.000    
     3 'Normalizat'    1.1233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0542       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=   6079.213     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      250 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10324E-03    8.4959        .18142E-01** at limit **
   2  Index         2.1111        5.6512        .50000        .18119E-04
   3  Normalizat    1.1229        .31995E-02    .23551E-03   -.26602E-03
   4  Prefactor     1.0547        .38011E-02    .28645E-03    .18217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103242
  Index      = 2.11109
  Normalizat = 1.1229
  Prefactor  = 1.05467
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.213     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10324E-03    68.188        .30129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1111        8.9211        .50000       -.61601    
   3  Normalizat    1.1229        .91036E-02    .47102E-04   -.89020    
   4  Prefactor     1.0547        .10815E-01    .11458E-04   -.90929    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.31665e-09
Minuit parameter uncertainties:
  1  0.0297695
  2  222.406
  3  0.00910362
  4  0.0108153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896898': 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) = 6079.21317718
delta logL = 5.09290657646e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.032e-04  2.977e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.111e+00  2.224e+02  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.055e+00  1.082e-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.123e+00  9.104e-03  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/896898/cmap_HighResolution_287020801_287280001_4FGL_J1028.3+3108_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-01 23:03:33.642505', job_id='896898', GAL2='1.05', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630562613.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='184' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:03:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 896898: <4FGL_J1028.3+3108_daily_bin184> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin184> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:50:26 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:50:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 22:50:53 2021
Terminated at Wed Sep  1 23:03:34 2021
Results reported at Wed Sep  1 23:03:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin184 157.077 31.1389 287020801 287280001 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 :                                   739.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            788 sec.

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

