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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin868
RA = 157.077, Dec = 31.1389
tmin = 464313601, tmax = 464572801
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='901289', job_status='RUN', time_executed='2021-09-01 23:06:48.715557', time_epoch_executed='1630562808.72' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901289/ft1_4FGL_J1028.3+3108_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901289/ft2_4FGL_J1028.3+3108_daily_bin868.fits


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

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

Done.
real 3.39
user 3.15
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901289/ft1_filtered_4FGL_J1028.3+3108_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/901289/ft2_4FGL_J1028.3+3108_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/901289/ltcube_464313601_464572801_4FGL_J1028.3+3108_daily_bin868.fits outfile=/scratch/kocevski/901289/expmap_464313601_464572801_4FGL_J1028.3+3108_daily_bin868.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/901289/ltcube_464313601_464572801_4FGL_J1028.3+3108_daily_bin868.fits
.....................!
real 191.64
user 187.11
sys 4.07

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/901289/ft1_filtered_4FGL_J1028.3+3108_daily_bin868.fits scfile=/scratch/kocevski/901289/ft2_4FGL_J1028.3+3108_daily_bin868.fits outfile=/scratch/kocevski/901289/cmap_464313601_464572801_4FGL_J1028.3+3108_daily_bin868.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901289/ft1_filtered_4FGL_J1028.3+3108_daily_bin868.fits scfile=/scratch/kocevski/901289/ft2_4FGL_J1028.3+3108_daily_bin868.fits outfile=/scratch/kocevski/901289/cmap_HighResolution_464313601_464572801_4FGL_J1028.3+3108_daily_bin868.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2539       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.406       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2597       1.0000         .10000E-03   10000.    
     9 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15597       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.554       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5164       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5643       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11206E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.232       1.0000         .10000E-03   10000.    
    25 'norm      '    .10413E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90966       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98074       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=   6071.374     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     2866 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.035        .10718E-06** at limit **
   2  Prefactor     9.2580        8.2886       -.70442E-06    .80519E-04
   3  Prefactor     .10000E-03    4.3061        .41148E-07** at limit **
   4  Prefactor     .10000E-03    .49783       -.35498E-08** at limit **
   5  norm          18.400        8.8857       -.22687E-06    .11610E-03
   6  Prefactor     1.2706        3.6321       -.33349E-05   -.96234E-03
   7  Prefactor     .10000E-03    30.843        .47923E-05** at limit **
   8  Prefactor     8.2656        5.4667        .19330E-05   -.47226E-03
   9  norm          .10000E-03    6.9809        .97026E-08** at limit **
  10  Prefactor     .10027E-03    44.325       -.20621E-06** at limit **
  11  Prefactor     .10000E-03    31.425       -.53631E-05** at limit **
  12  Prefactor     .10000E-03    2.3580       -.96934E-08** at limit **
  13  Prefactor     .10000E-03    2.4633       -.23042E-07** at limit **
  14  Prefactor     33.556        10.530        .71077E-06   -.38091E-03
  15  Prefactor     .10000E-03    25.976        .44469E-05** at limit **
  16  Prefactor     .10000E-03    1.0969       -.13407E-07** at limit **
  17  Prefactor     13.613        12.991       -.13176E-05    .17567E-03
  18  Prefactor     .10000E-03    25.527       -.41198E-05** at limit **
  19  Prefactor     3.5199        9.5488        .11296E-06   -.10750E-03
  20  Prefactor     .10000E-03    8.8051       -.10648E-06** at limit **
  21  norm          1.5642        .34483       -.11268E-07    .28055E-03
  22  Prefactor     .10000E-03    1.2709       -.84614E-08** at limit **
  23  Prefactor     .10000E-03    8.2518        .10043E-06** at limit **
  24  Prefactor     11.236        10.669        .69003E-06   -.12507E-03
  25  norm          .10000E-03    5.8190       -.18870E-07** at limit **
  26  Normalizat    .90980        .17002        .96279E-07    .11442E-03
  27  Prefactor     .98082        .19087        .24430E-06    .74065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.3998
  Prefactor  = 1.27057
  Prefactor  = 0.000100003
  Prefactor  = 8.26556
  norm       = 0.0001
  Prefactor  = 0.000100265
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 33.5558
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.6126
  Prefactor  = 0.000100002
  Prefactor  = 3.51989
  Prefactor  = 0.0001
  norm       = 1.56422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2362
  norm       = 0.0001
  Normalizat = 0.909798
  Prefactor  = 0.980819
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.374     FROM HESSE     STATUS=OK           500 CALLS     3366 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2580        8.3055        .13175E-03   -1.5099    
   3  Prefactor     .10000E-03    4.3204        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .49921        .53677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.400        8.8825        .93355E-04   -1.4850    
   6  Prefactor     1.2706        4.0572        .23622E-03   -1.5483    
   7  Prefactor     .10000E-03    30.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.2656        5.5849        .12711E-03   -1.5133    
   9  norm          .10000E-03    7.0903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10027E-03    44.002        .15348       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4128        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2830        .41418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     33.556        10.448        .69177E-04   -1.4549    
  15  Prefactor     .10000E-03    25.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1229        .15915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.613        12.837        .10851E-03   -1.4970    
  18  Prefactor     .10000E-03    25.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5199        9.4798        .21559E-03   -1.5333    
  20  Prefactor     .10000E-03    8.8936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5642        .34605        .20684E-04   -1.5458    
  22  Prefactor     .10000E-03    1.2917        .85726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.2923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.236        10.661        .11954E-03   -1.5037    
  25  norm          .10000E-03    5.8409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .90980        .19817        .24384E-03   -.96117    
  27  Prefactor     .98082        .22225        .27037E-03   -.93372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61085e-09
