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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1066
RA = 157.077, Dec = 31.1389
tmin = 515635201, tmax = 515894401
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='902631', job_status='RUN', time_executed='2021-09-01 23:11:00.662890', time_epoch_executed='1630563060.66' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1066'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902631/ft1_4FGL_J1028.3+3108_daily_bin1066.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902631/ft2_4FGL_J1028.3+3108_daily_bin1066.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902631/ft1_4FGL_J1028.3+3108_daily_bin1066.fits outfile=/scratch/kocevski/902631/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1066.fits ra=157.077 dec=31.1389 rad=12.0 tmin=515635201.0 tmax=515894401.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 2.89
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902631/ft2_4FGL_J1028.3+3108_daily_bin1066.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/902631/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1066.fits evtable="EVENTS" outfile="/scratch/kocevski/902631/ft1_filtered_4FGL_J1028.3+3108_daily_bin1066.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.46
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902631/ft1_filtered_4FGL_J1028.3+3108_daily_bin1066.fits" evtable="EVENTS" scfile=/scratch/kocevski/902631/ft2_4FGL_J1028.3+3108_daily_bin1066.fits sctable="SC_DATA" outfile=/scratch/kocevski/902631/ltcube_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.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/902631/ft2_4FGL_J1028.3+3108_daily_bin1066.fits
.....................!
real 15.70
user 15.39
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902631/ft1_filtered_4FGL_J1028.3+3108_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/902631/ft2_4FGL_J1028.3+3108_daily_bin1066.fits sctable="SC_DATA" expcube=/scratch/kocevski/902631/ltcube_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.fits outfile=/scratch/kocevski/902631/expmap_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.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/902631/ltcube_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.fits
.....................!
real 162.75
user 153.29
sys 3.13

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/902631/ft1_filtered_4FGL_J1028.3+3108_daily_bin1066.fits scfile=/scratch/kocevski/902631/ft2_4FGL_J1028.3+3108_daily_bin1066.fits outfile=/scratch/kocevski/902631/cmap_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.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.50
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902631/ft1_filtered_4FGL_J1028.3+3108_daily_bin1066.fits scfile=/scratch/kocevski/902631/ft2_4FGL_J1028.3+3108_daily_bin1066.fits outfile=/scratch/kocevski/902631/cmap_HighResolution_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.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.50
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.308       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11699E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1520       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.061       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17726E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0042       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.946       1.0000         .10000E-03   10000.    
    25 'norm      '    .10689E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93418       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=   6152.502     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3317 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.795       -.31849E-07** at limit **
   2  Prefactor     10.308        5.7222       -.25402E-06    .66480E-04
   3  Prefactor     .10000E-03    10.755        .36343E-06** at limit **
   4  Prefactor     .10000E-03    .78773       -.71375E-07** at limit **
   5  norm          5.7075        6.3220       -.54596E-06    .85360E-04
   6  Prefactor     .26043        2.0127       -.55697E-06    .27337E-03
   7  Prefactor     .10000E-03    17.457       -.26009E-06** at limit **
   8  Prefactor     .10000E-03    2.5825        .17201E-06** at limit **
   9  norm          .10000E-03    7.7813       -.39358E-06** at limit **
  10  Prefactor     .10000E-03    222.09        .57824E-05** at limit **
  11  Prefactor     .10000E-03    36.679        .46450E-06** at limit **
  12  Prefactor     6.1524        4.4268       -.25129E-06    .64254E-04
  13  Prefactor     .23565        2.1592       -.15675E-06   -.83251E-04
  14  Prefactor     6.3064        6.3174       -.50417E-06    .92812E-04
  15  Prefactor     10.054        34.223       -.77508E-06    .25041E-04
  16  Prefactor     .10000E-03    .90461       -.35437E-07** at limit **
  17  Prefactor     .10000E-03    5.2332       -.57679E-07** at limit **
  18  Prefactor     .10000E-03    59.165        .67540E-05** at limit **
  19  Prefactor     .10000E-03    6.1072       -.96148E-07** at limit **
  20  Prefactor     .10000E-03    8.3702       -.10514E-06** at limit **
  21  norm          1.0042        .30606       -.86657E-08    .11158E-03
  22  Prefactor     .10000E-03    2.0049       -.15077E-06** at limit **
  23  Prefactor     11.628        15.886       -.32541E-06    .30840E-04
  24  Prefactor     18.946        14.432       -.56588E-07    .13538E-04
  25  norm          .10000E-03    11.263       -.10707E-06** at limit **
  26  Normalizat    1.1595        .16973        .23703E-05    .16214E-03
  27  Prefactor     .93391        .19204        .80509E-06    .17216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.3084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7075
  Prefactor  = 0.260433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.15239
  Prefactor  = 0.235653
  Prefactor  = 6.3064
  Prefactor  = 10.0539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0042
  Prefactor  = 0.0001
  Prefactor  = 11.6278
  Prefactor  = 18.9455
  norm       = 0.0001
  Normalizat = 1.15949
  Prefactor  = 0.933913
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.502     FROM HESSE     STATUS=OK           490 CALLS     3807 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.308        5.7220        .12480E-03   -1.5066    
   3  Prefactor     .10000E-03    11.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .80364        .68021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7075        6.3155        .16815E-03   -1.5230    
   6  Prefactor     .26043        3.8940        .20834E-02   -1.5606    
   7  Prefactor     .10000E-03    17.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6411        .24495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    222.87        .41312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1524        4.4142        .13041E-03   -1.5212    
  13  Prefactor     .23565        9.5857        .21798E-02   -1.5611    
  14  Prefactor     6.3064        6.3070        .15987E-03   -1.5206    
  15  Prefactor     10.054        33.916        .12633E-03   -1.5074    
  16  Prefactor     .10000E-03    .92524        .72777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2642        .17522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    62.118        .54989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0042        .30729        .22403E-04   -1.5508    
  22  Prefactor     .10000E-03    5.6996        .19298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.628        15.866        .11746E-03   -1.5026    
  24  Prefactor     18.946        14.444        .92017E-04   -1.4837    
  25  norm          .10000E-03    11.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1595        .19097        .21873E-03   -.87864    
  27  Prefactor     .93391        .22056        .28392E-03   -.94966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14337e-08
