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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1154
RA = 157.077, Dec = 31.1389
tmin = 538444801, tmax = 538704001
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='902760', job_status='RUN', time_executed='2021-09-01 23:12:32.208269', time_epoch_executed='1630563152.21' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902760/ft1_4FGL_J1028.3+3108_daily_bin1154.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902760/ft2_4FGL_J1028.3+3108_daily_bin1154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902760/ft1_4FGL_J1028.3+3108_daily_bin1154.fits outfile=/scratch/kocevski/902760/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1154.fits ra=157.077 dec=31.1389 rad=12.0 tmin=538444801.0 tmax=538704001.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.53
user 3.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902760/ft1_filtered_4FGL_J1028.3+3108_daily_bin1154.fits" evtable="EVENTS" scfile=/scratch/kocevski/902760/ft2_4FGL_J1028.3+3108_daily_bin1154.fits sctable="SC_DATA" outfile=/scratch/kocevski/902760/ltcube_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.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/902760/ft2_4FGL_J1028.3+3108_daily_bin1154.fits
.....................!
real 15.41
user 15.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902760/ft1_filtered_4FGL_J1028.3+3108_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/902760/ft2_4FGL_J1028.3+3108_daily_bin1154.fits sctable="SC_DATA" expcube=/scratch/kocevski/902760/ltcube_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.fits outfile=/scratch/kocevski/902760/expmap_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.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/902760/ltcube_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.fits
.....................!
real 193.26
user 187.71
sys 4.99

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/902760/ft1_filtered_4FGL_J1028.3+3108_daily_bin1154.fits scfile=/scratch/kocevski/902760/ft2_4FGL_J1028.3+3108_daily_bin1154.fits outfile=/scratch/kocevski/902760/cmap_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902760/ft1_filtered_4FGL_J1028.3+3108_daily_bin1154.fits scfile=/scratch/kocevski/902760/ft2_4FGL_J1028.3+3108_daily_bin1154.fits outfile=/scratch/kocevski/902760/cmap_HighResolution_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=157.077 yref=31.1389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48352       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93668       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    54.836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3856       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0302       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38433E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.735       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2652       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0487       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9108       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7581       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .31586       1.0000         .10000E-03   10000.    
    25 'norm      '    7.3350       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1363       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .73705       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5654.461     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     4187 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1256       -.16146E-06** at limit **
   2  Prefactor     .10000E-03    5.7728       -.20190E-06** at limit **
   3  Prefactor     .10000E-03    11.565        .32755E-07** at limit **
   4  Prefactor     .48118        2.3964       -.17635E-07    .23156E-04
   5  norm          .10000E-03    2.2697       -.14502E-06** at limit **
   6  Prefactor     .93262        3.4197       -.53549E-07   -.11368E-04
   7  Prefactor     .10000E-03    7.8299       -.15483E-06** at limit **
   8  Prefactor     .10000E-03    18.831       -.10499E-05** at limit **
   9  norm          54.830        8.6886       -.21660E-06    .15089E-01
  10  Prefactor     .10001E-03    8.1203       -.15188E-06** at limit **
  11  Prefactor     16.947        13.955       -.55550E-06    .17332E-02
  12  Prefactor     1.3886        5.1047        .67050E-07   -.20731E-03
  13  Prefactor     .10000E-03    12.759       -.71184E-06** at limit **
  14  Prefactor     .10000E-03    2.1477       -.44486E-07** at limit **
  15  Prefactor     3.0336        3.7678       -.28326E-06    .30139E-03
  16  Prefactor     .10000E-03    1.0094        .41937E-07** at limit **
  17  Prefactor     .15319E-03    2128.9        .52745E-04** at limit **
  18  Prefactor     .10000E-03    27.137        .36596E-06** at limit **
  19  Prefactor     12.762        10.266       -.56683E-06    .35715E-02
  20  Prefactor     3.2654        1.1698       -.36100E-07    .16368E-02
  21  norm          2.0486        .42387        .34698E-07    .19107E-03
  22  Prefactor     2.9103        2.3568        .55553E-07   -.98057E-04
  23  Prefactor     5.7505        5.2368        .52904E-06   -.11165E-02
  24  Prefactor     .33421        156.10       -.35666E-05    .15222E-03
  25  norm          7.3372        1.3895       -.63728E-07   -.10415E-03
  26  Normalizat    1.1362        .19286        .11278E-06    .22248E-07
  27  Prefactor     .73725        .21346       -.22904E-06    .50836E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.481179
  norm       = 0.0001
  Prefactor  = 0.932617
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 54.8299
  Prefactor  = 0.000100007
  Prefactor  = 16.9469
  Prefactor  = 1.38856
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.03362
  Prefactor  = 0.0001
  Prefactor  = 0.000153193
  Prefactor  = 0.000100001
  Prefactor  = 12.7619
  Prefactor  = 3.26537
  norm       = 2.04862
  Prefactor  = 2.91034
  Prefactor  = 5.75054
  Prefactor  = 0.334215
  norm       = 7.3372
  Normalizat = 1.13622
  Prefactor  = 0.737249
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.461     FROM HESSE     STATUS=OK           572 CALLS     4759 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .48118        1.7342        .33827E-01   -1.5569    
   5  norm          .10000E-03    2.2642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .93262        5.1268        .12940E-01   -1.5515    
   7  Prefactor     .10000E-03    15.873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5085        .64048E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          54.830        15.986        .13542E-02   -1.4226    
  10  Prefactor     .10001E-03    15.824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.947        35.964        .24334E-02   -1.4884    
  12  Prefactor     1.3886        6.6737        .92369E-02   -1.5472    
  13  Prefactor     .10000E-03    6.0547        .48949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0336        226.32        .58278E-02   -1.5360    
  16  Prefactor     .10000E-03    .98086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15319E-03    7.1734        .67992E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.762        11.478        .28062E-02   -1.4993    
  20  Prefactor     3.2654        6.8824        .56027E-02   -1.5347    
  21  norm          2.0486        .44033        .46966E-02   -1.5422    
  22  Prefactor     2.9103        2.4061        .59536E-02   -1.5367    
  23  Prefactor     5.7505        18.110        .41845E-02   -1.5228    
  24  Prefactor     .33421        17.854        .10494       -1.5592    
  25  norm          7.3372        12.555        .37024E-02   -1.5166    
  26  Normalizat    1.1362        .17452        .36683E-01   -.88597    
  27  Prefactor     .73725        .18634        .67555E-01   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62402e-07
