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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1418
RA = 157.077, Dec = 31.1389
tmin = 606873601, tmax = 607132801
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='904221', job_status='RUN', time_executed='2021-09-01 23:16:24.424187', time_epoch_executed='1630563384.42' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904221/ft1_4FGL_J1028.3+3108_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904221/ft2_4FGL_J1028.3+3108_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904221/ft1_4FGL_J1028.3+3108_daily_bin1418.fits outfile=/scratch/kocevski/904221/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1418.fits ra=157.077 dec=31.1389 rad=12.0 tmin=606873601.0 tmax=607132801.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.40
user 5.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904221/ft1_filtered_4FGL_J1028.3+3108_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/904221/ft2_4FGL_J1028.3+3108_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/904221/ltcube_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.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/904221/ft2_4FGL_J1028.3+3108_daily_bin1418.fits
.....................!
real 15.90
user 15.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904221/ft1_filtered_4FGL_J1028.3+3108_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/904221/ft2_4FGL_J1028.3+3108_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/904221/ltcube_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.fits outfile=/scratch/kocevski/904221/expmap_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.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/904221/ltcube_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.fits
.....................!
real 191.66
user 187.00
sys 3.87

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/904221/ft1_filtered_4FGL_J1028.3+3108_daily_bin1418.fits scfile=/scratch/kocevski/904221/ft2_4FGL_J1028.3+3108_daily_bin1418.fits outfile=/scratch/kocevski/904221/cmap_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904221/ft1_filtered_4FGL_J1028.3+3108_daily_bin1418.fits scfile=/scratch/kocevski/904221/ft2_4FGL_J1028.3+3108_daily_bin1418.fits outfile=/scratch/kocevski/904221/cmap_HighResolution_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6729       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6762       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11100E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6042       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5833       1.0000         .10000E-03   10000.    
     9 'norm      '    .10570E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.519       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2958       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3622       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75392       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8729       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.188       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.761       1.0000         .10000E-03   10000.    
    21 'norm      '    2.2727       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11452E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4051       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
    25 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91829       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0476       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=   6423.802     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     2858 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3101        19.642        .29829E-06   -.10113E-05
   2  Prefactor     3.6703        4.9251        .53556E-06    .14874E-04
   3  Prefactor     1.6712        8.2352        .11045E-04    .50887E-04
   4  Prefactor     .10000E-03    1.1940       -.88371E-08** at limit **
   5  norm          19.299        8.4913        .12718E-06   -.53896E-05
   6  Prefactor     2.6029        3.1208       -.18114E-06   -.12724E-03
   7  Prefactor     18.686        30.694        .24255E-06   -.22059E-04
   8  Prefactor     2.5782        5.1299       -.47710E-06   -.20468E-03
   9  norm          .10000E-03    6.8838        .26600E-06** at limit **
  10  Prefactor     14.779        51.136        .16630E-04   -.29065E-05
  11  Prefactor     19.497        57.297       -.15219E-04   -.23133E-05
  12  Prefactor     14.513        5.5760        .11840E-07   -.15712E-03
  13  Prefactor     3.2709        9.1473        .49422E-05   -.13188E-03
  14  Prefactor     5.3574        6.1327        .12370E-05    .25101E-04
  15  Prefactor     .10000E-03    20.288        .71301E-06** at limit **
  16  Prefactor     .75309        1.6948        .15393E-06    .18585E-04
  17  Prefactor     1.8718        5.3182       -.10441E-06   -.21671E-05
  18  Prefactor     .10000E-03    45.063       -.17029E-05** at limit **
  19  Prefactor     12.191        8.9607        .58196E-08    .16882E-04
  20  Prefactor     17.779        13.196        .65527E-06    .20875E-03
  21  norm          2.2727        .39992        .92799E-08   -.18753E-03
  22  Prefactor     .10001E-03    1.5683       -.24789E-06** at limit **
  23  Prefactor     8.4064        8.8722        .97834E-07    .75425E-05
  24  Prefactor     11.601        12.066        .27112E-07    .22744E-05
  25  norm          .10000E-03    12.817       -.23890E-06** at limit **
  26  Normalizat    .91886        .17682        .58869E-06    .11524E-03
  27  Prefactor     1.0474        .19614       -.31205E-05    .63706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31011
  Prefactor  = 3.67031
  Prefactor  = 1.67124
  Prefactor  = 0.0001
  norm       = 19.2985
  Prefactor  = 2.60291
  Prefactor  = 18.686
  Prefactor  = 2.57816
  norm       = 0.0001
  Prefactor  = 14.7792
  Prefactor  = 19.4965
  Prefactor  = 14.5129
  Prefactor  = 3.27086
  Prefactor  = 5.35743
  Prefactor  = 0.0001
  Prefactor  = 0.753086
  Prefactor  = 1.87184
  Prefactor  = 0.0001
  Prefactor  = 12.1909
  Prefactor  = 17.7789
  norm       = 2.27267
  Prefactor  = 0.000100014
  Prefactor  = 8.40638
  Prefactor  = 11.6014
  norm       = 0.0001
  Normalizat = 0.918862
  Prefactor  = 1.04738
 **********
 **   18 **HESSE 
 **********

 FCN=   6423.802     FROM HESSE     STATUS=OK           506 CALLS     3364 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3101        19.623        .13136E-03   -1.5098    
   2  Prefactor     3.6703        4.9031        .19702E-03   -1.5325    
   3  Prefactor     1.6712        8.2874        .16274E-02   -1.5449    
   4  Prefactor     .10000E-03    4.7057        .16595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.299        8.4871        .91152E-04   -1.4829    
   6  Prefactor     2.6029        3.0606        .13609E-03   -1.5385    
   7  Prefactor     18.686        30.705        .92648E-04   -1.4843    
   8  Prefactor     2.5782        5.0266        .21564E-03   -1.5387    
   9  norm          .10000E-03    6.9221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.779        51.287        .10392E-03   -1.4939    
  11  Prefactor     19.497        57.529        .90911E-04   -1.4825    
  12  Prefactor     14.513        5.5776        .10511E-03   -1.4946    
  13  Prefactor     3.2709        9.1826        .20218E-03   -1.5346    
  14  Prefactor     5.3574        6.0988        .86775E-03   -1.5245    
  15  Prefactor     .10000E-03    20.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .75309        1.6461        .14726E-03   -1.5534    
  17  Prefactor     1.8718        5.2705        .29475E-03   -1.5434    
  18  Prefactor     .10000E-03    45.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.191        8.9410        .11474E-03   -1.5010    
  20  Prefactor     17.779        12.577        .95036E-04   -1.4864    
  21  norm          2.2727        .40141        .20226E-04   -1.5406    
  22  Prefactor     .10001E-03    18.316        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4064        8.8729        .13828E-03   -1.5128    
  24  Prefactor     11.601        12.083        .11758E-03   -1.5027    
  25  norm          .10000E-03    13.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .91886        .20516        .24928E-03   -.95800    
  27  Prefactor     1.0474        .22996        .28024E-03   -.91167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51192e-10
