/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 131 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1028.3+3108_daily_bin4
RA = 157.077, Dec = 31.1389
tmin = 240364801, tmax = 240624001
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='895540', job_status='RUN', time_executed='2021-09-01 22:48:04.757225', time_epoch_executed='1630561684.76' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895540/ft1_4FGL_J1028.3+3108_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895540/ft2_4FGL_J1028.3+3108_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895540/ft1_4FGL_J1028.3+3108_daily_bin4.fits outfile=/scratch/kocevski/895540/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin4.fits ra=157.077 dec=31.1389 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.25
user 1.05
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895540/ft1_filtered_4FGL_J1028.3+3108_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/895540/ft2_4FGL_J1028.3+3108_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/895540/ltcube_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.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/895540/ft2_4FGL_J1028.3+3108_daily_bin4.fits
.....................!
real 17.59
user 17.25
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895540/ft1_filtered_4FGL_J1028.3+3108_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/895540/ft2_4FGL_J1028.3+3108_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/895540/ltcube_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.fits outfile=/scratch/kocevski/895540/expmap_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.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/895540/ltcube_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.fits
.....................!
real 159.10
user 154.52
sys 4.23

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/895540/ft1_filtered_4FGL_J1028.3+3108_daily_bin4.fits scfile=/scratch/kocevski/895540/ft2_4FGL_J1028.3+3108_daily_bin4.fits outfile=/scratch/kocevski/895540/cmap_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895540/ft1_filtered_4FGL_J1028.3+3108_daily_bin4.fits scfile=/scratch/kocevski/895540/ft2_4FGL_J1028.3+3108_daily_bin4.fits outfile=/scratch/kocevski/895540/cmap_HighResolution_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3708       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4560       1.0000         .10000E-03   10000.    
     5 'norm      '    24.648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0683       1.0000         .10000E-03   10000.    
     9 'norm      '    9.3494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14665E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.414       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3876       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.807       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.065       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8461       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.764       1.0000         .10000E-03   10000.    
    25 'norm      '    25.890       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .59437       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5610       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=   5291.029     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3259 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.662        32.793       -.84477E-06    .75937E-05
   2  Prefactor     3.3698        7.4288       -.18345E-05   -.32361E-03
   3  Prefactor     .10000E-03    3.1576       -.13408E-06** at limit **
   4  Prefactor     1.4566        2.6836       -.53954E-06   -.69104E-03
   5  norm          24.648        10.050       -.22573E-06    .31244E-04
   6  Prefactor     .10000E-03    1.4378       -.15237E-06** at limit **
   7  Prefactor     .10000E-03    69.486       -.25165E-04** at limit **
   8  Prefactor     2.0643        4.9321        .12124E-05   -.10010E-02
   9  norm          9.3444        10.031        .25296E-05   -.12806E-03
  10  Prefactor     .10000E-03    15.939        .31464E-06** at limit **
  11  Prefactor     .10000E-03    66.034        .25616E-04** at limit **
  12  Prefactor     .10000E-03    2.3448        .50134E-06** at limit **
  13  Prefactor     1.8011        10.603        .14176E-04   -.33011E-03
  14  Prefactor     11.730        9.1154       -.67385E-06   -.66101E-04
  15  Prefactor     34.373        52.447       -.54427E-04   -.18551E-03
  16  Prefactor     6.3877        3.0629       -.54867E-07   -.19988E-04
  17  Prefactor     .10000E-03    5.2758       -.87228E-07** at limit **
  18  Prefactor     .10000E-03    14.590       -.41800E-06** at limit **
  19  Prefactor     40.808        16.215       -.33721E-06    .60932E-05
  20  Prefactor     20.070        13.549       -.20977E-05   -.25357E-04
  21  norm          1.8461        .43899        .41651E-07   -.21148E-03
  22  Prefactor     .10000E-03    2.1596        .22237E-06** at limit **
  23  Prefactor     .10000E-03    6.7072        .24431E-06** at limit **
  24  Prefactor     10.764        10.582        .76894E-06    .75950E-03
  25  norm          25.892        15.875       -.69889E-06   -.23159E-04
  26  Normalizat    .59432        .21152        .16030E-05   -.13543E-03
  27  Prefactor     1.5611        .23870        .18203E-05   -.18729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.662
  Prefactor  = 3.3698
  Prefactor  = 0.0001
  Prefactor  = 1.45662
  norm       = 24.6478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06428
  norm       = 9.34444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80107
  Prefactor  = 11.7299
  Prefactor  = 34.3731
  Prefactor  = 6.38768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.8076
  Prefactor  = 20.0697
  norm       = 1.84612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7642
  norm       = 25.8919
  Normalizat = 0.594315
  Prefactor  = 1.5611
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.029     FROM HESSE     STATUS=OK           486 CALLS     3745 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.662        32.755        .10460E-03   -1.4942    
   2  Prefactor     3.3698        7.3986        .22040E-03   -1.5341    
   3  Prefactor     .10000E-03    3.1621        .12623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4566        2.6449        .15155E-03   -1.5467    
   5  norm          24.648        10.045        .80686E-04   -1.4715    
   6  Prefactor     .10000E-03    1.4407        .85039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    70.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0643        4.8410        .22455E-03   -1.5421    
   9  norm          9.3444        10.007        .13107E-03   -1.5096    
  10  Prefactor     .10000E-03    15.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3586        .10876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8011        9.7883        .31078E-03   -1.5440    
  14  Prefactor     11.730        9.1045        .11697E-03   -1.5023    
  15  Prefactor     34.373        52.116        .68311E-04   -1.4535    
  16  Prefactor     6.3877        3.0594        .82994E-04   -1.5202    
  17  Prefactor     .10000E-03    5.2875        .16309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.808        16.206        .62750E-04   -1.4429    
  20  Prefactor     20.070        13.533        .89415E-04   -1.4812    
  21  norm          1.8461        .43982        .22654E-04   -1.5436    
  22  Prefactor     .10000E-03    2.2028        .10414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.7167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.764        10.616        .61059E-03   -1.5052    
  25  norm          25.892        15.873        .78729E-04   -1.4690    
  26  Normalizat    .59432        .24541        .32437E-03   -1.0823    
  27  Prefactor     1.5611        .28174        .25646E-03   -.75843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48205e-09
