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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1103
RA = 157.077, Dec = 31.1389
tmin = 525225601, tmax = 525484801
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='902686', job_status='RUN', time_executed='2021-09-01 23:13:37.293997', time_epoch_executed='1630563217.29' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902686/ft1_4FGL_J1028.3+3108_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902686/ft1_4FGL_J1028.3+3108_daily_bin1103.fits outfile=/scratch/kocevski/902686/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1103.fits ra=157.077 dec=31.1389 rad=12.0 tmin=525225601.0 tmax=525484801.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 4.15
user 3.90
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.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/902686/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1103.fits evtable="EVENTS" outfile="/scratch/kocevski/902686/ft1_filtered_4FGL_J1028.3+3108_daily_bin1103.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/902686/ft1_filtered_4FGL_J1028.3+3108_daily_bin1103.fits" evtable="EVENTS" scfile=/scratch/kocevski/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.fits sctable="SC_DATA" outfile=/scratch/kocevski/902686/ltcube_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.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/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.fits
.....................!
real 15.99
user 15.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902686/ft1_filtered_4FGL_J1028.3+3108_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/902686/ltcube_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.fits outfile=/scratch/kocevski/902686/expmap_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.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/902686/ltcube_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.fits
.....................!
real 191.18
user 185.83
sys 4.81

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/902686/ft1_filtered_4FGL_J1028.3+3108_daily_bin1103.fits scfile=/scratch/kocevski/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.fits outfile=/scratch/kocevski/902686/cmap_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.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/902686/ft1_filtered_4FGL_J1028.3+3108_daily_bin1103.fits scfile=/scratch/kocevski/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.fits outfile=/scratch/kocevski/902686/cmap_HighResolution_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.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/902686/ft1_filtered_4FGL_J1028.3+3108_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/902686/ft2_4FGL_J1028.3+3108_daily_bin1103.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902686/Model_4FGL_J1028.3+3108_daily_bin1103.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/902686/ft1_filtered_4FGL_J1028.3+3108_daily_bin1103.fits.....................!
real 44.66
user 43.30
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11743E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5889       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8019       1.0000         .10000E-03   10000.    
     9 'norm      '    .16430E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12242E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.124       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3420       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1407       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2929       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.818       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.925       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4551       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3396       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.851       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10564E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90644       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .82013       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=   4905.721     FROM MIGRAD    STATUS=CONVERGED   1197 CALLS     4355 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    39.254        .10665    ** at limit **
   2  Prefactor     9.3092        7.7364        .13135E-03    .50807E-04
   3  Prefactor     .10000E-03    4.3734        .14272E-02** at limit **
   4  Prefactor     .10000E-03    .88357        .63787E-03** at limit **
   5  norm          3.5801        8.4393        .21331E-03    .21937E-03
   6  Prefactor     1.5136        2.6299        .14369E-03    .29923E-03
   7  Prefactor     .10000E-03    32.151        .18142E-02** at limit **
   8  Prefactor     1.8019        2.4230        .12185E-03    .53834E-04
   9  norm          .10084E-03    11.480        .57168E-01** at limit **
  10  Prefactor     .10000E-03    70.596        .18142E-02** at limit **
  11  Prefactor     23.114        24.296        .83298E-04    .84373E-04
  12  Prefactor     5.3423        4.9052        .13854E-03    .77496E-03
  13  Prefactor     .10000E-03    5.0592        .30085E-03** at limit **
  14  Prefactor     .10000E-03    27.190        .33071E-02** at limit **
  15  Prefactor     .10000E-03    11.979        .18142E-02** at limit **
  16  Prefactor     1.1408        1.2714        .81200E-04    .17011E-03
  17  Prefactor     9.2946        11.431        .13147E-03    .11864E-03
  18  Prefactor     10.219        26.908        .12534E-03    .87985E-05
  19  Prefactor     16.815        12.253        .97664E-04    .32594E-05
  20  Prefactor     10.924        11.902        .12121E-03    .17070E-04
  21  norm          1.4551        .35565        .19389E-04    .14190E-03
  22  Prefactor     2.3398        2.2507        .95355E-04    .57347E-04
  23  Prefactor     11.845        16.318        .11637E-03    .17507E-03
  24  Prefactor     .10000E-03    6.6001        .17541E-02** at limit **
  25  norm          .10001E-03    35.837        .36285E-03** at limit **
  26  Normalizat    .90646        .20140        .21877E-03    .27671E-03
  27  Prefactor     .82022        .22168        .26838E-03    .27667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100248
  Prefactor  = 9.30918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58009
  Prefactor  = 1.51356
  Prefactor  = 0.000100002
  Prefactor  = 1.80185
  norm       = 0.000100837
  Prefactor  = 0.000100002
  Prefactor  = 23.1138
  Prefactor  = 5.34227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14084
  Prefactor  = 9.29461
  Prefactor  = 10.2195
  Prefactor  = 16.8147
  Prefactor  = 10.9244
  norm       = 1.45509
  Prefactor  = 2.33983
  Prefactor  = 11.8446
  Prefactor  = 0.0001
  norm       = 0.000100008
  Normalizat = 0.906464
  Prefactor  = 0.820221
 **********
 **   18 **HESSE 
 **********

 FCN=   4905.721     FROM HESSE     STATUS=OK           480 CALLS     4835 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    37.549        .10965       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.3092        7.7354        .52539E-05   -1.5098    
   3  Prefactor     .10000E-03    4.3739        .28545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .88364        .12757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5801        8.4378        .85323E-05   -1.5330    
   6  Prefactor     1.5136        2.6296        .57477E-05   -1.5462    
   7  Prefactor     .10000E-03    32.156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8019        2.4229        .48740E-05   -1.5439    
   9  norm          .10084E-03    9.8676        .63750E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    70.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.114        24.296        .16660E-04   -1.4746    
  12  Prefactor     5.3423        4.9057        .55417E-05   -1.5246    
  13  Prefactor     .10000E-03    5.0593        .60170E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.586        .66141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1408        1.2713        .32480E-05   -1.5494    
  17  Prefactor     9.2946        11.428        .52587E-05   -1.5098    
  18  Prefactor     10.219        26.904        .50134E-05   -1.5068    
  19  Prefactor     16.815        12.252        .39066E-05   -1.4888    
  20  Prefactor     10.924        11.901        .48485E-05   -1.5047    
  21  norm          1.4551        .35564        .77554E-06   -1.5467    
  22  Prefactor     2.3398        2.2505        .38142E-05   -1.5402    
  23  Prefactor     11.845        16.317        .46547E-05   -1.5020    
  24  Prefactor     .10000E-03    6.6009        .35082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10001E-03    35.839        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .90646        .20155        .43753E-04   -.96233    
  27  Prefactor     .82022        .22186        .53675E-04   -.98987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02889e-09
