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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin1351
RA = 157.077, Dec = 31.1389
tmin = 589507201, tmax = 589766401
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='903046', job_status='RUN', time_executed='2021-09-01 23:19:19.262179', time_epoch_executed='1630563559.26' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='1351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903046/ft1_4FGL_J1028.3+3108_daily_bin1351.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903046/ft2_4FGL_J1028.3+3108_daily_bin1351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903046/ft1_4FGL_J1028.3+3108_daily_bin1351.fits outfile=/scratch/kocevski/903046/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1351.fits ra=157.077 dec=31.1389 rad=12.0 tmin=589507201.0 tmax=589766401.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 2.99
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903046/ft2_4FGL_J1028.3+3108_daily_bin1351.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/903046/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin1351.fits evtable="EVENTS" outfile="/scratch/kocevski/903046/ft1_filtered_4FGL_J1028.3+3108_daily_bin1351.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.53
user 0.38
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903046/ft1_filtered_4FGL_J1028.3+3108_daily_bin1351.fits" evtable="EVENTS" scfile=/scratch/kocevski/903046/ft2_4FGL_J1028.3+3108_daily_bin1351.fits sctable="SC_DATA" outfile=/scratch/kocevski/903046/ltcube_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.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/903046/ft2_4FGL_J1028.3+3108_daily_bin1351.fits
.....................!
real 19.09
user 18.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903046/ft1_filtered_4FGL_J1028.3+3108_daily_bin1351.fits evtable="EVENTS" scfile=/scratch/kocevski/903046/ft2_4FGL_J1028.3+3108_daily_bin1351.fits sctable="SC_DATA" expcube=/scratch/kocevski/903046/ltcube_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.fits outfile=/scratch/kocevski/903046/expmap_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.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/903046/ltcube_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.fits
.....................!
real 193.23
user 188.35
sys 4.09

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/903046/ft1_filtered_4FGL_J1028.3+3108_daily_bin1351.fits scfile=/scratch/kocevski/903046/ft2_4FGL_J1028.3+3108_daily_bin1351.fits outfile=/scratch/kocevski/903046/cmap_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903046/ft1_filtered_4FGL_J1028.3+3108_daily_bin1351.fits scfile=/scratch/kocevski/903046/ft2_4FGL_J1028.3+3108_daily_bin1351.fits outfile=/scratch/kocevski/903046/cmap_HighResolution_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.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.59
user 0.43
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    169.90       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .40850E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .87033E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    4029.1       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4017.4       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14981E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10962E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '    66.691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12535E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0442       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.307       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .25801E-07   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=   162.5537     FROM MIGRAD    STATUS=CONVERGED   1156 CALLS     4909 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     169.63        134.97        .15476E-03    .12662E-03
   2  Prefactor     .10000E-03    35.634        .74480E-03** at limit **
   3  Prefactor     .10000E-03    98.645        .12406E-02** at limit **
   4  Prefactor     .10000E-03    24.795        .62118E-03** at limit **
   5  norm          .10012E-03    206.69        .17991E-02** at limit **
   6  Prefactor     .10007E-03    1188.3        .18329E-02** at limit **
   7  Prefactor    10000.0        9717.4        .19320E-02** at limit **
   8  Prefactor    10000.0        1498.1        .20835E-02** at limit **
   9  norm          4018.7        4066.5        .40776E-04    .11166E-04
  10  Prefactor    10000.0       10000.0        .18395E-02** at limit **
  11  Prefactor     3955.6        6867.6        .40795E-04    .15606E-05
  12  Prefactor     .10000E-03    47.246        .85775E-03** at limit **
  13  Prefactor     .10036E-03    1876.5        .18142E-02** at limit **
  14  Prefactor    10000.0        9900.4        .19500E-02** at limit **
  15  Prefactor     .10000E-03    235.40        .18142E-02** at limit **
  16  Prefactor    10000.0        6252.6        .20242E-02** at limit **
  17  Prefactor     4572.3        7161.3        .24573E-02    .70027E-06
  18  Prefactor     .10002E-03    420.36        .18142E-02** at limit **
  19  Prefactor     .10000E-03    6397.4        .19679E-02** at limit **
  20  Prefactor     .10000E-03    166.96        .16223E-02** at limit **
  21  norm          1.0446        .98855        .11530E-04   -.48315E-04
  22  Prefactor     .10000E-03    12.251        .43757E-03** at limit **
  23  Prefactor     .10000E-03    21.407        .57871E-03** at limit **
  24  Prefactor     41.191        49.174        .31185E-03   -.73589E-04
  25  norm          .10000E-03    27.411        .65993E-03** at limit **
  26  Normalizat    .10000E-01    .96386E-01    .12304E-02** at limit **
  27  Prefactor     .91588E-11    .14011        .14822E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 169.627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100124
  Prefactor  = 0.000100073
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 4018.73
  Prefactor  = 10000
  Prefactor  = 3955.58
  Prefactor  = 0.0001
  Prefactor  = 0.000100363
  Prefactor  = 10000
  Prefactor  = 0.000100003
  Prefactor  = 10000
  Prefactor  = 4572.25
  Prefactor  = 0.000100017
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.04464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1905
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 9.15878e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   162.5537     FROM HESSE     STATUS=OK           464 CALLS     5373 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     169.63        134.97        .30951E-04   -1.3096    
   2  Prefactor     .10000E-03    35.634        .14896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    98.645        .24812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.795        .12424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10012E-03    206.69        .35981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    1188.3        .36658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        9727.0        .38640E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        1498.0        .41670E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4018.7        4067.2        .81552E-05   -.19754    
  10  Prefactor    10000.0        9998.1        .36790E-03    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3955.6        6867.2        .81591E-05   -.21043    
  12  Prefactor     .10000E-03    47.246        .17155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10036E-03    1876.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        9912.7        .39001E-03    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    235.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6252.4        .40483E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4572.3        7161.2        .49146E-03   -.85654E-01
  18  Prefactor     .10002E-03    420.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6397.4        .39357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    166.96        .32446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0446        .98863        .46119E-06   -1.5504    
  22  Prefactor     .10000E-03    12.251        .87514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.407        .11574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     41.191        49.179        .62371E-04   -1.4423    
  25  norm          .10000E-03    27.411        .13199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .96386E-01    .24609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .91588E-11    .14011        .29643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83288e-08