Minuit parameter uncertainties:
  1  32.7949
  2  7.40061
  3  6.41748e-06
  4  2.64516
  5  10.0456
  6  1.68989e-05
  7  6.21438e-05
  8  4.84188
  9  10.0091
  10  1.50307e-05
  11  0.000136932
  12  5.50546e-05
  13  8.39937
  14  9.10561
  15  52.1856
  16  3.05944
  17  1.37489e-06
  18  1.92745e-05
  19  16.2077
  20  13.5355
  21  0.43982
  22  5.6782e-06
  23  4.9143e-07
  24  10.6175
  25  15.8752
  26  0.245863
  27  0.282019
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.503e-05  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.561e+00  2.820e-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:  5.943e-01  2.459e-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: 4.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895540/likelihoodResults_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.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) = 5291.02910166
delta logL = -0.00029147443729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5291.02881189
delta logL = -1.69847226061e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4699       1.0000          .0000       10.000    
     3 'Normalizat'    .59430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5611       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=   5291.029     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      280 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10403E-03    5.2765        .18142E-01** at limit **
   2  Index         2.3789        6.9958        .50000        .33176E-04
   3  Normalizat    .59431        .31268E-02    .32437E-03   -.16714E-03
   4  Prefactor     1.5611        .38349E-02    .25646E-03   -.18649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104033
  Index      = 2.37887
  Normalizat = 0.594315
  Prefactor  = 1.5611
 **********
 **   18 **HESSE 
 **********

 FCN=   5291.029     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10403E-03    49.897        .24915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3789        8.4777        .50000       -.55181    
   3  Normalizat    .59431        .96523E-02    .12975E-04   -1.0823    
   4  Prefactor     1.5611        .11838E-01    .51293E-04   -.75843    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.78832e-09
Minuit parameter uncertainties:
  1  0.0283944
  2  153.704
  3  0.00965235
  4  0.011838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895540': 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) = 5291.02881128
delta logL = -1.0892181308e-06

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.040e-04  2.839e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.379e+00  1.537e+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:  1.561e+00  1.184e-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:  5.943e-01  9.652e-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/895540/cmap_HighResolution_240364801_240624001_4FGL_J1028.3+3108_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-09-01 22:57:44.317243', job_id='895540', GAL2='1.56', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630562264.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.56', dlogl='-1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='4' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 22:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 895540: <4FGL_J1028.3+3108_daily_bin4> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin4> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:33 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:42 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:45:42 2021
Terminated at Wed Sep  1 22:57:45 2021
Results reported at Wed Sep  1 22:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin4 157.077 31.1389 240364801 240624001 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 :                                   577.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            732 sec.

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