Minuit parameter uncertainties:
  1  0.00011619
  2  5.72227
  3  7.28662e-05
  4  5.03903e-06
  5  6.31626
  6  2.01384
  7  2.01466e-07
  8  2.11599e-05
  9  3.45585e-05
  10  0.000372719
  11  3.65285e-05
  12  4.41443
  13  3.0058
  14  6.30769
  15  33.9806
  16  4.72556e-06
  17  1.37333e-05
  18  0.000551268
  19  4.71558e-06
  20  1.27896e-05
  21  0.307291
  22  8.46965e-05
  23  15.8719
  24  14.4465
  25  1.30085e-05
  26  0.19108
  27  0.220775
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.727e-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:  9.339e-01  2.208e-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.159e+00  1.911e-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: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902631/likelihoodResults_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.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) = 6152.50173701
delta logL = -2.12561990338e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6152.50171586
delta logL = -1.00565557659e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15105E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2653       1.0000          .0000       10.000    
     3 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93392       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.

 FCN=   6152.502     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9653.6        .90712E-02** at limit **
   2  Index         2.3041        5.5628        .50000       -.19164E-05
   3  Normalizat    1.1595        .65611E-01    .35971E-01    .13327E-03
   4  Prefactor     .93391        .77155E-01    .45436E-01   -.26359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.3041
  Normalizat = 1.15949
  Prefactor  = 0.93391
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.502     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9112.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3041        6.0295        .50000       -.56946    
   3  Normalizat    1.1595        .75737E-01    .21873E-03   -.87864    
   4  Prefactor     .93391        .89665E-01    .28392E-03   -.94966    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79454e-11
Minuit parameter uncertainties:
  1  0.0122027
  2  55.8092
  3  0.0757445
  4  0.0896795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902631': 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) = 6152.50171573
delta logL = 2.43226168095e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.339e-01  8.968e-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.159e+00  7.574e-02  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/902631/cmap_HighResolution_515635201_515894401_4FGL_J1028.3+3108_daily_bin1066.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-01 23:21:55.975521', job_id='902631', GAL2='0.93', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630563715.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1066' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:21:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 902631: <4FGL_J1028.3+3108_daily_bin1066> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1066 157.077 31.1389 515635201 515894401 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 :                                   640.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            694 sec.

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

