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


Performing analysis on: 4FGL_J1028.3+3108_daily_bin34
RA = 157.077, Dec = 31.1389
tmin = 248140801, tmax = 248400001
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='895584', job_status='RUN', time_executed='2021-09-01 22:45:59.800207', time_epoch_executed='1630561559.8' WHERE source_name='4FGL J1028.3+3108' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895584/ft1_4FGL_J1028.3+3108_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895584/ft2_4FGL_J1028.3+3108_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895584/ft1_4FGL_J1028.3+3108_daily_bin34.fits outfile=/scratch/kocevski/895584/ft1_filteredMKT_4FGL_J1028.3+3108_daily_bin34.fits ra=157.077 dec=31.1389 rad=12.0 tmin=248140801.0 tmax=248400001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.43
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895584/ft1_filtered_4FGL_J1028.3+3108_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/895584/ft2_4FGL_J1028.3+3108_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/895584/ltcube_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.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/895584/ft2_4FGL_J1028.3+3108_daily_bin34.fits
.....................!
real 20.79
user 20.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895584/ft1_filtered_4FGL_J1028.3+3108_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/895584/ft2_4FGL_J1028.3+3108_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/895584/ltcube_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.fits outfile=/scratch/kocevski/895584/expmap_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.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/895584/ltcube_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.fits
.....................!
real 192.46
user 187.65
sys 4.28

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/895584/ft1_filtered_4FGL_J1028.3+3108_daily_bin34.fits scfile=/scratch/kocevski/895584/ft2_4FGL_J1028.3+3108_daily_bin34.fits outfile=/scratch/kocevski/895584/cmap_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895584/ft1_filtered_4FGL_J1028.3+3108_daily_bin34.fits scfile=/scratch/kocevski/895584/ft2_4FGL_J1028.3+3108_daily_bin34.fits outfile=/scratch/kocevski/895584/cmap_HighResolution_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1397       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 '    1.4624       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.659       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4558       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9458       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8544       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3132       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2219       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.6571       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96583       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=   7382.129     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2836 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1402        16.895        .13828E-06    .72770E-05
   2  Prefactor     .10000E-03    5.7805       -.50008E-07** at limit **
   3  Prefactor     .10000E-03    1.8410       -.24487E-08** at limit **
   4  Prefactor     1.4625        2.0068        .12097E-06    .44576E-04
   5  norm          7.4035        6.2113        .57103E-06   -.30297E-04
   6  Prefactor     .10000E-03    1.3636        .34050E-07** at limit **
   7  Prefactor     17.650        24.346        .12521E-05    .46598E-04
   8  Prefactor     .10000E-03    1.7559       -.15074E-07** at limit **
   9  norm          5.4568        6.7929        .27367E-07    .21608E-04
  10  Prefactor     .10000E-03    19.358       -.98817E-06** at limit **
  11  Prefactor     .10000E-03    13.313        .16197E-05** at limit **
  12  Prefactor     1.0874        2.5679       -.31843E-06   -.69420E-03
  13  Prefactor     .10000E-03    1.2333       -.13339E-07** at limit **
  14  Prefactor     5.9468        6.7687        .23087E-07   -.58051E-04
  15  Prefactor     .10000E-03    11.178       -.10597E-05** at limit **
  16  Prefactor     1.1412        1.5687        .27668E-07   -.72145E-04
  17  Prefactor     .10000E-03    6.3190        .21399E-06** at limit **
  18  Prefactor     .10000E-03    41.522        .37158E-06** at limit **
  19  Prefactor     .10000E-03    3.0886        .67521E-09** at limit **
  20  Prefactor     2.8540        5.8322        .26724E-05   -.11130E-03
  21  norm          1.3132        .29475       -.85849E-08    .72410E-04
  22  Prefactor     1.8172        2.6013       -.16209E-06   -.16771E-04
  23  Prefactor     7.2175        10.155        .92714E-06   -.27588E-04
  24  Prefactor     .10000E-03    5.9455       -.17117E-07** at limit **
  25  norm          7.6586        9.7248       -.40413E-07   -.14822E-05
  26  Normalizat    1.0166        .15431        .75417E-07    .40197E-04
  27  Prefactor     .96601        .17225       -.65932E-06   -.79169E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46251
  norm       = 7.40351
  Prefactor  = 0.0001
  Prefactor  = 17.6502
  Prefactor  = 0.0001
  norm       = 5.45681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08744
  Prefactor  = 0.0001
  Prefactor  = 5.9468
  Prefactor  = 0.0001
  Prefactor  = 1.14119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.85396
  norm       = 1.31321
  Prefactor  = 1.81724
  Prefactor  = 7.21748
  Prefactor  = 0.0001
  norm       = 7.65856
  Normalizat = 1.01658
  Prefactor  = 0.966008
 **********
 **   18 **HESSE 
 **********

 FCN=   7382.129     FROM HESSE     STATUS=OK           494 CALLS     3330 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1402        16.884        .13257E-03   -1.5103    
   2  Prefactor     .10000E-03    5.9249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8428        .11384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4625        1.9830        .13415E-03   -1.5466    
   5  norm          7.4035        6.2002        .73700E-03   -1.5164    
   6  Prefactor     .10000E-03    2.4926        .19351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.650        24.404        .95309E-04   -1.4867    
   8  Prefactor     .10000E-03    1.7958        .22181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.4568        6.7490        .17203E-03   -1.5241    
  10  Prefactor     .10000E-03    19.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0874        2.2148        .20646E-02   -1.5499    
  13  Prefactor     .10000E-03    1.2383        .93164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.9468        6.7363        .16468E-03   -1.5220    
  15  Prefactor     .10000E-03    11.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1412        1.5198        .11864E-03   -1.5494    
  17  Prefactor     .10000E-03    6.4171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0956        .14745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8540        5.8276        .12032E-02   -1.5370    
  21  norm          1.3132        .29535        .21128E-04   -1.5479    
  22  Prefactor     1.8172        2.5781        .15383E-03   -1.5438    
  23  Prefactor     7.2175        10.148        .74630E-03   -1.5171    
  24  Prefactor     .10000E-03    5.9601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.6586        9.7111        .14492E-03   -1.5154    
  26  Normalizat    1.0166        .17992        .22610E-03   -.92477    
  27  Prefactor     .96601        .20195        .26945E-03   -.93871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69245e-10
