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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin475
RA = 157.077, Dec = 31.1389
tmin = 362448001, tmax = 362707201
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='898459', job_status='RUN', time_executed='2021-09-01 22:58:34.933434', time_epoch_executed='1630562314.93' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898459

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898459/ft1_4FGL_J1028.3+3108_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898459/ft2_4FGL_J1028.3+3108_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898459/ft1_4FGL_J1028.3+3108_daily_bin475.fits outfile=/scratch/kocevski/898459/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin475.fits ra=157.077 dec=31.1389 rad=12.0 tmin=362448001.0 tmax=362707201.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 5.71
user 5.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898459/ft1_filtered_4FGL_J1028.3+3108_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/898459/ft2_4FGL_J1028.3+3108_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/898459/ltcube_362448001_362707201_4FGL_J1028.3+3108_daily_bin475.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/898459/ft2_4FGL_J1028.3+3108_daily_bin475.fits
.....................!
real 14.89
user 14.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898459/ft1_filtered_4FGL_J1028.3+3108_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/898459/ft2_4FGL_J1028.3+3108_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/898459/ltcube_362448001_362707201_4FGL_J1028.3+3108_daily_bin475.fits outfile=/scratch/kocevski/898459/expmap_362448001_362707201_4FGL_J1028.3+3108_daily_bin475.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/898459/ltcube_362448001_362707201_4FGL_J1028.3+3108_daily_bin475.fits
.....................!
real 193.97
user 188.64
sys 4.78

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898459/ft1_filtered_4FGL_J1028.3+3108_daily_bin475.fits scfile=/scratch/kocevski/898459/ft2_4FGL_J1028.3+3108_daily_bin475.fits outfile=/scratch/kocevski/898459/cmap_HighResolution_362448001_362707201_4FGL_J1028.3+3108_daily_bin475.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6693       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0782       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0149       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91812       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1789       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.353       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10698E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.356       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.774       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0096       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.379       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4117       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62807       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=   5831.209     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3369 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.362        31.799        .32458E-05    .90440E-05
   2  Prefactor     3.4392        6.5646       -.73060E-06   -.31704E-03
   3  Prefactor     3.6715        10.674       -.61115E-06   -.15232E-03
   4  Prefactor     .10000E-03    1.5658       -.12970E-06** at limit **
   5  norm          .10000E-03    4.9008       -.84587E-07** at limit **
   6  Prefactor     3.0792        3.2237       -.68963E-07   -.12429E-03
   7  Prefactor     .10000E-03    13.998        .15662E-06** at limit **
   8  Prefactor     .10000E-03    1.6391        .13948E-07** at limit **
   9  norm          .10000E-03    3.5103        .58329E-07** at limit **
  10  Prefactor     .10000E-03    39.078       -.34444E-05** at limit **
  11  Prefactor     9.1427        32.751        .15503E-05   -.52383E-04
  12  Prefactor     .92107        2.5997       -.44128E-07   -.67492E-03
  13  Prefactor     .10000E-03    5.0694        .32877E-06** at limit **
  14  Prefactor     3.1754        8.9091       -.10483E-05   -.28714E-03
  15  Prefactor     18.350        26.836       -.13999E-04   -.20636E-04
  16  Prefactor     .10000E-03    1.8630        .62265E-07** at limit **
  17  Prefactor     25.350        14.214        .54779E-07   -.22153E-04
  18  Prefactor     21.776        30.290        .19298E-05   -.86817E-05
  19  Prefactor     .10000E-03    4.7901        .20656E-06** at limit **
  20  Prefactor     .10000E-03    38.590        .33578E-06** at limit **
  21  norm          3.0098        .50015        .16097E-07   -.17717E-03
  22  Prefactor     .10000E-03    1.9316       -.47933E-07** at limit **
  23  Prefactor     .10000E-03    28.460        .15798E-05** at limit **
  24  Prefactor     .10000E-03    7.8345        .37724E-07** at limit **
  25  norm          13.383        15.278       -.34986E-06   -.37318E-04
  26  Normalizat    1.4114        .19529        .23601E-06   -.77618E-05
  27  Prefactor     .62827        .20959        .38909E-06   -.20749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3624
  Prefactor  = 3.43925
  Prefactor  = 3.67147
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.14269
  Prefactor  = 0.921072
  Prefactor  = 0.000100001
  Prefactor  = 3.17541
  Prefactor  = 18.3496
  Prefactor  = 0.0001
  Prefactor  = 25.3499
  Prefactor  = 21.7759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.383
  Normalizat = 1.41136
  Prefactor  = 0.628267
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.209     FROM HESSE     STATUS=OK           498 CALLS     3867 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.362        31.768        .68368E-04   -1.4535    
   2  Prefactor     3.4392        6.5600        .21813E-03   -1.5337    
   3  Prefactor     3.6715        10.683        .21086E-03   -1.5325    
   4  Prefactor     .10000E-03    2.6649        .18346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    20.010        .32605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0792        3.2214        .13442E-03   -1.5357    
   7  Prefactor     .10000E-03    14.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6452        .95405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.5198        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1427        28.145        .13349E-03   -1.5103    
  12  Prefactor     .92107        2.2450        .20002E-02   -1.5516    
  13  Prefactor     .10000E-03    9.1088        .28467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1754        8.7806        .22729E-03   -1.5352    
  15  Prefactor     18.350        26.366        .93489E-04   -1.4851    
  16  Prefactor     .10000E-03    3.0344        .19444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.350        14.143        .79553E-04   -1.4701    
  18  Prefactor     21.776        30.231        .85837E-04   -1.4774    
  19  Prefactor     .10000E-03    4.7929        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0098        .50031        .21215E-04   -1.5361    
  22  Prefactor     .10000E-03    1.9655        .10355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.8423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.383        15.266        .10951E-03   -1.4976    
  26  Normalizat    1.4114        .23117        .22436E-03   -.80301    
  27  Prefactor     .62827        .24388        .35123E-03   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15229e-10