Minuit parameter uncertainties:
  1  2.86469e-06
  2  6.75599e-06
  3  5.70718e-05
  4  1.73441
  5  1.63273e-06
  6  4.37358
  7  0.000218049
  8  0.000163782
  9  15.9874
  10  0.000670374
  11  36.0096
  12  6.08919
  13  0.000171987
  14  1.04881e-06
  15  52.6115
  16  7.17258e-07
  17  0.0390724
  18  0.000366241
  19  11.4802
  20  6.88405
  21  0.440327
  22  2.40615
  23  18.1269
  24  4.88637
  25  12.5596
  26  0.174605
  27  0.186497
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  6.704e-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:  7.372e-01  1.865e-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.136e+00  1.746e-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: 4.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902760/likelihoodResults_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.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) = 5654.46164255
delta logL = -0.000300453469208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5654.46134473
delta logL = -2.63318906946e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6477       1.0000          .0000       10.000    
     3 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73725       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=   5654.461     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10762E-03    1.7671        .18142E-01** at limit **
   2  Index         2.5058        7.4601        .50000        .30916E-04
   3  Normalizat    1.1362        .16532E-02    .21382E-03   -.99429E-05
   4  Prefactor     .73725        .19085E-02    .29890E-03   -.13084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107623
  Index      = 2.50582
  Normalizat = 1.13622
  Prefactor  = 0.737249
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.461     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10762E-03    63.596        .24270E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5058        5.0970        .50000       -.52226    
   3  Normalizat    1.1362        .99672E-02    .85526E-05   -.88597    
   4  Prefactor     .73725        .11506E-01    .11956E-04   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49393e-08
Minuit parameter uncertainties:
  1  0.044083
  2  299.705
  3  0.00996719
  4  0.0115063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902760': 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) = 5654.46134385
delta logL = -1.75193417817e-06

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.076e-04  4.408e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.506e+00  2.997e+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:  7.372e-01  1.151e-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.136e+00  9.967e-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/902760/cmap_HighResolution_538444801_538704001_4FGL_J1028.3+3108_daily_bin1154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.18e-08', time_completed='2021-09-01 23:26:18.646814', job_id='902760', GAL2='0.74', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630563978.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-1.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1154' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 902760: <4FGL_J1028.3+3108_daily_bin1154> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1154 157.077 31.1389 538444801 538704001 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 :                                   820.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             357.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            948 sec.

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

