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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1262
RA = 157.077, Dec = 31.1389
tmin = 566438401, tmax = 566697601
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='902918', job_status='RUN', time_executed='2021-09-01 23:14:21.929909', time_epoch_executed='1630563261.93' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902918

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902918/ft1_4FGL_J1028.3+3108_daily_bin1262.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902918/ft2_4FGL_J1028.3+3108_daily_bin1262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902918/ft1_4FGL_J1028.3+3108_daily_bin1262.fits outfile=/scratch/kocevski/902918/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1262.fits ra=157.077 dec=31.1389 rad=12.0 tmin=566438401.0 tmax=566697601.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.26
user 2.04
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902918/ft1_filtered_4FGL_J1028.3+3108_daily_bin1262.fits" evtable="EVENTS" scfile=/scratch/kocevski/902918/ft2_4FGL_J1028.3+3108_daily_bin1262.fits sctable="SC_DATA" outfile=/scratch/kocevski/902918/ltcube_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.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/902918/ft2_4FGL_J1028.3+3108_daily_bin1262.fits
.....................!
real 19.12
user 18.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902918/ft1_filtered_4FGL_J1028.3+3108_daily_bin1262.fits evtable="EVENTS" scfile=/scratch/kocevski/902918/ft2_4FGL_J1028.3+3108_daily_bin1262.fits sctable="SC_DATA" expcube=/scratch/kocevski/902918/ltcube_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.fits outfile=/scratch/kocevski/902918/expmap_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.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/902918/ltcube_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.fits
.....................!
real 192.66
user 187.01
sys 4.94

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/902918/ft1_filtered_4FGL_J1028.3+3108_daily_bin1262.fits scfile=/scratch/kocevski/902918/ft2_4FGL_J1028.3+3108_daily_bin1262.fits outfile=/scratch/kocevski/902918/cmap_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902918/ft1_filtered_4FGL_J1028.3+3108_daily_bin1262.fits scfile=/scratch/kocevski/902918/ft2_4FGL_J1028.3+3108_daily_bin1262.fits outfile=/scratch/kocevski/902918/cmap_HighResolution_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.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.61
user 0.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5351       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3327       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3717       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51818E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3714       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5387       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6565       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12284E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26556E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12445       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.581       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.3162       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2663       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71606       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=   5475.288     FROM MIGRAD    STATUS=CONVERGED   1171 CALLS     3854 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.031        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.6630        .17055E-02** at limit **
   3  Prefactor     5.5352        11.632        .17077E-03   -.21769E-04
   4  Prefactor     1.3328        2.1471        .13424E-03   -.97032E-03
   5  norm          .10000E-03    4.0664        .14538E-02** at limit **
   6  Prefactor     2.3735        5.0504        .21927E-03   -.36749E-03
   7  Prefactor     .10001E-03    94.452        .18142E-02** at limit **
   8  Prefactor     .10102E-03    78.487        .23708E-02** at limit **
   9  norm          .10000E-03    9.4643        .18142E-02** at limit **
  10  Prefactor     36.938        46.569        .65945E-04    .53477E-04
  11  Prefactor     .10000E-03    9.6316        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.7798        .96091E-03** at limit **
  13  Prefactor     .10000E-03    2.9079        .12227E-02** at limit **
  14  Prefactor     7.3720        6.2817        .14772E-03   -.19278E-03
  15  Prefactor     .10000E-03    16.515        .18142E-02** at limit **
  16  Prefactor     4.5385        2.3984        .78931E-04    .90309E-04
  17  Prefactor     .10000E-03    1.7800        .96361E-03** at limit **
  18  Prefactor     9.6569        19.199        .12896E-03    .28211E-05
  19  Prefactor     .10001E-03    8.3500        .27712E-02** at limit **
  20  Prefactor     .10042E-03    80.485        .38078E-02** at limit **
  21  norm          1.1884        .31850        .20511E-04    .25806E-02
  22  Prefactor     .12520        3.7402        .17130E-02    .32646E-03
  23  Prefactor     19.582        13.732        .90513E-04    .19870E-03
  24  Prefactor     .10000E-03    31.443        .36285E-03** at limit **
  25  norm          9.3174        13.429        .13130E-03   -.23378E-05
  26  Normalizat    1.2663        .21293        .21316E-03    .39305E-03
  27  Prefactor     .71599        .23251        .31176E-03    .58064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53516
  Prefactor  = 1.3328
  norm       = 0.0001
  Prefactor  = 2.37348
  Prefactor  = 0.000100013
  Prefactor  = 0.000101015
  norm       = 0.0001
  Prefactor  = 36.9381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37196
  Prefactor  = 0.0001
  Prefactor  = 4.5385
  Prefactor  = 0.0001
  Prefactor  = 9.65693
  Prefactor  = 0.000100007
  Prefactor  = 0.000100415
  norm       = 1.18837
  Prefactor  = 0.1252
  Prefactor  = 19.582
  Prefactor  = 0.0001
  norm       = 9.3174
  Normalizat = 1.26631
  Prefactor  = 0.715992
 **********
 **   18 **HESSE 
 **********

 FCN=   5475.288     FROM HESSE     STATUS=OK           464 CALLS     4318 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6661        .34111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5352        11.628        .68308E-05   -1.5237    
   4  Prefactor     1.3328        2.1468        .53694E-05   -1.5477    
   5  norm          .10000E-03    4.0668        .29076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3735        4.9708        .87709E-05   -1.5400    
   7  Prefactor     .10001E-03    94.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10102E-03    79.007        .94833E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.4701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.938        46.568        .13189E-04   -1.4492    
  11  Prefactor     .10000E-03    9.6317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7799        .19218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9087        .24453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3720        6.2813        .59090E-05   -1.5165    
  15  Prefactor     .10000E-03    16.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5385        2.3983        .31572E-05   -1.5282    
  17  Prefactor     .10000E-03    1.7800        .19272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6569        19.199        .51583E-05   -1.5086    
  19  Prefactor     .10001E-03    8.3991        .55423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10042E-03    83.723        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1884        .31849        .41022E-05   -1.5490    
  22  Prefactor     .12520        3.7404        .68520E-04   -1.5637    
  23  Prefactor     19.582        13.732        .36205E-05   -1.4823    
  24  Prefactor     .10000E-03    31.444        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.3174        13.428        .52521E-05   -1.5097    
  26  Normalizat    1.2663        .21302        .42633E-04   -.84578    
  27  Prefactor     .71599        .23258        .62351E-04   -1.0290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03008e-08
