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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1055
RA = 157.077, Dec = 31.1389
tmin = 512784001, tmax = 513043201
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='902615', job_status='RUN', time_executed='2021-09-01 23:10:52.224436', time_epoch_executed='1630563052.22' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902615/ft1_4FGL_J1028.3+3108_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902615/ft2_4FGL_J1028.3+3108_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902615/ft1_4FGL_J1028.3+3108_daily_bin1055.fits outfile=/scratch/kocevski/902615/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1055.fits ra=157.077 dec=31.1389 rad=12.0 tmin=512784001.0 tmax=513043201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.40
user 4.17
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902615/ft1_filtered_4FGL_J1028.3+3108_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/902615/ft2_4FGL_J1028.3+3108_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/902615/ltcube_512784001_513043201_4FGL_J1028.3+3108_daily_bin1055.fits outfile=/scratch/kocevski/902615/expmap_512784001_513043201_4FGL_J1028.3+3108_daily_bin1055.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/902615/ltcube_512784001_513043201_4FGL_J1028.3+3108_daily_bin1055.fits
.....................!
real 191.38
user 186.30
sys 4.41

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/902615/ft1_filtered_4FGL_J1028.3+3108_daily_bin1055.fits scfile=/scratch/kocevski/902615/ft2_4FGL_J1028.3+3108_daily_bin1055.fits outfile=/scratch/kocevski/902615/cmap_512784001_513043201_4FGL_J1028.3+3108_daily_bin1055.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/902615/ft1_filtered_4FGL_J1028.3+3108_daily_bin1055.fits scfile=/scratch/kocevski/902615/ft2_4FGL_J1028.3+3108_daily_bin1055.fits outfile=/scratch/kocevski/902615/cmap_HighResolution_512784001_513043201_4FGL_J1028.3+3108_daily_bin1055.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/902615/ft1_filtered_4FGL_J1028.3+3108_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/902615/ft2_4FGL_J1028.3+3108_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902615/Model_4FGL_J1028.3+3108_daily_bin1055.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/902615/ft1_filtered_4FGL_J1028.3+3108_daily_bin1055.fits.....................!
real 65.40
user 63.92
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1597       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.1315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16309       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.900       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8355       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6823       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6744       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42323       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9409       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.839       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7829       1.0000         .10000E-03   10000.    
    21 'norm      '    .65515       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0659       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.425       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1914       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65108       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=   7652.570     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3331 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9235        14.729        .43920E-06    .80563E-05
   2  Prefactor     13.400        6.1125       -.12878E-07   -.47174E-04
   3  Prefactor     7.1601        7.4876        .23384E-06   -.60858E-04
   4  Prefactor     .10000E-03    .76912        .33669E-07** at limit **
   5  norm          8.1318        6.2777        .11427E-05   -.26467E-03
   6  Prefactor     .10000E-03    1.6533       -.63948E-07** at limit **
   7  Prefactor     .10000E-03    12.084        .21135E-07** at limit **
   8  Prefactor     .16424        1.7039        .42433E-06   -.46124E-03
   9  norm          2.2343        8.5421        .11785E-05   -.78761E-04
  10  Prefactor     19.869        41.425       -.56042E-05   -.16924E-03
  11  Prefactor     17.144        16.607       -.12313E-06   -.44914E-04
  12  Prefactor     5.8379        4.3226       -.19710E-07   -.13459E-03
  13  Prefactor     .10000E-03    2.0096       -.48748E-08** at limit **
  14  Prefactor     2.6824        2.8817       -.18320E-06   -.10514E-03
  15  Prefactor     3.6749        46.932        .82134E-06   -.79465E-05
  16  Prefactor     .42274        1.6431        .13778E-05   -.24682E-03
  17  Prefactor     3.9408        5.1405       -.59022E-07   -.10045E-03
  18  Prefactor     33.841        21.942        .23305E-06   -.68756E-05
  19  Prefactor     .10000E-03    2.4712       -.30450E-07** at limit **
  20  Prefactor     9.7828        8.2741        .64042E-07   -.46471E-04
  21  norm          .65518        .20448       -.30749E-07   -.83493E-03
  22  Prefactor     .10000E-03    .93224        .70975E-07** at limit **
  23  Prefactor     1.0671        13.495        .45954E-05   -.86180E-04
  24  Prefactor     .10000E-03    3.6684       -.63372E-07** at limit **
  25  norm          13.426        10.136       -.35536E-06   -.10385E-03
  26  Normalizat    1.1912        .14899       -.27323E-06   -.40624E-03
  27  Prefactor     .65129        .16108       -.93530E-06   -.20345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9235
  Prefactor  = 13.4
  Prefactor  = 7.1601
  Prefactor  = 0.0001
  norm       = 8.13179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.164245
  norm       = 2.23428
  Prefactor  = 19.8688
  Prefactor  = 17.1443
  Prefactor  = 5.83787
  Prefactor  = 0.0001
  Prefactor  = 2.68237
  Prefactor  = 3.67491
  Prefactor  = 0.422737
  Prefactor  = 3.94084
  Prefactor  = 33.8406
  Prefactor  = 0.0001
  Prefactor  = 9.7828
  norm       = 0.655178
  Prefactor  = 0.0001
  Prefactor  = 1.06711
  Prefactor  = 0.0001
  norm       = 13.4261
  Normalizat = 1.19123
  Prefactor  = 0.651289
 **********
 **   18 **HESSE 
 **********

 FCN=   7652.570     FROM HESSE     STATUS=OK           504 CALLS     3835 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9235        14.726        .15248E-03   -1.5182    
   2  Prefactor     13.400        6.1081        .10943E-03   -1.4976    
   3  Prefactor     7.1601        7.4913        .14991E-03   -1.5173    
   4  Prefactor     .10000E-03    1.5000        .14862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.1318        6.3116        .70299E-03   -1.5138    
   6  Prefactor     .10000E-03    2.9544        .20428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16424        15.178        .19982E-02   -1.5627    
   9  norm          2.2343        8.4928        .27456E-03   -1.5409    
  10  Prefactor     19.869        43.507        .89785E-04   -1.4816    
  11  Prefactor     17.144        16.586        .96727E-04   -1.4880    
  12  Prefactor     5.8379        4.2842        .13999E-03   -1.5225    
  13  Prefactor     .10000E-03    2.0386        .12095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6824        2.8801        .14847E-03   -1.5380    
  15  Prefactor     3.6749        46.330        .21071E-03   -1.5325    
  16  Prefactor     .42274        1.6722        .20602E-02   -1.5578    
  17  Prefactor     3.9408        5.1254        .20321E-03   -1.5311    
  18  Prefactor     33.841        21.958        .68886E-04   -1.4544    
  19  Prefactor     .10000E-03    2.4742        .13428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.7828        8.2507        .12812E-03   -1.5082    
  21  norm          .65518        .20427        .21166E-04   -1.5546    
  22  Prefactor     .10000E-03    .95417        .16442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0671        13.767        .47233E-03   -1.5501    
  24  Prefactor     .10000E-03    3.6730        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.426        10.083        .10932E-03   -1.4975    
  26  Normalizat    1.1912        .17188        .20551E-03   -.86874    
  27  Prefactor     .65129        .18254        .30925E-03   -1.0547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38218e-08