Minuit parameter uncertainties:
  1  2.69908e-06
  2  8.30654
  3  5.38539e-06
  4  7.16957e-07
  5  8.88314
  6  4.05809
  7  0.000590471
  8  5.58528
  9  2.08752e-05
  10  0.00684021
  11  0.000614586
  12  4.71052e-06
  13  0.000125785
  14  10.4486
  15  0.000498924
  16  1.63484e-06
  17  12.8392
  18  0.000422264
  19  9.48389
  20  4.1114e-06
  21  0.346054
  22  2.61805e-07
  23  1.44364e-05
  24  10.663
  25  2.10014e-06
  26  0.198326
  27  0.222457
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.003e-04  6.840e-03  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.808e-01  2.225e-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:  9.098e-01  1.983e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901289/likelihoodResults_464313601_464572801_4FGL_J1028.3+3108_daily_bin868.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) = 6071.37413608
delta logL = -9.62037120189e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6071.37413608
delta logL = -9.61236764851e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2344       1.0000          .0000       10.000    
     3 'Normalizat'    .90980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98081       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=   6071.371     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      301 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8512        1422.2        .90712E-02    .46535E-04
   2  Index         1.9013        1.4815        .50000        .56900E-05
   3  Normalizat    .91031        .11277E-01    .45027E-01    .11534E-03
   4  Prefactor     .97874        .12996E-01    .46027E-01    .26498E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85116
  Index      = 1.90134
  Normalizat = 0.910313
  Prefactor  = 0.978741
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.371     FROM HESSE     STATUS=OK            33 CALLS      334 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8512        235.04        .36285E-03   -1.5267    
   2  Index         1.9013        2.5282        .10787E-01   -.66840    
   3  Normalizat    .91031        .19162        .24378E-03   -.96099    
   4  Prefactor     .97874        .22244        .27063E-03   -.93442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34829e-10
Minuit parameter uncertainties:
  1  67.8179
  2  2.74714
  3  0.191764
  4  0.222646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901289': 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) = 6071.371137
delta logL = 0.00299811011882

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.851e+00  6.782e+01  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.901e+00  2.747e+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:  9.787e-01  2.226e-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:  9.103e-01  1.918e-01  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/901289/cmap_HighResolution_464313601_464572801_4FGL_J1028.3+3108_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-01 23:19:05.906677', job_id='901289', GAL2='0.98', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630563545.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.00e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='868' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:19:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 901289: <4FGL_J1028.3+3108_daily_bin868> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin868> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:05:33 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:06:36 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:06:36 2021
Terminated at Wed Sep  1 23:19:06 2021
Results reported at Wed Sep  1 23:19:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin868 157.077 31.1389 464313601 464572801 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 :                                   727.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            813 sec.

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