Minuit parameter uncertainties:
  1  31.7833
  2  6.56135
  3  10.6884
  4  8.8549e-06
  5  0.000105649
  6  3.22163
  7  4.30984e-06
  8  1.09067e-06
  9  6.34881e-06
  10  7.5265e-06
  11  28.1855
  12  2.24517
  13  0.000230882
  14  8.78415
  15  26.3827
  16  1.02227e-05
  17  14.1446
  18  30.2519
  19  3.47697e-07
  20  8.70632e-05
  21  0.500315
  22  2.83715e-06
  23  1.13881e-05
  24  6.62652e-07
  25  15.2708
  26  0.23134
  27  0.244293
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  7.527e-06  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.283e-01  2.443e-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.411e+00  2.313e-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: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898459/likelihoodResults_362448001_362707201_4FGL_J1028.3+3108_daily_bin475.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) = 5831.20951715
delta logL = -0.000121756849694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5831.20939535
delta logL = 4.46179910796e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5640       1.0000          .0000       10.000    
     3 'Normalizat'    1.4114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62827       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=   5831.209     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      245 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.041        .90712E-02** at limit **
   2  Index         2.5675        8.4000        .50000       -.74572E-06
   3  Normalizat    1.4114        .30964E-02    .50751E-01    .79695E-05
   4  Prefactor     .62827        .33903E-02    .79312E-01    .30065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56747
  Normalizat = 1.41136
  Prefactor  = 0.628267
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.209     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      278 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    173.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5675        7.9193        .50000       -.50809    
   3  Normalizat    1.4114        .96456E-02    .22436E-03   -.80301    
   4  Prefactor     .62827        .10537E-01    .35123E-03   -1.0641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67898e-09
Minuit parameter uncertainties:
  1  7.9828e-05
  2  234.357
  3  0.00964566
  4  0.0105372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898459': 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) = 5831.20939533
delta logL = 6.23904270469e-08

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  7.983e-05  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.567e+00  2.344e+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:  6.283e-01  1.054e-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.411e+00  9.646e-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/898459/cmap_HighResolution_362448001_362707201_4FGL_J1028.3+3108_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-01 23:11:22.692957', job_id='898459', GAL2='0.63', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630563082.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='6.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='475' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 898459: <4FGL_J1028.3+3108_daily_bin475> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin475> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 22:55:38 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:58:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 22:58:23 2021
Terminated at Wed Sep  1 23:11:23 2021
Results reported at Wed Sep  1 23:11:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin475 157.077 31.1389 362448001 362707201 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 :                                   758.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            945 sec.

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

