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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1076
RA = 157.077, Dec = 31.1389
tmin = 518227201, tmax = 518486401
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='902647', job_status='RUN', time_executed='2021-09-01 23:11:53.808985', time_epoch_executed='1630563113.81' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902647/ft1_4FGL_J1028.3+3108_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902647/ft2_4FGL_J1028.3+3108_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902647/ft1_4FGL_J1028.3+3108_daily_bin1076.fits outfile=/scratch/kocevski/902647/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1076.fits ra=157.077 dec=31.1389 rad=12.0 tmin=518227201.0 tmax=518486401.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.64
user 3.36
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902647/ft1_filtered_4FGL_J1028.3+3108_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/902647/ft2_4FGL_J1028.3+3108_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/902647/ltcube_518227201_518486401_4FGL_J1028.3+3108_daily_bin1076.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/902647/ft2_4FGL_J1028.3+3108_daily_bin1076.fits
.....................!
real 15.35
user 14.84
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902647/ft1_filtered_4FGL_J1028.3+3108_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/902647/ft2_4FGL_J1028.3+3108_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/902647/ltcube_518227201_518486401_4FGL_J1028.3+3108_daily_bin1076.fits outfile=/scratch/kocevski/902647/expmap_518227201_518486401_4FGL_J1028.3+3108_daily_bin1076.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/902647/ltcube_518227201_518486401_4FGL_J1028.3+3108_daily_bin1076.fits
.....................!
real 193.10
user 187.24
sys 5.33

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28505E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7711       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.169       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65143       1.0000         .10000E-03   10000.    
     9 'norm      '    17.664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.497       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47733       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.940       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.942       1.0000         .10000E-03   10000.    
    21 'norm      '    .62796       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.563       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0573       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78176       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1430       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=   5770.863     FROM MIGRAD    STATUS=CONVERGED   1151 CALLS     4255 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    38.392        .11524    ** at limit **
   2  Prefactor     .10000E-03    4.7328        .16053E-02** at limit **
   3  Prefactor     .10000E-03    3.6287        .14111E-02** at limit **
   4  Prefactor     1.7711        2.3870        .12946E-03    .14735E-03
   5  norm          .10000E-03    4.6301        .15915E-02** at limit **
   6  Prefactor     .10000E-03    1.5542        .92072E-03** at limit **
   7  Prefactor     31.188        31.678        .71768E-04    .44671E-04
   8  Prefactor     .65311        4.3841        .29810E-03   -.32455E-04
   9  norm          17.663        11.425        .95297E-04    .13123E-05
  10  Prefactor     .10000E-03    51.233        .18142E-02** at limit **
  11  Prefactor     26.502        23.450        .38912E-03   -.10226E-05
  12  Prefactor     11.629        5.7533        .11747E-03    .10452E-04
  13  Prefactor     .10000E-03    1.7903        .99070E-03** at limit **
  14  Prefactor     .47265        23.136        .28592E-02    .66169E-03
  15  Prefactor     14.320        32.245        .10587E-03    .81611E-05
  16  Prefactor     2.5658        2.5323        .11240E-03    .45071E-03
  17  Prefactor     17.943        11.792        .94560E-04    .23817E-03
  18  Prefactor     .10000E-03    8.4182        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.6430        .17593E-02** at limit **
  20  Prefactor     16.941        17.659        .97304E-04    .28158E-04
  21  norm          .62797        .25584        .22947E-04    .63414E-04
  22  Prefactor     14.565        5.7633        .47864E-03    .10684E-03
  23  Prefactor     3.0580        20.637        .11601E-02    .10398E-04
  24  Prefactor     .10000E-03    5.4235        .17270E-02** at limit **
  25  norm          .10000E-03    11.424        .18142E-02** at limit **
  26  Normalizat    .78158        .21768        .26844E-03    .33283E-03
  27  Prefactor     1.1431        .23214        .25862E-03    .35562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1881
  Prefactor  = 0.653112
  norm       = 17.6626
  Prefactor  = 0.0001
  Prefactor  = 26.5017
  Prefactor  = 11.6289
  Prefactor  = 0.0001
  Prefactor  = 0.472654
  Prefactor  = 14.32
  Prefactor  = 2.56575
  Prefactor  = 17.9432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9415
  norm       = 0.627972
  Prefactor  = 14.5649
  Prefactor  = 3.05798
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.78158
  Prefactor  = 1.14305
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.863     FROM HESSE     STATUS=OK           474 CALLS     4729 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    35.976        .12019       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7341        .32106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6290        .28222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7711        2.3865        .51785E-05   -1.5442    
   5  norm          .10000E-03    4.6309        .31830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5543        .18414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.188        31.679        .28707E-05   -1.4590    
   8  Prefactor     .65311        4.3796        .11924E-04   -1.5546    
   9  norm          17.663        11.424        .38119E-05   -1.4867    
  10  Prefactor     .10000E-03    51.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.502        23.449        .15565E-04   -1.4678    
  12  Prefactor     11.629        5.7529        .46990E-05   -1.5026    
  13  Prefactor     .10000E-03    1.7903        .19814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .47265        22.894        .11437E-03   -1.5570    
  15  Prefactor     14.320        32.245        .42348E-05   -1.4951    
  16  Prefactor     2.5658        2.5263        .44959E-05   -1.5388    
  17  Prefactor     17.943        11.773        .37824E-05   -1.4861    
  18  Prefactor     .10000E-03    8.4184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6435        .35185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.941        17.666        .38922E-05   -1.4885    
  21  norm          .62797        .25562        .91789E-06   -1.5549    
  22  Prefactor     14.565        5.7648        .19145E-04   -1.4945    
  23  Prefactor     3.0580        20.557        .46403E-04   -1.5358    
  24  Prefactor     .10000E-03    5.4236        .34539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78158        .21762        .10738E-04   -1.0076    
  27  Prefactor     1.1431        .23233        .51723E-04   -.88102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13744e-09
