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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin963
RA = 157.077, Dec = 31.1389
tmin = 488937601, tmax = 489196801
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='901435', job_status='RUN', time_executed='2021-09-01 23:08:20.320213', time_epoch_executed='1630562900.32' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901435/ft1_4FGL_J1028.3+3108_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901435/ft2_4FGL_J1028.3+3108_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901435/ft1_4FGL_J1028.3+3108_daily_bin963.fits outfile=/scratch/kocevski/901435/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin963.fits ra=157.077 dec=31.1389 rad=12.0 tmin=488937601.0 tmax=489196801.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.63
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901435/ft1_filtered_4FGL_J1028.3+3108_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/901435/ft2_4FGL_J1028.3+3108_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/901435/ltcube_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.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/901435/ft2_4FGL_J1028.3+3108_daily_bin963.fits
.....................!
real 18.20
user 17.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901435/ft1_filtered_4FGL_J1028.3+3108_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/901435/ft2_4FGL_J1028.3+3108_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/901435/ltcube_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.fits outfile=/scratch/kocevski/901435/expmap_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.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/901435/ltcube_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.fits
.....................!
real 194.19
user 188.67
sys 4.93

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/901435/ft1_filtered_4FGL_J1028.3+3108_daily_bin963.fits scfile=/scratch/kocevski/901435/ft2_4FGL_J1028.3+3108_daily_bin963.fits outfile=/scratch/kocevski/901435/cmap_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.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/901435/ft1_filtered_4FGL_J1028.3+3108_daily_bin963.fits scfile=/scratch/kocevski/901435/ft2_4FGL_J1028.3+3108_daily_bin963.fits outfile=/scratch/kocevski/901435/cmap_HighResolution_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59100       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11102E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    48.896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.238       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5479       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5965       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3947       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6930       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56566E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.801       1.0000         .10000E-03   10000.    
    21 'norm      '    2.2060       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7669       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1573       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84344       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=   6077.155     FROM MIGRAD    STATUS=CONVERGED   1152 CALLS     3333 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.420        .18142E-02** at limit **
   2  Prefactor     .10000E-03    4.1229        .15349E-02** at limit **
   3  Prefactor     .10000E-03    2.5324        .12104E-02** at limit **
   4  Prefactor     .59083        1.6153        .16015E-03   -.68857E-05
   5  norm          .10000E-03    2.1192        .11071E-02** at limit **
   6  Prefactor     .13202        7.1699        .17779E-02    .16013E-03
   7  Prefactor     .10000E-03    12.834        .18142E-02** at limit **
   8  Prefactor     .10000E-03    2.6255        .18876E-02** at limit **
   9  norm          48.899        16.500        .57347E-04    .12688E-04
  10  Prefactor     .10000E-03    11.828        .18142E-02** at limit **
  11  Prefactor     13.236        23.561        .11009E-03    .13425E-05
  12  Prefactor     1.5482        4.6592        .26901E-03    .64238E-05
  13  Prefactor     5.5967        4.1542        .12380E-03   -.13591E-04
  14  Prefactor     5.3924        7.6635        .17302E-03   -.21684E-04
  15  Prefactor     .10000E-03    15.001        .18142E-02** at limit **
  16  Prefactor     1.6931        2.1328        .11988E-03   -.20959E-04
  17  Prefactor     .10000E-03    71.349        .41719E-02** at limit **
  18  Prefactor     .10000E-03    6.4223        .18142E-02** at limit **
  19  Prefactor     10.132        9.6033        .12585E-03   -.30262E-04
  20  Prefactor     11.800        12.072        .58306E-03    .72533E-05
  21  norm          2.2061        .40571        .20555E-04   -.93474E-03
  22  Prefactor     .10000E-03    2.0199        .21248E-03** at limit **
  23  Prefactor     .10000E-03    20.624        .18142E-02** at limit **
  24  Prefactor     .10000E-03    5.5665        .17954E-02** at limit **
  25  norm          2.7688        10.390        .24468E-03   -.40888E-04
  26  Normalizat    1.1573        .20741        .22432E-03   -.93332E-04
  27  Prefactor     .84348        .23454        .30233E-03   -.36852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.590825
  norm       = 0.0001
  Prefactor  = 0.132024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 48.8995
  Prefactor  = 0.0001
  Prefactor  = 13.236
  Prefactor  = 1.54819
  Prefactor  = 5.59666
  Prefactor  = 5.39242
  Prefactor  = 0.0001
  Prefactor  = 1.69314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1322
  Prefactor  = 11.7999
  norm       = 2.20612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.7688
  Normalizat = 1.1573
  Prefactor  = 0.84348
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.155     FROM HESSE     STATUS=OK           462 CALLS     3795 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.1244        .30699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5325        .24207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59083        1.6150        .64061E-05   -1.5554    
   5  norm          .10000E-03    2.1193        .22142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13202        7.1953        .71117E-04   -1.5635    
   7  Prefactor     .10000E-03    12.834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6315        .37752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          48.899        16.496        .22939E-05   -1.4308    
  10  Prefactor     .10000E-03    11.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.236        23.566        .44036E-05   -1.4980    
  12  Prefactor     1.5482        4.6570        .10760E-04   -1.5459    
  13  Prefactor     5.5967        4.1545        .49519E-05   -1.5235    
  14  Prefactor     5.3924        7.6601        .69206E-05   -1.5243    
  15  Prefactor     .10000E-03    15.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6931        2.1323        .47951E-05   -1.5448    
  17  Prefactor     .10000E-03    73.082        .16688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.132        9.5678        .50341E-05   -1.5071    
  20  Prefactor     11.800        12.069        .23323E-04   -1.5021    
  21  norm          2.2061        .40568        .82218E-06   -1.5411    
  22  Prefactor     .10000E-03    2.0200        .42495E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5667        .35908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7688        10.388        .97871E-05   -1.5375    
  26  Normalizat    1.1573        .20750        .44865E-04   -.87933    
  27  Prefactor     .84348        .23472        .12093E-04   -.98145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2613e-11