Minuit parameter uncertainties:
  1  135.216
  2  7.16055e-05
  3  0.000104417
  4  1.71967e-05
  5  0.0101544
  6  0.0190165
  7  2.03322
  8  0.0124761
  9  4796.59
  10  0.912302
  11  8111.6
  12  4.4433e-05
  13  0.0539977
  14  4.71642
  15  0.00159962
  16  0.0320788
  17  68418.5
  18  0.00539932
  19  0.00429033
  20  0.000505506
  21  0.988646
  22  4.4895e-06
  23  2.38916e-05
  24  49.2271
  25  9.23526e-06
  26  5.06913e-07
  27  2.2709e-06
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e+04  9.123e-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:  9.159e-12  2.271e-06  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  5.069e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.41
Ra Dec: 157.077 31.139
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.64e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/903046/likelihoodResults_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.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) = 31.6386975842
delta logL = 130.91501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 31.636724344
delta logL = 130.91698324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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=   31.63672     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       53 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index      10.0000        .21575E-01    .11642E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   31.63672     FROM HESSE     STATUS=OK             5 CALLS       58 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index      10.0000        .21575E-01    .25724E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91236e-13
Minuit parameter uncertainties:
  1  3.84101e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903046': 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) = 31.636724344
delta logL = 130.91698324

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
266        Index:  1.000e+01  3.841e-08  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.228e-11  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 262.24
Ra Dec: 157.077 31.139
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.77e+03 +/- 4.96e-04
Energy Flux (Free Index): 5.34e+05 +/- 5.56e-02

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/903046/cmap_HighResolution_589507201_589766401_4FGL_J1028.3+3108_daily_bin1351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.64e+04', comment='SUCCESS', energy_flux2='5.34e+05', dlogl='1.31e+02', photon_flux2='4.77e+03', job_status='DONE', time_completed='2021-09-01 23:26:56.260155', photon_index_error2='0.00', photon_index2='10.00', ts='0.41', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='5.56e-02', EG='0.01', time_epoch_completed='1630564016.26', return_code='0', job_id='903046', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='4.96e-04', ts2='262.24', photon_index='2.23' WHERE bin_id='1351' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:26:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 903046: <4FGL_J1028.3+3108_daily_bin1351> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin1351 157.077 31.1389 589507201 589766401 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 :                                   351.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             244.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            963 sec.

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

