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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1120
RA = 157.077, Dec = 31.1389
tmin = 529632001, tmax = 529891201
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='902712', job_status='RUN', time_executed='2021-09-01 23:14:06.596238', time_epoch_executed='1630563246.6' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902712/ft1_4FGL_J1028.3+3108_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902712/ft2_4FGL_J1028.3+3108_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902712/ft1_4FGL_J1028.3+3108_daily_bin1120.fits outfile=/scratch/kocevski/902712/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1120.fits ra=157.077 dec=31.1389 rad=12.0 tmin=529632001.0 tmax=529891201.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902712/ft1_filtered_4FGL_J1028.3+3108_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/902712/ft2_4FGL_J1028.3+3108_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/902712/ltcube_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.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/902712/ft2_4FGL_J1028.3+3108_daily_bin1120.fits
.....................!
real 14.54
user 14.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902712/ft1_filtered_4FGL_J1028.3+3108_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/902712/ft2_4FGL_J1028.3+3108_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/902712/ltcube_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.fits outfile=/scratch/kocevski/902712/expmap_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.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/902712/ltcube_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.fits
.....................!
real 190.79
user 186.34
sys 4.01

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/902712/ft1_filtered_4FGL_J1028.3+3108_daily_bin1120.fits scfile=/scratch/kocevski/902712/ft2_4FGL_J1028.3+3108_daily_bin1120.fits outfile=/scratch/kocevski/902712/cmap_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902712/ft1_filtered_4FGL_J1028.3+3108_daily_bin1120.fits scfile=/scratch/kocevski/902712/ft2_4FGL_J1028.3+3108_daily_bin1120.fits outfile=/scratch/kocevski/902712/cmap_HighResolution_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8817       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4253       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10716       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0970       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.409       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.221       1.0000         .10000E-03   10000.    
    21 'norm      '    .73679       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .76159       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.167       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.215       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92954       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95782       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=   5437.714     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3328 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.496        28.155        .64211E-06   -.72580E-05
   2  Prefactor     .10000E-03    7.0577       -.19495E-07** at limit **
   3  Prefactor     6.9344        7.4044       -.57143E-06   -.53136E-05
   4  Prefactor     4.8814        2.5334        .40329E-07   -.43366E-04
   5  norm          4.5885        5.0179        .12429E-05   -.10207E-03
   6  Prefactor     3.4646        5.5039       -.76556E-06   -.42983E-03
   7  Prefactor     28.817        32.885        .35159E-05   -.52273E-04
   8  Prefactor     .58863E-01    4.0093        .40971E-06    .41608E-04
   9  norm          3.0977        5.1694        .51422E-06   -.14095E-02
  10  Prefactor     .10000E-03    13.400       -.18552E-06** at limit **
  11  Prefactor     24.417        23.317        .29120E-05   -.73162E-04
  12  Prefactor     4.3042        4.0054       -.59439E-06   -.50844E-04
  13  Prefactor     .10000E-03    2.0559       -.29228E-07** at limit **
  14  Prefactor     2.1718        2.9918        .11120E-05   -.24834E-02
  15  Prefactor     .10000E-03    15.878        .18830E-06** at limit **
  16  Prefactor     .10000E-03    .65539       -.20382E-07** at limit **
  17  Prefactor     7.5466        8.4842        .87802E-07    .39045E-04
  18  Prefactor     .10000E-03    16.841        .17418E-06** at limit **
  19  Prefactor     .10000E-03    3.7102       -.24997E-07** at limit **
  20  Prefactor     21.208        16.688        .48417E-05    .95096E-03
  21  norm          .73681        .30432        .21957E-07    .14165E-03
  22  Prefactor     .76333        3.7843       -.33322E-05    .19667E-03
  23  Prefactor     29.169        17.887       -.56507E-06    .88095E-04
  24  Prefactor     .10000E-03    36.563       -.87242E-06** at limit **
  25  norm          10.216        11.883        .44123E-06    .35559E-04
  26  Normalizat    .92936        .18307       -.18907E-06    .34442E-03
  27  Prefactor     .95796        .19731       -.76788E-06    .27154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4965
  Prefactor  = 0.0001
  Prefactor  = 6.93443
  Prefactor  = 4.88142
  norm       = 4.58845
  Prefactor  = 3.46465
  Prefactor  = 28.8175
  Prefactor  = 0.058863
  norm       = 3.09769
  Prefactor  = 0.0001
  Prefactor  = 24.4174
  Prefactor  = 4.30423
  Prefactor  = 0.0001
  Prefactor  = 2.17182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.54663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2077
  norm       = 0.736809
  Prefactor  = 0.763328
  Prefactor  = 29.1686
  Prefactor  = 0.0001
  norm       = 10.2159
  Normalizat = 0.929357
  Prefactor  = 0.957955
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.714     FROM HESSE     STATUS=NOT POSDEF   494 CALLS     3822 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.496        27.624        .95751E-04   -1.4871    
   2  Prefactor     .10000E-03    6.9720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9344        8.4926        .15232E-03   -1.5181    
   4  Prefactor     4.8814        2.5539        .80648E-04   -1.5266    
   5  norm          4.5885        4.8929        .16616E-03   -1.5280    
   6  Prefactor     3.4646        207.36        .15593E-03   -1.5336    
   7  Prefactor     28.817        32.551        .74643E-04   -1.4634    
   8  Prefactor     .58863E-01    8918.6        .21255E-02   -1.5659    
   9  norm          3.0977        5.7711        .11522E-02   -1.5356    
  10  Prefactor     .10000E-03    12.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.417        25.545        .81080E-04   -1.4719    
  12  Prefactor     4.3042        3.9777        .13589E-03   -1.5293    
  13  Prefactor     .10000E-03    1.9946        .10320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1718        4.1546        .10245E-02   -1.5413    
  15  Prefactor     .10000E-03    15.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .64163        .58263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5466        8.3232        .14600E-03   -1.5158    
  18  Prefactor     .10000E-03    16.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5852        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.208        16.322        .86948E-04   -1.4787    
  21  norm          .73681        .29783        .24718E-04   -1.5536    
  22  Prefactor     .76333        5.0879        .20567E-02   -1.5533    
  23  Prefactor     29.169        17.492        .74185E-04   -1.4627    
  24  Prefactor     .10000E-03    35.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.216        11.633        .12537E-03   -1.5069    
  26  Normalizat    .92936        .18840        .23308E-03   -.95436    
  27  Prefactor     .95796        .20509        .26933E-03   -.94144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.74597e-08