Minuit parameter uncertainties:
  1  19.6365
  2  4.9036
  3  7.44462
  4  6.90471e-05
  5  8.48764
  6  3.06074
  7  30.7307
  8  5.02744
  9  2.13099e-05
  10  51.4409
  11  57.693
  12  5.57781
  13  9.1866
  14  6.09953
  15  5.98593e-05
  16  1.64619
  17  5.27181
  18  0.000118677
  19  8.94201
  20  12.5793
  21  0.401407
  22  0.00101064
  23  8.87433
  24  12.0859
  25  1.2135e-05
  26  0.205333
  27  0.230173
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.478e+01  5.144e+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:  1.047e+00  2.302e-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.189e-01  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/904221/likelihoodResults_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.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) = 6422.4988169
delta logL = 1.30337554692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6422.45395194
delta logL = 1.3482405108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77511       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3516       1.0000          .0000       10.000    
     3 'Normalizat'    .82906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1108       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=   6422.454     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      272 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77300        7.2859        .10222E-01    .61336E-03
   2  Index         4.3526        1.8778        .89757E-01    .17391E-03
   3  Normalizat    .82918        .41802E-01    .43988E-01   -.15122E-04
   4  Prefactor     1.1107        .49771E-01    .61730E-01    .14060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.772997
  Index      = 4.35255
  Normalizat = 0.82918
  Prefactor  = 1.11068
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.454     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      307 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77300        16.952        .46475E-03   -1.5532    
   2  Index         4.3526        3.3126        .33420E-02   -.12985    
   3  Normalizat    .82918        .15416        .26094E-03   -.98995    
   4  Prefactor     1.1107        .18101        .27301E-03   -.89126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.64257e-07
Minuit parameter uncertainties:
  1  7.24167
  2  3.62778
  3  0.15424
  4  0.18111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904221': 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) = 6422.45395146
delta logL = 1.34824099283

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  7.730e-01  7.242e+00  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  4.353e+00  3.628e+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:  1.111e+00  1.811e-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:  8.292e-01  1.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 157.077 31.139
Photon Index (Free Index): 4.35 +/- 3.63
Photon Flux (Free Index): 7.20e-08 +/- 4.78e-08
Energy Flux (Free Index): 1.02e-05 +/- 7.58e-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/904221/cmap_HighResolution_606873601_607132801_4FGL_J1028.3+3108_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='1.35e+00', photon_flux2='7.20e-08', job_status='DONE', time_completed='2021-09-01 23:29:27.234859', photon_index_error2='3.63', photon_index2='4.35', ts='0.10', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='7.58e-06', EG='0.92', time_epoch_completed='1630564167.23', return_code='0', job_id='904221', GAL2='1.11', EG2='0.83', return_code2='102', photon_flux_error2='4.78e-08', ts2='2.98', photon_index='2.23' WHERE bin_id='1418' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:29:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 904221: <4FGL_J1028.3+3108_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1418> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  1 23:15:33 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:16:13 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:16:13 2021
Terminated at Wed Sep  1 23:29:28 2021
Results reported at Wed Sep  1 23:29:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1418 157.077 31.1389 606873601 607132801 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 :                                   773.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             355.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            835 sec.

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