Minuit parameter uncertainties:
  1  4.15402e-05
  2  2.00768e-05
  3  11.6331
  4  2.14696
  5  6.59261e-06
  6  4.97168
  7  0.00222387
  8  0.0179341
  9  3.90809e-05
  10  46.614
  11  3.96687e-05
  12  2.67319e-06
  13  4.8182e-06
  14  6.28185
  15  2.43524e-05
  16  2.39839
  17  3.35287e-06
  18  19.211
  19  0.000469792
  20  0.0118094
  21  0.31849
  22  1.36819
  23  13.7338
  24  9.3462e-05
  25  13.4321
  26  0.213169
  27  0.232902
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.160e-01  2.329e-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.266e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 157.077 31.139
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.98e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 8.34e-06 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/902918/likelihoodResults_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5475.24468608
delta logL = 0.0431771250278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5475.24356952
delta logL = 0.0442936780873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.255       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5460       1.0000          .0000       10.000    
     3 'Normalizat'    1.2566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72187       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=   5475.244     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      319 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.217        60.331        .78181E-04    .80473E-04
   2  Index         2.5479        1.2991        .80585E-02    .73636E-04
   3  Normalizat    1.2565        .20852        .21389E-03    .16261E-03
   4  Prefactor     .72235        .23244        .31050E-03   -.16850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.217
  Index      = 2.54787
  Normalizat = 1.25645
  Prefactor  = 0.722355
 **********
 **   18 **HESSE 
 **********

 FCN=   5475.244     FROM HESSE     STATUS=OK            25 CALLS      344 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.217        50.404        .15636E-04   -1.4683    
   2  Index         2.5479        1.0876        .32234E-03   -.51258    
   3  Normalizat    1.2565        .20716        .42777E-04   -.84876    
   4  Prefactor     .72235        .23170        .12420E-04   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22723e-10
Minuit parameter uncertainties:
  1  50.4864
  2  1.09923
  3  0.207298
  4  0.232014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902918': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5475.24356222
delta logL = 0.0443009826358

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.224e-01  2.320e-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.256e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 157.077 31.139
Photon Index (Free Index): 2.55 +/- 1.10
Photon Flux (Free Index): 2.78e-08 +/- 4.25e-08
Energy Flux (Free Index): 7.68e-06 +/- 9.18e-06

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/902918/cmap_HighResolution_566438401_566697601_4FGL_J1028.3+3108_daily_bin1262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', comment='SUCCESS', photon_flux='1.98e-08', energy_flux2='7.68e-06', photon_flux_error='2.49e-08', dlogl='4.43e-02', energy_flux='8.34e-06', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-09-01 23:27:14.390510', photon_index_error2='1.10', photon_index2='2.55', ts='1.11', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='8.74e-08', energy_flux_error2='9.18e-06', EG='1.27', time_epoch_completed='1630564034.39', return_code='0', job_id='902918', GAL2='0.72', EG2='1.26', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.25e-08', ts2='1.19', photon_index='2.23' WHERE bin_id='1262' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:27:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 902918: <4FGL_J1028.3+3108_daily_bin1262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1262 157.077 31.1389 566438401 566697601 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 :                                   770.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            991 sec.

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