Minuit parameter uncertainties:
  1  0.00365665
  2  1.40695e-05
  3  6.66106e-06
  4  2.38661
  5  9.28449e-06
  6  5.805e-06
  7  31.6957
  8  3.38262
  9  11.4257
  10  6.4043e-05
  11  23.4572
  12  5.75322
  13  1.67876e-06
  14  6.58096
  15  32.2847
  16  2.52637
  17  11.7745
  18  7.06903e-06
  19  1.205e-05
  20  17.6714
  21  0.255618
  22  5.76507
  23  15.8648
  24  7.24412e-06
  25  3.41358e-05
  26  0.217866
  27  0.232539
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  6.404e-05  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.143e+00  2.325e-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:  7.816e-01  2.179e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902647/likelihoodResults_518227201_518486401_4FGL_J1028.3+3108_daily_bin1076.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) = 5770.86275116
delta logL = -9.29100087887e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5770.86265892
delta logL = -6.76744093653e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4045       1.0000          .0000       10.000    
     3 'Normalizat'    .78158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1431       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=   5770.863     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10838E-03    13.507        .18142E-01** at limit **
   2  Index         2.2814        5.0901        .50000        .16527E-04
   3  Normalizat    .78158        .24123E-02    .26844E-03    .17686E-03
   4  Prefactor     1.1431        .27723E-02    .25862E-03    .18930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108379
  Index      = 2.28139
  Normalizat = 0.781579
  Prefactor  = 1.14305
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.863     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10838E-03    97.963        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2814        6.0420        .50000       -.57486    
   3  Normalizat    .78158        .64522E-02    .10738E-04   -1.0076    
   4  Prefactor     1.1431        .74150E-02    .51723E-04   -.88102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.92785e-10
Minuit parameter uncertainties:
  1  0.057394
  2  163.56
  3  0.00645222
  4  0.00741499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902647': 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) = 5770.8626585
delta logL = -2.55634404311e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.084e-04  5.739e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.281e+00  1.636e+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.143e+00  7.415e-03  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:  7.816e-01  6.452e-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/902647/cmap_HighResolution_518227201_518486401_4FGL_J1028.3+3108_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-01 23:25:11.181131', job_id='902647', GAL2='1.14', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630563911.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='-2.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1076' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:25:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 902647: <4FGL_J1028.3+3108_daily_bin1076> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1076 157.077 31.1389 518227201 518486401 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 :                                   791.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            888 sec.

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