Minuit parameter uncertainties:
  1  16.8931
  2  8.29893e-06
  3  2.50066e-08
  4  1.98313
  5  6.20077
  6  2.43899e-06
  7  24.4179
  8  8.11138e-07
  9  6.74991
  10  2.36712e-05
  11  2.66553e-05
  12  2.21496
  13  6.30062e-07
  14  6.73717
  15  1.77902e-05
  16  1.5199
  17  3.28088e-06
  18  1.52859e-05
  19  4.92354e-07
  20  5.82874
  21  0.295353
  22  2.57822
  23  10.1506
  24  6.5172e-07
  25  9.71311
  26  0.180029
  27  0.20211
Done.

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

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.367e-05  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  1.828e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.660e-01  2.021e-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.017e+00  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/895584/likelihoodResults_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.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) = 7382.12908989
delta logL = -0.000246262263317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7382.12884444
delta logL = -8.17683940113e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4669       1.0000          .0000       10.000    
     3 'Normalizat'    1.0166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96601       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=   7382.129     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10153E-03    78.237        .18142E-02** at limit **
   2  Index         2.4078        8.5327        .50000        .17744E-04
   3  Normalizat    1.0166        .80728E-02    .22610E-03   -.17096E-05
   4  Prefactor     .96601        .94505E-02    .26945E-03   -.20885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101528
  Index      = 2.4078
  Normalizat = 1.01658
  Prefactor  = 0.966008
 **********
 **   18 **HESSE 
 **********

 FCN=   7382.129     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10153E-03    347.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4078        5.6098        .50000       -.54503    
   3  Normalizat    1.0166        .17417E-01    .90441E-05   -.92477    
   4  Prefactor     .96601        .20389E-01    .10778E-04   -.93871    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45745e-08
Minuit parameter uncertainties:
  1  0.0463866
  2  374.957
  3  0.0174173
  4  0.0203895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895584': 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) = 7382.12884423
delta logL = -6.06080902799e-07

Extracting fit parameters...

4FGL J1028.3+3108
   Spectrum: PowerLaw
265    Prefactor:  1.015e-04  4.639e-02  1.000e-04  1.000e+04 ( 1.000e-14)
266        Index:  2.408e+00  3.750e+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:  9.660e-01  2.039e-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.017e+00  1.742e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/895584/cmap_HighResolution_248140801_248400001_4FGL_J1028.3+3108_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-09-01 22:59:27.824269', job_id='895584', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630562367.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-6.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='34' AND source_name='4FGL J1028.3+3108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 22:59:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 895584: <4FGL_J1028.3+3108_daily_bin34> in cluster <slac> Done

Job <4FGL_J1028.3+3108_daily_bin34> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 22:45:37 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 22:45:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 22:45:45 2021
Terminated at Wed Sep  1 22:59:28 2021
Results reported at Wed Sep  1 22:59:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1028.3+3108_daily_bin34 157.077 31.1389 248140801 248400001 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 :                                   806.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            831 sec.

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