Minuit parameter uncertainties:
  1  9.46373e-06
  2  4.19296e-06
  3  8.21043e-07
  4  1.61514
  5  9.14062e-07
  6  1.94881
  7  3.29359e-06
  8  1.28382e-05
  9  16.4971
  10  2.76829e-07
  11  23.5827
  12  4.65807
  13  4.15474
  14  7.66147
  15  1.40213e-05
  16  2.13236
  17  0.000109426
  18  2.02898e-06
  19  9.56924
  20  12.0719
  21  0.405682
  22  9.51755e-06
  23  9.26749e-06
  24  2.22323e-06
  25  10.3951
  26  0.207652
  27  0.235003
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.768e-07  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.435e-01  2.350e-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.157e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/901435/likelihoodResults_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.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) = 6077.15510941
delta logL = -0.000399788043069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6077.15471054
delta logL = -9.13050826057e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1948       1.0000          .0000       10.000    
     3 'Normalizat'    1.1575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84329       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=   6077.155     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10224E-03    79.342        .18142E-02** at limit **
   2  Index         2.1258        7.6891        .50000        .21326E-04
   3  Normalizat    1.1573        .10087E-01    .22432E-03   -.33347E-04
   4  Prefactor     .84348        .11844E-01    .30233E-03    .19366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102236
  Index      = 2.12577
  Normalizat = 1.1573
  Prefactor  = 0.84348
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.155     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10224E-03    336.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1258        7.5032        .50000       -.61241    
   3  Normalizat    1.1573        .21274E-01    .89730E-05   -.87933    
   4  Prefactor     .84348        .24979E-01    .12093E-04   -.98145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68732e-08
Minuit parameter uncertainties:
  1  0.0551269
  2  397.747
  3  0.0212737
  4  0.0249796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901435': 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) = 6077.15470908
delta logL = 5.48886418983e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.022e-04  5.513e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.126e+00  3.977e+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:  8.435e-01  2.498e-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:  1.157e+00  2.127e-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/901435/cmap_HighResolution_488937601_489196801_4FGL_J1028.3+3108_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2021-09-01 23:21:34.196855', job_id='901435', GAL2='0.84', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630563694.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='963' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 23:21:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 901435: <4FGL_J1028.3+3108_daily_bin963> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin963> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 23:05:48 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 23:08:08 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:08:08 2021
Terminated at Wed Sep  1 23:21:35 2021
Results reported at Wed Sep  1 23:21:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin963 157.077 31.1389 488937601 489196801 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 :                                   790.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            947 sec.

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

