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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1596
RA = 157.077, Dec = 31.1389
tmin = 653011201, tmax = 653270401
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='301486', job_status='RUN', time_executed='2021-09-14 00:24:05.345342', time_epoch_executed='1631604245.35' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301486/ft1_4FGL_J1028.3+3108_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301486/ft2_4FGL_J1028.3+3108_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301486/ft1_4FGL_J1028.3+3108_daily_bin1596.fits outfile=/scratch/kocevski/301486/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1596.fits ra=157.077 dec=31.1389 rad=12.0 tmin=653011201.0 tmax=653270401.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.14
user 2.91
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301486/ft1_filtered_4FGL_J1028.3+3108_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/301486/ft2_4FGL_J1028.3+3108_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/301486/ltcube_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.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/301486/ft2_4FGL_J1028.3+3108_daily_bin1596.fits
.....................!
real 15.52
user 15.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301486/ft1_filtered_4FGL_J1028.3+3108_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/301486/ft2_4FGL_J1028.3+3108_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/301486/ltcube_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.fits outfile=/scratch/kocevski/301486/expmap_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.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/301486/ltcube_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.fits
.....................!
real 194.54
user 188.22
sys 4.69

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/301486/ft1_filtered_4FGL_J1028.3+3108_daily_bin1596.fits scfile=/scratch/kocevski/301486/ft2_4FGL_J1028.3+3108_daily_bin1596.fits outfile=/scratch/kocevski/301486/cmap_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301486/ft1_filtered_4FGL_J1028.3+3108_daily_bin1596.fits scfile=/scratch/kocevski/301486/ft2_4FGL_J1028.3+3108_daily_bin1596.fits outfile=/scratch/kocevski/301486/cmap_HighResolution_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.499       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.568       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.463       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    390.15       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14798E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52616E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5653.3       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .85809E-03   1.0000         .10000E-03   10000.    
    25 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.6970       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=   1122.861     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     4413 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.456        56.628        .22893E-06   -.13328E-03
   2  Prefactor     11.280        16.371        .24633E-06   -.29633E-03
   3  Prefactor     16.567        21.344        .32144E-06   -.19434E-03
   4  Prefactor     .10000E-03    5.4500        .31211E-06** at limit **
   5  norm          16.460        17.611        .16188E-06   -.11755E-03
   6  Prefactor     11.844        8.4297       -.60346E-07   -.24534E-03
   7  Prefactor     .10000E-03    80.145        .47708E-06** at limit **
   8  Prefactor     .10000E-03    4.1206        .55774E-06** at limit **
   9  norm          .10000E-03    15.927        .39443E-06** at limit **
  10  Prefactor     41.284        96.761        .47262E-06   -.22856E-04
  11  Prefactor     .10000E-03    54.542        .11619E-05** at limit **
  12  Prefactor     .36365        12.255       -.69469E-07    .78365E-04
  13  Prefactor     .10000E-03    5.9845        .74483E-06** at limit **
  14  Prefactor     49.085        76.800        .75393E-07   -.56733E-04
  15  Prefactor     .10000E-03    78.739        .83336E-06** at limit **
  16  Prefactor     .10000E-03    20.019        .11273E-05** at limit **
  17  Prefactor     390.50        439.00       -.32395E-08   -.92686E-05
  18  Prefactor     .10000E-03    66.779        .26392E-06** at limit **
  19  Prefactor     .10001E-03    770.77        .57801E-05** at limit **
  20  Prefactor     .10000E-03    137.92        .23066E-06** at limit **
  21  norm          .10000E-03    2.5276        .11353E-05** at limit **
  22  Prefactor     .10000E-03    595.34        .30793E-05** at limit **
  23  Prefactor     5659.5        2827.3       -.81051E-05    .30921E-05
  24  Prefactor     .10000E-03    675.82        .24020E-05** at limit **
  25  norm         10000.0        6726.3       -.67803E-05** at limit **
  26  Normalizat    .10000E-01    .11426        .18299E-04** at limit **
  27  Prefactor     1.6967        .30154       -.55869E-05   -.21981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4558
  Prefactor  = 11.28
  Prefactor  = 16.5667
  Prefactor  = 0.0001
  norm       = 16.4603
  Prefactor  = 11.844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.2844
  Prefactor  = 0.0001
  Prefactor  = 0.363654
  Prefactor  = 0.0001
  Prefactor  = 49.0854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 390.497
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5659.49
  Prefactor  = 0.0001
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 1.69672
 **********
 **   18 **HESSE 
 **********

 FCN=   1122.861     FROM HESSE     STATUS=OK           470 CALLS     4883 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.456        56.976        .76396E-04   -1.4660    
   2  Prefactor     11.280        16.407        .11924E-03   -1.5036    
   3  Prefactor     16.567        21.448        .98398E-04   -1.4894    
   4  Prefactor     .10000E-03    5.5935        .15247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.460        17.629        .98711E-04   -1.4896    
   6  Prefactor     11.844        8.4317        .77932E-04   -1.5020    
   7  Prefactor     .10000E-03    80.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1188        .66346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.941        .13059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.284        96.857        .62332E-04   -1.4422    
  11  Prefactor     .10000E-03    54.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36365        78.169        .22167E-02   -1.5587    
  13  Prefactor     .10000E-03    5.9702        .79941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.085        76.962        .57236E-04   -1.4306    
  15  Prefactor     .10000E-03    78.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.154        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     390.50        438.99        .10329E-03   -1.1730    
  18  Prefactor     .10000E-03    66.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    768.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    137.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4783        .51517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    594.56        .21132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5659.5        2827.0        .40346E-04    .13228    
  24  Prefactor     .10000E-03    675.17        .20860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm         10000.0        6728.7        .21451E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .13452        .70123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.6967        .32548        .22257E-03   -.72169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0602e-10