Minuit parameter uncertainties:
  1  0.00610927
  2  7.73621
  3  9.59712e-06
  4  5.13138e-06
  5  8.44063
  6  2.62981
  7  0.000503137
  8  2.423
  9  0.00574889
  10  0.000729892
  11  24.3064
  12  4.90608
  13  6.28984e-05
  14  7.56354e-05
  15  3.57918e-05
  16  1.27131
  17  11.4311
  18  26.9363
  19  12.2543
  20  11.9038
  21  0.355639
  22  2.25059
  23  16.323
  24  4.21148e-05
  25  0.0010807
  26  0.20172
  27  0.222101
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  7.299e-04  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:  8.202e-01  2.221e-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.065e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/902686/likelihoodResults_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.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) = 4905.72149479
delta logL = -6.73852955515e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4905.72142739
delta logL = 1.08657332021e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2700       1.0000          .0000       10.000    
     3 'Normalizat'    .90646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82023       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=   4905.721     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      204 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    149.00        .90712E-02** at limit **
   2  Index         2.3502        6.1337        .50000       -.11034E-04
   3  Normalizat    .90646        .16060        .44984E-01    .83251E-05
   4  Prefactor     .82022        .18921        .43980E-01    .16546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100054
  Index      = 2.35024
  Normalizat = 0.906464
  Prefactor  = 0.82022
 **********
 **   18 **HESSE 
 **********

 FCN=   4905.721     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    7637.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3502        5.7439        .50000       -.55854    
   3  Normalizat    .90646        .34637E-01    .21877E-03   -.96233    
   4  Prefactor     .82022        .40824E-01    .26838E-03   -.98987    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.6256e-08
Minuit parameter uncertainties:
  1  0.0377828
  2  33.4613
  3  0.034638
  4  0.0408256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902686': 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) = 4905.72142714
delta logL = 2.55336090049e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.001e-04  3.778e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.350e+00  3.346e+01  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:  8.202e-01  4.083e-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.065e-01  3.464e-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/902686/cmap_HighResolution_525225601_525484801_4FGL_J1028.3+3108_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-01 23:26:04.525043', job_id='902686', GAL2='0.82', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630563964.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1103' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 902686: <4FGL_J1028.3+3108_daily_bin1103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1103 157.077 31.1389 525225601 525484801 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 :                                   741.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            939 sec.

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