Minuit parameter uncertainties:
  1  27.644
  2  5.9408e-06
  3  8.49407
  4  2.55396
  5  4.89328
  6  53.8022
  7  32.5707
  8  52.8228
  9  5.77218
  10  4.92353e-06
  11  25.5567
  12  3.97797
  13  5.4425e-06
  14  4.15515
  15  3.90551e-06
  16  5.02903e-07
  17  8.32452
  18  3.3638e-07
  19  7.18403e-07
  20  16.3251
  21  0.297828
  22  3.94165
  23  17.4951
  24  0.000121066
  25  11.6357
  26  0.188529
  27  0.205258
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5437.71356561

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  4.924e-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:  9.580e-01  2.053e-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.294e-01  1.885e-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: 3.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902712/likelihoodResults_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.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) = 5437.71392077
delta logL = -0.000355162271262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5437.7135674
delta logL = -1.78688060259e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13182E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2048       1.0000          .0000       10.000    
     3 'Normalizat'    .92958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95768       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5437.714     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10319E-03    8.8754        .18142E-01** at limit **
   2  Index         2.1159        5.9702        .50000        .14079E-04
   3  Normalizat    .92936        .31885E-02    .23308E-03   -.66824E-05
   4  Prefactor     .95795        .37554E-02    .26933E-03   -.15618E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103187
  Index      = 2.11588
  Normalizat = 0.929356
  Prefactor  = 0.957955
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.714     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10319E-03    93.049        .28101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1159        5.2312        .50000       -.61483    
   3  Normalizat    .92936        .10394E-01    .93231E-05   -.95436    
   4  Prefactor     .95795        .12242E-01    .10773E-04   -.94144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.85817e-09
Minuit parameter uncertainties:
  1  0.0344941
  2  341.87
  3  0.0103936
  4  0.0122416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902712': 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) = 5437.71356527
delta logL = 3.42823113897e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.032e-04  3.449e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.116e+00  3.419e+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:  9.580e-01  1.224e-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:  9.294e-01  1.039e-02  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/902712/cmap_HighResolution_529632001_529891201_4FGL_J1028.3+3108_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-03', job_status='DONE', photon_flux_upper_limit='3.85e-08', time_completed='2021-09-01 23:26:16.802153', job_id='902712', GAL2='0.96', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630563976.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.96', dlogl='3.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1120' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 902712: <4FGL_J1028.3+3108_daily_bin1120> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1120 157.077 31.1389 529632001 529891201 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 :                                   719.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            950 sec.

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