Minuit parameter uncertainties:
  1  14.734
  2  6.10843
  3  7.4923
  4  7.57304e-06
  5  6.31207
  6  9.89768e-06
  7  1.48159e-06
  8  3.15763
  9  8.49735
  10  43.5766
  11  16.5907
  12  4.2844
  13  1.74019e-07
  14  2.88027
  15  26.1212
  16  1.67241
  17  5.12597
  18  21.9633
  19  2.57141e-06
  20  8.25168
  21  0.204273
  22  2.76129e-07
  23  7.66758
  24  5.04191e-06
  25  10.0847
  26  0.171966
  27  0.182709
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.987e+01  4.358e+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:  6.513e-01  1.827e-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.191e+00  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/902615/likelihoodResults_512784001_513043201_4FGL_J1028.3+3108_daily_bin1055.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) = 7651.85896568
delta logL = 0.710811210919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7651.83690355
delta logL = 0.732873337805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39118       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4179       1.0000          .0000       10.000    
     3 'Normalizat'    1.1417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69028       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=   7651.837     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      328 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38170        4.9040        .99589E-02    .21990E-02
   2  Index         4.4270        2.0598        .87495E-01    .29245E-03
   3  Normalizat    1.1417        .31149E-01    .36512E-01    .49709E-04
   4  Prefactor     .69036        .35883E-01    .68049E-01    .38141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.381696
  Index      = 4.42704
  Normalizat = 1.14173
  Prefactor  = 0.690358
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.837     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      363 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38170        13.670        .45870E-03   -1.5584    
   2  Index         4.4270        3.8905        .44282E-02   -.11484    
   3  Normalizat    1.1417        .11486        .20927E-03   -.88423    
   4  Prefactor     .69036        .13060        .30112E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19566e-10
Minuit parameter uncertainties:
  1  4.569
  2  4.46978
  3  0.114889
  4  0.130656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902615': 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) = 7651.83689673
delta logL = 0.732880159515

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  3.817e-01  4.569e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  4.427e+00  4.470e+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:  6.904e-01  1.307e-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.142e+00  1.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 157.077 31.139
Photon Index (Free Index): 4.43 +/- 4.47
Photon Flux (Free Index): 4.32e-08 +/- 3.63e-08
Energy Flux (Free Index): 6.08e-06 +/- 6.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/902615/cmap_HighResolution_512784001_513043201_4FGL_J1028.3+3108_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', comment='SUCCESS', energy_flux2='6.08e-06', dlogl='7.33e-01', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-09-01 23:25:51.121221', photon_index_error2='4.47', photon_index2='4.43', ts='0.25', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='6.43e-08', energy_flux_error2='6.87e-06', EG='1.19', time_epoch_completed='1630563951.12', return_code='0', job_id='902615', GAL2='0.69', EG2='1.14', return_code2='102', photon_flux_error2='3.63e-08', ts2='1.78', photon_index='2.23' WHERE bin_id='1055' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 902615: <4FGL_J1028.3+3108_daily_bin1055> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1055 157.077 31.1389 512784001 513043201 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 :                                   895.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            930 sec.

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