Minuit parameter uncertainties:
  1  57.0888
  2  16.414
  3  21.4579
  4  2.70746e-06
  5  17.6345
  6  8.43259
  7  1.15328e-06
  8  2.57977e-05
  9  1.52935e-05
  10  97.2287
  11  0.000254373
  12  10.676
  13  4.59103e-05
  14  77.1183
  15  0.000193749
  16  0.000108345
  17  442.833
  18  4.82547e-05
  19  0.00501996
  20  3.21331e-05
  21  4.70806e-05
  22  0.00107784
  23  3008.31
  24  0.000750828
  25  0.0147566
  26  1.09634e-06
  27  0.32589
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  4.128e+01  9.723e+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.697e+00  3.259e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  1.096e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: 2.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301486/likelihoodResults_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.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) = 1122.81905402
delta logL = 0.0414640456622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1122.81731216
delta logL = 0.043205903535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.797       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8705       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6953       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=   1122.817     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      295 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.806        187.23        .46121E-04   -.14522E-03
   2  Index         1.8705        1.1371        .66909E-02   -.13647E-03
   3  Normalizat    .10000E-01    .13508        .70212E-02** at limit **
   4  Prefactor     1.6954        .25597        .22257E-03   -.38888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.8061
  Index      = 1.87053
  Normalizat = 0.01
  Prefactor  = 1.69538
 **********
 **   18 **HESSE 
 **********

 FCN=   1122.817     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.806        182.42        .92241E-05   -1.3964    
   2  Index         1.8705        1.1085        .26764E-03   -.67628    
   3  Normalizat    .10000E-01    .13508        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6954        .25594        .44515E-04   -.72205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48234e-09
Minuit parameter uncertainties:
  1  183.789
  2  1.124
  3  3.747e-06
  4  0.256141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301486': 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) = 1122.81731212
delta logL = 0.0432059449179

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  7.581e+01  1.838e+02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  1.871e+00  1.124e+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.695e+00  2.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.000e-02  3.747e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/301486/cmap_HighResolution_653011201_653270401_4FGL_J1028.3+3108_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', job_status='DONE', photon_flux_upper_limit='2.18e-07', time_completed='2021-09-14 00:31:05.839928', job_id='301486', GAL2='1.70', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631604665.84', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.70', dlogl='4.32e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1596' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 301486: <4FGL_J1028.3+3108_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin1596> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 00:20:31 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:22:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:22:07 2021
Terminated at Tue Sep 14 00:31:06 2021
Results reported at Tue Sep 14 00:31:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1596 157.077 31.1389 653011201 653270401 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 :                                   421.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   541 sec.
    Turnaround time :                            635 sec.

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

